diff --git a/1.7.10/.gradle/2.6/taskArtifacts/cache.properties.lock b/1.7.10/.gradle/2.6/taskArtifacts/cache.properties.lock
index bea5b91..98dc0fa 100644
Binary files a/1.7.10/.gradle/2.6/taskArtifacts/cache.properties.lock and b/1.7.10/.gradle/2.6/taskArtifacts/cache.properties.lock differ
diff --git a/1.7.10/.gradle/2.6/taskArtifacts/fileHashes.bin b/1.7.10/.gradle/2.6/taskArtifacts/fileHashes.bin
index 513064c..91c9fc6 100644
Binary files a/1.7.10/.gradle/2.6/taskArtifacts/fileHashes.bin and b/1.7.10/.gradle/2.6/taskArtifacts/fileHashes.bin differ
diff --git a/1.7.10/.gradle/2.6/taskArtifacts/fileSnapshots.bin b/1.7.10/.gradle/2.6/taskArtifacts/fileSnapshots.bin
index 33646f8..a84eff0 100644
Binary files a/1.7.10/.gradle/2.6/taskArtifacts/fileSnapshots.bin and b/1.7.10/.gradle/2.6/taskArtifacts/fileSnapshots.bin differ
diff --git a/1.7.10/.gradle/2.6/taskArtifacts/outputFileStates.bin b/1.7.10/.gradle/2.6/taskArtifacts/outputFileStates.bin
index 971f34c..2554ac5 100644
Binary files a/1.7.10/.gradle/2.6/taskArtifacts/outputFileStates.bin and b/1.7.10/.gradle/2.6/taskArtifacts/outputFileStates.bin differ
diff --git a/1.7.10/.gradle/2.6/taskArtifacts/taskArtifacts.bin b/1.7.10/.gradle/2.6/taskArtifacts/taskArtifacts.bin
index 60ab942..3048857 100644
Binary files a/1.7.10/.gradle/2.6/taskArtifacts/taskArtifacts.bin and b/1.7.10/.gradle/2.6/taskArtifacts/taskArtifacts.bin differ
diff --git a/1.7.10/.gradle/gradle.log b/1.7.10/.gradle/gradle.log
index f8dbbb4..a335dfd 100644
--- a/1.7.10/.gradle/gradle.log
+++ b/1.7.10/.gradle/gradle.log
@@ -39,4 +39,4 @@ Note: Recompile with -Xlint:unchecked for details.
BUILD SUCCESSFUL
-Total time: 18.652 secs
+Total time: 12.734 secs
diff --git a/1.7.10/bin/ab/AdvancedBotany.class b/1.7.10/bin/ab/AdvancedBotany.class
index 818dd0f..e26ec5c 100644
Binary files a/1.7.10/bin/ab/AdvancedBotany.class and b/1.7.10/bin/ab/AdvancedBotany.class differ
diff --git a/1.7.10/bin/ab/client/core/handler/ClientHandler.class b/1.7.10/bin/ab/client/core/handler/ClientHandler.class
index c03f928..4b43e3b 100644
Binary files a/1.7.10/bin/ab/client/core/handler/ClientHandler.class and b/1.7.10/bin/ab/client/core/handler/ClientHandler.class differ
diff --git a/1.7.10/bin/ab/client/core/handler/HudRenderHandler.class b/1.7.10/bin/ab/client/core/handler/HudRenderHandler.class
index 4040ffd..fc71b11 100644
Binary files a/1.7.10/bin/ab/client/core/handler/HudRenderHandler.class and b/1.7.10/bin/ab/client/core/handler/HudRenderHandler.class differ
diff --git a/1.7.10/bin/ab/client/core/handler/ItemsRemainingRender.class b/1.7.10/bin/ab/client/core/handler/ItemsRemainingRender.class
new file mode 100644
index 0000000..8680f9b
Binary files /dev/null and b/1.7.10/bin/ab/client/core/handler/ItemsRemainingRender.class differ
diff --git a/1.7.10/bin/ab/client/core/handler/PlayerItemUsingSound$ClientSoundHandler.class b/1.7.10/bin/ab/client/core/handler/PlayerItemUsingSound$ClientSoundHandler.class
new file mode 100644
index 0000000..92ef492
Binary files /dev/null and b/1.7.10/bin/ab/client/core/handler/PlayerItemUsingSound$ClientSoundHandler.class differ
diff --git a/1.7.10/bin/ab/client/core/handler/PlayerItemUsingSound.class b/1.7.10/bin/ab/client/core/handler/PlayerItemUsingSound.class
new file mode 100644
index 0000000..181954f
Binary files /dev/null and b/1.7.10/bin/ab/client/core/handler/PlayerItemUsingSound.class differ
diff --git a/1.7.10/bin/ab/client/core/proxy/ClientProxy.class b/1.7.10/bin/ab/client/core/proxy/ClientProxy.class
index bce6e00..90611c4 100644
Binary files a/1.7.10/bin/ab/client/core/proxy/ClientProxy.class and b/1.7.10/bin/ab/client/core/proxy/ClientProxy.class differ
diff --git a/1.7.10/bin/ab/client/model/ModelNidavellirForge.class b/1.7.10/bin/ab/client/model/ModelNidavellirForge.class
new file mode 100644
index 0000000..dbb007b
Binary files /dev/null and b/1.7.10/bin/ab/client/model/ModelNidavellirForge.class differ
diff --git a/1.7.10/bin/ab/client/nei/NEIConfig.class b/1.7.10/bin/ab/client/nei/NEIConfig.class
index 6061d73..fafd3b8 100644
Binary files a/1.7.10/bin/ab/client/nei/NEIConfig.class and b/1.7.10/bin/ab/client/nei/NEIConfig.class differ
diff --git a/1.7.10/bin/ab/client/render/block/RenderBlockNidavellirForge.class b/1.7.10/bin/ab/client/render/block/RenderBlockNidavellirForge.class
new file mode 100644
index 0000000..d6f8c77
Binary files /dev/null and b/1.7.10/bin/ab/client/render/block/RenderBlockNidavellirForge.class differ
diff --git a/1.7.10/bin/ab/client/render/entity/RenderEntityAlphirinePortal.class b/1.7.10/bin/ab/client/render/entity/RenderEntityAlphirinePortal.class
index aa7b037..5bcf6e8 100644
Binary files a/1.7.10/bin/ab/client/render/entity/RenderEntityAlphirinePortal.class and b/1.7.10/bin/ab/client/render/entity/RenderEntityAlphirinePortal.class differ
diff --git a/1.7.10/bin/ab/client/render/item/RenderItemAntigravityCharm.class b/1.7.10/bin/ab/client/render/item/RenderItemAntigravityCharm.class
index 60a7d2a..4fc9efc 100644
Binary files a/1.7.10/bin/ab/client/render/item/RenderItemAntigravityCharm.class and b/1.7.10/bin/ab/client/render/item/RenderItemAntigravityCharm.class differ
diff --git a/1.7.10/bin/ab/client/render/item/RenderItemSphereNavigation.class b/1.7.10/bin/ab/client/render/item/RenderItemSphereNavigation.class
new file mode 100644
index 0000000..90d2fcd
Binary files /dev/null and b/1.7.10/bin/ab/client/render/item/RenderItemSphereNavigation.class differ
diff --git a/1.7.10/bin/ab/client/render/tile/RenderTileAgglomerationPlate.class b/1.7.10/bin/ab/client/render/tile/RenderTileAgglomerationPlate.class
deleted file mode 100644
index 016fffe..0000000
Binary files a/1.7.10/bin/ab/client/render/tile/RenderTileAgglomerationPlate.class and /dev/null differ
diff --git a/1.7.10/bin/ab/client/render/tile/RenderTileNidavellirForge.class b/1.7.10/bin/ab/client/render/tile/RenderTileNidavellirForge.class
new file mode 100644
index 0000000..0e76c65
Binary files /dev/null and b/1.7.10/bin/ab/client/render/tile/RenderTileNidavellirForge.class differ
diff --git a/1.7.10/bin/ab/common/block/BlockAgglomerationPlate.class b/1.7.10/bin/ab/common/block/BlockAgglomerationPlate.class
deleted file mode 100644
index a4403cf..0000000
Binary files a/1.7.10/bin/ab/common/block/BlockAgglomerationPlate.class and /dev/null differ
diff --git a/1.7.10/bin/ab/common/block/BlockBoardFate.class b/1.7.10/bin/ab/common/block/BlockBoardFate.class
index c9f9f93..2009391 100644
Binary files a/1.7.10/bin/ab/common/block/BlockBoardFate.class and b/1.7.10/bin/ab/common/block/BlockBoardFate.class differ
diff --git a/1.7.10/bin/ab/common/block/BlockEngineerHopper.class b/1.7.10/bin/ab/common/block/BlockEngineerHopper.class
index 26b283c..af5ed87 100644
Binary files a/1.7.10/bin/ab/common/block/BlockEngineerHopper.class and b/1.7.10/bin/ab/common/block/BlockEngineerHopper.class differ
diff --git a/1.7.10/bin/ab/common/block/BlockNidavellirForge.class b/1.7.10/bin/ab/common/block/BlockNidavellirForge.class
new file mode 100644
index 0000000..547a134
Binary files /dev/null and b/1.7.10/bin/ab/common/block/BlockNidavellirForge.class differ
diff --git a/1.7.10/bin/ab/common/block/BlockStructureArea.class b/1.7.10/bin/ab/common/block/BlockStructureArea.class
new file mode 100644
index 0000000..7f0fdc3
Binary files /dev/null and b/1.7.10/bin/ab/common/block/BlockStructureArea.class differ
diff --git a/1.7.10/bin/ab/common/block/BlockTerraFarmland.class b/1.7.10/bin/ab/common/block/BlockTerraFarmland.class
index c939b3e..140871f 100644
Binary files a/1.7.10/bin/ab/common/block/BlockTerraFarmland.class and b/1.7.10/bin/ab/common/block/BlockTerraFarmland.class differ
diff --git a/1.7.10/bin/ab/common/block/subtile/SubTileArdentAzarcissus.class b/1.7.10/bin/ab/common/block/subtile/SubTileArdentAzarcissus.class
index 601b460..db2373f 100644
Binary files a/1.7.10/bin/ab/common/block/subtile/SubTileArdentAzarcissus.class and b/1.7.10/bin/ab/common/block/subtile/SubTileArdentAzarcissus.class differ
diff --git a/1.7.10/bin/ab/common/block/tile/TileABSpreader.class b/1.7.10/bin/ab/common/block/tile/TileABSpreader.class
index 2836986..d25727e 100644
Binary files a/1.7.10/bin/ab/common/block/tile/TileABSpreader.class and b/1.7.10/bin/ab/common/block/tile/TileABSpreader.class differ
diff --git a/1.7.10/bin/ab/common/block/tile/TileAgglomerationPlate.class b/1.7.10/bin/ab/common/block/tile/TileAgglomerationPlate.class
deleted file mode 100644
index 379b9db..0000000
Binary files a/1.7.10/bin/ab/common/block/tile/TileAgglomerationPlate.class and /dev/null differ
diff --git a/1.7.10/bin/ab/common/block/tile/TileBoardFate.class b/1.7.10/bin/ab/common/block/tile/TileBoardFate.class
index 095a581..f6b475a 100644
Binary files a/1.7.10/bin/ab/common/block/tile/TileBoardFate.class and b/1.7.10/bin/ab/common/block/tile/TileBoardFate.class differ
diff --git a/1.7.10/bin/ab/common/block/tile/TileEngineerHopper.class b/1.7.10/bin/ab/common/block/tile/TileEngineerHopper.class
index 0962dc2..7bd02ad 100644
Binary files a/1.7.10/bin/ab/common/block/tile/TileEngineerHopper.class and b/1.7.10/bin/ab/common/block/tile/TileEngineerHopper.class differ
diff --git a/1.7.10/bin/ab/common/block/tile/TileGameBoard.class b/1.7.10/bin/ab/common/block/tile/TileGameBoard.class
index 872d31d..93d8966 100644
Binary files a/1.7.10/bin/ab/common/block/tile/TileGameBoard.class and b/1.7.10/bin/ab/common/block/tile/TileGameBoard.class differ
diff --git a/1.7.10/bin/ab/common/block/tile/TileNidavellirForge.class b/1.7.10/bin/ab/common/block/tile/TileNidavellirForge.class
new file mode 100644
index 0000000..2c9d2e2
Binary files /dev/null and b/1.7.10/bin/ab/common/block/tile/TileNidavellirForge.class differ
diff --git a/1.7.10/bin/ab/common/core/CommonHelper.class b/1.7.10/bin/ab/common/core/CommonHelper.class
index 399a14f..6ac4ee3 100644
Binary files a/1.7.10/bin/ab/common/core/CommonHelper.class and b/1.7.10/bin/ab/common/core/CommonHelper.class differ
diff --git a/1.7.10/bin/ab/common/core/handler/ConfigABHandler$ChangeListener.class b/1.7.10/bin/ab/common/core/handler/ConfigABHandler$ChangeListener.class
index 4a1cb32..e79419d 100644
Binary files a/1.7.10/bin/ab/common/core/handler/ConfigABHandler$ChangeListener.class and b/1.7.10/bin/ab/common/core/handler/ConfigABHandler$ChangeListener.class differ
diff --git a/1.7.10/bin/ab/common/core/handler/ConfigABHandler.class b/1.7.10/bin/ab/common/core/handler/ConfigABHandler.class
index 18188ab..c6ee380 100644
Binary files a/1.7.10/bin/ab/common/core/handler/ConfigABHandler.class and b/1.7.10/bin/ab/common/core/handler/ConfigABHandler.class differ
diff --git a/1.7.10/bin/ab/common/core/handler/NetworkHandler.class b/1.7.10/bin/ab/common/core/handler/NetworkHandler.class
new file mode 100644
index 0000000..a6d7446
Binary files /dev/null and b/1.7.10/bin/ab/common/core/handler/NetworkHandler.class differ
diff --git a/1.7.10/bin/ab/common/core/proxy/CommonProxy.class b/1.7.10/bin/ab/common/core/proxy/CommonProxy.class
index 07142ad..0febb23 100644
Binary files a/1.7.10/bin/ab/common/core/proxy/CommonProxy.class and b/1.7.10/bin/ab/common/core/proxy/CommonProxy.class differ
diff --git a/1.7.10/bin/ab/common/core/proxy/packet/S00PacketHornChargeHud.class b/1.7.10/bin/ab/common/core/proxy/packet/S00PacketHornChargeHud.class
new file mode 100644
index 0000000..f16a81d
Binary files /dev/null and b/1.7.10/bin/ab/common/core/proxy/packet/S00PacketHornChargeHud.class differ
diff --git a/1.7.10/bin/ab/common/core/proxy/packet/S01PacketFindNearBlocks.class b/1.7.10/bin/ab/common/core/proxy/packet/S01PacketFindNearBlocks.class
new file mode 100644
index 0000000..48bbc66
Binary files /dev/null and b/1.7.10/bin/ab/common/core/proxy/packet/S01PacketFindNearBlocks.class differ
diff --git a/1.7.10/bin/ab/common/core/proxy/packet/S02PacketSpaceBladeDash.class b/1.7.10/bin/ab/common/core/proxy/packet/S02PacketSpaceBladeDash.class
new file mode 100644
index 0000000..7d86abe
Binary files /dev/null and b/1.7.10/bin/ab/common/core/proxy/packet/S02PacketSpaceBladeDash.class differ
diff --git a/1.7.10/bin/ab/common/entity/EntityManaVine.class b/1.7.10/bin/ab/common/entity/EntityManaVine.class
index ec7b3cc..f003c5d 100644
Binary files a/1.7.10/bin/ab/common/entity/EntityManaVine.class and b/1.7.10/bin/ab/common/entity/EntityManaVine.class differ
diff --git a/1.7.10/bin/ab/common/entity/EntitySeed.class b/1.7.10/bin/ab/common/entity/EntitySeed.class
index 86742e7..02a6e9c 100644
Binary files a/1.7.10/bin/ab/common/entity/EntitySeed.class and b/1.7.10/bin/ab/common/entity/EntitySeed.class differ
diff --git a/1.7.10/bin/ab/common/item/ItemAntigravityCharm.class b/1.7.10/bin/ab/common/item/ItemAntigravityCharm.class
index 8912597..cd75e08 100644
Binary files a/1.7.10/bin/ab/common/item/ItemAntigravityCharm.class and b/1.7.10/bin/ab/common/item/ItemAntigravityCharm.class differ
diff --git a/1.7.10/bin/ab/common/item/equipment/ItemNebulaBlaze.class b/1.7.10/bin/ab/common/item/equipment/ItemNebulaBlaze.class
index 5315d11..0811219 100644
Binary files a/1.7.10/bin/ab/common/item/equipment/ItemNebulaBlaze.class and b/1.7.10/bin/ab/common/item/equipment/ItemNebulaBlaze.class differ
diff --git a/1.7.10/bin/ab/common/item/equipment/ItemNebulaRod.class b/1.7.10/bin/ab/common/item/equipment/ItemNebulaRod.class
index e9f9561..e060e1e 100644
Binary files a/1.7.10/bin/ab/common/item/equipment/ItemNebulaRod.class and b/1.7.10/bin/ab/common/item/equipment/ItemNebulaRod.class differ
diff --git a/1.7.10/bin/ab/common/item/equipment/ItemSpaceBlade.class b/1.7.10/bin/ab/common/item/equipment/ItemSpaceBlade.class
index 803efdf..b7ace7b 100644
Binary files a/1.7.10/bin/ab/common/item/equipment/ItemSpaceBlade.class and b/1.7.10/bin/ab/common/item/equipment/ItemSpaceBlade.class differ
diff --git a/1.7.10/bin/ab/common/item/equipment/ItemTerraHoe.class b/1.7.10/bin/ab/common/item/equipment/ItemTerraHoe.class
index 5418d6d..bd15273 100644
Binary files a/1.7.10/bin/ab/common/item/equipment/ItemTerraHoe.class and b/1.7.10/bin/ab/common/item/equipment/ItemTerraHoe.class differ
diff --git a/1.7.10/bin/ab/common/item/equipment/armor/ItemNebulaBoots.class b/1.7.10/bin/ab/common/item/equipment/armor/ItemNebulaBoots.class
index 4dff2f5..25c74b2 100644
Binary files a/1.7.10/bin/ab/common/item/equipment/armor/ItemNebulaBoots.class and b/1.7.10/bin/ab/common/item/equipment/armor/ItemNebulaBoots.class differ
diff --git a/1.7.10/bin/ab/common/item/equipment/armor/ItemNebulaHelm.class b/1.7.10/bin/ab/common/item/equipment/armor/ItemNebulaHelm.class
index 441d1ee..b745fe0 100644
Binary files a/1.7.10/bin/ab/common/item/equipment/armor/ItemNebulaHelm.class and b/1.7.10/bin/ab/common/item/equipment/armor/ItemNebulaHelm.class differ
diff --git a/1.7.10/bin/ab/common/item/relic/ItemFreyrSlingshot.class b/1.7.10/bin/ab/common/item/relic/ItemFreyrSlingshot.class
index d3d1cd6..b748d33 100644
Binary files a/1.7.10/bin/ab/common/item/relic/ItemFreyrSlingshot.class and b/1.7.10/bin/ab/common/item/relic/ItemFreyrSlingshot.class differ
diff --git a/1.7.10/bin/ab/common/item/relic/ItemHornPlenty.class b/1.7.10/bin/ab/common/item/relic/ItemHornPlenty.class
new file mode 100644
index 0000000..e8fbb9a
Binary files /dev/null and b/1.7.10/bin/ab/common/item/relic/ItemHornPlenty.class differ
diff --git a/1.7.10/bin/ab/common/item/relic/ItemPocketWardrobe.class b/1.7.10/bin/ab/common/item/relic/ItemPocketWardrobe.class
index a561921..1691bf0 100644
Binary files a/1.7.10/bin/ab/common/item/relic/ItemPocketWardrobe.class and b/1.7.10/bin/ab/common/item/relic/ItemPocketWardrobe.class differ
diff --git a/1.7.10/bin/ab/common/item/relic/ItemSehrimnirHide.class b/1.7.10/bin/ab/common/item/relic/ItemSehrimnirHide.class
deleted file mode 100644
index 8b4a826..0000000
Binary files a/1.7.10/bin/ab/common/item/relic/ItemSehrimnirHide.class and /dev/null differ
diff --git a/1.7.10/bin/ab/common/item/relic/ItemSphereNavigation.class b/1.7.10/bin/ab/common/item/relic/ItemSphereNavigation.class
new file mode 100644
index 0000000..dfad2fc
Binary files /dev/null and b/1.7.10/bin/ab/common/item/relic/ItemSphereNavigation.class differ
diff --git a/1.7.10/bin/ab/common/item/relic/ItemSpiritJar.class b/1.7.10/bin/ab/common/item/relic/ItemSpiritJar.class
deleted file mode 100644
index e6ce0b9..0000000
Binary files a/1.7.10/bin/ab/common/item/relic/ItemSpiritJar.class and /dev/null differ
diff --git a/1.7.10/bin/ab/common/item/relic/ItemTalismanHiddenRiches.class b/1.7.10/bin/ab/common/item/relic/ItemTalismanHiddenRiches.class
index 8a7dc90..7a90281 100644
Binary files a/1.7.10/bin/ab/common/item/relic/ItemTalismanHiddenRiches.class and b/1.7.10/bin/ab/common/item/relic/ItemTalismanHiddenRiches.class differ
diff --git a/1.7.10/bin/ab/common/item/relic/ItemWildHuntWhip.class b/1.7.10/bin/ab/common/item/relic/ItemWildHuntWhip.class
new file mode 100644
index 0000000..36d2d64
Binary files /dev/null and b/1.7.10/bin/ab/common/item/relic/ItemWildHuntWhip.class differ
diff --git a/1.7.10/bin/ab/common/lib/register/AchievementRegister.class b/1.7.10/bin/ab/common/lib/register/AchievementRegister.class
index 5ec7cc9..e066208 100644
Binary files a/1.7.10/bin/ab/common/lib/register/AchievementRegister.class and b/1.7.10/bin/ab/common/lib/register/AchievementRegister.class differ
diff --git a/1.7.10/bin/ab/common/lib/register/BlockListAB.class b/1.7.10/bin/ab/common/lib/register/BlockListAB.class
index 150cede..23dba76 100644
Binary files a/1.7.10/bin/ab/common/lib/register/BlockListAB.class and b/1.7.10/bin/ab/common/lib/register/BlockListAB.class differ
diff --git a/1.7.10/bin/ab/common/lib/register/ItemListAB.class b/1.7.10/bin/ab/common/lib/register/ItemListAB.class
index 2c61c72..44ffac4 100644
Binary files a/1.7.10/bin/ab/common/lib/register/ItemListAB.class and b/1.7.10/bin/ab/common/lib/register/ItemListAB.class differ
diff --git a/1.7.10/bin/ab/common/lib/register/RecipeListAB.class b/1.7.10/bin/ab/common/lib/register/RecipeListAB.class
index ddc9864..6e733ee 100644
Binary files a/1.7.10/bin/ab/common/lib/register/RecipeListAB.class and b/1.7.10/bin/ab/common/lib/register/RecipeListAB.class differ
diff --git a/1.7.10/bin/assets/ab/lang/en_US.lang b/1.7.10/bin/assets/ab/lang/en_US.lang
index e097bff..36e6c38 100644
--- a/1.7.10/bin/assets/ab/lang/en_US.lang
+++ b/1.7.10/bin/assets/ab/lang/en_US.lang
@@ -12,7 +12,7 @@ ab.flower.aspecolus.name=Aspecolus
ab.flower.pureGladiolus.name=Pure Gladiolus
ab.flower.ardentAzarcissus.name=Ardent Azarcissus
tile.advancedSpreader.name=Natural Mana Spreader
-tile.ABPlate.name=Advanced Agglomeration Plate
+tile.ABPlate.name=Forge of Nidavellir
tile.lebethronWood.0.name=Lebethron Wood
tile.lebethronWood.1.name=Lebethron Wood Planks
tile.lebethronWood.2.name=Mossy Lebethron Wood Planks
@@ -76,13 +76,15 @@ item.ab.pattern9.name=Thaumim - Crafting Pattern #9
item.sprawlRod.name=Rod of Sprawl
item.autoPocketWardrobe.name=Nimble Cube
item.talismanHiddenRiches.name=Key to Hidden Wealth
+item.hornPlenty.name=Horn of Plenty
+item.sphereNavigation.name=Sphere of Navigation
//MISC
ab.nebulaHelm.mask=A natural look is included
botania.category.forgotten=Connecting with the past
ab.nei.alphirine=Ancient Alphirine
-ab.nei.advancedPlate=Advanced aggl. plate
+ab.nei.advancedPlate=Forge of Nidavellir
ab.manaCrystalCube.hud=Amount of mana in the network
ab.manaCharger.wandHud=Mana Charger
ab.manaContainer.0.hud=Mana Container
@@ -103,6 +105,9 @@ ab.gameBoard.misc.0.mult=%s wins the game
ab.gameBoard.misc.1.mult=Game ends in a draw
ab.gameBoard.misc.2.mult=%s wins the game
ab.gameBoard.misc.notPlayer=The game ends, the second player is missing
+ab.nebulaRod.notTeleporting=Portal could not find the right place to move
+ab.nebulaRod.notTeleportingEvent=Something prevents the portal from transporting you to your chosen location
+ab.sphereNavigation.founded=Found
//ACHIEVEMENT
@@ -114,6 +119,10 @@ achievement.ab:relicPocketArmor=A fake appearance
achievement.ab:relicPocketArmor.desc=Be rewarded with Nimble Cube for your heroic deeds
achievement.ab:relicItemChest=Access to personal wealth
achievement.ab:relicItemChest.desc=Be rewarded with Key to Hidden Wealth for your heroic deeds
+achievement.ab:relicHornPlenty=Good hunting call
+achievement.ab:relicHornPlenty.desc=Be rewarded with Horn of Plenty for your heroic deeds
+achievement.ab:relicSphereNavigation=X-Ray? Or a great relic?
+achievement.ab:relicSphereNavigation.desc=Be rewarded with Sphere of Navigation for your heroic deeds
//LEXICON
@@ -127,14 +136,15 @@ botania.entry.ancientAlphirine=Ancient Alphirine
botania.tagline.ancientAlphirine=Turn the world upside down, and shake out the interesting stuff!
botania.page.ancientAlphirine0=The ancient Alphyrin is the keeper of all technology and knowledge! Wherever it is placed, it will penetrate the soil and learn everything that happened on it.
Chances are, you were wondering how the Elves manage the Earth's resources, and what their value is
Toss him your Lexicon for Alphyrin to share his knowledge!
botania.page.ancientAlphirine1=The study of history and technology is not all that Alphyrin can do! He is able to find analogues, abandoned near him, of resources from the past.
As soon as he discovers an analog, he will immediately start trying to recreate it, through a small portal, but it requires a certain number of attempts - the number depends on the difficulty of recreating the resource.
+botania.page.ancientAlphirine2=Opening of the portal by the Ancient Alphirine
botania.page.ancientAlphirine.petalCraft=The wisest flower, by the way
botania.page.ancientAlphirine.alphirineCraft=DO NOT BREATHE IN!
-botania.entry.advancedPlate=Advanced. aggl. plate
+botania.entry.advancedPlate=Forge of Nidavellir
botania.tagline.advancedPlate=Created from the drawings of dwarves from Nidavellir
-botania.page.advancedPlate0=The Advanced agglomeration plate is a plate for sintering materials into one piece, at the expense of mana, created by the Dwarves' drawings.
One of the main changes, compared to the last version of the plate, is the creation of new resources, in addition to terrastal, and another equally important one is the increased operating experience.
+botania.page.advancedPlate0=Forge of Nidavellir - a really powerful Dwarf invention for fusing different materials into one whole, the main thing is to know the proportions!
This forge was given to the Elves, that is, it came to our land at the time of "Destruction," but... Not for long - it was soon destroyed.
botania.page.advancedPlate.craft=The Engineering Revolution
-botania.page.advancedPlate.structure=A.A.plate
+botania.page.advancedPlate.structure=Forge of Nidavellir
botania.page.advancedPlate.abCraft0=Creating everyone's favorite terrastal
botania.page.advancedPlate.abCraft1=Burn My Star...
@@ -153,9 +163,9 @@ botania.page.lebethronSpreader.craft=You can't have too much mana
botania.entry.mithrill=Mithrill
botania.tagline.mithrill=Mighty and indestructible metal!
-botania.page.mithrill0=Mithrill - stands out for its strength among other metals, or rather its lack of it, as it can not get any damage.
The process of creating it is not the easiest, because it requires a very large amount of mana.
+botania.page.mithrill0=Mithrill - stands out for its strength among other metals, or rather its lack of it, as it can not get any damage.
Such unique properties are the result of a successful proportion of Gaia Spirit and Terrasteel, with the addition of Manasteel, to balance the energy within the alloy.
botania.page.mithrill.abCraft=Where's all my mana!?
-botania.page.mithrill1=The Material Destroyer is a harsh tool, capable of breaking any block in a short period of time. Its speed is so high that it was necessary to create a *Fuse* in it - that is, to turn it off/on.
+botania.page.mithrill1=The Material Destroyer - a harsh tool based on a global catastrophe in the past.
He is perfectly capable of breaking any block almost instantly. His speed is so high that it was necessary to create a *Fuse* in him - that is, to turn him off/on.
botania.page.mithrill.craft=Break this world
botania.entry.manaContainer=Mana Container's
@@ -191,7 +201,7 @@ botania.page.manaFlower.alphirineCraft=Beautiful flower
botania.entry.mithrillSword=Blade of Space
botania.tagline.mithrillSword=Weapons capable of making jerks and doing damage
-botania.page.mithrillSword0=Blade of Space is a magical weapon that requires mana to improve its abilities as well as its damage.
+botania.page.mithrillSword0=Blade of Space - is an ordinary melee weapon, but as soon as you pour mana into it, it is immediately endowed with unusual magical properties. For example: Dash or Starburst
Note: When using the Spatial leap, the Block is unavailable for a while.
botania.page.mithrillSword.craft=Cut them all up!!!
botania.entry.dictarius=Dictarius
@@ -269,7 +279,7 @@ botania.page.gameBoard.craft=Shall we play for mana? How's that?
botania.entry.fateBoard=Fate Playing Board
botania.tagline.fateBoard=1 cube - 6 relics, makes sense. 2 cubes...
-botania.page.fateBoard0=Fate Playing Board - a kind of fun, just like a normal Playing Board, but - the game requires a few Destiny Cubes.
As you know - by rolling the Fate Cube you can get a relic associated with that number.
Consequently, 2 cubes will yield up to 12 relics. [Currently up to 9, with 3 more in development]
+botania.page.fateBoard0=Fate Playing Board - a kind of fun, just like a normal Playing Board, but - the game requires a few Destiny Cubes.
As you know - by rolling the Fate Cube you can get a relic associated with that number.
Consequently, 2 cubes will yield up to 12 relics. [Currently up to 11, with 1 more in development]
botania.page.fateBoard.alphirineCraft=Shall we play relics?
botania.entry.richesKey=Key to Hidden Wealth
@@ -290,4 +300,12 @@ botania.tagline.azartFlower=Don't worry, you won't be left without a home...
botania.page.azartFlower0=Ardent Azarcissus - The flower is a gambler, one of the representatives of the passive flora, to make a long story short.
In fact, he can make up to 8 moves at a time on the Game Board, trying to beat the board itself. If he wins, he gives mana, the amount of which depends on the difference between the sums of the numbers on the Game Board.
botania.page.azartFlower.petalCraft=Just give him the will, and he'll give you mana.
+botania.entry.sphereNavigation=Sphere of Navigation
+botania.tagline.sphereNavigation=It will show you and show you the way anywhere!
+botania.page.sphereNavigation0=The Sphere of Navigation - is a relic with the unique property of finding a pointed through blocks and marking the location!
For such a pleasure it is required to pay mana, and not a small amount in the long run.
+
+botania.entry.hornPlenty=Horn of Plenty
+botania.tagline.hornPlenty=Double booty - what could be better?
+botania.page.hornPlenty0=The Horn of Plenty is a relic of one of the Ases associated with hunting!
Use the horn to charge it, charging requires some mana. After filling with mystical powers, go hunting, each time the victim dies at your hand, there is a chance to get additional drop from this creature.
+
diff --git a/1.7.10/bin/assets/ab/lang/ru_RU.lang b/1.7.10/bin/assets/ab/lang/ru_RU.lang
index a3f5b91..2b63a50 100644
--- a/1.7.10/bin/assets/ab/lang/ru_RU.lang
+++ b/1.7.10/bin/assets/ab/lang/ru_RU.lang
@@ -12,7 +12,7 @@ ab.flower.aspecolus.name=��пеколу�
ab.flower.pureGladiolus.name=Чи�тый Гладиуло�
ab.flower.ardentAzarcissus.name=Пылкий �зарци��
tile.advancedSpreader.name=Природный ра�про�транитель маны
-tile.ABPlate.name=Улучшенна� агломерационна� плита
+tile.ABPlate.name=Кузн� из �идавеллира
tile.lebethronWood.0.name=Древе�ина Лебертона
tile.lebethronWood.1.name=До�ки из древе�ины Лебертона
tile.lebethronWood.2.name=Замшелые до�ки из древе�ины Лебертона
@@ -64,7 +64,7 @@ item.botania:nebulaBoots.name=Туманные ботинки
item.freyrSlingshot.name=Рогатка Фрейра
item.nebulaRod.name=Жезл туманно�ти
item.ab.pattern0.name=Таум - Заполнитель �борщика
-item.ab.pattern1.name=Таум - Сетка крафта #1
+item.ab.pattern1.name=Таум - Сетка крафта #1
item.ab.pattern2.name=Таум - Сетка крафта #2
item.ab.pattern3.name=Таум - Сетка крафта #3
item.ab.pattern4.name=Таум - Сетка крафта #4
@@ -76,13 +76,15 @@ item.ab.pattern9.name=Таум - Сетка крафта #9
item.sprawlRod.name=Жезл разра�тани�
item.autoPocketWardrobe.name=Куб Провор�тва
item.talismanHiddenRiches.name=Ключ от Скрытых Богат�тв
+item.hornPlenty.name=Рог изобили�
+item.sphereNavigation.name=Шар навигации
//MISC
ab.nebulaHelm.mask=Е�те�твенный облик включен
botania.category.forgotten=Св�зь � прошлым
ab.nei.alphirine=Древний альфирин
-ab.nei.advancedPlate=Улучшенна� аглом. плита
+ab.nei.advancedPlate=Кузн� из �идавеллира
ab.manaCrystalCube.hud=Количе�тво маны в �ети
ab.manaCharger.wandHud=Зар�дник маны
ab.manaContainer.0.hud=Контейнер маны
@@ -103,6 +105,9 @@ ab.gameBoard.misc.0.mult=%s побеждает в игре
ab.gameBoard.misc.1.mult=Игра завершает�� ничьей
ab.gameBoard.misc.2.mult=%s побеждает в игре
ab.gameBoard.misc.notPlayer=Игра завершает��, от�ут�твует второй игрок
+ab.nebulaRod.notTeleporting=Портал не �мог найти подход�щее ме�то дл� перемещени�
+ab.nebulaRod.notTeleportingEvent=Что-то преп�т�твует порталу переме�тить ва� в выбранное ме�то
+ab.sphereNavigation.founded=�айдено:
//ACHIEVEMENT
@@ -114,6 +119,10 @@ achievement.ab:relicPocketArmor=Фальшивый облик
achievement.ab:relicPocketArmor.desc=Будьте вознаграждены Кубом Провор�тва за героиче�кий подвиг
achievement.ab:relicItemChest=До�туп к личному богат�ву
achievement.ab:relicItemChest.desc=Будьте вознаграждены Ключом от Скрытых Богат�тв за героиче�кий подвиг
+achievement.ab:relicHornPlenty=Зов удачной охоты
+achievement.ab:relicHornPlenty.desc=Будьте вознаграждены Рогом Изобили� за героиче�кий подвиг
+achievement.ab:relicSphereNavigation=X-Ray? Или отлична� реликви�?
+achievement.ab:relicSphereNavigation.desc=Будьте вознаграждены Шаром �авигации за героиче�кий подвиг
//LEXICON
@@ -128,14 +137,15 @@ botania.entry.ancientAlphirine=Древний �льфирин
botania.tagline.ancientAlphirine=Переверни мир, и вытр�хни из него интере�ные вещи!
botania.page.ancientAlphirine0=Древний �льфирин - хранитель в�ех технологий и знаний! Куда бы его не разме�тили, он проникнет в почву, и узнает в�ё что на ней прои�ходило.
Скорее вÑ�его, вам было интереÑ�но узнать, как Ðльфы раÑ�порÑ�жаютÑ�Ñ� реÑ�урÑ�ами Земли, и в чем их ценноÑ�ть
Бро�ьте ему �вою Лек�ику, чтобы �льфирин поделил�� �воими знан�ми!
botania.page.ancientAlphirine1=Изучение и�тории и технологий далеко не в�ё, что может �льфирин! Он �по�обен находить аналоги, брошенных около него, ре�ур�ов из прошлого.
Как только он обнаружит аналог, то �разу начнет пытать�� во��оздать его, через небольшой портал, но дл� �того требует�� определенное чи�ло попыток - количе�тво зави�ит от �ложно�ти во��оздани� ре�ур�а.
+botania.page.ancientAlphirine2=Открытие портала Древним �льфирином
botania.page.ancientAlphirine.petalCraft=Самый мудрый цветок, между прочим
botania.page.ancientAlphirine.alphirineCraft=�Е ВДЫХ�ТЬ!
-botania.entry.advancedPlate=Улучшенна� аглом. плита
+botania.entry.advancedPlate=Кузн� из �идавеллира
botania.tagline.advancedPlate=Создано по чертежам гномов � �идавеллира
-botania.page.advancedPlate0=Улучшенна� агломерационна� плита - �то плита дл� �пекани� материалов в одно целое, за �чет маны, �озданна� по чертежам Гномов.
Одно из главных изменений, по �равнению � прошлой вер�ией плиты, �вл�ет�� - �оздание новых ре�ур�ов, кроме терра�тали, и ещё одно не менее важное - повышенный опыт �к�плуатации.
+botania.page.advancedPlate0=Кузн� из �идавеллира - по на�то�щему мощное изобретение Гномов дл� �ли�ни� различных материалов в одно целое, главное знать пропорции!
ДаннаÑ� кузнÑ� доÑ�талаÑ�ÑŒ Ðльфам, то еÑ�ть оказалаÑ�ÑŒ на нашей земле, во времена "РазрушениÑ�", Ð�о... Ñ�овÑ�ем ненадолго - её вÑ�коре уничтожили.
botania.page.advancedPlate.craft=Инженерна� революци�
-botania.page.advancedPlate.structure=У.�. плита
+botania.page.advancedPlate.structure=Кузн� из �идавеллира
botania.page.advancedPlate.abCraft0=Создание в�еми любимой терра�тали
botania.page.advancedPlate.abCraft1=Гори мо� звездочка...
@@ -153,10 +163,10 @@ botania.page.lebethronSpreader0=Природный ра�про�траните
botania.page.lebethronSpreader.craft=Маны много не бывает
botania.entry.mithrill=Мифрилл
-botania.tagline.mithrill=Слоймай �тот мир, но котиков не трогай!!!!
-botania.page.mithrill0=Мифрилл - выдел�ет�� �воей прочно�тью �реди других металлов, точнее ее от�ут�твием, так как он не может получить какие-либо повреждени�.
Проце�� его �оздани� не из �амых легких, ведь он требует ве�ьма большое количе�тво маны.
+botania.tagline.mithrill=Сломай �тот мир, но котиков не трогай!!!!
+botania.page.mithrill0=Мифрилл - выдел�ет�� �воей прочно�тью �реди других металлов, точнее ее от�ут�твием, так как он не может получить какие-либо повреждени�.
Такие уникальные �вой�тва �вл�ют�� результатом удачной пропорции Духа Гайи и Терра�тали, � добавлением Мана�тали, дл� балан�а �нергии внутри �плава.
botania.page.mithrill.abCraft=� где в�� мо� мана!??
-botania.page.mithrill1=Материальный Разрушитель - �уровый ин�трумент, �по�обный ломать любые блоки за краткий промежуток времени. Его �коро�ть на�толька вы�ока, что было необходимо �оздать в нем *Предохранитель* - то е�ть выключать/включать его.
+botania.page.mithrill1=Материальный Разрушитель - �уровый ин�трумент, �озданный по мотивам глобальной ката�трофы в прошлом.
Он отлично �по�обен ломать любые блоки практиче�ки моментально. Его �коро�ть на�только вы�ока, что было необходимо �оздать в нем *Предохранитель* - то е�ть выключать/включать его.
botania.page.mithrill.craft=Могучий и не �окрушимый металл!
botania.entry.manaContainer=Мана контейнеры
@@ -192,7 +202,7 @@ botania.page.manaFlower.alphirineCraft=Кра�ивый цветочек
botania.entry.mithrillSword=Клинок про�тран�тва
botania.tagline.mithrillSword=Оружие, �по�обное делать рывки, и нано�ить ущерб
-botania.page.mithrillSword0=Клинок про�тран�тва - �то обычное оружие ближнего бо�, но �тоит лишь влить в него ману - Оно �разу надел�ет�� необычными магиче�кими �вой�твами. �апример: Рывок или Звездна� В�пышка
Примечание: При и�пользовании звездной в�пышки, некоторое врем� недо�тупен Блок
+botania.page.mithrillSword0=Клинок про�тран�тва - �то обычное оружие ближнего бо�, но �тоит лишь влить в него ману - Оно �разу надел�ет�� необычными магиче�кими �вой�твами. �апример: Рывок или Звездна� В�пышка
Примечание: При и�пользовании про�тран�твенного рывка, некоторое врем� недо�тупен Блок
botania.page.mithrillSword.craft=Порежь их в�ех!!!
botania.entry.dictarius=Диктариу�
@@ -207,7 +217,7 @@ botania.page.aspecolus.petalCraft=Мини - п�ихолог
botania.entry.nebula=Туманно�ть
botania.tagline.nebula=Св�зь � ко�мо�ом
-botania.page.nebula0=Фрагмент туманноÑ�ти - Ñ�то материал наполненный чаÑ�тью Ñ�илы коÑ�моÑ�а. Ðто позволÑ�ет Ñ�оздавать неземные по мощноÑ�тью инÑ�трументы и оружие.
+botania.page.nebula0=Фрагмент туманноÑ�ти - Ñ�то материал наполненный чаÑ�тью Ñ�илы коÑ�моÑ�а. Ðто позволÑ�ет Ñ�оздавать неземные по мощноÑ�ти инÑ�трументы и оружие.
botania.page.nebula.abCraft=Чем больше �ила, тем больше ответ�венно�ть
botania.entry.nebulaBlaze=Удар �ебулы
@@ -270,7 +280,7 @@ botania.page.gameBoard.craft=Поиграем на ману? Как тебе т
botania.entry.fateBoard=Игральна� До�ка Судьбы
botania.tagline.fateBoard=1 кубик - 6 реликвий, вполне логично. 2 кубика...
-botania.page.fateBoard0=Игральна� До�ка Судьбы - �воего рода развлечение, как и обычна� Игральна� До�ка, но - парти� требует не�колько Кубиков Судьбы.
Как изве�тно - бро�а� Кубик Судьбы можно получить реликвию, �в�занную � �тим чи�лом.
Следовательно, 2 кубика позвол�т получить до 12 реликвий. [В данный момент до 9, ещё 3 в разработке]
+botania.page.fateBoard0=Игральна� До�ка Судьбы - �воего рода развлечение, как и обычна� Игральна� До�ка, но - парти� требует не�колько Кубиков Судьбы.
Как изве�тно - бро�а� Кубик Судьбы можно получить реликвию, �в�занную � �тим чи�лом.
Следовательно, 2 кубика позвол�т получить до 12 реликвий. [В данный момент до 11, ещё 1 в разработке]
botania.page.fateBoard.alphirineCraft=Поиграем на реликвии?
botania.entry.richesKey=Ключ от Скрытых Богат�тв
@@ -291,5 +301,12 @@ botania.tagline.azartFlower=�е бойте�ь, без дома не о�тан
botania.page.azartFlower0=Пылкий �зарци�� - цветок - игроман, один из пред�тавителей па��ивной флоры - �то е�ли в кратце.
�а деле, он может �овершать до 8 ходов одновременно на Игровой До�ке, пыта��ь обыграть �аму до�ку. В �лучае победы, он дает ману, количе�тво которой зави�ит от разницы между �уммами чи�ел на Игровой до�ке.
botania.page.azartFlower.petalCraft=Про�то дай ему волю, а он тебе ману
+botania.entry.sphereNavigation=Шар �авигации
+botania.tagline.sphereNavigation=Укажет и покажет путь куда угодно!
+botania.page.sphereNavigation0=Шар �авигации - реликви� обладающа� уникальным �вой�твом - находить указанный �квозь блоки и помечать ме�тоположение!
За такое удоволь�твие требует�� платить маной, и не малым количе�твом в долго�рочной пер�пективе.
+
+botania.entry.hornPlenty=Рог изобили�
+botania.tagline.hornPlenty=Двойна� добыча - что может быть лучше?
+botania.page.hornPlenty0=Рог Изобили� - реликви� одного из ��ов, �в�занного � охотой!
И�пользуйте рог, чтобы его зар�дить, зар�дка требует немного маны. По�ле наполнени� ми�тиче�кими �илами, отправл�йте�ь на охоту, каждый раз когда жертва умирает от вашей руки, по�вл�ет�� шан� получить дополнительный дроп � �того �уще�тва.
diff --git a/1.7.10/bin/assets/ab/sounds.json b/1.7.10/bin/assets/ab/sounds.json
new file mode 100644
index 0000000..3e9bde1
--- /dev/null
+++ b/1.7.10/bin/assets/ab/sounds.json
@@ -0,0 +1,9 @@
+{
+ "boardCube": { "category": "block", "sounds":["boardCube"] },
+ "nebulaBlaze": { "category": "player", "sounds":["nebulaBlaze"] },
+ "bladeSpace": { "category": "player", "sounds":["bladeSpace"] },
+ "nebulaRod": { "category": "player", "sounds":["nebulaRod"] },
+ "hornPlentyUsing": { "category": "player", "sounds":["hornPlentyUsing"] },
+ "freyrSlingshot": { "category": "player", "sounds":["freyrSlingshot"] },
+ "lokiCubeArmor": { "category": "player", "sounds":["lokiCubeArmor"] }
+}
\ No newline at end of file
diff --git a/1.7.10/bin/assets/ab/sounds/bladeSpace.ogg b/1.7.10/bin/assets/ab/sounds/bladeSpace.ogg
new file mode 100644
index 0000000..6395b40
Binary files /dev/null and b/1.7.10/bin/assets/ab/sounds/bladeSpace.ogg differ
diff --git a/1.7.10/bin/assets/ab/sounds/boardCube.ogg b/1.7.10/bin/assets/ab/sounds/boardCube.ogg
new file mode 100644
index 0000000..d431236
Binary files /dev/null and b/1.7.10/bin/assets/ab/sounds/boardCube.ogg differ
diff --git a/1.7.10/bin/assets/ab/sounds/freyrSlingshot.ogg b/1.7.10/bin/assets/ab/sounds/freyrSlingshot.ogg
new file mode 100644
index 0000000..c111bdb
Binary files /dev/null and b/1.7.10/bin/assets/ab/sounds/freyrSlingshot.ogg differ
diff --git a/1.7.10/bin/assets/ab/sounds/hornPlentyUsing.ogg b/1.7.10/bin/assets/ab/sounds/hornPlentyUsing.ogg
new file mode 100644
index 0000000..4d7d994
Binary files /dev/null and b/1.7.10/bin/assets/ab/sounds/hornPlentyUsing.ogg differ
diff --git a/1.7.10/bin/assets/ab/sounds/lokiCubeArmor.ogg b/1.7.10/bin/assets/ab/sounds/lokiCubeArmor.ogg
new file mode 100644
index 0000000..7cd0d1b
Binary files /dev/null and b/1.7.10/bin/assets/ab/sounds/lokiCubeArmor.ogg differ
diff --git a/1.7.10/bin/assets/ab/sounds/nebulaBlaze.ogg b/1.7.10/bin/assets/ab/sounds/nebulaBlaze.ogg
new file mode 100644
index 0000000..2cfa44b
Binary files /dev/null and b/1.7.10/bin/assets/ab/sounds/nebulaBlaze.ogg differ
diff --git a/1.7.10/bin/assets/ab/sounds/nebulaRod.ogg b/1.7.10/bin/assets/ab/sounds/nebulaRod.ogg
new file mode 100644
index 0000000..51e417b
Binary files /dev/null and b/1.7.10/bin/assets/ab/sounds/nebulaRod.ogg differ
diff --git a/1.7.10/bin/assets/ab/textures/blocks/advancedPlate_0.png b/1.7.10/bin/assets/ab/textures/blocks/advancedPlate_0.png
deleted file mode 100644
index 2f9327f..0000000
Binary files a/1.7.10/bin/assets/ab/textures/blocks/advancedPlate_0.png and /dev/null differ
diff --git a/1.7.10/bin/assets/ab/textures/blocks/advancedPlate_1.png b/1.7.10/bin/assets/ab/textures/blocks/advancedPlate_1.png
deleted file mode 100644
index 9cda1e2..0000000
Binary files a/1.7.10/bin/assets/ab/textures/blocks/advancedPlate_1.png and /dev/null differ
diff --git a/1.7.10/bin/assets/ab/textures/blocks/advancedPlate_2.png b/1.7.10/bin/assets/ab/textures/blocks/advancedPlate_2.png
deleted file mode 100644
index 3882394..0000000
Binary files a/1.7.10/bin/assets/ab/textures/blocks/advancedPlate_2.png and /dev/null differ
diff --git a/1.7.10/bin/assets/ab/textures/items/hornPlenty.png b/1.7.10/bin/assets/ab/textures/items/hornPlenty.png
new file mode 100644
index 0000000..4fbb860
Binary files /dev/null and b/1.7.10/bin/assets/ab/textures/items/hornPlenty.png differ
diff --git a/1.7.10/bin/assets/ab/textures/items/itemMithrillSword_gem.png b/1.7.10/bin/assets/ab/textures/items/itemMithrillSword_gem.png
index dc9e022..60fd58d 100644
Binary files a/1.7.10/bin/assets/ab/textures/items/itemMithrillSword_gem.png and b/1.7.10/bin/assets/ab/textures/items/itemMithrillSword_gem.png differ
diff --git a/1.7.10/bin/assets/ab/textures/items/itemMithrillSword_mode_0.png b/1.7.10/bin/assets/ab/textures/items/itemMithrillSword_mode_0.png
index 431de06..a3e34a0 100644
Binary files a/1.7.10/bin/assets/ab/textures/items/itemMithrillSword_mode_0.png and b/1.7.10/bin/assets/ab/textures/items/itemMithrillSword_mode_0.png differ
diff --git a/1.7.10/bin/assets/ab/textures/items/itemMithrillSword_mode_1.png b/1.7.10/bin/assets/ab/textures/items/itemMithrillSword_mode_1.png
index 61894b3..35c0b21 100644
Binary files a/1.7.10/bin/assets/ab/textures/items/itemMithrillSword_mode_1.png and b/1.7.10/bin/assets/ab/textures/items/itemMithrillSword_mode_1.png differ
diff --git a/1.7.10/bin/assets/ab/textures/items/sphereNavigation_0.png b/1.7.10/bin/assets/ab/textures/items/sphereNavigation_0.png
new file mode 100644
index 0000000..a1177f2
Binary files /dev/null and b/1.7.10/bin/assets/ab/textures/items/sphereNavigation_0.png differ
diff --git a/1.7.10/bin/assets/ab/textures/items/sphereNavigation_1.png b/1.7.10/bin/assets/ab/textures/items/sphereNavigation_1.png
new file mode 100644
index 0000000..078bb12
Binary files /dev/null and b/1.7.10/bin/assets/ab/textures/items/sphereNavigation_1.png differ
diff --git a/1.7.10/bin/assets/ab/textures/items/sphereNavigation_2.png b/1.7.10/bin/assets/ab/textures/items/sphereNavigation_2.png
new file mode 100644
index 0000000..9331679
Binary files /dev/null and b/1.7.10/bin/assets/ab/textures/items/sphereNavigation_2.png differ
diff --git a/1.7.10/bin/assets/ab/textures/items/sphereNavigation_3.png b/1.7.10/bin/assets/ab/textures/items/sphereNavigation_3.png
new file mode 100644
index 0000000..386e4b8
Binary files /dev/null and b/1.7.10/bin/assets/ab/textures/items/sphereNavigation_3.png differ
diff --git a/1.7.10/bin/assets/ab/textures/items/sphereNavigation_4.png b/1.7.10/bin/assets/ab/textures/items/sphereNavigation_4.png
new file mode 100644
index 0000000..c913d95
Binary files /dev/null and b/1.7.10/bin/assets/ab/textures/items/sphereNavigation_4.png differ
diff --git a/1.7.10/bin/assets/ab/textures/misc/ancientAlphirine.png b/1.7.10/bin/assets/ab/textures/misc/ancientAlphirine.png
new file mode 100644
index 0000000..7845e84
Binary files /dev/null and b/1.7.10/bin/assets/ab/textures/misc/ancientAlphirine.png differ
diff --git a/1.7.10/bin/assets/ab/textures/model/manaCharger.png b/1.7.10/bin/assets/ab/textures/model/manaCharger.png
index 7186b18..4bd0b93 100644
Binary files a/1.7.10/bin/assets/ab/textures/model/manaCharger.png and b/1.7.10/bin/assets/ab/textures/model/manaCharger.png differ
diff --git a/1.7.10/bin/assets/ab/textures/model/mana_container.png b/1.7.10/bin/assets/ab/textures/model/mana_container.png
index 57acc92..568803c 100644
Binary files a/1.7.10/bin/assets/ab/textures/model/mana_container.png and b/1.7.10/bin/assets/ab/textures/model/mana_container.png differ
diff --git a/1.7.10/bin/assets/ab/textures/model/nidavellirForge.png b/1.7.10/bin/assets/ab/textures/model/nidavellirForge.png
new file mode 100644
index 0000000..6d39693
Binary files /dev/null and b/1.7.10/bin/assets/ab/textures/model/nidavellirForge.png differ
diff --git a/1.7.10/bin/mcmod.info b/1.7.10/bin/mcmod.info
index 47035ca..f45f7ae 100644
--- a/1.7.10/bin/mcmod.info
+++ b/1.7.10/bin/mcmod.info
@@ -3,7 +3,7 @@
"modid": "AdvancedBotany",
"name": "Advanced Botany",
"description": "An addon to Botania that adds what the developers think is essential content",
- "version": "1.2.3.1",
+ "version": "1.3.0",
"mcversion": "1.7.10",
"logoFile": "assets/ab/textures/logo.png",
"url": "Botania: http://www.botaniamod.net",
diff --git a/1.7.10/eclipse/.metadata/.bak_0.log b/1.7.10/eclipse/.metadata/.bak_0.log
index d3a810f..51a3b59 100644
--- a/1.7.10/eclipse/.metadata/.bak_0.log
+++ b/1.7.10/eclipse/.metadata/.bak_0.log
@@ -1,4 +1,4 @@
-!SESSION 2022-03-10 15:02:20.104 -----------------------------------------------
+!SESSION 2022-03-30 11:26:09.935 -----------------------------------------------
eclipse.buildId=4.22.0.I20211124-1800
java.version=17.0.1
java.vendor=Eclipse Adoptium
@@ -7,9675 +7,9 @@ Framework arguments: -product org.eclipse.epp.package.java.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
This is a continuation of log file C:\Users\Pulxes\Desktop\Developing mods for Cubes\Advanced Botany\1.7.10\eclipse\.metadata\.bak_0.log
-Created Time: 2022-03-10 15:48:34.680
+Created Time: 2022-03-30 13:30:04.958
-!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-03-10 15:48:34.681
-!MESSAGE Error in JDT Core during AST creation
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-03-10 15:48:36.025
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.entity;
-
-import java.awt.Color;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.ItemSprawlRod;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockBush;
-import net.minecraft.block.BlockLeaves;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.projectile.EntityThrowable;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.MovingObjectPosition;
-import net.minecraft.world.World;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.item.ItemGrassSeeds;
-
-public class EntitySeed extends EntityThrowable {
-
- public EntitySeed(World world) {
- super(world);
- }
-
- public EntitySeed(World world, EntityPlayer e) {
- super(world, e);
- }
-
- protected void entityInit() {
- super.entityInit();
- this.dataWatcher.addObject(27, new ItemStack(Blocks.air));
- this.dataWatcher.addObject(28, Integer.valueOf(1));
- this.dataWatcher.setObjectWatched(27);
- this.dataWatcher.setObjectWatched(28);
- }
-
- public void onUpdate() {
- super.onUpdate();
- if(ticksExisted >= 240)
- setDead();
- if(this.worldObj.isRemote) {
- float m = 0.02F;
- float f1 = 4.0f / (getRadius() / 20.0f);
- float size = 1.0f + (getRadius() / 12.0f);
- for(int i = 0; i < 5; i++) {
- double posX = this.posX + (Math.random() - 0.5f) / f1;
- double posY = this.posY + (Math.random() - 0.5f) / f1;
- double posZ = this.posZ + (Math.random() - 0.5f) / f1;
- float mx = (float)(Math.random() - 0.5D) * m;
- float my = (float)(Math.random() - 0.5D) * m;
- float mz = (float)(Math.random() - 0.5D) * m;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX, posY, posZ, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float) (0.0625f * size + (Math.random() * 0.12f)), mx, my, mz, 0.5f);
- }
- }
- }
-
- public int getRadius() {
- return this.dataWatcher.getWatchableObjectInt(28);
- }
-
- public void setRadius(int rad) {
- this.dataWatcher.updateObject(28, rad);
- }
-
- public ItemStack getSeed() {
- return this.dataWatcher.getWatchableObjectItemStack(27);
- }
-
- public void setSeed(ItemStack stack) {
- stack.stackSize = 1;
- this.dataWatcher.updateObject(27, stack);
- }
-
- @SideOnly(Side.CLIENT)
- public void setPositionAndRotation2(double x, double y, double z, float help, float me, int please) {}
-
- protected float getGravityVelocity() {
- return 0.025F;
- }
-
- protected void onImpact(MovingObjectPosition mov) {
- Block block = this.worldObj.getBlock(mov.blockX, mov.blockY, mov.blockZ);
- if(block != null && mov.entityHit == null) {
- if(block instanceof BlockBush || block instanceof BlockLeaves)
- return;
- ItemStack seed = getSeed();
- if(seed != null && seed.getItem() instanceof ItemGrassSeeds) {
- Item itemSeed = (ItemGrassSeeds)seed.getItem();
- for(int i = 0; i < getRadius(); i++) {
- for(int k = 0; k < getRadius(); k++) {
- int posX = mov.blockX + i - getRadius() / 2;
- int posY = mov.blockY;
- int posZ = mov.blockZ + k - getRadius() / 2;
- int j = posY;
- if(isTopBlock(posX, posY - 1, posZ))
- j = Math.max(0, j - 20);
- for(; !isTopBlock(posX, j, posZ); j++) {
- if(Math.abs(j - posY) > 40)
- break;
- }
- posY = j;
- if(!worldObj.isRemote)
- itemSeed.onItemUse(seed, null, worldObj, posX, posY, posZ, 0, 0, 0, 0);
- else if(Math.random() < 0.15f)
- spawnGrowParticle(posX, posY, posZ);
- (block == Blocks.dirt || (block == Blocks.grass && par1ItemStack.getItemDamage() != 0)) && bmeta == 0
- }
- }
- }
- setDead();
- }
- }
-
- private void spawnGrowParticle(int posX, int posY, int posZ) {
- for (int i = 0; i < 50; i++) {
- double x = (Math.random() - 0.5D) * 3.0D;
- double y = Math.random() - 0.5D + 1.0D;
- double z = (Math.random() - 0.5D) * 3.0D;
- float velMul = 0.025F;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX + 0.5D + x, posY + 0.5D + y, posZ + 0.5D + z, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float)Math.random() * 0.15F + 0.15F, (float)-x * velMul, (float)-y * velMul, (float)-z * velMul);
- }
- }
-
- private boolean isTopBlock(int posX, int posY, int posZ) {
- return worldObj.getBlock(posX, posY + 1, posZ).getMaterial() == Material.air || worldObj.getBlock(posX, posY, posZ) instanceof BlockBush;
- }
-}
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 2 2022-03-10 15:48:36.026
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 0 2022-03-10 15:48:36.026
-!MESSAGE Error in JDT Core during reconcile
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-03-10 15:48:37.936
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.entity;
-
-import java.awt.Color;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.ItemSprawlRod;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockBush;
-import net.minecraft.block.BlockLeaves;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.projectile.EntityThrowable;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.MovingObjectPosition;
-import net.minecraft.world.World;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.item.ItemGrassSeeds;
-
-public class EntitySeed extends EntityThrowable {
-
- public EntitySeed(World world) {
- super(world);
- }
-
- public EntitySeed(World world, EntityPlayer e) {
- super(world, e);
- }
-
- protected void entityInit() {
- super.entityInit();
- this.dataWatcher.addObject(27, new ItemStack(Blocks.air));
- this.dataWatcher.addObject(28, Integer.valueOf(1));
- this.dataWatcher.setObjectWatched(27);
- this.dataWatcher.setObjectWatched(28);
- }
-
- public void onUpdate() {
- super.onUpdate();
- if(ticksExisted >= 240)
- setDead();
- if(this.worldObj.isRemote) {
- float m = 0.02F;
- float f1 = 4.0f / (getRadius() / 20.0f);
- float size = 1.0f + (getRadius() / 12.0f);
- for(int i = 0; i < 5; i++) {
- double posX = this.posX + (Math.random() - 0.5f) / f1;
- double posY = this.posY + (Math.random() - 0.5f) / f1;
- double posZ = this.posZ + (Math.random() - 0.5f) / f1;
- float mx = (float)(Math.random() - 0.5D) * m;
- float my = (float)(Math.random() - 0.5D) * m;
- float mz = (float)(Math.random() - 0.5D) * m;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX, posY, posZ, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float) (0.0625f * size + (Math.random() * 0.12f)), mx, my, mz, 0.5f);
- }
- }
- }
-
- public int getRadius() {
- return this.dataWatcher.getWatchableObjectInt(28);
- }
-
- public void setRadius(int rad) {
- this.dataWatcher.updateObject(28, rad);
- }
-
- public ItemStack getSeed() {
- return this.dataWatcher.getWatchableObjectItemStack(27);
- }
-
- public void setSeed(ItemStack stack) {
- stack.stackSize = 1;
- this.dataWatcher.updateObject(27, stack);
- }
-
- @SideOnly(Side.CLIENT)
- public void setPositionAndRotation2(double x, double y, double z, float help, float me, int please) {}
-
- protected float getGravityVelocity() {
- return 0.025F;
- }
-
- protected void onImpact(MovingObjectPosition mov) {
- Block block = this.worldObj.getBlock(mov.blockX, mov.blockY, mov.blockZ);
- if(block != null && mov.entityHit == null) {
- if(block instanceof BlockBush || block instanceof BlockLeaves)
- return;
- ItemStack seed = getSeed();
- if(seed != null && seed.getItem() instanceof ItemGrassSeeds) {
- Item itemSeed = (ItemGrassSeeds)seed.getItem();
- for(int i = 0; i < getRadius(); i++) {
- for(int k = 0; k < getRadius(); k++) {
- int posX = mov.blockX + i - getRadius() / 2;
- int posY = mov.blockY;
- int posZ = mov.blockZ + k - getRadius() / 2;
- int j = posY;
- if(isTopBlock(posX, posY - 1, posZ))
- j = Math.max(0, j - 20);
- for(; !isTopBlock(posX, j, posZ); j++) {
- if(Math.abs(j - posY) > 40)
- break;
- }
- posY = j;
- if(!worldObj.isRemote)
- itemSeed.onItemUse(seed, null, worldObj, posX, posY, posZ, 0, 0, 0, 0);
- else if(Math.random() < 0.15f)
- spawnGrowParticle(posX, posY, posZ);
- (block == Blocks.dirt || (block == Blocks.grass && par1ItemStack.getItemDamage() != 0)) && bmeta == 0
- }
- }
- }
- setDead();
- }
- }
-
- private void spawnGrowParticle(int posX, int posY, int posZ) {
- for (int i = 0; i < 50; i++) {
- double x = (Math.random() - 0.5D) * 3.0D;
- double y = Math.random() - 0.5D + 1.0D;
- double z = (Math.random() - 0.5D) * 3.0D;
- float velMul = 0.025F;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX + 0.5D + x, posY + 0.5D + y, posZ + 0.5D + z, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float)Math.random() * 0.15F + 0.15F, (float)-x * velMul, (float)-y * velMul, (float)-z * velMul);
- }
- }
-
- private boolean isTopBlock(int posX, int posY, int posZ) {
- return worldObj.getBlock(posX, posY + 1, posZ).getMaterial() == Material.air || worldObj.getBlock(posX, posY, posZ) instanceof BlockBush;
- }
-}
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-03-10 15:48:37.937
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-03-10 15:48:37.938
-!MESSAGE Error in JDT Core during AST creation
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-03-10 15:48:39.538
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.entity;
-
-import java.awt.Color;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.ItemSprawlRod;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockBush;
-import net.minecraft.block.BlockLeaves;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.projectile.EntityThrowable;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.MovingObjectPosition;
-import net.minecraft.world.World;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.item.ItemGrassSeeds;
-
-public class EntitySeed extends EntityThrowable {
-
- public EntitySeed(World world) {
- super(world);
- }
-
- public EntitySeed(World world, EntityPlayer e) {
- super(world, e);
- }
-
- protected void entityInit() {
- super.entityInit();
- this.dataWatcher.addObject(27, new ItemStack(Blocks.air));
- this.dataWatcher.addObject(28, Integer.valueOf(1));
- this.dataWatcher.setObjectWatched(27);
- this.dataWatcher.setObjectWatched(28);
- }
-
- public void onUpdate() {
- super.onUpdate();
- if(ticksExisted >= 240)
- setDead();
- if(this.worldObj.isRemote) {
- float m = 0.02F;
- float f1 = 4.0f / (getRadius() / 20.0f);
- float size = 1.0f + (getRadius() / 12.0f);
- for(int i = 0; i < 5; i++) {
- double posX = this.posX + (Math.random() - 0.5f) / f1;
- double posY = this.posY + (Math.random() - 0.5f) / f1;
- double posZ = this.posZ + (Math.random() - 0.5f) / f1;
- float mx = (float)(Math.random() - 0.5D) * m;
- float my = (float)(Math.random() - 0.5D) * m;
- float mz = (float)(Math.random() - 0.5D) * m;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX, posY, posZ, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float) (0.0625f * size + (Math.random() * 0.12f)), mx, my, mz, 0.5f);
- }
- }
- }
-
- public int getRadius() {
- return this.dataWatcher.getWatchableObjectInt(28);
- }
-
- public void setRadius(int rad) {
- this.dataWatcher.updateObject(28, rad);
- }
-
- public ItemStack getSeed() {
- return this.dataWatcher.getWatchableObjectItemStack(27);
- }
-
- public void setSeed(ItemStack stack) {
- stack.stackSize = 1;
- this.dataWatcher.updateObject(27, stack);
- }
-
- @SideOnly(Side.CLIENT)
- public void setPositionAndRotation2(double x, double y, double z, float help, float me, int please) {}
-
- protected float getGravityVelocity() {
- return 0.025F;
- }
-
- protected void onImpact(MovingObjectPosition mov) {
- Block block = this.worldObj.getBlock(mov.blockX, mov.blockY, mov.blockZ);
- if(block != null && mov.entityHit == null) {
- if(block instanceof BlockBush || block instanceof BlockLeaves)
- return;
- ItemStack seed = getSeed();
- if(seed != null && seed.getItem() instanceof ItemGrassSeeds) {
- Item itemSeed = (ItemGrassSeeds)seed.getItem();
- for(int i = 0; i < getRadius(); i++) {
- for(int k = 0; k < getRadius(); k++) {
- int posX = mov.blockX + i - getRadius() / 2;
- int posY = mov.blockY;
- int posZ = mov.blockZ + k - getRadius() / 2;
- int j = posY;
- if(isTopBlock(posX, posY - 1, posZ))
- j = Math.max(0, j - 20);
- for(; !isTopBlock(posX, j, posZ); j++) {
- if(Math.abs(j - posY) > 40)
- break;
- }
- posY = j;
- if(!worldObj.isRemote)
- itemSeed.onItemUse(seed, null, worldObj, posX, posY, posZ, 0, 0, 0, 0);
- else if(Math.random() < 0.15f)
- spawnGrowParticle(posX, posY, posZ);
- (block == Blocks.dirt || (block == Blocks.grass && par1ItemStack.getItemDamage() != 0)) && bmeta == 0
- }
- }
- }
- setDead();
- }
- }
-
- private void spawnGrowParticle(int posX, int posY, int posZ) {
- for (int i = 0; i < 50; i++) {
- double x = (Math.random() - 0.5D) * 3.0D;
- double y = Math.random() - 0.5D + 1.0D;
- double z = (Math.random() - 0.5D) * 3.0D;
- float velMul = 0.025F;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX + 0.5D + x, posY + 0.5D + y, posZ + 0.5D + z, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float)Math.random() * 0.15F + 0.15F, (float)-x * velMul, (float)-y * velMul, (float)-z * velMul);
- }
- }
-
- private boolean isTopBlock(int posX, int posY, int posZ) {
- return worldObj.getBlock(posX, posY + 1, posZ).getMaterial() == Material.air || worldObj.getBlock(posX, posY, posZ) instanceof BlockBush;
- }
-}
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 2 2022-03-10 15:48:39.539
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 0 2022-03-10 15:48:39.540
-!MESSAGE Error in JDT Core during reconcile
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-03-10 15:48:42.560
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.entity;
-
-import java.awt.Color;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.ItemSprawlRod;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockBush;
-import net.minecraft.block.BlockLeaves;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.projectile.EntityThrowable;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.MovingObjectPosition;
-import net.minecraft.world.World;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.item.ItemGrassSeeds;
-
-public class EntitySeed extends EntityThrowable {
-
- public EntitySeed(World world) {
- super(world);
- }
-
- public EntitySeed(World world, EntityPlayer e) {
- super(world, e);
- }
-
- protected void entityInit() {
- super.entityInit();
- this.dataWatcher.addObject(27, new ItemStack(Blocks.air));
- this.dataWatcher.addObject(28, Integer.valueOf(1));
- this.dataWatcher.setObjectWatched(27);
- this.dataWatcher.setObjectWatched(28);
- }
-
- public void onUpdate() {
- super.onUpdate();
- if(ticksExisted >= 240)
- setDead();
- if(this.worldObj.isRemote) {
- float m = 0.02F;
- float f1 = 4.0f / (getRadius() / 20.0f);
- float size = 1.0f + (getRadius() / 12.0f);
- for(int i = 0; i < 5; i++) {
- double posX = this.posX + (Math.random() - 0.5f) / f1;
- double posY = this.posY + (Math.random() - 0.5f) / f1;
- double posZ = this.posZ + (Math.random() - 0.5f) / f1;
- float mx = (float)(Math.random() - 0.5D) * m;
- float my = (float)(Math.random() - 0.5D) * m;
- float mz = (float)(Math.random() - 0.5D) * m;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX, posY, posZ, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float) (0.0625f * size + (Math.random() * 0.12f)), mx, my, mz, 0.5f);
- }
- }
- }
-
- public int getRadius() {
- return this.dataWatcher.getWatchableObjectInt(28);
- }
-
- public void setRadius(int rad) {
- this.dataWatcher.updateObject(28, rad);
- }
-
- public ItemStack getSeed() {
- return this.dataWatcher.getWatchableObjectItemStack(27);
- }
-
- public void setSeed(ItemStack stack) {
- stack.stackSize = 1;
- this.dataWatcher.updateObject(27, stack);
- }
-
- @SideOnly(Side.CLIENT)
- public void setPositionAndRotation2(double x, double y, double z, float help, float me, int please) {}
-
- protected float getGravityVelocity() {
- return 0.025F;
- }
-
- protected void onImpact(MovingObjectPosition mov) {
- Block block = this.worldObj.getBlock(mov.blockX, mov.blockY, mov.blockZ);
- if(block != null && mov.entityHit == null) {
- if(block instanceof BlockBush || block instanceof BlockLeaves)
- return;
- ItemStack seed = getSeed();
- if(seed != null && seed.getItem() instanceof ItemGrassSeeds) {
- Item itemSeed = (ItemGrassSeeds)seed.getItem();
- for(int i = 0; i < getRadius(); i++) {
- for(int k = 0; k < getRadius(); k++) {
- int posX = mov.blockX + i - getRadius() / 2;
- int posY = mov.blockY;
- int posZ = mov.blockZ + k - getRadius() / 2;
- int j = posY;
- if(isTopBlock(posX, posY - 1, posZ))
- j = Math.max(0, j - 20);
- for(; !isTopBlock(posX, j, posZ); j++) {
- if(Math.abs(j - posY) > 40)
- break;
- }
- posY = j;
- if(!worldObj.isRemote)
- itemSeed.onItemUse(seed, null, worldObj, posX, posY, posZ, 0, 0, 0, 0);
- else if(Math.random() < 0.15f)
- spawnGrowParticle(posX, posY, posZ);
- (block == Blocks.dirt || (block == Blocks.grass && par1ItemStack.getItemDamage() != 0)) && bmeta == 0
- }
- }
- }
- setDead();
- }
- }
-
- private void spawnGrowParticle(int posX, int posY, int posZ) {
- for (int i = 0; i < 50; i++) {
- double x = (Math.random() - 0.5D) * 3.0D;
- double y = Math.random() - 0.5D + 1.0D;
- double z = (Math.random() - 0.5D) * 3.0D;
- float velMul = 0.025F;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX + 0.5D + x, posY + 0.5D + y, posZ + 0.5D + z, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float)Math.random() * 0.15F + 0.15F, (float)-x * velMul, (float)-y * velMul, (float)-z * velMul);
- }
- }
-
- private boolean isTopBlock(int posX, int posY, int posZ) {
- return worldObj.getBlock(posX, posY + 1, posZ).getMaterial() == Material.air || worldObj.getBlock(posX, posY, posZ) instanceof BlockBush;
- }
-}
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 2 2022-03-10 15:48:42.561
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 0 2022-03-10 15:48:42.562
-!MESSAGE Error in JDT Core during reconcile
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-03-10 15:49:07.589
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.entity;
-
-import java.awt.Color;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.ItemSprawlRod;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockBush;
-import net.minecraft.block.BlockLeaves;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.projectile.EntityThrowable;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.MovingObjectPosition;
-import net.minecraft.world.World;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.item.ItemGrassSeeds;
-
-public class EntitySeed extends EntityThrowable {
-
- public EntitySeed(World world) {
- super(world);
- }
-
- public EntitySeed(World world, EntityPlayer e) {
- super(world, e);
- }
-
- protected void entityInit() {
- super.entityInit();
- this.dataWatcher.addObject(27, new ItemStack(Blocks.air));
- this.dataWatcher.addObject(28, Integer.valueOf(1));
- this.dataWatcher.setObjectWatched(27);
- this.dataWatcher.setObjectWatched(28);
- }
-
- public void onUpdate() {
- super.onUpdate();
- if(ticksExisted >= 240)
- setDead();
- if(this.worldObj.isRemote) {
- float m = 0.02F;
- float f1 = 4.0f / (getRadius() / 20.0f);
- float size = 1.0f + (getRadius() / 12.0f);
- for(int i = 0; i < 5; i++) {
- double posX = this.posX + (Math.random() - 0.5f) / f1;
- double posY = this.posY + (Math.random() - 0.5f) / f1;
- double posZ = this.posZ + (Math.random() - 0.5f) / f1;
- float mx = (float)(Math.random() - 0.5D) * m;
- float my = (float)(Math.random() - 0.5D) * m;
- float mz = (float)(Math.random() - 0.5D) * m;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX, posY, posZ, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float) (0.0625f * size + (Math.random() * 0.12f)), mx, my, mz, 0.5f);
- }
- }
- }
-
- public int getRadius() {
- return this.dataWatcher.getWatchableObjectInt(28);
- }
-
- public void setRadius(int rad) {
- this.dataWatcher.updateObject(28, rad);
- }
-
- public ItemStack getSeed() {
- return this.dataWatcher.getWatchableObjectItemStack(27);
- }
-
- public void setSeed(ItemStack stack) {
- stack.stackSize = 1;
- this.dataWatcher.updateObject(27, stack);
- }
-
- @SideOnly(Side.CLIENT)
- public void setPositionAndRotation2(double x, double y, double z, float help, float me, int please) {}
-
- protected float getGravityVelocity() {
- return 0.025F;
- }
-
- protected void onImpact(MovingObjectPosition mov) {
- Block block = this.worldObj.getBlock(mov.blockX, mov.blockY, mov.blockZ);
- if(block != null && mov.entityHit == null) {
- if(block instanceof BlockBush || block instanceof BlockLeaves)
- return;
- ItemStack seed = getSeed();
- if(seed != null && seed.getItem() instanceof ItemGrassSeeds) {
- Item itemSeed = (ItemGrassSeeds)seed.getItem();
- for(int i = 0; i < getRadius(); i++) {
- for(int k = 0; k < getRadius(); k++) {
- int posX = mov.blockX + i - getRadius() / 2;
- int posY = mov.blockY;
- int posZ = mov.blockZ + k - getRadius() / 2;
- int j = posY;
- if(isTopBlock(posX, posY - 1, posZ))
- j = Math.max(0, j - 20);
- for(; !isTopBlock(posX, j, posZ); j++) {
- if(Math.abs(j - posY) > 40)
- break;
- }
- posY = j;
- if(!worldObj.isRemote)
- itemSeed.onItemUse(seed, null, worldObj, posX, posY, posZ, 0, 0, 0, 0);
- else if(Math.random() < 0.15f)
- spawnGrowParticle(posX, posY, posZ);
- (block == Blocks.dirt || (block == Blocks.grass && par1ItemStack.getItemDamage() != 0)) && bmeta == 0
- }
- }
- }
- setDead();
- }
- }
-
- private void spawnGrowParticle(int posX, int posY, int posZ) {
- for (int i = 0; i < 50; i++) {
- double x = (Math.random() - 0.5D) * 3.0D;
- double y = Math.random() - 0.5D + 1.0D;
- double z = (Math.random() - 0.5D) * 3.0D;
- float velMul = 0.025F;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX + 0.5D + x, posY + 0.5D + y, posZ + 0.5D + z, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float)Math.random() * 0.15F + 0.15F, (float)-x * velMul, (float)-y * velMul, (float)-z * velMul);
- }
- }
-
- private boolean isTopBlock(int posX, int posY, int posZ) {
- return worldObj.getBlock(posX, posY + 1, posZ).getMaterial() == Material.air || worldObj.getBlock(posX, posY, posZ) instanceof BlockBush;
- }
-}
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 2 2022-03-10 15:49:07.590
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 0 2022-03-10 15:49:07.591
-!MESSAGE Error in JDT Core during reconcile
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-03-10 15:49:09.103
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.entity;
-
-import java.awt.Color;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.ItemSprawlRod;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockBush;
-import net.minecraft.block.BlockLeaves;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.projectile.EntityThrowable;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.MovingObjectPosition;
-import net.minecraft.world.World;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.item.ItemGrassSeeds;
-
-public class EntitySeed extends EntityThrowable {
-
- public EntitySeed(World world) {
- super(world);
- }
-
- public EntitySeed(World world, EntityPlayer e) {
- super(world, e);
- }
-
- protected void entityInit() {
- super.entityInit();
- this.dataWatcher.addObject(27, new ItemStack(Blocks.air));
- this.dataWatcher.addObject(28, Integer.valueOf(1));
- this.dataWatcher.setObjectWatched(27);
- this.dataWatcher.setObjectWatched(28);
- }
-
- public void onUpdate() {
- super.onUpdate();
- if(ticksExisted >= 240)
- setDead();
- if(this.worldObj.isRemote) {
- float m = 0.02F;
- float f1 = 4.0f / (getRadius() / 20.0f);
- float size = 1.0f + (getRadius() / 12.0f);
- for(int i = 0; i < 5; i++) {
- double posX = this.posX + (Math.random() - 0.5f) / f1;
- double posY = this.posY + (Math.random() - 0.5f) / f1;
- double posZ = this.posZ + (Math.random() - 0.5f) / f1;
- float mx = (float)(Math.random() - 0.5D) * m;
- float my = (float)(Math.random() - 0.5D) * m;
- float mz = (float)(Math.random() - 0.5D) * m;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX, posY, posZ, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float) (0.0625f * size + (Math.random() * 0.12f)), mx, my, mz, 0.5f);
- }
- }
- }
-
- public int getRadius() {
- return this.dataWatcher.getWatchableObjectInt(28);
- }
-
- public void setRadius(int rad) {
- this.dataWatcher.updateObject(28, rad);
- }
-
- public ItemStack getSeed() {
- return this.dataWatcher.getWatchableObjectItemStack(27);
- }
-
- public void setSeed(ItemStack stack) {
- stack.stackSize = 1;
- this.dataWatcher.updateObject(27, stack);
- }
-
- @SideOnly(Side.CLIENT)
- public void setPositionAndRotation2(double x, double y, double z, float help, float me, int please) {}
-
- protected float getGravityVelocity() {
- return 0.025F;
- }
-
- protected void onImpact(MovingObjectPosition mov) {
- Block block = this.worldObj.getBlock(mov.blockX, mov.blockY, mov.blockZ);
- if(block != null && mov.entityHit == null) {
- if(block instanceof BlockBush || block instanceof BlockLeaves)
- return;
- ItemStack seed = getSeed();
- if(seed != null && seed.getItem() instanceof ItemGrassSeeds) {
- Item itemSeed = (ItemGrassSeeds)seed.getItem();
- for(int i = 0; i < getRadius(); i++) {
- for(int k = 0; k < getRadius(); k++) {
- int posX = mov.blockX + i - getRadius() / 2;
- int posY = mov.blockY;
- int posZ = mov.blockZ + k - getRadius() / 2;
- int j = posY;
- if(isTopBlock(posX, posY - 1, posZ))
- j = Math.max(0, j - 20);
- for(; !isTopBlock(posX, j, posZ); j++) {
- if(Math.abs(j - posY) > 40)
- break;
- }
- posY = j;
- if(!worldObj.isRemote)
- itemSeed.onItemUse(seed, null, worldObj, posX, posY, posZ, 0, 0, 0, 0);
- else if(Math.random() < 0.15f)
- spawnGrowParticle(posX, posY, posZ);
- (block == Blocks.dirt || (block == Blocks.grass && par1ItemStack.getItemDamage() != 0)) && bmeta == 0
- }
- }
- }
- setDead();
- }
- }
-
- private void spawnGrowParticle(int posX, int posY, int posZ) {
- for (int i = 0; i < 50; i++) {
- double x = (Math.random() - 0.5D) * 3.0D;
- double y = Math.random() - 0.5D + 1.0D;
- double z = (Math.random() - 0.5D) * 3.0D;
- float velMul = 0.025F;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX + 0.5D + x, posY + 0.5D + y, posZ + 0.5D + z, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float)Math.random() * 0.15F + 0.15F, (float)-x * velMul, (float)-y * velMul, (float)-z * velMul);
- }
- }
-
- private boolean isTopBlock(int posX, int posY, int posZ) {
- return worldObj.getBlock(posX, posY + 1, posZ).getMaterial() == Material.air || worldObj.getBlock(posX, posY, posZ) instanceof BlockBush;
- }
-}
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 2 2022-03-10 15:49:09.104
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 0 2022-03-10 15:49:09.105
-!MESSAGE Error in JDT Core during reconcile
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-03-10 15:49:10.114
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.entity;
-
-import java.awt.Color;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.ItemSprawlRod;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockBush;
-import net.minecraft.block.BlockLeaves;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.projectile.EntityThrowable;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.MovingObjectPosition;
-import net.minecraft.world.World;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.item.ItemGrassSeeds;
-
-public class EntitySeed extends EntityThrowable {
-
- public EntitySeed(World world) {
- super(world);
- }
-
- public EntitySeed(World world, EntityPlayer e) {
- super(world, e);
- }
-
- protected void entityInit() {
- super.entityInit();
- this.dataWatcher.addObject(27, new ItemStack(Blocks.air));
- this.dataWatcher.addObject(28, Integer.valueOf(1));
- this.dataWatcher.setObjectWatched(27);
- this.dataWatcher.setObjectWatched(28);
- }
-
- public void onUpdate() {
- super.onUpdate();
- if(ticksExisted >= 240)
- setDead();
- if(this.worldObj.isRemote) {
- float m = 0.02F;
- float f1 = 4.0f / (getRadius() / 20.0f);
- float size = 1.0f + (getRadius() / 12.0f);
- for(int i = 0; i < 5; i++) {
- double posX = this.posX + (Math.random() - 0.5f) / f1;
- double posY = this.posY + (Math.random() - 0.5f) / f1;
- double posZ = this.posZ + (Math.random() - 0.5f) / f1;
- float mx = (float)(Math.random() - 0.5D) * m;
- float my = (float)(Math.random() - 0.5D) * m;
- float mz = (float)(Math.random() - 0.5D) * m;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX, posY, posZ, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float) (0.0625f * size + (Math.random() * 0.12f)), mx, my, mz, 0.5f);
- }
- }
- }
-
- public int getRadius() {
- return this.dataWatcher.getWatchableObjectInt(28);
- }
-
- public void setRadius(int rad) {
- this.dataWatcher.updateObject(28, rad);
- }
-
- public ItemStack getSeed() {
- return this.dataWatcher.getWatchableObjectItemStack(27);
- }
-
- public void setSeed(ItemStack stack) {
- stack.stackSize = 1;
- this.dataWatcher.updateObject(27, stack);
- }
-
- @SideOnly(Side.CLIENT)
- public void setPositionAndRotation2(double x, double y, double z, float help, float me, int please) {}
-
- protected float getGravityVelocity() {
- return 0.025F;
- }
-
- protected void onImpact(MovingObjectPosition mov) {
- Block block = this.worldObj.getBlock(mov.blockX, mov.blockY, mov.blockZ);
- if(block != null && mov.entityHit == null) {
- if(block instanceof BlockBush || block instanceof BlockLeaves)
- return;
- ItemStack seed = getSeed();
- if(seed != null && seed.getItem() instanceof ItemGrassSeeds) {
- Item itemSeed = (ItemGrassSeeds)seed.getItem();
- for(int i = 0; i < getRadius(); i++) {
- for(int k = 0; k < getRadius(); k++) {
- int posX = mov.blockX + i - getRadius() / 2;
- int posY = mov.blockY;
- int posZ = mov.blockZ + k - getRadius() / 2;
- int j = posY;
- if(isTopBlock(posX, posY - 1, posZ))
- j = Math.max(0, j - 20);
- for(; !isTopBlock(posX, j, posZ); j++) {
- if(Math.abs(j - posY) > 40)
- break;
- }
- posY = j;
- if(!worldObj.isRemote)
- itemSeed.onItemUse(seed, null, worldObj, posX, posY, posZ, 0, 0, 0, 0);
- else if(Math.random() < 0.15f)
- spawnGrowParticle(posX, posY, posZ);
- (block == Blocks.dirt || (block == Blocks.grass && par1ItemStack.getItemDamage() != 0))
- }
- }
- }
- setDead();
- }
- }
-
- private void spawnGrowParticle(int posX, int posY, int posZ) {
- for (int i = 0; i < 50; i++) {
- double x = (Math.random() - 0.5D) * 3.0D;
- double y = Math.random() - 0.5D + 1.0D;
- double z = (Math.random() - 0.5D) * 3.0D;
- float velMul = 0.025F;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX + 0.5D + x, posY + 0.5D + y, posZ + 0.5D + z, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float)Math.random() * 0.15F + 0.15F, (float)-x * velMul, (float)-y * velMul, (float)-z * velMul);
- }
- }
-
- private boolean isTopBlock(int posX, int posY, int posZ) {
- return worldObj.getBlock(posX, posY + 1, posZ).getMaterial() == Material.air || worldObj.getBlock(posX, posY, posZ) instanceof BlockBush;
- }
-}
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 2 2022-03-10 15:49:10.116
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 0 2022-03-10 15:49:10.116
-!MESSAGE Error in JDT Core during reconcile
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-03-10 15:49:11.125
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.entity;
-
-import java.awt.Color;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.ItemSprawlRod;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockBush;
-import net.minecraft.block.BlockLeaves;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.projectile.EntityThrowable;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.MovingObjectPosition;
-import net.minecraft.world.World;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.item.ItemGrassSeeds;
-
-public class EntitySeed extends EntityThrowable {
-
- public EntitySeed(World world) {
- super(world);
- }
-
- public EntitySeed(World world, EntityPlayer e) {
- super(world, e);
- }
-
- protected void entityInit() {
- super.entityInit();
- this.dataWatcher.addObject(27, new ItemStack(Blocks.air));
- this.dataWatcher.addObject(28, Integer.valueOf(1));
- this.dataWatcher.setObjectWatched(27);
- this.dataWatcher.setObjectWatched(28);
- }
-
- public void onUpdate() {
- super.onUpdate();
- if(ticksExisted >= 240)
- setDead();
- if(this.worldObj.isRemote) {
- float m = 0.02F;
- float f1 = 4.0f / (getRadius() / 20.0f);
- float size = 1.0f + (getRadius() / 12.0f);
- for(int i = 0; i < 5; i++) {
- double posX = this.posX + (Math.random() - 0.5f) / f1;
- double posY = this.posY + (Math.random() - 0.5f) / f1;
- double posZ = this.posZ + (Math.random() - 0.5f) / f1;
- float mx = (float)(Math.random() - 0.5D) * m;
- float my = (float)(Math.random() - 0.5D) * m;
- float mz = (float)(Math.random() - 0.5D) * m;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX, posY, posZ, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float) (0.0625f * size + (Math.random() * 0.12f)), mx, my, mz, 0.5f);
- }
- }
- }
-
- public int getRadius() {
- return this.dataWatcher.getWatchableObjectInt(28);
- }
-
- public void setRadius(int rad) {
- this.dataWatcher.updateObject(28, rad);
- }
-
- public ItemStack getSeed() {
- return this.dataWatcher.getWatchableObjectItemStack(27);
- }
-
- public void setSeed(ItemStack stack) {
- stack.stackSize = 1;
- this.dataWatcher.updateObject(27, stack);
- }
-
- @SideOnly(Side.CLIENT)
- public void setPositionAndRotation2(double x, double y, double z, float help, float me, int please) {}
-
- protected float getGravityVelocity() {
- return 0.025F;
- }
-
- protected void onImpact(MovingObjectPosition mov) {
- Block block = this.worldObj.getBlock(mov.blockX, mov.blockY, mov.blockZ);
- if(block != null && mov.entityHit == null) {
- if(block instanceof BlockBush || block instanceof BlockLeaves)
- return;
- ItemStack seed = getSeed();
- if(seed != null && seed.getItem() instanceof ItemGrassSeeds) {
- Item itemSeed = (ItemGrassSeeds)seed.getItem();
- for(int i = 0; i < getRadius(); i++) {
- for(int k = 0; k < getRadius(); k++) {
- int posX = mov.blockX + i - getRadius() / 2;
- int posY = mov.blockY;
- int posZ = mov.blockZ + k - getRadius() / 2;
- int j = posY;
- if(isTopBlock(posX, posY - 1, posZ))
- j = Math.max(0, j - 20);
- for(; !isTopBlock(posX, j, posZ); j++) {
- if(Math.abs(j - posY) > 40)
- break;
- }
- posY = j;
- if(!worldObj.isRemote)
- itemSeed.onItemUse(seed, null, worldObj, posX, posY, posZ, 0, 0, 0, 0);
- else if(Math.random() < 0.15f)
- spawnGrowParticle(posX, posY, posZ);
- (block == Blocks.dirt || (block == Blocks.grass && par1ItemStack.getItemDamage() != 0))
- }
- }
- }
- setDead();
- }
- }
-
- private void spawnGrowParticle(int posX, int posY, int posZ) {
- for (int i = 0; i < 50; i++) {
- double x = (Math.random() - 0.5D) * 3.0D;
- double y = Math.random() - 0.5D + 1.0D;
- double z = (Math.random() - 0.5D) * 3.0D;
- float velMul = 0.025F;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX + 0.5D + x, posY + 0.5D + y, posZ + 0.5D + z, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float)Math.random() * 0.15F + 0.15F, (float)-x * velMul, (float)-y * velMul, (float)-z * velMul);
- }
- }
-
- private boolean isTopBlock(int posX, int posY, int posZ) {
- return worldObj.getBlock(posX, posY + 1, posZ).getMaterial() == Material.air || worldObj.getBlock(posX, posY, posZ) instanceof BlockBush;
- }
-}
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 2 2022-03-10 15:49:11.126
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 0 2022-03-10 15:49:11.127
-!MESSAGE Error in JDT Core during reconcile
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-03-10 15:49:11.199
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.entity;
-
-import java.awt.Color;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.ItemSprawlRod;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockBush;
-import net.minecraft.block.BlockLeaves;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.projectile.EntityThrowable;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.MovingObjectPosition;
-import net.minecraft.world.World;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.item.ItemGrassSeeds;
-
-public class EntitySeed extends EntityThrowable {
-
- public EntitySeed(World world) {
- super(world);
- }
-
- public EntitySeed(World world, EntityPlayer e) {
- super(world, e);
- }
-
- protected void entityInit() {
- super.entityInit();
- this.dataWatcher.addObject(27, new ItemStack(Blocks.air));
- this.dataWatcher.addObject(28, Integer.valueOf(1));
- this.dataWatcher.setObjectWatched(27);
- this.dataWatcher.setObjectWatched(28);
- }
-
- public void onUpdate() {
- super.onUpdate();
- if(ticksExisted >= 240)
- setDead();
- if(this.worldObj.isRemote) {
- float m = 0.02F;
- float f1 = 4.0f / (getRadius() / 20.0f);
- float size = 1.0f + (getRadius() / 12.0f);
- for(int i = 0; i < 5; i++) {
- double posX = this.posX + (Math.random() - 0.5f) / f1;
- double posY = this.posY + (Math.random() - 0.5f) / f1;
- double posZ = this.posZ + (Math.random() - 0.5f) / f1;
- float mx = (float)(Math.random() - 0.5D) * m;
- float my = (float)(Math.random() - 0.5D) * m;
- float mz = (float)(Math.random() - 0.5D) * m;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX, posY, posZ, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float) (0.0625f * size + (Math.random() * 0.12f)), mx, my, mz, 0.5f);
- }
- }
- }
-
- public int getRadius() {
- return this.dataWatcher.getWatchableObjectInt(28);
- }
-
- public void setRadius(int rad) {
- this.dataWatcher.updateObject(28, rad);
- }
-
- public ItemStack getSeed() {
- return this.dataWatcher.getWatchableObjectItemStack(27);
- }
-
- public void setSeed(ItemStack stack) {
- stack.stackSize = 1;
- this.dataWatcher.updateObject(27, stack);
- }
-
- @SideOnly(Side.CLIENT)
- public void setPositionAndRotation2(double x, double y, double z, float help, float me, int please) {}
-
- protected float getGravityVelocity() {
- return 0.025F;
- }
-
- protected void onImpact(MovingObjectPosition mov) {
- Block block = this.worldObj.getBlock(mov.blockX, mov.blockY, mov.blockZ);
- if(block != null && mov.entityHit == null) {
- if(block instanceof BlockBush || block instanceof BlockLeaves)
- return;
- ItemStack seed = getSeed();
- if(seed != null && seed.getItem() instanceof ItemGrassSeeds) {
- Item itemSeed = (ItemGrassSeeds)seed.getItem();
- for(int i = 0; i < getRadius(); i++) {
- for(int k = 0; k < getRadius(); k++) {
- int posX = mov.blockX + i - getRadius() / 2;
- int posY = mov.blockY;
- int posZ = mov.blockZ + k - getRadius() / 2;
- int j = posY;
- if(isTopBlock(posX, posY - 1, posZ))
- j = Math.max(0, j - 20);
- for(; !isTopBlock(posX, j, posZ); j++) {
- if(Math.abs(j - posY) > 40)
- break;
- }
- posY = j;
- if(!worldObj.isRemote)
- itemSeed.onItemUse(seed, null, worldObj, posX, posY, posZ, 0, 0, 0, 0);
- else if(Math.random() < 0.15f)
- spawnGrowParticle(posX, posY, posZ);
- (block == Blocks.dirt || (block == Blocks.grass && par1ItemStack.getItemDamage() != 0))
- }
- }
- }
- setDead();
- }
- }
-
- private void spawnGrowParticle(int posX, int posY, int posZ) {
- for (int i = 0; i < 50; i++) {
- double x = (Math.random() - 0.5D) * 3.0D;
- double y = Math.random() - 0.5D + 1.0D;
- double z = (Math.random() - 0.5D) * 3.0D;
- float velMul = 0.025F;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX + 0.5D + x, posY + 0.5D + y, posZ + 0.5D + z, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float)Math.random() * 0.15F + 0.15F, (float)-x * velMul, (float)-y * velMul, (float)-z * velMul);
- }
- }
-
- private boolean isTopBlock(int posX, int posY, int posZ) {
- return worldObj.getBlock(posX, posY + 1, posZ).getMaterial() == Material.air || worldObj.getBlock(posX, posY, posZ) instanceof BlockBush;
- }
-}
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-03-10 15:49:11.200
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-03-10 15:49:11.201
-!MESSAGE Error in JDT Core during AST creation
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-03-10 15:49:12.136
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.entity;
-
-import java.awt.Color;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.ItemSprawlRod;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockBush;
-import net.minecraft.block.BlockLeaves;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.projectile.EntityThrowable;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.MovingObjectPosition;
-import net.minecraft.world.World;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.item.ItemGrassSeeds;
-
-public class EntitySeed extends EntityThrowable {
-
- public EntitySeed(World world) {
- super(world);
- }
-
- public EntitySeed(World world, EntityPlayer e) {
- super(world, e);
- }
-
- protected void entityInit() {
- super.entityInit();
- this.dataWatcher.addObject(27, new ItemStack(Blocks.air));
- this.dataWatcher.addObject(28, Integer.valueOf(1));
- this.dataWatcher.setObjectWatched(27);
- this.dataWatcher.setObjectWatched(28);
- }
-
- public void onUpdate() {
- super.onUpdate();
- if(ticksExisted >= 240)
- setDead();
- if(this.worldObj.isRemote) {
- float m = 0.02F;
- float f1 = 4.0f / (getRadius() / 20.0f);
- float size = 1.0f + (getRadius() / 12.0f);
- for(int i = 0; i < 5; i++) {
- double posX = this.posX + (Math.random() - 0.5f) / f1;
- double posY = this.posY + (Math.random() - 0.5f) / f1;
- double posZ = this.posZ + (Math.random() - 0.5f) / f1;
- float mx = (float)(Math.random() - 0.5D) * m;
- float my = (float)(Math.random() - 0.5D) * m;
- float mz = (float)(Math.random() - 0.5D) * m;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX, posY, posZ, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float) (0.0625f * size + (Math.random() * 0.12f)), mx, my, mz, 0.5f);
- }
- }
- }
-
- public int getRadius() {
- return this.dataWatcher.getWatchableObjectInt(28);
- }
-
- public void setRadius(int rad) {
- this.dataWatcher.updateObject(28, rad);
- }
-
- public ItemStack getSeed() {
- return this.dataWatcher.getWatchableObjectItemStack(27);
- }
-
- public void setSeed(ItemStack stack) {
- stack.stackSize = 1;
- this.dataWatcher.updateObject(27, stack);
- }
-
- @SideOnly(Side.CLIENT)
- public void setPositionAndRotation2(double x, double y, double z, float help, float me, int please) {}
-
- protected float getGravityVelocity() {
- return 0.025F;
- }
-
- protected void onImpact(MovingObjectPosition mov) {
- Block block = this.worldObj.getBlock(mov.blockX, mov.blockY, mov.blockZ);
- if(block != null && mov.entityHit == null) {
- if(block instanceof BlockBush || block instanceof BlockLeaves)
- return;
- ItemStack seed = getSeed();
- if(seed != null && seed.getItem() instanceof ItemGrassSeeds) {
- Item itemSeed = (ItemGrassSeeds)seed.getItem();
- for(int i = 0; i < getRadius(); i++) {
- for(int k = 0; k < getRadius(); k++) {
- int posX = mov.blockX + i - getRadius() / 2;
- int posY = mov.blockY;
- int posZ = mov.blockZ + k - getRadius() / 2;
- int j = posY;
- if(isTopBlock(posX, posY - 1, posZ))
- j = Math.max(0, j - 20);
- for(; !isTopBlock(posX, j, posZ); j++) {
- if(Math.abs(j - posY) > 40)
- break;
- }
- posY = j;
- if(!worldObj.isRemote)
- itemSeed.onItemUse(seed, null, worldObj, posX, posY, posZ, 0, 0, 0, 0);
- else if(Math.random() < 0.15f)
- spawnGrowParticle(posX, posY, posZ);
- (block == Blocks.dirt || (block == Blocks.grass && par1ItemStack.getItemDamage() != 0))
- }
- }
- }
- setDead();
- }
- }
-
- private void spawnGrowParticle(int posX, int posY, int posZ) {
- for (int i = 0; i < 50; i++) {
- double x = (Math.random() - 0.5D) * 3.0D;
- double y = Math.random() - 0.5D + 1.0D;
- double z = (Math.random() - 0.5D) * 3.0D;
- float velMul = 0.025F;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX + 0.5D + x, posY + 0.5D + y, posZ + 0.5D + z, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float)Math.random() * 0.15F + 0.15F, (float)-x * velMul, (float)-y * velMul, (float)-z * velMul);
- }
- }
-
- private boolean isTopBlock(int posX, int posY, int posZ) {
- return worldObj.getBlock(posX, posY + 1, posZ).getMaterial() == Material.air || worldObj.getBlock(posX, posY, posZ) instanceof BlockBush;
- }
-}
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 2 2022-03-10 15:49:12.138
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 0 2022-03-10 15:49:12.138
-!MESSAGE Error in JDT Core during reconcile
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-03-10 15:49:15.149
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.entity;
-
-import java.awt.Color;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.ItemSprawlRod;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockBush;
-import net.minecraft.block.BlockLeaves;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.projectile.EntityThrowable;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.MovingObjectPosition;
-import net.minecraft.world.World;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.item.ItemGrassSeeds;
-
-public class EntitySeed extends EntityThrowable {
-
- public EntitySeed(World world) {
- super(world);
- }
-
- public EntitySeed(World world, EntityPlayer e) {
- super(world, e);
- }
-
- protected void entityInit() {
- super.entityInit();
- this.dataWatcher.addObject(27, new ItemStack(Blocks.air));
- this.dataWatcher.addObject(28, Integer.valueOf(1));
- this.dataWatcher.setObjectWatched(27);
- this.dataWatcher.setObjectWatched(28);
- }
-
- public void onUpdate() {
- super.onUpdate();
- if(ticksExisted >= 240)
- setDead();
- if(this.worldObj.isRemote) {
- float m = 0.02F;
- float f1 = 4.0f / (getRadius() / 20.0f);
- float size = 1.0f + (getRadius() / 12.0f);
- for(int i = 0; i < 5; i++) {
- double posX = this.posX + (Math.random() - 0.5f) / f1;
- double posY = this.posY + (Math.random() - 0.5f) / f1;
- double posZ = this.posZ + (Math.random() - 0.5f) / f1;
- float mx = (float)(Math.random() - 0.5D) * m;
- float my = (float)(Math.random() - 0.5D) * m;
- float mz = (float)(Math.random() - 0.5D) * m;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX, posY, posZ, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float) (0.0625f * size + (Math.random() * 0.12f)), mx, my, mz, 0.5f);
- }
- }
- }
-
- public int getRadius() {
- return this.dataWatcher.getWatchableObjectInt(28);
- }
-
- public void setRadius(int rad) {
- this.dataWatcher.updateObject(28, rad);
- }
-
- public ItemStack getSeed() {
- return this.dataWatcher.getWatchableObjectItemStack(27);
- }
-
- public void setSeed(ItemStack stack) {
- stack.stackSize = 1;
- this.dataWatcher.updateObject(27, stack);
- }
-
- @SideOnly(Side.CLIENT)
- public void setPositionAndRotation2(double x, double y, double z, float help, float me, int please) {}
-
- protected float getGravityVelocity() {
- return 0.025F;
- }
-
- protected void onImpact(MovingObjectPosition mov) {
- Block block = this.worldObj.getBlock(mov.blockX, mov.blockY, mov.blockZ);
- if(block != null && mov.entityHit == null) {
- if(block instanceof BlockBush || block instanceof BlockLeaves)
- return;
- ItemStack seed = getSeed();
- if(seed != null && seed.getItem() instanceof ItemGrassSeeds) {
- Item itemSeed = (ItemGrassSeeds)seed.getItem();
- for(int i = 0; i < getRadius(); i++) {
- for(int k = 0; k < getRadius(); k++) {
- int posX = mov.blockX + i - getRadius() / 2;
- int posY = mov.blockY;
- int posZ = mov.blockZ + k - getRadius() / 2;
- int j = posY;
- if(isTopBlock(posX, posY - 1, posZ))
- j = Math.max(0, j - 20);
- for(; !isTopBlock(posX, j, posZ); j++) {
- if(Math.abs(j - posY) > 40)
- break;
- }
- posY = j;
- if(!worldObj.isRemote)
- itemSeed.onItemUse(seed, null, worldObj, posX, posY, posZ, 0, 0, 0, 0);
- else if(Math.random() < 0.15f)
- spawnGrowParticle(posX, posY, posZ);
- (block == Blocks.dirt || (block == Blocks.grass && par1ItemStack.getItemDamage() != 0))
- }
- }
- }
- setDead();
- }
- }
-
- private void spawnGrowParticle(int posX, int posY, int posZ) {
- for (int i = 0; i < 50; i++) {
- double x = (Math.random() - 0.5D) * 3.0D;
- double y = Math.random() - 0.5D + 1.0D;
- double z = (Math.random() - 0.5D) * 3.0D;
- float velMul = 0.025F;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX + 0.5D + x, posY + 0.5D + y, posZ + 0.5D + z, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float)Math.random() * 0.15F + 0.15F, (float)-x * velMul, (float)-y * velMul, (float)-z * velMul);
- }
- }
-
- private boolean isTopBlock(int posX, int posY, int posZ) {
- return worldObj.getBlock(posX, posY + 1, posZ).getMaterial() == Material.air || worldObj.getBlock(posX, posY, posZ) instanceof BlockBush;
- }
-}
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 2 2022-03-10 15:49:15.151
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 0 2022-03-10 15:49:15.152
-!MESSAGE Error in JDT Core during reconcile
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-03-10 15:49:18.162
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.entity;
-
-import java.awt.Color;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.ItemSprawlRod;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockBush;
-import net.minecraft.block.BlockLeaves;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.projectile.EntityThrowable;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.MovingObjectPosition;
-import net.minecraft.world.World;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.item.ItemGrassSeeds;
-
-public class EntitySeed extends EntityThrowable {
-
- public EntitySeed(World world) {
- super(world);
- }
-
- public EntitySeed(World world, EntityPlayer e) {
- super(world, e);
- }
-
- protected void entityInit() {
- super.entityInit();
- this.dataWatcher.addObject(27, new ItemStack(Blocks.air));
- this.dataWatcher.addObject(28, Integer.valueOf(1));
- this.dataWatcher.setObjectWatched(27);
- this.dataWatcher.setObjectWatched(28);
- }
-
- public void onUpdate() {
- super.onUpdate();
- if(ticksExisted >= 240)
- setDead();
- if(this.worldObj.isRemote) {
- float m = 0.02F;
- float f1 = 4.0f / (getRadius() / 20.0f);
- float size = 1.0f + (getRadius() / 12.0f);
- for(int i = 0; i < 5; i++) {
- double posX = this.posX + (Math.random() - 0.5f) / f1;
- double posY = this.posY + (Math.random() - 0.5f) / f1;
- double posZ = this.posZ + (Math.random() - 0.5f) / f1;
- float mx = (float)(Math.random() - 0.5D) * m;
- float my = (float)(Math.random() - 0.5D) * m;
- float mz = (float)(Math.random() - 0.5D) * m;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX, posY, posZ, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float) (0.0625f * size + (Math.random() * 0.12f)), mx, my, mz, 0.5f);
- }
- }
- }
-
- public int getRadius() {
- return this.dataWatcher.getWatchableObjectInt(28);
- }
-
- public void setRadius(int rad) {
- this.dataWatcher.updateObject(28, rad);
- }
-
- public ItemStack getSeed() {
- return this.dataWatcher.getWatchableObjectItemStack(27);
- }
-
- public void setSeed(ItemStack stack) {
- stack.stackSize = 1;
- this.dataWatcher.updateObject(27, stack);
- }
-
- @SideOnly(Side.CLIENT)
- public void setPositionAndRotation2(double x, double y, double z, float help, float me, int please) {}
-
- protected float getGravityVelocity() {
- return 0.025F;
- }
-
- protected void onImpact(MovingObjectPosition mov) {
- Block block = this.worldObj.getBlock(mov.blockX, mov.blockY, mov.blockZ);
- if(block != null && mov.entityHit == null) {
- if(block instanceof BlockBush || block instanceof BlockLeaves)
- return;
- ItemStack seed = getSeed();
- if(seed != null && seed.getItem() instanceof ItemGrassSeeds) {
- Item itemSeed = (ItemGrassSeeds)seed.getItem();
- for(int i = 0; i < getRadius(); i++) {
- for(int k = 0; k < getRadius(); k++) {
- int posX = mov.blockX + i - getRadius() / 2;
- int posY = mov.blockY;
- int posZ = mov.blockZ + k - getRadius() / 2;
- int j = posY;
- if(isTopBlock(posX, posY - 1, posZ))
- j = Math.max(0, j - 20);
- for(; !isTopBlock(posX, j, posZ); j++) {
- if(Math.abs(j - posY) > 40)
- break;
- }
- posY = j;
- if(!worldObj.isRemote)
- itemSeed.onItemUse(seed, null, worldObj, posX, posY, posZ, 0, 0, 0, 0);
- else if(Math.random() < 0.15f)
- spawnGrowParticle(posX, posY, posZ);
- (block == Blocks.dirt || (block == Blocks.grass && par1ItemStack.getItemDamage() != 0))
- }
- }
- }
- setDead();
- }
- }
-
- private void spawnGrowParticle(int posX, int posY, int posZ) {
- for (int i = 0; i < 50; i++) {
- double x = (Math.random() - 0.5D) * 3.0D;
- double y = Math.random() - 0.5D + 1.0D;
- double z = (Math.random() - 0.5D) * 3.0D;
- float velMul = 0.025F;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX + 0.5D + x, posY + 0.5D + y, posZ + 0.5D + z, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float)Math.random() * 0.15F + 0.15F, (float)-x * velMul, (float)-y * velMul, (float)-z * velMul);
- }
- }
-
- private boolean isTopBlock(int posX, int posY, int posZ) {
- return worldObj.getBlock(posX, posY + 1, posZ).getMaterial() == Material.air || worldObj.getBlock(posX, posY, posZ) instanceof BlockBush;
- }
-}
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 2 2022-03-10 15:49:18.163
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 0 2022-03-10 15:49:18.164
-!MESSAGE Error in JDT Core during reconcile
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-03-10 15:49:18.892
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.entity;
-
-import java.awt.Color;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.ItemSprawlRod;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockBush;
-import net.minecraft.block.BlockLeaves;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.projectile.EntityThrowable;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.MovingObjectPosition;
-import net.minecraft.world.World;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.item.ItemGrassSeeds;
-
-public class EntitySeed extends EntityThrowable {
-
- public EntitySeed(World world) {
- super(world);
- }
-
- public EntitySeed(World world, EntityPlayer e) {
- super(world, e);
- }
-
- protected void entityInit() {
- super.entityInit();
- this.dataWatcher.addObject(27, new ItemStack(Blocks.air));
- this.dataWatcher.addObject(28, Integer.valueOf(1));
- this.dataWatcher.setObjectWatched(27);
- this.dataWatcher.setObjectWatched(28);
- }
-
- public void onUpdate() {
- super.onUpdate();
- if(ticksExisted >= 240)
- setDead();
- if(this.worldObj.isRemote) {
- float m = 0.02F;
- float f1 = 4.0f / (getRadius() / 20.0f);
- float size = 1.0f + (getRadius() / 12.0f);
- for(int i = 0; i < 5; i++) {
- double posX = this.posX + (Math.random() - 0.5f) / f1;
- double posY = this.posY + (Math.random() - 0.5f) / f1;
- double posZ = this.posZ + (Math.random() - 0.5f) / f1;
- float mx = (float)(Math.random() - 0.5D) * m;
- float my = (float)(Math.random() - 0.5D) * m;
- float mz = (float)(Math.random() - 0.5D) * m;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX, posY, posZ, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float) (0.0625f * size + (Math.random() * 0.12f)), mx, my, mz, 0.5f);
- }
- }
- }
-
- public int getRadius() {
- return this.dataWatcher.getWatchableObjectInt(28);
- }
-
- public void setRadius(int rad) {
- this.dataWatcher.updateObject(28, rad);
- }
-
- public ItemStack getSeed() {
- return this.dataWatcher.getWatchableObjectItemStack(27);
- }
-
- public void setSeed(ItemStack stack) {
- stack.stackSize = 1;
- this.dataWatcher.updateObject(27, stack);
- }
-
- @SideOnly(Side.CLIENT)
- public void setPositionAndRotation2(double x, double y, double z, float help, float me, int please) {}
-
- protected float getGravityVelocity() {
- return 0.025F;
- }
-
- protected void onImpact(MovingObjectPosition mov) {
- Block block = this.worldObj.getBlock(mov.blockX, mov.blockY, mov.blockZ);
- if(block != null && mov.entityHit == null) {
- if(block instanceof BlockBush || block instanceof BlockLeaves)
- return;
- ItemStack seed = getSeed();
- if(seed != null && seed.getItem() instanceof ItemGrassSeeds) {
- Item itemSeed = (ItemGrassSeeds)seed.getItem();
- for(int i = 0; i < getRadius(); i++) {
- for(int k = 0; k < getRadius(); k++) {
- int posX = mov.blockX + i - getRadius() / 2;
- int posY = mov.blockY;
- int posZ = mov.blockZ + k - getRadius() / 2;
- int j = posY;
- if(isTopBlock(posX, posY - 1, posZ))
- j = Math.max(0, j - 20);
- for(; !isTopBlock(posX, j, posZ); j++) {
- if(Math.abs(j - posY) > 40)
- break;
- }
- posY = j;
- if(!worldObj.isRemote)
- itemSeed.onItemUse(seed, null, worldObj, posX, posY, posZ, 0, 0, 0, 0);
- else if(Math.random() < 0.15f)
- spawnGrowParticle(posX, posY, posZ);
- (block == Blocks.dirt || (block == Blocks.grass && par1ItemStack.getItemDamage() != 0))
- }
- }
- }
- setDead();
- }
- }
-
- private void spawnGrowParticle(int posX, int posY, int posZ) {
- for (int i = 0; i < 50; i++) {
- double x = (Math.random() - 0.5D) * 3.0D;
- double y = Math.random() - 0.5D + 1.0D;
- double z = (Math.random() - 0.5D) * 3.0D;
- float velMul = 0.025F;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX + 0.5D + x, posY + 0.5D + y, posZ + 0.5D + z, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float)Math.random() * 0.15F + 0.15F, (float)-x * velMul, (float)-y * velMul, (float)-z * velMul);
- }
- }
-
- private boolean isTopBlock(int posX, int posY, int posZ) {
- return worldObj.getBlock(posX, posY + 1, posZ).getMaterial() == Material.air || worldObj.getBlock(posX, posY, posZ) instanceof BlockBush;
- }
-}
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-03-10 15:49:18.893
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-03-10 15:49:18.894
-!MESSAGE Error in JDT Core during AST creation
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-03-10 15:49:19.765
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.entity;
-
-import java.awt.Color;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.ItemSprawlRod;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockBush;
-import net.minecraft.block.BlockLeaves;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.projectile.EntityThrowable;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.MovingObjectPosition;
-import net.minecraft.world.World;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.item.ItemGrassSeeds;
-
-public class EntitySeed extends EntityThrowable {
-
- public EntitySeed(World world) {
- super(world);
- }
-
- public EntitySeed(World world, EntityPlayer e) {
- super(world, e);
- }
-
- protected void entityInit() {
- super.entityInit();
- this.dataWatcher.addObject(27, new ItemStack(Blocks.air));
- this.dataWatcher.addObject(28, Integer.valueOf(1));
- this.dataWatcher.setObjectWatched(27);
- this.dataWatcher.setObjectWatched(28);
- }
-
- public void onUpdate() {
- super.onUpdate();
- if(ticksExisted >= 240)
- setDead();
- if(this.worldObj.isRemote) {
- float m = 0.02F;
- float f1 = 4.0f / (getRadius() / 20.0f);
- float size = 1.0f + (getRadius() / 12.0f);
- for(int i = 0; i < 5; i++) {
- double posX = this.posX + (Math.random() - 0.5f) / f1;
- double posY = this.posY + (Math.random() - 0.5f) / f1;
- double posZ = this.posZ + (Math.random() - 0.5f) / f1;
- float mx = (float)(Math.random() - 0.5D) * m;
- float my = (float)(Math.random() - 0.5D) * m;
- float mz = (float)(Math.random() - 0.5D) * m;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX, posY, posZ, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float) (0.0625f * size + (Math.random() * 0.12f)), mx, my, mz, 0.5f);
- }
- }
- }
-
- public int getRadius() {
- return this.dataWatcher.getWatchableObjectInt(28);
- }
-
- public void setRadius(int rad) {
- this.dataWatcher.updateObject(28, rad);
- }
-
- public ItemStack getSeed() {
- return this.dataWatcher.getWatchableObjectItemStack(27);
- }
-
- public void setSeed(ItemStack stack) {
- stack.stackSize = 1;
- this.dataWatcher.updateObject(27, stack);
- }
-
- @SideOnly(Side.CLIENT)
- public void setPositionAndRotation2(double x, double y, double z, float help, float me, int please) {}
-
- protected float getGravityVelocity() {
- return 0.025F;
- }
-
- protected void onImpact(MovingObjectPosition mov) {
- Block block = this.worldObj.getBlock(mov.blockX, mov.blockY, mov.blockZ);
- if(block != null && mov.entityHit == null) {
- if(block instanceof BlockBush || block instanceof BlockLeaves)
- return;
- ItemStack seed = getSeed();
- if(seed != null && seed.getItem() instanceof ItemGrassSeeds) {
- Item itemSeed = (ItemGrassSeeds)seed.getItem();
- for(int i = 0; i < getRadius(); i++) {
- for(int k = 0; k < getRadius(); k++) {
- int posX = mov.blockX + i - getRadius() / 2;
- int posY = mov.blockY;
- int posZ = mov.blockZ + k - getRadius() / 2;
- int j = posY;
- if(isTopBlock(posX, posY - 1, posZ))
- j = Math.max(0, j - 20);
- for(; !isTopBlock(posX, j, posZ); j++) {
- if(Math.abs(j - posY) > 40)
- break;
- }
- posY = j;
- if(!worldObj.isRemote)
- itemSeed.onItemUse(seed, null, worldObj, posX, posY, posZ, 0, 0, 0, 0);
- else if(Math.random() < 0.15f)
- spawnGrowParticle(posX, posY, posZ);
- (block == Blocks.dirt || (block == Blocks.grass && par1ItemStack.getItemDamage() != 0))
- }
- }
- }
- setDead();
- }
- }
-
- private void spawnGrowParticle(int posX, int posY, int posZ) {
- for (int i = 0; i < 50; i++) {
- double x = (Math.random() - 0.5D) * 3.0D;
- double y = Math.random() - 0.5D + 1.0D;
- double z = (Math.random() - 0.5D) * 3.0D;
- float velMul = 0.025F;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX + 0.5D + x, posY + 0.5D + y, posZ + 0.5D + z, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float)Math.random() * 0.15F + 0.15F, (float)-x * velMul, (float)-y * velMul, (float)-z * velMul);
- }
- }
-
- private boolean isTopBlock(int posX, int posY, int posZ) {
- return worldObj.getBlock(posX, posY + 1, posZ).getMaterial() == Material.air || worldObj.getBlock(posX, posY, posZ) instanceof BlockBush;
- }
-}
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-03-10 15:49:19.766
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-03-10 15:49:19.766
-!MESSAGE Error in JDT Core during AST creation
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-03-10 15:49:21.175
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.entity;
-
-import java.awt.Color;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.ItemSprawlRod;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockBush;
-import net.minecraft.block.BlockLeaves;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.projectile.EntityThrowable;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.MovingObjectPosition;
-import net.minecraft.world.World;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.item.ItemGrassSeeds;
-
-public class EntitySeed extends EntityThrowable {
-
- public EntitySeed(World world) {
- super(world);
- }
-
- public EntitySeed(World world, EntityPlayer e) {
- super(world, e);
- }
-
- protected void entityInit() {
- super.entityInit();
- this.dataWatcher.addObject(27, new ItemStack(Blocks.air));
- this.dataWatcher.addObject(28, Integer.valueOf(1));
- this.dataWatcher.setObjectWatched(27);
- this.dataWatcher.setObjectWatched(28);
- }
-
- public void onUpdate() {
- super.onUpdate();
- if(ticksExisted >= 240)
- setDead();
- if(this.worldObj.isRemote) {
- float m = 0.02F;
- float f1 = 4.0f / (getRadius() / 20.0f);
- float size = 1.0f + (getRadius() / 12.0f);
- for(int i = 0; i < 5; i++) {
- double posX = this.posX + (Math.random() - 0.5f) / f1;
- double posY = this.posY + (Math.random() - 0.5f) / f1;
- double posZ = this.posZ + (Math.random() - 0.5f) / f1;
- float mx = (float)(Math.random() - 0.5D) * m;
- float my = (float)(Math.random() - 0.5D) * m;
- float mz = (float)(Math.random() - 0.5D) * m;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX, posY, posZ, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float) (0.0625f * size + (Math.random() * 0.12f)), mx, my, mz, 0.5f);
- }
- }
- }
-
- public int getRadius() {
- return this.dataWatcher.getWatchableObjectInt(28);
- }
-
- public void setRadius(int rad) {
- this.dataWatcher.updateObject(28, rad);
- }
-
- public ItemStack getSeed() {
- return this.dataWatcher.getWatchableObjectItemStack(27);
- }
-
- public void setSeed(ItemStack stack) {
- stack.stackSize = 1;
- this.dataWatcher.updateObject(27, stack);
- }
-
- @SideOnly(Side.CLIENT)
- public void setPositionAndRotation2(double x, double y, double z, float help, float me, int please) {}
-
- protected float getGravityVelocity() {
- return 0.025F;
- }
-
- protected void onImpact(MovingObjectPosition mov) {
- Block block = this.worldObj.getBlock(mov.blockX, mov.blockY, mov.blockZ);
- if(block != null && mov.entityHit == null) {
- if(block instanceof BlockBush || block instanceof BlockLeaves)
- return;
- ItemStack seed = getSeed();
- if(seed != null && seed.getItem() instanceof ItemGrassSeeds) {
- Item itemSeed = (ItemGrassSeeds)seed.getItem();
- for(int i = 0; i < getRadius(); i++) {
- for(int k = 0; k < getRadius(); k++) {
- int posX = mov.blockX + i - getRadius() / 2;
- int posY = mov.blockY;
- int posZ = mov.blockZ + k - getRadius() / 2;
- int j = posY;
- if(isTopBlock(posX, posY - 1, posZ))
- j = Math.max(0, j - 20);
- for(; !isTopBlock(posX, j, posZ); j++) {
- if(Math.abs(j - posY) > 40)
- break;
- }
- posY = j;
- if(!worldObj.isRemote)
- itemSeed.onItemUse(seed, null, worldObj, posX, posY, posZ, 0, 0, 0, 0);
- else if(Math.random() < 0.15f)
- spawnGrowParticle(posX, posY, posZ);
- (block == Blocks.dirt || (block == Blocks.grass && par1ItemStack.getItemDamage() != 0))
- }
- }
- }
- setDead();
- }
- }
-
- private void spawnGrowParticle(int posX, int posY, int posZ) {
- for (int i = 0; i < 50; i++) {
- double x = (Math.random() - 0.5D) * 3.0D;
- double y = Math.random() - 0.5D + 1.0D;
- double z = (Math.random() - 0.5D) * 3.0D;
- float velMul = 0.025F;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX + 0.5D + x, posY + 0.5D + y, posZ + 0.5D + z, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float)Math.random() * 0.15F + 0.15F, (float)-x * velMul, (float)-y * velMul, (float)-z * velMul);
- }
- }
-
- private boolean isTopBlock(int posX, int posY, int posZ) {
- return worldObj.getBlock(posX, posY + 1, posZ).getMaterial() == Material.air || worldObj.getBlock(posX, posY, posZ) instanceof BlockBush;
- }
-}
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 2 2022-03-10 15:49:21.177
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 0 2022-03-10 15:49:21.178
-!MESSAGE Error in JDT Core during reconcile
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-03-10 15:49:21.401
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.entity;
-
-import java.awt.Color;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.ItemSprawlRod;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockBush;
-import net.minecraft.block.BlockLeaves;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.projectile.EntityThrowable;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.MovingObjectPosition;
-import net.minecraft.world.World;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.item.ItemGrassSeeds;
-
-public class EntitySeed extends EntityThrowable {
-
- public EntitySeed(World world) {
- super(world);
- }
-
- public EntitySeed(World world, EntityPlayer e) {
- super(world, e);
- }
-
- protected void entityInit() {
- super.entityInit();
- this.dataWatcher.addObject(27, new ItemStack(Blocks.air));
- this.dataWatcher.addObject(28, Integer.valueOf(1));
- this.dataWatcher.setObjectWatched(27);
- this.dataWatcher.setObjectWatched(28);
- }
-
- public void onUpdate() {
- super.onUpdate();
- if(ticksExisted >= 240)
- setDead();
- if(this.worldObj.isRemote) {
- float m = 0.02F;
- float f1 = 4.0f / (getRadius() / 20.0f);
- float size = 1.0f + (getRadius() / 12.0f);
- for(int i = 0; i < 5; i++) {
- double posX = this.posX + (Math.random() - 0.5f) / f1;
- double posY = this.posY + (Math.random() - 0.5f) / f1;
- double posZ = this.posZ + (Math.random() - 0.5f) / f1;
- float mx = (float)(Math.random() - 0.5D) * m;
- float my = (float)(Math.random() - 0.5D) * m;
- float mz = (float)(Math.random() - 0.5D) * m;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX, posY, posZ, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float) (0.0625f * size + (Math.random() * 0.12f)), mx, my, mz, 0.5f);
- }
- }
- }
-
- public int getRadius() {
- return this.dataWatcher.getWatchableObjectInt(28);
- }
-
- public void setRadius(int rad) {
- this.dataWatcher.updateObject(28, rad);
- }
-
- public ItemStack getSeed() {
- return this.dataWatcher.getWatchableObjectItemStack(27);
- }
-
- public void setSeed(ItemStack stack) {
- stack.stackSize = 1;
- this.dataWatcher.updateObject(27, stack);
- }
-
- @SideOnly(Side.CLIENT)
- public void setPositionAndRotation2(double x, double y, double z, float help, float me, int please) {}
-
- protected float getGravityVelocity() {
- return 0.025F;
- }
-
- protected void onImpact(MovingObjectPosition mov) {
- Block block = this.worldObj.getBlock(mov.blockX, mov.blockY, mov.blockZ);
- if(block != null && mov.entityHit == null) {
- if(block instanceof BlockBush || block instanceof BlockLeaves)
- return;
- ItemStack seed = getSeed();
- if(seed != null && seed.getItem() instanceof ItemGrassSeeds) {
- Item itemSeed = (ItemGrassSeeds)seed.getItem();
- for(int i = 0; i < getRadius(); i++) {
- for(int k = 0; k < getRadius(); k++) {
- int posX = mov.blockX + i - getRadius() / 2;
- int posY = mov.blockY;
- int posZ = mov.blockZ + k - getRadius() / 2;
- int j = posY;
- if(isTopBlock(posX, posY - 1, posZ))
- j = Math.max(0, j - 20);
- for(; !isTopBlock(posX, j, posZ); j++) {
- if(Math.abs(j - posY) > 40)
- break;
- }
- posY = j;
- if(!worldObj.isRemote)
- itemSeed.onItemUse(seed, null, worldObj, posX, posY, posZ, 0, 0, 0, 0);
- else if(Math.random() < 0.15f)
- spawnGrowParticle(posX, posY, posZ);
- (block == Blocks.dirt || (block == Blocks.grass && par1ItemStack.getItemDamage() != 0))
- }
- }
- }
- setDead();
- }
- }
-
- private void spawnGrowParticle(int posX, int posY, int posZ) {
- for (int i = 0; i < 50; i++) {
- double x = (Math.random() - 0.5D) * 3.0D;
- double y = Math.random() - 0.5D + 1.0D;
- double z = (Math.random() - 0.5D) * 3.0D;
- float velMul = 0.025F;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX + 0.5D + x, posY + 0.5D + y, posZ + 0.5D + z, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float)Math.random() * 0.15F + 0.15F, (float)-x * velMul, (float)-y * velMul, (float)-z * velMul);
- }
- }
-
- private boolean isTopBlock(int posX, int posY, int posZ) {
- return worldObj.getBlock(posX, posY + 1, posZ).getMaterial() == Material.air || worldObj.getBlock(posX, posY, posZ) instanceof BlockBush;
- }
-}
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-03-10 15:49:21.402
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-03-10 15:49:21.403
-!MESSAGE Error in JDT Core during AST creation
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-03-10 15:49:24.188
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.entity;
-
-import java.awt.Color;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.ItemSprawlRod;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockBush;
-import net.minecraft.block.BlockLeaves;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.projectile.EntityThrowable;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.MovingObjectPosition;
-import net.minecraft.world.World;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.item.ItemGrassSeeds;
-
-public class EntitySeed extends EntityThrowable {
-
- public EntitySeed(World world) {
- super(world);
- }
-
- public EntitySeed(World world, EntityPlayer e) {
- super(world, e);
- }
-
- protected void entityInit() {
- super.entityInit();
- this.dataWatcher.addObject(27, new ItemStack(Blocks.air));
- this.dataWatcher.addObject(28, Integer.valueOf(1));
- this.dataWatcher.setObjectWatched(27);
- this.dataWatcher.setObjectWatched(28);
- }
-
- public void onUpdate() {
- super.onUpdate();
- if(ticksExisted >= 240)
- setDead();
- if(this.worldObj.isRemote) {
- float m = 0.02F;
- float f1 = 4.0f / (getRadius() / 20.0f);
- float size = 1.0f + (getRadius() / 12.0f);
- for(int i = 0; i < 5; i++) {
- double posX = this.posX + (Math.random() - 0.5f) / f1;
- double posY = this.posY + (Math.random() - 0.5f) / f1;
- double posZ = this.posZ + (Math.random() - 0.5f) / f1;
- float mx = (float)(Math.random() - 0.5D) * m;
- float my = (float)(Math.random() - 0.5D) * m;
- float mz = (float)(Math.random() - 0.5D) * m;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX, posY, posZ, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float) (0.0625f * size + (Math.random() * 0.12f)), mx, my, mz, 0.5f);
- }
- }
- }
-
- public int getRadius() {
- return this.dataWatcher.getWatchableObjectInt(28);
- }
-
- public void setRadius(int rad) {
- this.dataWatcher.updateObject(28, rad);
- }
-
- public ItemStack getSeed() {
- return this.dataWatcher.getWatchableObjectItemStack(27);
- }
-
- public void setSeed(ItemStack stack) {
- stack.stackSize = 1;
- this.dataWatcher.updateObject(27, stack);
- }
-
- @SideOnly(Side.CLIENT)
- public void setPositionAndRotation2(double x, double y, double z, float help, float me, int please) {}
-
- protected float getGravityVelocity() {
- return 0.025F;
- }
-
- protected void onImpact(MovingObjectPosition mov) {
- Block block = this.worldObj.getBlock(mov.blockX, mov.blockY, mov.blockZ);
- if(block != null && mov.entityHit == null) {
- if(block instanceof BlockBush || block instanceof BlockLeaves)
- return;
- ItemStack seed = getSeed();
- if(seed != null && seed.getItem() instanceof ItemGrassSeeds) {
- Item itemSeed = (ItemGrassSeeds)seed.getItem();
- for(int i = 0; i < getRadius(); i++) {
- for(int k = 0; k < getRadius(); k++) {
- int posX = mov.blockX + i - getRadius() / 2;
- int posY = mov.blockY;
- int posZ = mov.blockZ + k - getRadius() / 2;
- int j = posY;
- if(isTopBlock(posX, posY - 1, posZ))
- j = Math.max(0, j - 20);
- for(; !isTopBlock(posX, j, posZ); j++) {
- if(Math.abs(j - posY) > 40)
- break;
- }
- posY = j;
- if(!worldObj.isRemote)
- itemSeed.onItemUse(seed, null, worldObj, posX, posY, posZ, 0, 0, 0, 0);
- else if(Math.random() < 0.15f)
- spawnGrowParticle(posX, posY, posZ);
- (block == Blocks.dirt || (block == Blocks.grass && par1ItemStack.getItemDamage() != 0))
- }
- }
- }
- setDead();
- }
- }
-
- private void spawnGrowParticle(int posX, int posY, int posZ) {
- for (int i = 0; i < 50; i++) {
- double x = (Math.random() - 0.5D) * 3.0D;
- double y = Math.random() - 0.5D + 1.0D;
- double z = (Math.random() - 0.5D) * 3.0D;
- float velMul = 0.025F;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX + 0.5D + x, posY + 0.5D + y, posZ + 0.5D + z, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float)Math.random() * 0.15F + 0.15F, (float)-x * velMul, (float)-y * velMul, (float)-z * velMul);
- }
- }
-
- private boolean isTopBlock(int posX, int posY, int posZ) {
- return worldObj.getBlock(posX, posY + 1, posZ).getMaterial() == Material.air || worldObj.getBlock(posX, posY, posZ) instanceof BlockBush;
- }
-}
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 2 2022-03-10 15:49:24.189
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 0 2022-03-10 15:49:24.190
-!MESSAGE Error in JDT Core during reconcile
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-03-10 15:49:24.198
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.entity;
-
-import java.awt.Color;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.ItemSprawlRod;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockBush;
-import net.minecraft.block.BlockLeaves;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.projectile.EntityThrowable;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.MovingObjectPosition;
-import net.minecraft.world.World;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.item.ItemGrassSeeds;
-
-public class EntitySeed extends EntityThrowable {
-
- public EntitySeed(World world) {
- super(world);
- }
-
- public EntitySeed(World world, EntityPlayer e) {
- super(world, e);
- }
-
- protected void entityInit() {
- super.entityInit();
- this.dataWatcher.addObject(27, new ItemStack(Blocks.air));
- this.dataWatcher.addObject(28, Integer.valueOf(1));
- this.dataWatcher.setObjectWatched(27);
- this.dataWatcher.setObjectWatched(28);
- }
-
- public void onUpdate() {
- super.onUpdate();
- if(ticksExisted >= 240)
- setDead();
- if(this.worldObj.isRemote) {
- float m = 0.02F;
- float f1 = 4.0f / (getRadius() / 20.0f);
- float size = 1.0f + (getRadius() / 12.0f);
- for(int i = 0; i < 5; i++) {
- double posX = this.posX + (Math.random() - 0.5f) / f1;
- double posY = this.posY + (Math.random() - 0.5f) / f1;
- double posZ = this.posZ + (Math.random() - 0.5f) / f1;
- float mx = (float)(Math.random() - 0.5D) * m;
- float my = (float)(Math.random() - 0.5D) * m;
- float mz = (float)(Math.random() - 0.5D) * m;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX, posY, posZ, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float) (0.0625f * size + (Math.random() * 0.12f)), mx, my, mz, 0.5f);
- }
- }
- }
-
- public int getRadius() {
- return this.dataWatcher.getWatchableObjectInt(28);
- }
-
- public void setRadius(int rad) {
- this.dataWatcher.updateObject(28, rad);
- }
-
- public ItemStack getSeed() {
- return this.dataWatcher.getWatchableObjectItemStack(27);
- }
-
- public void setSeed(ItemStack stack) {
- stack.stackSize = 1;
- this.dataWatcher.updateObject(27, stack);
- }
-
- @SideOnly(Side.CLIENT)
- public void setPositionAndRotation2(double x, double y, double z, float help, float me, int please) {}
-
- protected float getGravityVelocity() {
- return 0.025F;
- }
-
- protected void onImpact(MovingObjectPosition mov) {
- Block block = this.worldObj.getBlock(mov.blockX, mov.blockY, mov.blockZ);
- if(block != null && mov.entityHit == null) {
- if(block instanceof BlockBush || block instanceof BlockLeaves)
- return;
- ItemStack seed = getSeed();
- if(seed != null && seed.getItem() instanceof ItemGrassSeeds) {
- Item itemSeed = (ItemGrassSeeds)seed.getItem();
- for(int i = 0; i < getRadius(); i++) {
- for(int k = 0; k < getRadius(); k++) {
- int posX = mov.blockX + i - getRadius() / 2;
- int posY = mov.blockY;
- int posZ = mov.blockZ + k - getRadius() / 2;
- int j = posY;
- if(isTopBlock(posX, posY - 1, posZ))
- j = Math.max(0, j - 20);
- for(; !isTopBlock(posX, j, posZ); j++) {
- if(Math.abs(j - posY) > 40)
- break;
- }
- posY = j;
- if(!worldObj.isRemote)
- itemSeed.onItemUse(seed, null, worldObj, posX, posY, posZ, 0, 0, 0, 0);
- else if(Math.random() < 0.15f)
- spawnGrowParticle(posX, posY, posZ);
- (block == Blocks.dirt || (block == Blocks.grass && par1ItemStack.getItemDamage() != 0))
- }
- }
- }
- setDead();
- }
- }
-
- private void spawnGrowParticle(int posX, int posY, int posZ) {
- for (int i = 0; i < 50; i++) {
- double x = (Math.random() - 0.5D) * 3.0D;
- double y = Math.random() - 0.5D + 1.0D;
- double z = (Math.random() - 0.5D) * 3.0D;
- float velMul = 0.025F;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX + 0.5D + x, posY + 0.5D + y, posZ + 0.5D + z, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float)Math.random() * 0.15F + 0.15F, (float)-x * velMul, (float)-y * velMul, (float)-z * velMul);
- }
- }
-
- private boolean isTopBlock(int posX, int posY, int posZ) {
- return worldObj.getBlock(posX, posY + 1, posZ).getMaterial() == Material.air || worldObj.getBlock(posX, posY, posZ) instanceof BlockBush;
- }
-}
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-03-10 15:49:24.200
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-03-10 15:49:24.201
-!MESSAGE Error in JDT Core during AST creation
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-03-10 15:49:25.233
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.entity;
-
-import java.awt.Color;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.ItemSprawlRod;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockBush;
-import net.minecraft.block.BlockLeaves;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.projectile.EntityThrowable;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.MovingObjectPosition;
-import net.minecraft.world.World;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.item.ItemGrassSeeds;
-
-public class EntitySeed extends EntityThrowable {
-
- public EntitySeed(World world) {
- super(world);
- }
-
- public EntitySeed(World world, EntityPlayer e) {
- super(world, e);
- }
-
- protected void entityInit() {
- super.entityInit();
- this.dataWatcher.addObject(27, new ItemStack(Blocks.air));
- this.dataWatcher.addObject(28, Integer.valueOf(1));
- this.dataWatcher.setObjectWatched(27);
- this.dataWatcher.setObjectWatched(28);
- }
-
- public void onUpdate() {
- super.onUpdate();
- if(ticksExisted >= 240)
- setDead();
- if(this.worldObj.isRemote) {
- float m = 0.02F;
- float f1 = 4.0f / (getRadius() / 20.0f);
- float size = 1.0f + (getRadius() / 12.0f);
- for(int i = 0; i < 5; i++) {
- double posX = this.posX + (Math.random() - 0.5f) / f1;
- double posY = this.posY + (Math.random() - 0.5f) / f1;
- double posZ = this.posZ + (Math.random() - 0.5f) / f1;
- float mx = (float)(Math.random() - 0.5D) * m;
- float my = (float)(Math.random() - 0.5D) * m;
- float mz = (float)(Math.random() - 0.5D) * m;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX, posY, posZ, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float) (0.0625f * size + (Math.random() * 0.12f)), mx, my, mz, 0.5f);
- }
- }
- }
-
- public int getRadius() {
- return this.dataWatcher.getWatchableObjectInt(28);
- }
-
- public void setRadius(int rad) {
- this.dataWatcher.updateObject(28, rad);
- }
-
- public ItemStack getSeed() {
- return this.dataWatcher.getWatchableObjectItemStack(27);
- }
-
- public void setSeed(ItemStack stack) {
- stack.stackSize = 1;
- this.dataWatcher.updateObject(27, stack);
- }
-
- @SideOnly(Side.CLIENT)
- public void setPositionAndRotation2(double x, double y, double z, float help, float me, int please) {}
-
- protected float getGravityVelocity() {
- return 0.025F;
- }
-
- protected void onImpact(MovingObjectPosition mov) {
- Block block = this.worldObj.getBlock(mov.blockX, mov.blockY, mov.blockZ);
- if(block != null && mov.entityHit == null) {
- if(block instanceof BlockBush || block instanceof BlockLeaves)
- return;
- ItemStack seed = getSeed();
- if(seed != null && seed.getItem() instanceof ItemGrassSeeds) {
- Item itemSeed = (ItemGrassSeeds)seed.getItem();
- for(int i = 0; i < getRadius(); i++) {
- for(int k = 0; k < getRadius(); k++) {
- int posX = mov.blockX + i - getRadius() / 2;
- int posY = mov.blockY;
- int posZ = mov.blockZ + k - getRadius() / 2;
- int j = posY;
- if(isTopBlock(posX, posY - 1, posZ))
- j = Math.max(0, j - 20);
- for(; !isTopBlock(posX, j, posZ); j++) {
- if(Math.abs(j - posY) > 40)
- break;
- }
- posY = j;
- if(!worldObj.isRemote)
- itemSeed.onItemUse(seed, null, worldObj, posX, posY, posZ, 0, 0, 0, 0);
- else if(Math.random() < 0.15f)
- spawnGrowParticle(posX, posY, posZ);
- (block == Blocks.dirt || (block == Blocks.grass && par1ItemStack.getItemDamage() != 0))
- }
- }
- }
- setDead();
- }
- }
-
- private void spawnGrowParticle(int posX, int posY, int posZ) {
- for (int i = 0; i < 50; i++) {
- double x = (Math.random() - 0.5D) * 3.0D;
- double y = Math.random() - 0.5D + 1.0D;
- double z = (Math.random() - 0.5D) * 3.0D;
- float velMul = 0.025F;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX + 0.5D + x, posY + 0.5D + y, posZ + 0.5D + z, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float)Math.random() * 0.15F + 0.15F, (float)-x * velMul, (float)-y * velMul, (float)-z * velMul);
- }
- }
-
- private boolean isTopBlock(int posX, int posY, int posZ) {
- return worldObj.getBlock(posX, posY + 1, posZ).getMaterial() == Material.air || worldObj.getBlock(posX, posY, posZ) instanceof BlockBush;
- }
-}
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-03-10 15:49:25.234
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-03-10 15:49:25.235
-!MESSAGE Error in JDT Core during AST creation
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-03-10 15:49:27.201
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.entity;
-
-import java.awt.Color;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.ItemSprawlRod;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockBush;
-import net.minecraft.block.BlockLeaves;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.projectile.EntityThrowable;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.MovingObjectPosition;
-import net.minecraft.world.World;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.item.ItemGrassSeeds;
-
-public class EntitySeed extends EntityThrowable {
-
- public EntitySeed(World world) {
- super(world);
- }
-
- public EntitySeed(World world, EntityPlayer e) {
- super(world, e);
- }
-
- protected void entityInit() {
- super.entityInit();
- this.dataWatcher.addObject(27, new ItemStack(Blocks.air));
- this.dataWatcher.addObject(28, Integer.valueOf(1));
- this.dataWatcher.setObjectWatched(27);
- this.dataWatcher.setObjectWatched(28);
- }
-
- public void onUpdate() {
- super.onUpdate();
- if(ticksExisted >= 240)
- setDead();
- if(this.worldObj.isRemote) {
- float m = 0.02F;
- float f1 = 4.0f / (getRadius() / 20.0f);
- float size = 1.0f + (getRadius() / 12.0f);
- for(int i = 0; i < 5; i++) {
- double posX = this.posX + (Math.random() - 0.5f) / f1;
- double posY = this.posY + (Math.random() - 0.5f) / f1;
- double posZ = this.posZ + (Math.random() - 0.5f) / f1;
- float mx = (float)(Math.random() - 0.5D) * m;
- float my = (float)(Math.random() - 0.5D) * m;
- float mz = (float)(Math.random() - 0.5D) * m;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX, posY, posZ, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float) (0.0625f * size + (Math.random() * 0.12f)), mx, my, mz, 0.5f);
- }
- }
- }
-
- public int getRadius() {
- return this.dataWatcher.getWatchableObjectInt(28);
- }
-
- public void setRadius(int rad) {
- this.dataWatcher.updateObject(28, rad);
- }
-
- public ItemStack getSeed() {
- return this.dataWatcher.getWatchableObjectItemStack(27);
- }
-
- public void setSeed(ItemStack stack) {
- stack.stackSize = 1;
- this.dataWatcher.updateObject(27, stack);
- }
-
- @SideOnly(Side.CLIENT)
- public void setPositionAndRotation2(double x, double y, double z, float help, float me, int please) {}
-
- protected float getGravityVelocity() {
- return 0.025F;
- }
-
- protected void onImpact(MovingObjectPosition mov) {
- Block block = this.worldObj.getBlock(mov.blockX, mov.blockY, mov.blockZ);
- if(block != null && mov.entityHit == null) {
- if(block instanceof BlockBush || block instanceof BlockLeaves)
- return;
- ItemStack seed = getSeed();
- if(seed != null && seed.getItem() instanceof ItemGrassSeeds) {
- Item itemSeed = (ItemGrassSeeds)seed.getItem();
- for(int i = 0; i < getRadius(); i++) {
- for(int k = 0; k < getRadius(); k++) {
- int posX = mov.blockX + i - getRadius() / 2;
- int posY = mov.blockY;
- int posZ = mov.blockZ + k - getRadius() / 2;
- int j = posY;
- if(isTopBlock(posX, posY - 1, posZ))
- j = Math.max(0, j - 20);
- for(; !isTopBlock(posX, j, posZ); j++) {
- if(Math.abs(j - posY) > 40)
- break;
- }
- posY = j;
- if(!worldObj.isRemote)
- itemSeed.onItemUse(seed, null, worldObj, posX, posY, posZ, 0, 0, 0, 0);
- else if(Math.random() < 0.15f)
- spawnGrowParticle(posX, posY, posZ);
- (block == Blocks.dirt || (block == Blocks.grass && par1ItemStack.getItemDamage() != 0))
- }
- }
- }
- setDead();
- }
- }
-
- private void spawnGrowParticle(int posX, int posY, int posZ) {
- for (int i = 0; i < 50; i++) {
- double x = (Math.random() - 0.5D) * 3.0D;
- double y = Math.random() - 0.5D + 1.0D;
- double z = (Math.random() - 0.5D) * 3.0D;
- float velMul = 0.025F;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX + 0.5D + x, posY + 0.5D + y, posZ + 0.5D + z, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float)Math.random() * 0.15F + 0.15F, (float)-x * velMul, (float)-y * velMul, (float)-z * velMul);
- }
- }
-
- private boolean isTopBlock(int posX, int posY, int posZ) {
- return worldObj.getBlock(posX, posY + 1, posZ).getMaterial() == Material.air || worldObj.getBlock(posX, posY, posZ) instanceof BlockBush;
- }
-}
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 2 2022-03-10 15:49:27.202
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 0 2022-03-10 15:49:27.203
-!MESSAGE Error in JDT Core during reconcile
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-03-10 15:49:28.214
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.entity;
-
-import java.awt.Color;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.ItemSprawlRod;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockBush;
-import net.minecraft.block.BlockLeaves;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.projectile.EntityThrowable;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.MovingObjectPosition;
-import net.minecraft.world.World;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.item.ItemGrassSeeds;
-
-public class EntitySeed extends EntityThrowable {
-
- public EntitySeed(World world) {
- super(world);
- }
-
- public EntitySeed(World world, EntityPlayer e) {
- super(world, e);
- }
-
- protected void entityInit() {
- super.entityInit();
- this.dataWatcher.addObject(27, new ItemStack(Blocks.air));
- this.dataWatcher.addObject(28, Integer.valueOf(1));
- this.dataWatcher.setObjectWatched(27);
- this.dataWatcher.setObjectWatched(28);
- }
-
- public void onUpdate() {
- super.onUpdate();
- if(ticksExisted >= 240)
- setDead();
- if(this.worldObj.isRemote) {
- float m = 0.02F;
- float f1 = 4.0f / (getRadius() / 20.0f);
- float size = 1.0f + (getRadius() / 12.0f);
- for(int i = 0; i < 5; i++) {
- double posX = this.posX + (Math.random() - 0.5f) / f1;
- double posY = this.posY + (Math.random() - 0.5f) / f1;
- double posZ = this.posZ + (Math.random() - 0.5f) / f1;
- float mx = (float)(Math.random() - 0.5D) * m;
- float my = (float)(Math.random() - 0.5D) * m;
- float mz = (float)(Math.random() - 0.5D) * m;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX, posY, posZ, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float) (0.0625f * size + (Math.random() * 0.12f)), mx, my, mz, 0.5f);
- }
- }
- }
-
- public int getRadius() {
- return this.dataWatcher.getWatchableObjectInt(28);
- }
-
- public void setRadius(int rad) {
- this.dataWatcher.updateObject(28, rad);
- }
-
- public ItemStack getSeed() {
- return this.dataWatcher.getWatchableObjectItemStack(27);
- }
-
- public void setSeed(ItemStack stack) {
- stack.stackSize = 1;
- this.dataWatcher.updateObject(27, stack);
- }
-
- @SideOnly(Side.CLIENT)
- public void setPositionAndRotation2(double x, double y, double z, float help, float me, int please) {}
-
- protected float getGravityVelocity() {
- return 0.025F;
- }
-
- protected void onImpact(MovingObjectPosition mov) {
- Block block = this.worldObj.getBlock(mov.blockX, mov.blockY, mov.blockZ);
- if(block != null && mov.entityHit == null) {
- if(block instanceof BlockBush || block instanceof BlockLeaves)
- return;
- ItemStack seed = getSeed();
- if(seed != null && seed.getItem() instanceof ItemGrassSeeds) {
- Item itemSeed = (ItemGrassSeeds)seed.getItem();
- for(int i = 0; i < getRadius(); i++) {
- for(int k = 0; k < getRadius(); k++) {
- int posX = mov.blockX + i - getRadius() / 2;
- int posY = mov.blockY;
- int posZ = mov.blockZ + k - getRadius() / 2;
- int j = posY;
- if(isTopBlock(posX, posY - 1, posZ))
- j = Math.max(0, j - 20);
- for(; !isTopBlock(posX, j, posZ); j++) {
- if(Math.abs(j - posY) > 40)
- break;
- }
- posY = j;
- if(!worldObj.isRemote)
- itemSeed.onItemUse(seed, null, worldObj, posX, posY, posZ, 0, 0, 0, 0);
- else if(Math.random() < 0.15f)
- spawnGrowParticle(posX, posY, posZ);
- (block == Blocks.dirt || (block == Blocks.grass)
- }
- }
- }
- setDead();
- }
- }
-
- private void spawnGrowParticle(int posX, int posY, int posZ) {
- for (int i = 0; i < 50; i++) {
- double x = (Math.random() - 0.5D) * 3.0D;
- double y = Math.random() - 0.5D + 1.0D;
- double z = (Math.random() - 0.5D) * 3.0D;
- float velMul = 0.025F;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX + 0.5D + x, posY + 0.5D + y, posZ + 0.5D + z, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float)Math.random() * 0.15F + 0.15F, (float)-x * velMul, (float)-y * velMul, (float)-z * velMul);
- }
- }
-
- private boolean isTopBlock(int posX, int posY, int posZ) {
- return worldObj.getBlock(posX, posY + 1, posZ).getMaterial() == Material.air || worldObj.getBlock(posX, posY, posZ) instanceof BlockBush;
- }
-}
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 2 2022-03-10 15:49:28.215
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 0 2022-03-10 15:49:28.215
-!MESSAGE Error in JDT Core during reconcile
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-03-10 15:49:28.381
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.entity;
-
-import java.awt.Color;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.ItemSprawlRod;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockBush;
-import net.minecraft.block.BlockLeaves;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.projectile.EntityThrowable;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.MovingObjectPosition;
-import net.minecraft.world.World;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.item.ItemGrassSeeds;
-
-public class EntitySeed extends EntityThrowable {
-
- public EntitySeed(World world) {
- super(world);
- }
-
- public EntitySeed(World world, EntityPlayer e) {
- super(world, e);
- }
-
- protected void entityInit() {
- super.entityInit();
- this.dataWatcher.addObject(27, new ItemStack(Blocks.air));
- this.dataWatcher.addObject(28, Integer.valueOf(1));
- this.dataWatcher.setObjectWatched(27);
- this.dataWatcher.setObjectWatched(28);
- }
-
- public void onUpdate() {
- super.onUpdate();
- if(ticksExisted >= 240)
- setDead();
- if(this.worldObj.isRemote) {
- float m = 0.02F;
- float f1 = 4.0f / (getRadius() / 20.0f);
- float size = 1.0f + (getRadius() / 12.0f);
- for(int i = 0; i < 5; i++) {
- double posX = this.posX + (Math.random() - 0.5f) / f1;
- double posY = this.posY + (Math.random() - 0.5f) / f1;
- double posZ = this.posZ + (Math.random() - 0.5f) / f1;
- float mx = (float)(Math.random() - 0.5D) * m;
- float my = (float)(Math.random() - 0.5D) * m;
- float mz = (float)(Math.random() - 0.5D) * m;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX, posY, posZ, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float) (0.0625f * size + (Math.random() * 0.12f)), mx, my, mz, 0.5f);
- }
- }
- }
-
- public int getRadius() {
- return this.dataWatcher.getWatchableObjectInt(28);
- }
-
- public void setRadius(int rad) {
- this.dataWatcher.updateObject(28, rad);
- }
-
- public ItemStack getSeed() {
- return this.dataWatcher.getWatchableObjectItemStack(27);
- }
-
- public void setSeed(ItemStack stack) {
- stack.stackSize = 1;
- this.dataWatcher.updateObject(27, stack);
- }
-
- @SideOnly(Side.CLIENT)
- public void setPositionAndRotation2(double x, double y, double z, float help, float me, int please) {}
-
- protected float getGravityVelocity() {
- return 0.025F;
- }
-
- protected void onImpact(MovingObjectPosition mov) {
- Block block = this.worldObj.getBlock(mov.blockX, mov.blockY, mov.blockZ);
- if(block != null && mov.entityHit == null) {
- if(block instanceof BlockBush || block instanceof BlockLeaves)
- return;
- ItemStack seed = getSeed();
- if(seed != null && seed.getItem() instanceof ItemGrassSeeds) {
- Item itemSeed = (ItemGrassSeeds)seed.getItem();
- for(int i = 0; i < getRadius(); i++) {
- for(int k = 0; k < getRadius(); k++) {
- int posX = mov.blockX + i - getRadius() / 2;
- int posY = mov.blockY;
- int posZ = mov.blockZ + k - getRadius() / 2;
- int j = posY;
- if(isTopBlock(posX, posY - 1, posZ))
- j = Math.max(0, j - 20);
- for(; !isTopBlock(posX, j, posZ); j++) {
- if(Math.abs(j - posY) > 40)
- break;
- }
- posY = j;
- if(!worldObj.isRemote)
- itemSeed.onItemUse(seed, null, worldObj, posX, posY, posZ, 0, 0, 0, 0);
- else if(Math.random() < 0.15f)
- spawnGrowParticle(posX, posY, posZ);
- (block == Blocks.dirt || (block == Blocks.grass)
- }
- }
- }
- setDead();
- }
- }
-
- private void spawnGrowParticle(int posX, int posY, int posZ) {
- for (int i = 0; i < 50; i++) {
- double x = (Math.random() - 0.5D) * 3.0D;
- double y = Math.random() - 0.5D + 1.0D;
- double z = (Math.random() - 0.5D) * 3.0D;
- float velMul = 0.025F;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX + 0.5D + x, posY + 0.5D + y, posZ + 0.5D + z, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float)Math.random() * 0.15F + 0.15F, (float)-x * velMul, (float)-y * velMul, (float)-z * velMul);
- }
- }
-
- private boolean isTopBlock(int posX, int posY, int posZ) {
- return worldObj.getBlock(posX, posY + 1, posZ).getMaterial() == Material.air || worldObj.getBlock(posX, posY, posZ) instanceof BlockBush;
- }
-}
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-03-10 15:49:28.382
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-03-10 15:49:28.383
-!MESSAGE Error in JDT Core during AST creation
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-03-10 15:49:30.224
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.entity;
-
-import java.awt.Color;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.ItemSprawlRod;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockBush;
-import net.minecraft.block.BlockLeaves;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.projectile.EntityThrowable;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.MovingObjectPosition;
-import net.minecraft.world.World;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.item.ItemGrassSeeds;
-
-public class EntitySeed extends EntityThrowable {
-
- public EntitySeed(World world) {
- super(world);
- }
-
- public EntitySeed(World world, EntityPlayer e) {
- super(world, e);
- }
-
- protected void entityInit() {
- super.entityInit();
- this.dataWatcher.addObject(27, new ItemStack(Blocks.air));
- this.dataWatcher.addObject(28, Integer.valueOf(1));
- this.dataWatcher.setObjectWatched(27);
- this.dataWatcher.setObjectWatched(28);
- }
-
- public void onUpdate() {
- super.onUpdate();
- if(ticksExisted >= 240)
- setDead();
- if(this.worldObj.isRemote) {
- float m = 0.02F;
- float f1 = 4.0f / (getRadius() / 20.0f);
- float size = 1.0f + (getRadius() / 12.0f);
- for(int i = 0; i < 5; i++) {
- double posX = this.posX + (Math.random() - 0.5f) / f1;
- double posY = this.posY + (Math.random() - 0.5f) / f1;
- double posZ = this.posZ + (Math.random() - 0.5f) / f1;
- float mx = (float)(Math.random() - 0.5D) * m;
- float my = (float)(Math.random() - 0.5D) * m;
- float mz = (float)(Math.random() - 0.5D) * m;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX, posY, posZ, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float) (0.0625f * size + (Math.random() * 0.12f)), mx, my, mz, 0.5f);
- }
- }
- }
-
- public int getRadius() {
- return this.dataWatcher.getWatchableObjectInt(28);
- }
-
- public void setRadius(int rad) {
- this.dataWatcher.updateObject(28, rad);
- }
-
- public ItemStack getSeed() {
- return this.dataWatcher.getWatchableObjectItemStack(27);
- }
-
- public void setSeed(ItemStack stack) {
- stack.stackSize = 1;
- this.dataWatcher.updateObject(27, stack);
- }
-
- @SideOnly(Side.CLIENT)
- public void setPositionAndRotation2(double x, double y, double z, float help, float me, int please) {}
-
- protected float getGravityVelocity() {
- return 0.025F;
- }
-
- protected void onImpact(MovingObjectPosition mov) {
- Block block = this.worldObj.getBlock(mov.blockX, mov.blockY, mov.blockZ);
- if(block != null && mov.entityHit == null) {
- if(block instanceof BlockBush || block instanceof BlockLeaves)
- return;
- ItemStack seed = getSeed();
- if(seed != null && seed.getItem() instanceof ItemGrassSeeds) {
- Item itemSeed = (ItemGrassSeeds)seed.getItem();
- for(int i = 0; i < getRadius(); i++) {
- for(int k = 0; k < getRadius(); k++) {
- int posX = mov.blockX + i - getRadius() / 2;
- int posY = mov.blockY;
- int posZ = mov.blockZ + k - getRadius() / 2;
- int j = posY;
- if(isTopBlock(posX, posY - 1, posZ))
- j = Math.max(0, j - 20);
- for(; !isTopBlock(posX, j, posZ); j++) {
- if(Math.abs(j - posY) > 40)
- break;
- }
- posY = j;
- if(!worldObj.isRemote)
- itemSeed.onItemUse(seed, null, worldObj, posX, posY, posZ, 0, 0, 0, 0);
- else if(Math.random() < 0.15f)
- spawnGrowParticle(posX, posY, posZ);
- (block == Blocks.dirt || (block == Blocks.grass)
- }
- }
- }
- setDead();
- }
- }
-
- private void spawnGrowParticle(int posX, int posY, int posZ) {
- for (int i = 0; i < 50; i++) {
- double x = (Math.random() - 0.5D) * 3.0D;
- double y = Math.random() - 0.5D + 1.0D;
- double z = (Math.random() - 0.5D) * 3.0D;
- float velMul = 0.025F;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX + 0.5D + x, posY + 0.5D + y, posZ + 0.5D + z, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float)Math.random() * 0.15F + 0.15F, (float)-x * velMul, (float)-y * velMul, (float)-z * velMul);
- }
- }
-
- private boolean isTopBlock(int posX, int posY, int posZ) {
- return worldObj.getBlock(posX, posY + 1, posZ).getMaterial() == Material.air || worldObj.getBlock(posX, posY, posZ) instanceof BlockBush;
- }
-}
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 2 2022-03-10 15:49:30.225
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 0 2022-03-10 15:49:30.226
-!MESSAGE Error in JDT Core during reconcile
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-03-10 15:49:30.235
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.entity;
-
-import java.awt.Color;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.ItemSprawlRod;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockBush;
-import net.minecraft.block.BlockLeaves;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.projectile.EntityThrowable;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.MovingObjectPosition;
-import net.minecraft.world.World;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.item.ItemGrassSeeds;
-
-public class EntitySeed extends EntityThrowable {
-
- public EntitySeed(World world) {
- super(world);
- }
-
- public EntitySeed(World world, EntityPlayer e) {
- super(world, e);
- }
-
- protected void entityInit() {
- super.entityInit();
- this.dataWatcher.addObject(27, new ItemStack(Blocks.air));
- this.dataWatcher.addObject(28, Integer.valueOf(1));
- this.dataWatcher.setObjectWatched(27);
- this.dataWatcher.setObjectWatched(28);
- }
-
- public void onUpdate() {
- super.onUpdate();
- if(ticksExisted >= 240)
- setDead();
- if(this.worldObj.isRemote) {
- float m = 0.02F;
- float f1 = 4.0f / (getRadius() / 20.0f);
- float size = 1.0f + (getRadius() / 12.0f);
- for(int i = 0; i < 5; i++) {
- double posX = this.posX + (Math.random() - 0.5f) / f1;
- double posY = this.posY + (Math.random() - 0.5f) / f1;
- double posZ = this.posZ + (Math.random() - 0.5f) / f1;
- float mx = (float)(Math.random() - 0.5D) * m;
- float my = (float)(Math.random() - 0.5D) * m;
- float mz = (float)(Math.random() - 0.5D) * m;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX, posY, posZ, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float) (0.0625f * size + (Math.random() * 0.12f)), mx, my, mz, 0.5f);
- }
- }
- }
-
- public int getRadius() {
- return this.dataWatcher.getWatchableObjectInt(28);
- }
-
- public void setRadius(int rad) {
- this.dataWatcher.updateObject(28, rad);
- }
-
- public ItemStack getSeed() {
- return this.dataWatcher.getWatchableObjectItemStack(27);
- }
-
- public void setSeed(ItemStack stack) {
- stack.stackSize = 1;
- this.dataWatcher.updateObject(27, stack);
- }
-
- @SideOnly(Side.CLIENT)
- public void setPositionAndRotation2(double x, double y, double z, float help, float me, int please) {}
-
- protected float getGravityVelocity() {
- return 0.025F;
- }
-
- protected void onImpact(MovingObjectPosition mov) {
- Block block = this.worldObj.getBlock(mov.blockX, mov.blockY, mov.blockZ);
- if(block != null && mov.entityHit == null) {
- if(block instanceof BlockBush || block instanceof BlockLeaves)
- return;
- ItemStack seed = getSeed();
- if(seed != null && seed.getItem() instanceof ItemGrassSeeds) {
- Item itemSeed = (ItemGrassSeeds)seed.getItem();
- for(int i = 0; i < getRadius(); i++) {
- for(int k = 0; k < getRadius(); k++) {
- int posX = mov.blockX + i - getRadius() / 2;
- int posY = mov.blockY;
- int posZ = mov.blockZ + k - getRadius() / 2;
- int j = posY;
- if(isTopBlock(posX, posY - 1, posZ))
- j = Math.max(0, j - 20);
- for(; !isTopBlock(posX, j, posZ); j++) {
- if(Math.abs(j - posY) > 40)
- break;
- }
- posY = j;
- if(!worldObj.isRemote)
- itemSeed.onItemUse(seed, null, worldObj, posX, posY, posZ, 0, 0, 0, 0);
- else if(Math.random() < 0.15f)
- spawnGrowParticle(posX, posY, posZ);
- (block == Blocks.dirt || (block == Blocks.grass)
- }
- }
- }
- setDead();
- }
- }
-
- private void spawnGrowParticle(int posX, int posY, int posZ) {
- for (int i = 0; i < 50; i++) {
- double x = (Math.random() - 0.5D) * 3.0D;
- double y = Math.random() - 0.5D + 1.0D;
- double z = (Math.random() - 0.5D) * 3.0D;
- float velMul = 0.025F;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX + 0.5D + x, posY + 0.5D + y, posZ + 0.5D + z, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float)Math.random() * 0.15F + 0.15F, (float)-x * velMul, (float)-y * velMul, (float)-z * velMul);
- }
- }
-
- private boolean isTopBlock(int posX, int posY, int posZ) {
- return worldObj.getBlock(posX, posY + 1, posZ).getMaterial() == Material.air || worldObj.getBlock(posX, posY, posZ) instanceof BlockBush;
- }
-}
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-03-10 15:49:30.236
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-03-10 15:49:30.237
-!MESSAGE Error in JDT Core during AST creation
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-03-10 15:49:33.236
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.entity;
-
-import java.awt.Color;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.ItemSprawlRod;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockBush;
-import net.minecraft.block.BlockLeaves;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.projectile.EntityThrowable;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.MovingObjectPosition;
-import net.minecraft.world.World;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.item.ItemGrassSeeds;
-
-public class EntitySeed extends EntityThrowable {
-
- public EntitySeed(World world) {
- super(world);
- }
-
- public EntitySeed(World world, EntityPlayer e) {
- super(world, e);
- }
-
- protected void entityInit() {
- super.entityInit();
- this.dataWatcher.addObject(27, new ItemStack(Blocks.air));
- this.dataWatcher.addObject(28, Integer.valueOf(1));
- this.dataWatcher.setObjectWatched(27);
- this.dataWatcher.setObjectWatched(28);
- }
-
- public void onUpdate() {
- super.onUpdate();
- if(ticksExisted >= 240)
- setDead();
- if(this.worldObj.isRemote) {
- float m = 0.02F;
- float f1 = 4.0f / (getRadius() / 20.0f);
- float size = 1.0f + (getRadius() / 12.0f);
- for(int i = 0; i < 5; i++) {
- double posX = this.posX + (Math.random() - 0.5f) / f1;
- double posY = this.posY + (Math.random() - 0.5f) / f1;
- double posZ = this.posZ + (Math.random() - 0.5f) / f1;
- float mx = (float)(Math.random() - 0.5D) * m;
- float my = (float)(Math.random() - 0.5D) * m;
- float mz = (float)(Math.random() - 0.5D) * m;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX, posY, posZ, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float) (0.0625f * size + (Math.random() * 0.12f)), mx, my, mz, 0.5f);
- }
- }
- }
-
- public int getRadius() {
- return this.dataWatcher.getWatchableObjectInt(28);
- }
-
- public void setRadius(int rad) {
- this.dataWatcher.updateObject(28, rad);
- }
-
- public ItemStack getSeed() {
- return this.dataWatcher.getWatchableObjectItemStack(27);
- }
-
- public void setSeed(ItemStack stack) {
- stack.stackSize = 1;
- this.dataWatcher.updateObject(27, stack);
- }
-
- @SideOnly(Side.CLIENT)
- public void setPositionAndRotation2(double x, double y, double z, float help, float me, int please) {}
-
- protected float getGravityVelocity() {
- return 0.025F;
- }
-
- protected void onImpact(MovingObjectPosition mov) {
- Block block = this.worldObj.getBlock(mov.blockX, mov.blockY, mov.blockZ);
- if(block != null && mov.entityHit == null) {
- if(block instanceof BlockBush || block instanceof BlockLeaves)
- return;
- ItemStack seed = getSeed();
- if(seed != null && seed.getItem() instanceof ItemGrassSeeds) {
- Item itemSeed = (ItemGrassSeeds)seed.getItem();
- for(int i = 0; i < getRadius(); i++) {
- for(int k = 0; k < getRadius(); k++) {
- int posX = mov.blockX + i - getRadius() / 2;
- int posY = mov.blockY;
- int posZ = mov.blockZ + k - getRadius() / 2;
- int j = posY;
- if(isTopBlock(posX, posY - 1, posZ))
- j = Math.max(0, j - 20);
- for(; !isTopBlock(posX, j, posZ); j++) {
- if(Math.abs(j - posY) > 40)
- break;
- }
- posY = j;
- if(!worldObj.isRemote)
- itemSeed.onItemUse(seed, null, worldObj, posX, posY, posZ, 0, 0, 0, 0);
- else if(Math.random() < 0.15f)
- spawnGrowParticle(posX, posY, posZ);
- (block == Blocks.dirt || (block == Blocks.grass)
- }
- }
- }
- setDead();
- }
- }
-
- private void spawnGrowParticle(int posX, int posY, int posZ) {
- for (int i = 0; i < 50; i++) {
- double x = (Math.random() - 0.5D) * 3.0D;
- double y = Math.random() - 0.5D + 1.0D;
- double z = (Math.random() - 0.5D) * 3.0D;
- float velMul = 0.025F;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX + 0.5D + x, posY + 0.5D + y, posZ + 0.5D + z, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float)Math.random() * 0.15F + 0.15F, (float)-x * velMul, (float)-y * velMul, (float)-z * velMul);
- }
- }
-
- private boolean isTopBlock(int posX, int posY, int posZ) {
- return worldObj.getBlock(posX, posY + 1, posZ).getMaterial() == Material.air || worldObj.getBlock(posX, posY, posZ) instanceof BlockBush;
- }
-}
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 2 2022-03-10 15:49:33.237
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 0 2022-03-10 15:49:33.238
-!MESSAGE Error in JDT Core during reconcile
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-03-10 15:49:33.248
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.entity;
-
-import java.awt.Color;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.ItemSprawlRod;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockBush;
-import net.minecraft.block.BlockLeaves;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.projectile.EntityThrowable;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.MovingObjectPosition;
-import net.minecraft.world.World;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.item.ItemGrassSeeds;
-
-public class EntitySeed extends EntityThrowable {
-
- public EntitySeed(World world) {
- super(world);
- }
-
- public EntitySeed(World world, EntityPlayer e) {
- super(world, e);
- }
-
- protected void entityInit() {
- super.entityInit();
- this.dataWatcher.addObject(27, new ItemStack(Blocks.air));
- this.dataWatcher.addObject(28, Integer.valueOf(1));
- this.dataWatcher.setObjectWatched(27);
- this.dataWatcher.setObjectWatched(28);
- }
-
- public void onUpdate() {
- super.onUpdate();
- if(ticksExisted >= 240)
- setDead();
- if(this.worldObj.isRemote) {
- float m = 0.02F;
- float f1 = 4.0f / (getRadius() / 20.0f);
- float size = 1.0f + (getRadius() / 12.0f);
- for(int i = 0; i < 5; i++) {
- double posX = this.posX + (Math.random() - 0.5f) / f1;
- double posY = this.posY + (Math.random() - 0.5f) / f1;
- double posZ = this.posZ + (Math.random() - 0.5f) / f1;
- float mx = (float)(Math.random() - 0.5D) * m;
- float my = (float)(Math.random() - 0.5D) * m;
- float mz = (float)(Math.random() - 0.5D) * m;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX, posY, posZ, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float) (0.0625f * size + (Math.random() * 0.12f)), mx, my, mz, 0.5f);
- }
- }
- }
-
- public int getRadius() {
- return this.dataWatcher.getWatchableObjectInt(28);
- }
-
- public void setRadius(int rad) {
- this.dataWatcher.updateObject(28, rad);
- }
-
- public ItemStack getSeed() {
- return this.dataWatcher.getWatchableObjectItemStack(27);
- }
-
- public void setSeed(ItemStack stack) {
- stack.stackSize = 1;
- this.dataWatcher.updateObject(27, stack);
- }
-
- @SideOnly(Side.CLIENT)
- public void setPositionAndRotation2(double x, double y, double z, float help, float me, int please) {}
-
- protected float getGravityVelocity() {
- return 0.025F;
- }
-
- protected void onImpact(MovingObjectPosition mov) {
- Block block = this.worldObj.getBlock(mov.blockX, mov.blockY, mov.blockZ);
- if(block != null && mov.entityHit == null) {
- if(block instanceof BlockBush || block instanceof BlockLeaves)
- return;
- ItemStack seed = getSeed();
- if(seed != null && seed.getItem() instanceof ItemGrassSeeds) {
- Item itemSeed = (ItemGrassSeeds)seed.getItem();
- for(int i = 0; i < getRadius(); i++) {
- for(int k = 0; k < getRadius(); k++) {
- int posX = mov.blockX + i - getRadius() / 2;
- int posY = mov.blockY;
- int posZ = mov.blockZ + k - getRadius() / 2;
- int j = posY;
- if(isTopBlock(posX, posY - 1, posZ))
- j = Math.max(0, j - 20);
- for(; !isTopBlock(posX, j, posZ); j++) {
- if(Math.abs(j - posY) > 40)
- break;
- }
- posY = j;
- if(!worldObj.isRemote)
- itemSeed.onItemUse(seed, null, worldObj, posX, posY, posZ, 0, 0, 0, 0);
- else if(Math.random() < 0.15f)
- spawnGrowParticle(posX, posY, posZ);
- (block == Blocks.dirt || (block == Blocks.grass)
- }
- }
- }
- setDead();
- }
- }
-
- private void spawnGrowParticle(int posX, int posY, int posZ) {
- for (int i = 0; i < 50; i++) {
- double x = (Math.random() - 0.5D) * 3.0D;
- double y = Math.random() - 0.5D + 1.0D;
- double z = (Math.random() - 0.5D) * 3.0D;
- float velMul = 0.025F;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX + 0.5D + x, posY + 0.5D + y, posZ + 0.5D + z, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float)Math.random() * 0.15F + 0.15F, (float)-x * velMul, (float)-y * velMul, (float)-z * velMul);
- }
- }
-
- private boolean isTopBlock(int posX, int posY, int posZ) {
- return worldObj.getBlock(posX, posY + 1, posZ).getMaterial() == Material.air || worldObj.getBlock(posX, posY, posZ) instanceof BlockBush;
- }
-}
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.internalGetHoverInfo(NLSStringHover.java:139)
- at org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.getHoverInfo2(NLSStringHover.java:118)
- at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:163)
- at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:130)
- at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:89)
- at org.eclipse.jface.text.TextViewerHoverManager$1.run(TextViewerHoverManager.java:155)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-03-10 15:49:33.250
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.internalGetHoverInfo(NLSStringHover.java:139)
- at org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.getHoverInfo2(NLSStringHover.java:118)
- at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:163)
- at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:130)
- at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:89)
- at org.eclipse.jface.text.TextViewerHoverManager$1.run(TextViewerHoverManager.java:155)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-03-10 15:49:33.251
-!MESSAGE Error in JDT Core during AST creation
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.internalGetHoverInfo(NLSStringHover.java:139)
- at org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.getHoverInfo2(NLSStringHover.java:118)
- at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:163)
- at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:130)
- at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:89)
- at org.eclipse.jface.text.TextViewerHoverManager$1.run(TextViewerHoverManager.java:155)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-03-10 15:49:33.259
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.entity;
-
-import java.awt.Color;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.ItemSprawlRod;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockBush;
-import net.minecraft.block.BlockLeaves;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.projectile.EntityThrowable;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.MovingObjectPosition;
-import net.minecraft.world.World;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.item.ItemGrassSeeds;
-
-public class EntitySeed extends EntityThrowable {
-
- public EntitySeed(World world) {
- super(world);
- }
-
- public EntitySeed(World world, EntityPlayer e) {
- super(world, e);
- }
-
- protected void entityInit() {
- super.entityInit();
- this.dataWatcher.addObject(27, new ItemStack(Blocks.air));
- this.dataWatcher.addObject(28, Integer.valueOf(1));
- this.dataWatcher.setObjectWatched(27);
- this.dataWatcher.setObjectWatched(28);
- }
-
- public void onUpdate() {
- super.onUpdate();
- if(ticksExisted >= 240)
- setDead();
- if(this.worldObj.isRemote) {
- float m = 0.02F;
- float f1 = 4.0f / (getRadius() / 20.0f);
- float size = 1.0f + (getRadius() / 12.0f);
- for(int i = 0; i < 5; i++) {
- double posX = this.posX + (Math.random() - 0.5f) / f1;
- double posY = this.posY + (Math.random() - 0.5f) / f1;
- double posZ = this.posZ + (Math.random() - 0.5f) / f1;
- float mx = (float)(Math.random() - 0.5D) * m;
- float my = (float)(Math.random() - 0.5D) * m;
- float mz = (float)(Math.random() - 0.5D) * m;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX, posY, posZ, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float) (0.0625f * size + (Math.random() * 0.12f)), mx, my, mz, 0.5f);
- }
- }
- }
-
- public int getRadius() {
- return this.dataWatcher.getWatchableObjectInt(28);
- }
-
- public void setRadius(int rad) {
- this.dataWatcher.updateObject(28, rad);
- }
-
- public ItemStack getSeed() {
- return this.dataWatcher.getWatchableObjectItemStack(27);
- }
-
- public void setSeed(ItemStack stack) {
- stack.stackSize = 1;
- this.dataWatcher.updateObject(27, stack);
- }
-
- @SideOnly(Side.CLIENT)
- public void setPositionAndRotation2(double x, double y, double z, float help, float me, int please) {}
-
- protected float getGravityVelocity() {
- return 0.025F;
- }
-
- protected void onImpact(MovingObjectPosition mov) {
- Block block = this.worldObj.getBlock(mov.blockX, mov.blockY, mov.blockZ);
- if(block != null && mov.entityHit == null) {
- if(block instanceof BlockBush || block instanceof BlockLeaves)
- return;
- ItemStack seed = getSeed();
- if(seed != null && seed.getItem() instanceof ItemGrassSeeds) {
- Item itemSeed = (ItemGrassSeeds)seed.getItem();
- for(int i = 0; i < getRadius(); i++) {
- for(int k = 0; k < getRadius(); k++) {
- int posX = mov.blockX + i - getRadius() / 2;
- int posY = mov.blockY;
- int posZ = mov.blockZ + k - getRadius() / 2;
- int j = posY;
- if(isTopBlock(posX, posY - 1, posZ))
- j = Math.max(0, j - 20);
- for(; !isTopBlock(posX, j, posZ); j++) {
- if(Math.abs(j - posY) > 40)
- break;
- }
- posY = j;
- if(!worldObj.isRemote)
- itemSeed.onItemUse(seed, null, worldObj, posX, posY, posZ, 0, 0, 0, 0);
- else if(Math.random() < 0.15f)
- spawnGrowParticle(posX, posY, posZ);
- (block == Blocks.dirt || (block == Blocks.grass)
- }
- }
- }
- setDead();
- }
- }
-
- private void spawnGrowParticle(int posX, int posY, int posZ) {
- for (int i = 0; i < 50; i++) {
- double x = (Math.random() - 0.5D) * 3.0D;
- double y = Math.random() - 0.5D + 1.0D;
- double z = (Math.random() - 0.5D) * 3.0D;
- float velMul = 0.025F;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX + 0.5D + x, posY + 0.5D + y, posZ + 0.5D + z, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float)Math.random() * 0.15F + 0.15F, (float)-x * velMul, (float)-y * velMul, (float)-z * velMul);
- }
- }
-
- private boolean isTopBlock(int posX, int posY, int posZ) {
- return worldObj.getBlock(posX, posY + 1, posZ).getMaterial() == Material.air || worldObj.getBlock(posX, posY, posZ) instanceof BlockBush;
- }
-}
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-03-10 15:49:33.260
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-03-10 15:49:33.261
-!MESSAGE Error in JDT Core during AST creation
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-03-10 15:49:33.980
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.entity;
-
-import java.awt.Color;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.ItemSprawlRod;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockBush;
-import net.minecraft.block.BlockLeaves;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.projectile.EntityThrowable;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.MovingObjectPosition;
-import net.minecraft.world.World;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.item.ItemGrassSeeds;
-
-public class EntitySeed extends EntityThrowable {
-
- public EntitySeed(World world) {
- super(world);
- }
-
- public EntitySeed(World world, EntityPlayer e) {
- super(world, e);
- }
-
- protected void entityInit() {
- super.entityInit();
- this.dataWatcher.addObject(27, new ItemStack(Blocks.air));
- this.dataWatcher.addObject(28, Integer.valueOf(1));
- this.dataWatcher.setObjectWatched(27);
- this.dataWatcher.setObjectWatched(28);
- }
-
- public void onUpdate() {
- super.onUpdate();
- if(ticksExisted >= 240)
- setDead();
- if(this.worldObj.isRemote) {
- float m = 0.02F;
- float f1 = 4.0f / (getRadius() / 20.0f);
- float size = 1.0f + (getRadius() / 12.0f);
- for(int i = 0; i < 5; i++) {
- double posX = this.posX + (Math.random() - 0.5f) / f1;
- double posY = this.posY + (Math.random() - 0.5f) / f1;
- double posZ = this.posZ + (Math.random() - 0.5f) / f1;
- float mx = (float)(Math.random() - 0.5D) * m;
- float my = (float)(Math.random() - 0.5D) * m;
- float mz = (float)(Math.random() - 0.5D) * m;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX, posY, posZ, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float) (0.0625f * size + (Math.random() * 0.12f)), mx, my, mz, 0.5f);
- }
- }
- }
-
- public int getRadius() {
- return this.dataWatcher.getWatchableObjectInt(28);
- }
-
- public void setRadius(int rad) {
- this.dataWatcher.updateObject(28, rad);
- }
-
- public ItemStack getSeed() {
- return this.dataWatcher.getWatchableObjectItemStack(27);
- }
-
- public void setSeed(ItemStack stack) {
- stack.stackSize = 1;
- this.dataWatcher.updateObject(27, stack);
- }
-
- @SideOnly(Side.CLIENT)
- public void setPositionAndRotation2(double x, double y, double z, float help, float me, int please) {}
-
- protected float getGravityVelocity() {
- return 0.025F;
- }
-
- protected void onImpact(MovingObjectPosition mov) {
- Block block = this.worldObj.getBlock(mov.blockX, mov.blockY, mov.blockZ);
- if(block != null && mov.entityHit == null) {
- if(block instanceof BlockBush || block instanceof BlockLeaves)
- return;
- ItemStack seed = getSeed();
- if(seed != null && seed.getItem() instanceof ItemGrassSeeds) {
- Item itemSeed = (ItemGrassSeeds)seed.getItem();
- for(int i = 0; i < getRadius(); i++) {
- for(int k = 0; k < getRadius(); k++) {
- int posX = mov.blockX + i - getRadius() / 2;
- int posY = mov.blockY;
- int posZ = mov.blockZ + k - getRadius() / 2;
- int j = posY;
- if(isTopBlock(posX, posY - 1, posZ))
- j = Math.max(0, j - 20);
- for(; !isTopBlock(posX, j, posZ); j++) {
- if(Math.abs(j - posY) > 40)
- break;
- }
- posY = j;
- if(!worldObj.isRemote)
- itemSeed.onItemUse(seed, null, worldObj, posX, posY, posZ, 0, 0, 0, 0);
- else if(Math.random() < 0.15f)
- spawnGrowParticle(posX, posY, posZ);
- (block == Blocks.dirt || (block == Blocks.grass)
- }
- }
- }
- setDead();
- }
- }
-
- private void spawnGrowParticle(int posX, int posY, int posZ) {
- for (int i = 0; i < 50; i++) {
- double x = (Math.random() - 0.5D) * 3.0D;
- double y = Math.random() - 0.5D + 1.0D;
- double z = (Math.random() - 0.5D) * 3.0D;
- float velMul = 0.025F;
- Color color = ItemSprawlRod.getSeedColor(getSeed());
- Botania.proxy.wispFX(worldObj, posX + 0.5D + x, posY + 0.5D + y, posZ + 0.5D + z, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float)Math.random() * 0.15F + 0.15F, (float)-x * velMul, (float)-y * velMul, (float)-z * velMul);
- }
- }
-
- private boolean isTopBlock(int posX, int posY, int posZ) {
- return worldObj.getBlock(posX, posY + 1, posZ).getMaterial() == Material.air || worldObj.getBlock(posX, posY, posZ) instanceof BlockBush;
- }
-}
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.javaeditor.ClipboardOperationAction.getClipboardData(ClipboardOperationAction.java:479)
- at org.eclipse.jdt.internal.ui.javaeditor.ClipboardOperationAction.doCutCopyWithImportsOperation(ClipboardOperationAction.java:406)
- at org.eclipse.jdt.internal.ui.javaeditor.ClipboardOperationAction.internalDoOperation(ClipboardOperationAction.java:365)
- at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:74)
- at org.eclipse.jdt.internal.ui.javaeditor.ClipboardOperationAction.run(ClipboardOperationAction.java:286)
- at org.eclipse.jface.action.Action.runWithEvent(Action.java:474)
- at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:121)
- at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:97)
- at jdk.internal.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
- at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.base/java.lang.reflect.Method.invoke(Method.java:568)
- at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58)
- at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:317)
- at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:251)
- at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:173)
- at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:156)
- at org.eclipse.core.commands.Command.executeWithChecks(Command.java:488)
- at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:487)
- at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:213)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.executeCommand(KeyBindingDispatcher.java:308)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.press(KeyBindingDispatcher.java:580)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.processKeyEvent(KeyBindingDispatcher.java:647)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.filterKeySequenceBindings(KeyBindingDispatcher.java:439)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher$KeyDownFilter.handleEvent(KeyBindingDispatcher.java:96)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
- at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1280)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1059)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1084)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1069)
- at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1111)
- at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1107)
- at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1536)
- at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:4875)
- at org.eclipse.swt.widgets.Canvas.WM_CHAR(Canvas.java:345)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4753)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:340)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:5002)
- at org.eclipse.swt.internal.win32.OS.DispatchMessage(Native Method)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3630)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1154)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1045)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
- at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:551)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:156)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
- at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
- at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.base/java.lang.reflect.Method.invoke(Method.java:568)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1467)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-03-10 15:49:33.982
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.javaeditor.ClipboardOperationAction.getClipboardData(ClipboardOperationAction.java:479)
- at org.eclipse.jdt.internal.ui.javaeditor.ClipboardOperationAction.doCutCopyWithImportsOperation(ClipboardOperationAction.java:406)
- at org.eclipse.jdt.internal.ui.javaeditor.ClipboardOperationAction.internalDoOperation(ClipboardOperationAction.java:365)
- at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:74)
- at org.eclipse.jdt.internal.ui.javaeditor.ClipboardOperationAction.run(ClipboardOperationAction.java:286)
- at org.eclipse.jface.action.Action.runWithEvent(Action.java:474)
- at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:121)
- at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:97)
- at jdk.internal.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
- at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.base/java.lang.reflect.Method.invoke(Method.java:568)
- at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58)
- at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:317)
- at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:251)
- at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:173)
- at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:156)
- at org.eclipse.core.commands.Command.executeWithChecks(Command.java:488)
- at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:487)
- at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:213)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.executeCommand(KeyBindingDispatcher.java:308)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.press(KeyBindingDispatcher.java:580)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.processKeyEvent(KeyBindingDispatcher.java:647)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.filterKeySequenceBindings(KeyBindingDispatcher.java:439)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher$KeyDownFilter.handleEvent(KeyBindingDispatcher.java:96)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
- at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1280)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1059)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1084)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1069)
- at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1111)
- at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1107)
- at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1536)
- at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:4875)
- at org.eclipse.swt.widgets.Canvas.WM_CHAR(Canvas.java:345)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4753)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:340)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:5002)
- at org.eclipse.swt.internal.win32.OS.DispatchMessage(Native Method)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3630)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1154)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1045)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
- at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:551)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:156)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
- at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
- at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.base/java.lang.reflect.Method.invoke(Method.java:568)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1467)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-03-10 15:49:33.983
-!MESSAGE Error in JDT Core during AST creation
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2693)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2041)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.javaeditor.ClipboardOperationAction.getClipboardData(ClipboardOperationAction.java:479)
- at org.eclipse.jdt.internal.ui.javaeditor.ClipboardOperationAction.doCutCopyWithImportsOperation(ClipboardOperationAction.java:406)
- at org.eclipse.jdt.internal.ui.javaeditor.ClipboardOperationAction.internalDoOperation(ClipboardOperationAction.java:365)
- at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:74)
- at org.eclipse.jdt.internal.ui.javaeditor.ClipboardOperationAction.run(ClipboardOperationAction.java:286)
- at org.eclipse.jface.action.Action.runWithEvent(Action.java:474)
- at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:121)
- at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:97)
- at jdk.internal.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
- at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.base/java.lang.reflect.Method.invoke(Method.java:568)
- at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58)
- at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:317)
- at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:251)
- at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:173)
- at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:156)
- at org.eclipse.core.commands.Command.executeWithChecks(Command.java:488)
- at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:487)
- at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:213)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.executeCommand(KeyBindingDispatcher.java:308)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.press(KeyBindingDispatcher.java:580)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.processKeyEvent(KeyBindingDispatcher.java:647)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.filterKeySequenceBindings(KeyBindingDispatcher.java:439)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher$KeyDownFilter.handleEvent(KeyBindingDispatcher.java:96)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
- at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1280)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1059)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1084)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1069)
- at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1111)
- at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1107)
- at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1536)
- at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:4875)
- at org.eclipse.swt.widgets.Canvas.WM_CHAR(Canvas.java:345)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4753)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:340)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:5002)
- at org.eclipse.swt.internal.win32.OS.DispatchMessage(Native Method)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3630)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1154)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1045)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
- at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:551)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:156)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
- at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
- at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.base/java.lang.reflect.Method.invoke(Method.java:568)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1467)
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-10 15:54:00.633
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-10 15:55:09.360
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-10 15:58:06.195
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-10 15:59:15.867
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-10 16:04:16.723
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-10 16:42:53.445
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-10 16:44:17.706
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-10 16:51:58.371
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-10 17:13:13.967
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-10 17:14:49.444
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-10 17:19:51.584
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-10 17:31:48.122
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-10 17:39:06.117
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-10 17:49:50.551
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-10 18:34:38.911
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-10 18:48:31.115
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-10 18:49:53.068
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 14:26:28.543
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 14:29:41.386
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 14:35:19.476
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 14:38:15.984
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 14:58:59.716
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 15:12:05.804
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 15:17:25.630
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 15:18:37.680
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 15:19:45.309
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 15:44:37.276
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 15:44:53.289
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 15:45:40.419
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 15:46:37.095
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 15:47:23.857
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 15:48:18.965
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 15:51:04.505
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 15:52:50.350
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 15:55:36.867
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 15:56:02.519
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 15:58:14.476
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 15:59:50.972
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 16:01:21.595
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 16:01:45.306
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 16:02:58.750
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 16:03:37.201
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 16:03:51.324
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 16:05:27.701
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 16:05:55.885
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 16:06:10.069
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 16:06:56.399
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 16:07:13.373
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 16:07:35.365
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 16:16:09.704
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 16:16:29.330
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 16:17:43.110
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 16:18:32.088
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 16:18:55.414
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 16:25:09.995
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 16:25:14.748
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 16:31:51.654
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 16:34:13.755
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 17:11:16.224
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 17:53:13.950
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 17:58:34.890
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 17:59:35.986
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 18:01:22.461
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 18:04:52.541
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 18:08:38.674
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 18:12:02.150
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 18:14:07.193
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 18:15:16.780
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 18:19:07.093
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 18:20:20.718
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 18:22:41.489
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 18:52:42.255
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 18:59:59.577
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 19:03:37.692
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 19:04:28.258
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 19:06:14.341
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 19:08:06.372
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 19:08:28.868
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 19:10:10.837
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 19:12:05.091
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 19:16:03.728
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 19:16:43.412
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 19:18:11.514
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 19:19:13.039
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 19:21:12.696
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 19:21:29.523
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 19:24:26.800
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 19:25:59.321
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 19:34:02.680
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 19:35:22.945
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 19:35:56.208
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 19:39:42.708
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 19:40:59.652
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 19:41:10.691
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 19:43:07.917
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 19:43:16.902
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 19:43:54.143
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 19:44:08.258
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 19:48:13.461
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 19:49:08.685
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 19:49:26.068
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 19:49:45.181
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 19:50:05.783
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 19:50:18.204
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 19:57:26.475
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 20:06:26.329
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 20:08:19.568
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 20:11:35.316
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 20:12:44.821
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 20:13:40.650
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 20:14:13.759
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 20:16:16.646
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 20:18:29.138
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 20:20:41.128
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 20:23:26.037
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 20:24:50.466
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 20:29:10.772
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 20:30:27.351
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 20:35:27.051
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 20:35:37.545
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 20:38:01.066
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 20:39:31.026
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 20:40:28.690
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 20:44:28.622
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 20:45:15.078
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 20:46:00.315
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 20:48:05.375
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 20:48:44.826
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 20:49:47.032
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 20:49:58.510
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 20:50:34.650
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 20:51:48.986
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 20:53:24.945
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 20:55:01.177
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 20:58:16.113
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 21:00:24.319
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 21:03:43.323
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 21:04:08.023
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 21:22:08.597
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 21:26:02.522
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-11 21:43:24.207
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!SESSION 2022-03-12 12:22:46.457 -----------------------------------------------
-eclipse.buildId=4.22.0.I20211124-1800
-java.version=17.0.1
-java.vendor=Eclipse Adoptium
-BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=ru_RU
-Framework arguments: -product org.eclipse.epp.package.java.product
-Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
-
-!ENTRY org.eclipse.jface 2 0 2022-03-12 12:23:00.520
-!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
-!SUBENTRY 1 org.eclipse.jface 2 0 2022-03-12 12:23:00.520
-!MESSAGE A conflict occurred for CTRL+SHIFT+T:
-Binding(CTRL+SHIFT+T,
- ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type,
- Open a type in a Java editor,
- Category(org.eclipse.ui.category.navigate,Navigate,null,true),
- org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@24dc150c,
- ,,true),null),
- org.eclipse.ui.defaultAcceleratorConfiguration,
- org.eclipse.ui.contexts.window,,,system)
-Binding(CTRL+SHIFT+T,
- ParameterizedCommand(Command(org.eclipse.lsp4e.symbolinworkspace,Go to Symbol in Workspace,
- ,
- Category(org.eclipse.lsp4e.category,Language Servers,null,true),
- org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@1d2d4d7a,
- ,,true),null),
- org.eclipse.ui.defaultAcceleratorConfiguration,
- org.eclipse.ui.contexts.window,,,system)
-!SUBENTRY 1 org.eclipse.jface 2 0 2022-03-12 12:23:00.520
-!MESSAGE A conflict occurred for ALT+SHIFT+R:
-Binding(ALT+SHIFT+R,
- ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.rename.element,Rename - Refactoring ,
- Rename the selected element,
- Category(org.eclipse.jdt.ui.category.refactoring,Refactor - Java,Java Refactoring Actions,true),
- org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@5e020dd1,
- ,,true),null),
- org.eclipse.ui.defaultAcceleratorConfiguration,
- org.eclipse.ui.contexts.window,,,system)
-Binding(ALT+SHIFT+R,
- ParameterizedCommand(Command(org.eclipse.ui.edit.rename,Rename,
- Rename the selected item,
- Category(org.eclipse.ui.category.file,File,null,true),
- org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@4bbc02ef,
- ,,true),null),
- org.eclipse.ui.defaultAcceleratorConfiguration,
- org.eclipse.ui.contexts.window,,,system)
-
-!ENTRY org.eclipse.egit.ui 2 0 2022-03-12 12:23:08.222
-!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
-user global configuration and to define the default location to store repositories: 'C:\Users\Pulxes'. If this is
-not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
-EGit might behave differently since they see different configuration options.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 12:23:15.281
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 12:26:46.952
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 12:35:59.383
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 12:40:16.422
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 12:44:43.517
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 12:52:05.726
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 12:53:23.310
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 12:54:54.786
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 12:56:30.810
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 13:03:07.310
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 13:15:50.171
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 13:16:21.181
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 13:16:56.651
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 13:18:55.362
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 13:21:35.530
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 13:24:24.562
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 13:24:43.383
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 13:25:16.716
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 13:25:56.920
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 13:26:52.911
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 13:34:59.136
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 13:35:28.414
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 13:35:46.436
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 13:36:21.225
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 13:38:24.885
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 13:38:43.725
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 13:40:22.988
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 13:40:55.025
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 13:41:09.536
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 13:42:00.556
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 13:44:45.074
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 13:46:11.329
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 13:48:25.804
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 13:48:54.641
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 13:50:21.572
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 13:50:53.831
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 13:53:09.906
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 13:53:51.875
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 13:54:36.870
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 13:56:36.406
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 13:58:31.894
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 13:59:30.009
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 13:59:54.744
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 14:02:20.250
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 14:02:28.918
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 14:03:36.136
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 14:07:27.058
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 14:07:44.378
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 14:09:31.032
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 14:09:49.897
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 14:10:50.470
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 14:11:20.318
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 14:18:14.265
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 14:19:23.583
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 14:21:34.781
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 14:21:52.216
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 14:22:27.390
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 14:23:24.556
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 14:23:51.405
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 14:24:08.870
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 14:24:28.608
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 14:31:56.066
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 14:33:55.785
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 15:03:41.949
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 15:06:30.259
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 15:12:55.254
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 15:13:15.946
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 15:13:53.016
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 15:16:52.977
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 15:17:19.915
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 15:18:05.937
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 15:23:14.123
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 15:26:19.557
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 15:29:14.135
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 15:29:36.455
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 15:48:33.976
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 15:49:07.227
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 15:49:37.881
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 15:49:54.358
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 15:51:04.378
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 15:54:19.141
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 16:10:34.568
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 16:13:12.382
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 16:13:22.515
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 16:18:14.343
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 16:20:04.377
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 16:20:38.783
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 16:32:24.449
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 16:32:38.875
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 16:32:57.519
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 16:44:31.034
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 17:05:43.549
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 17:08:22.942
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 17:09:35.387
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 17:28:32.258
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 17:28:50.536
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 17:29:41.058
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 17:30:51.595
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 17:31:58.908
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 17:34:52.041
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 17:38:52.649
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 17:41:46.245
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 17:44:45.185
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 17:45:31.123
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 17:53:17.701
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 17:58:27.197
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 17:59:30.889
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 18:11:53.459
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 18:25:09.535
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 18:28:34.692
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 18:29:17.049
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 18:34:11.741
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 18:40:03.209
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 18:42:32.135
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 18:43:06.478
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 18:44:19.135
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 18:47:34.385
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 18:48:18.156
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 18:50:59.953
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-03-12 18:51:10.153
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.item.equipment;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.AdvancedBotany;
-import ab.client.core.ClientHelper;
-import ab.common.entity.EntityAnonymousSteve;
-import ab.common.item.ItemBlackHalo;
-import ab.common.item.ItemMod;
-import cpw.mods.fml.common.eventhandler.EventPriority;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.entity.AbstractClientPlayer;
-import net.minecraft.client.entity.EntityClientPlayerMP;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.RenderBlocks;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.entity.RenderManager;
-import net.minecraft.client.renderer.texture.TextureMap;
-import net.minecraft.entity.Entity;
-import net.minecraft.entity.EntityLivingBase;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.ItemArmor;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.nbt.NBTTagList;
-import net.minecraft.stats.Achievement;
-import net.minecraft.util.MathHelper;
-import net.minecraft.util.ResourceLocation;
-import net.minecraft.world.World;
-import net.minecraftforge.client.event.RenderWorldLastEvent;
-import net.minecraftforge.common.MinecraftForge;
-import vazkii.botania.api.item.IRelic;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-import vazkii.botania.common.core.helper.ItemNBTHelper;
-import vazkii.botania.common.item.ItemBlackHoleTalisman;
-import vazkii.botania.common.item.relic.ItemRelic;
-
-public class ItemPocketWardrobe extends ItemMod {
-
- protected static final ResourceLocation glowTexture = new ResourceLocation("ab:textures/misc/glow1.png");
- protected static final int segmentCount = 5;
- protected static final int maxSegmentCount = 10;
-
- public ItemPocketWardrobe() {
- this("pocketWardrobe");
- }
-
- public ItemPocketWardrobe(String name) {
- super(name);
- this.setCreativeTab(AdvancedBotany.tabAB);
- this.setMaxStackSize(1);
- MinecraftForge.EVENT_BUS.register(this);
- }
-
- public ItemStack onItemRightClick(ItemStack pocketWardrobe, World world, EntityPlayer player) {
- int segment = getSegmentLookedAt(pocketWardrobe, player);
- if(segment == -1)
- return pocketWardrobe;
- ItemStack[] playerSet = player.inventory.armorInventory;
- player.inventory.armorInventory = getArmorSet(pocketWardrobe, segment);
- setArmorSet(pocketWardrobe, playerSet, segment);
- return pocketWardrobe;
- }
-
- public void onUpdate(ItemStack pocketWardrobe, World world, Entity entity, int pos, boolean equipped) {
- boolean eqLastTick = wasEquipped(pocketWardrobe);
- if(!equipped && eqLastTick)
- setEquipped(pocketWardrobe, equipped);
- if(!eqLastTick && equipped && entity instanceof EntityLivingBase) {
- setEquipped(pocketWardrobe, equipped);
- int angles = 360;
- int segAngles = angles / maxSegmentCount;
- // segAngles *= segmentCount;
- float shift = (segAngles / 2);
- setRotationBase(pocketWardrobe, getCheckingAngle((EntityLivingBase)entity) - shift - ((segmentCount * 5.0f)=));
- }
- }
-
- public void setArmorSet(ItemStack pocketWardrobe, ItemStack[] armorSet, int segment) {
- NBTTagList nbtList = new NBTTagList();
- int i = -1;
- for(ItemStack armor : armorSet) {
- i++;
- if(armor == null)
- continue;
- NBTTagCompound cmp = new NBTTagCompound();
- cmp.setByte("slot", (byte)i);
- armor.copy().writeToNBT(cmp);
- nbtList.appendTag(cmp);
- }
- ItemNBTHelper.setList(pocketWardrobe, "armorSet" + segment, nbtList);
- }
-
- public static ItemStack[] getArmorSet(ItemStack pocketWardrobe, int segment) {
- if(segment >= segmentCount)
- return null;
- ItemStack[] armorSet = new ItemStack[4];
- NBTTagList nbtList = ItemNBTHelper.getList(pocketWardrobe, "armorSet" + segment, 10, false);
- for(int i = 0; i < nbtList.tagCount(); i++) {
- NBTTagCompound cmp = nbtList.getCompoundTagAt(i);
- byte slotCount = cmp.getByte("slot");
- if(slotCount >= 0 && slotCount <= segmentCount)
- armorSet[slotCount] = ItemStack.loadItemStackFromNBT(cmp);
- }
- return armorSet;
- }
-
- protected ResourceLocation getGlowTexture(ItemStack stack, int segment) {
- return glowTexture;
- }
-
- @SideOnly(Side.CLIENT)
- @SubscribeEvent
- public void onRenderWorldLast(RenderWorldLastEvent event) {
- EntityClientPlayerMP entityClientPlayerMP = (Minecraft.getMinecraft()).thePlayer;
- ItemStack stack = entityClientPlayerMP.getCurrentEquippedItem();
- if(stack != null && stack.getItem() instanceof ItemPocketWardrobe)
- render(stack, (EntityPlayer)entityClientPlayerMP, event.partialTicks);
- }
-
- @SideOnly(Side.CLIENT)
- public void render(ItemStack stack, EntityPlayer player, float partialTicks) {
- Minecraft mc = Minecraft.getMinecraft();
- Tessellator tess = Tessellator.instance;
- Tessellator.renderingWorldRenderer = false;
- GL11.glPushMatrix();
- float alpha = ((float)Math.sin(((ClientTickHandler.ticksInGame + partialTicks) * 0.2F)) * 0.5F + 0.5F) * 0.4F + 0.3F;
- double posX = player.prevPosX + (player.posX - player.prevPosX) * partialTicks;
- double posY = player.prevPosY + (player.posY - player.prevPosY) * partialTicks;
- double posZ = player.prevPosZ + (player.posZ - player.prevPosZ) * partialTicks;
- GL11.glTranslated(posX - RenderManager.renderPosX, posY - RenderManager.renderPosY, posZ - RenderManager.renderPosZ);
- float base = getRotationBase(stack);
- int angles = 360;
- int segAngles = angles / maxSegmentCount;
- float shift = base - (segAngles / 2);
- float u = 1.0F;
- float v = 0.25F;
- float s = 3.0F;
- float m = 0.8F;
- float y = v * s * 2.0F;
- float y0 = 0.0F;
- int segmentLookedAt = getSegmentLookedAt(stack, (EntityLivingBase)player);
- for(int seg = 0; seg < segmentCount; seg++) {
- ClientHelper.setLightmapTextureCoords();
- float rotationAngle = (seg + 0.5F) * segAngles + shift;
- GL11.glPushMatrix();
- GL11.glDisable(GL11.GL_LIGHTING);
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- GL11.glRotatef(180.0F, 1.0F, 0.0F, 0.0F);
- GL11.glDisable(GL11.GL_CULL_FACE);
- float a = alpha;
- if(segmentLookedAt == seg) {
- a += 0.3F;
- y0 = -y;
- }
- if(seg % 2 == 0) {
- GL11.glColor4f(0.6F, 0.6F, 0.6F, a);
- } else {
- GL11.glColor4f(1.0F, 1.0F, 1.0F, a);
- }
- ItemPocketWardrobe item = (ItemPocketWardrobe)stack.getItem();
- mc.renderEngine.bindTexture(item.getGlowTexture(stack, seg));
- tess.startDrawingQuads();
- for(int i = 0; i < segAngles; i++) {
- float ang = (i + seg * segAngles) + shift;
- double xp = Math.cos(ang * Math.PI / 180.0D) * s;
- double zp = Math.sin(ang * Math.PI / 180.0D) * s;
- tess.addVertexWithUV(xp * m, y, zp * m, u, v);
- tess.addVertexWithUV(xp, y0, zp, u, 0.0D);
- xp = Math.cos((ang + 1.0F) * Math.PI / 180.0D) * s;
- zp = Math.sin((ang + 1.0F) * Math.PI / 180.0D) * s;
- tess.addVertexWithUV(xp, y0, zp, 0.0D, 0.0D);
- tess.addVertexWithUV(xp * m, y, zp * m, 0.0D, v);
- }
- y0 = 0.0F;
- tess.draw();
- GL11.glPopMatrix();
- AbstractClientPlayer steve = new EntityAnonymousSteve(player.worldObj);
- steve.inventory.armorInventory = getArmorSet(stack, seg);
- boolean hasArmor = false;
- for(int l = 0; l < steve.inventory.armorInventory.length; l++)
- if(steve.inventory.armorItemInSlot(l) != null) {
- hasArmor = true;
- break;
- }
- if(hasArmor) {
- GL11.glPushMatrix();
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- GL11.glRotatef(rotationAngle, 0.0F, 1.0F, 0.0F);
- GL11.glTranslatef(s * m, -0.75F, 0.0F);
- float scale = 0.6F;
- GL11.glRotatef(-90.0f, 0.0f, 1.0f, 0.0f);
- GL11.glTranslatef(0.0f, 0.8125f, 0.0f);
- GL11.glScalef(scale, scale, scale);
- steve.setPositionAndRotation(player.posX, player.posY, player.posZ, 0.0f, 10.0f);
- RenderManager.instance.renderEntityWithPosYaw(steve, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f);
- Minecraft.getMinecraft().entityRenderer.disableLightmap(partialTicks);
- GL11.glPopMatrix();
- }
- ClientHelper.setLightmapTextureCoords();
- GL11.glEnable(GL11.GL_CULL_FACE);
- GL11.glDisable(3042);
- }
- GL11.glPopMatrix();
- }
-
- protected static int getSegmentLookedAt(ItemStack stack, EntityLivingBase player) {
- float yaw = getCheckingAngle(player, getRotationBase(stack));
- System.out.println(yaw);
- int angles = 360;
- int segAngles = angles / maxSegmentCount;
- for(int seg = 0; seg < segmentCount; seg++) {
- float calcAngle = seg * segAngles;
- if(yaw >= calcAngle && yaw < calcAngle + segAngles)
- return seg;
- }
- return -1;
- }
-
- protected static float getCheckingAngle(EntityLivingBase player, float base) {
- float yaw = MathHelper.wrapAngleTo180_float(player.rotationYaw) + 90.0F;
- int angles = 360;
- int segAngles = angles / maxSegmentCount;
- float shift = (segAngles / 2);
- if(yaw < 0.0F)
- yaw = 180.0F + 180.0F + yaw;
- yaw -= 360.0F - base;
- float angle = 360.0F - yaw + shift;
- if(angle < 0.0F)
- angle = 360.0F + angle;
- return angle;
- }
-
- protected static float getCheckingAngle(EntityLivingBase player) {
- return getCheckingAngle(player, 0.0F);
- }
-
- public static void setEquipped(ItemStack stack, boolean equipped) {
- ItemNBTHelper.setBoolean(stack, "equipped", equipped);
- }
-
- public static boolean wasEquipped(ItemStack stack) {
- return ItemNBTHelper.getBoolean(stack, "equipped", false);
- }
-
- public static void setRotationBase(ItemStack stack, float rotation) {
- ItemNBTHelper.setFloat(stack, "rotationBase", rotation);
- }
-
- public static float getRotationBase(ItemStack stack) {
- return ItemNBTHelper.getFloat(stack, "rotationBase", 0.0F);
- }
-}
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1292)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2477)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2059)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 2 2022-03-12 18:51:10.157
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1292)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2477)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2059)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 0 2022-03-12 18:51:10.158
-!MESSAGE Error in JDT Core during reconcile
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1292)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2477)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2059)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-03-12 18:51:10.173
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.item.equipment;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.AdvancedBotany;
-import ab.client.core.ClientHelper;
-import ab.common.entity.EntityAnonymousSteve;
-import ab.common.item.ItemBlackHalo;
-import ab.common.item.ItemMod;
-import cpw.mods.fml.common.eventhandler.EventPriority;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.entity.AbstractClientPlayer;
-import net.minecraft.client.entity.EntityClientPlayerMP;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.RenderBlocks;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.entity.RenderManager;
-import net.minecraft.client.renderer.texture.TextureMap;
-import net.minecraft.entity.Entity;
-import net.minecraft.entity.EntityLivingBase;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.ItemArmor;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.nbt.NBTTagList;
-import net.minecraft.stats.Achievement;
-import net.minecraft.util.MathHelper;
-import net.minecraft.util.ResourceLocation;
-import net.minecraft.world.World;
-import net.minecraftforge.client.event.RenderWorldLastEvent;
-import net.minecraftforge.common.MinecraftForge;
-import vazkii.botania.api.item.IRelic;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-import vazkii.botania.common.core.helper.ItemNBTHelper;
-import vazkii.botania.common.item.ItemBlackHoleTalisman;
-import vazkii.botania.common.item.relic.ItemRelic;
-
-public class ItemPocketWardrobe extends ItemMod {
-
- protected static final ResourceLocation glowTexture = new ResourceLocation("ab:textures/misc/glow1.png");
- protected static final int segmentCount = 5;
- protected static final int maxSegmentCount = 10;
-
- public ItemPocketWardrobe() {
- this("pocketWardrobe");
- }
-
- public ItemPocketWardrobe(String name) {
- super(name);
- this.setCreativeTab(AdvancedBotany.tabAB);
- this.setMaxStackSize(1);
- MinecraftForge.EVENT_BUS.register(this);
- }
-
- public ItemStack onItemRightClick(ItemStack pocketWardrobe, World world, EntityPlayer player) {
- int segment = getSegmentLookedAt(pocketWardrobe, player);
- if(segment == -1)
- return pocketWardrobe;
- ItemStack[] playerSet = player.inventory.armorInventory;
- player.inventory.armorInventory = getArmorSet(pocketWardrobe, segment);
- setArmorSet(pocketWardrobe, playerSet, segment);
- return pocketWardrobe;
- }
-
- public void onUpdate(ItemStack pocketWardrobe, World world, Entity entity, int pos, boolean equipped) {
- boolean eqLastTick = wasEquipped(pocketWardrobe);
- if(!equipped && eqLastTick)
- setEquipped(pocketWardrobe, equipped);
- if(!eqLastTick && equipped && entity instanceof EntityLivingBase) {
- setEquipped(pocketWardrobe, equipped);
- int angles = 360;
- int segAngles = angles / maxSegmentCount;
- // segAngles *= segmentCount;
- float shift = (segAngles / 2);
- setRotationBase(pocketWardrobe, getCheckingAngle((EntityLivingBase)entity) - shift - ((segmentCount * 5.0f)=));
- }
- }
-
- public void setArmorSet(ItemStack pocketWardrobe, ItemStack[] armorSet, int segment) {
- NBTTagList nbtList = new NBTTagList();
- int i = -1;
- for(ItemStack armor : armorSet) {
- i++;
- if(armor == null)
- continue;
- NBTTagCompound cmp = new NBTTagCompound();
- cmp.setByte("slot", (byte)i);
- armor.copy().writeToNBT(cmp);
- nbtList.appendTag(cmp);
- }
- ItemNBTHelper.setList(pocketWardrobe, "armorSet" + segment, nbtList);
- }
-
- public static ItemStack[] getArmorSet(ItemStack pocketWardrobe, int segment) {
- if(segment >= segmentCount)
- return null;
- ItemStack[] armorSet = new ItemStack[4];
- NBTTagList nbtList = ItemNBTHelper.getList(pocketWardrobe, "armorSet" + segment, 10, false);
- for(int i = 0; i < nbtList.tagCount(); i++) {
- NBTTagCompound cmp = nbtList.getCompoundTagAt(i);
- byte slotCount = cmp.getByte("slot");
- if(slotCount >= 0 && slotCount <= segmentCount)
- armorSet[slotCount] = ItemStack.loadItemStackFromNBT(cmp);
- }
- return armorSet;
- }
-
- protected ResourceLocation getGlowTexture(ItemStack stack, int segment) {
- return glowTexture;
- }
-
- @SideOnly(Side.CLIENT)
- @SubscribeEvent
- public void onRenderWorldLast(RenderWorldLastEvent event) {
- EntityClientPlayerMP entityClientPlayerMP = (Minecraft.getMinecraft()).thePlayer;
- ItemStack stack = entityClientPlayerMP.getCurrentEquippedItem();
- if(stack != null && stack.getItem() instanceof ItemPocketWardrobe)
- render(stack, (EntityPlayer)entityClientPlayerMP, event.partialTicks);
- }
-
- @SideOnly(Side.CLIENT)
- public void render(ItemStack stack, EntityPlayer player, float partialTicks) {
- Minecraft mc = Minecraft.getMinecraft();
- Tessellator tess = Tessellator.instance;
- Tessellator.renderingWorldRenderer = false;
- GL11.glPushMatrix();
- float alpha = ((float)Math.sin(((ClientTickHandler.ticksInGame + partialTicks) * 0.2F)) * 0.5F + 0.5F) * 0.4F + 0.3F;
- double posX = player.prevPosX + (player.posX - player.prevPosX) * partialTicks;
- double posY = player.prevPosY + (player.posY - player.prevPosY) * partialTicks;
- double posZ = player.prevPosZ + (player.posZ - player.prevPosZ) * partialTicks;
- GL11.glTranslated(posX - RenderManager.renderPosX, posY - RenderManager.renderPosY, posZ - RenderManager.renderPosZ);
- float base = getRotationBase(stack);
- int angles = 360;
- int segAngles = angles / maxSegmentCount;
- float shift = base - (segAngles / 2);
- float u = 1.0F;
- float v = 0.25F;
- float s = 3.0F;
- float m = 0.8F;
- float y = v * s * 2.0F;
- float y0 = 0.0F;
- int segmentLookedAt = getSegmentLookedAt(stack, (EntityLivingBase)player);
- for(int seg = 0; seg < segmentCount; seg++) {
- ClientHelper.setLightmapTextureCoords();
- float rotationAngle = (seg + 0.5F) * segAngles + shift;
- GL11.glPushMatrix();
- GL11.glDisable(GL11.GL_LIGHTING);
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- GL11.glRotatef(180.0F, 1.0F, 0.0F, 0.0F);
- GL11.glDisable(GL11.GL_CULL_FACE);
- float a = alpha;
- if(segmentLookedAt == seg) {
- a += 0.3F;
- y0 = -y;
- }
- if(seg % 2 == 0) {
- GL11.glColor4f(0.6F, 0.6F, 0.6F, a);
- } else {
- GL11.glColor4f(1.0F, 1.0F, 1.0F, a);
- }
- ItemPocketWardrobe item = (ItemPocketWardrobe)stack.getItem();
- mc.renderEngine.bindTexture(item.getGlowTexture(stack, seg));
- tess.startDrawingQuads();
- for(int i = 0; i < segAngles; i++) {
- float ang = (i + seg * segAngles) + shift;
- double xp = Math.cos(ang * Math.PI / 180.0D) * s;
- double zp = Math.sin(ang * Math.PI / 180.0D) * s;
- tess.addVertexWithUV(xp * m, y, zp * m, u, v);
- tess.addVertexWithUV(xp, y0, zp, u, 0.0D);
- xp = Math.cos((ang + 1.0F) * Math.PI / 180.0D) * s;
- zp = Math.sin((ang + 1.0F) * Math.PI / 180.0D) * s;
- tess.addVertexWithUV(xp, y0, zp, 0.0D, 0.0D);
- tess.addVertexWithUV(xp * m, y, zp * m, 0.0D, v);
- }
- y0 = 0.0F;
- tess.draw();
- GL11.glPopMatrix();
- AbstractClientPlayer steve = new EntityAnonymousSteve(player.worldObj);
- steve.inventory.armorInventory = getArmorSet(stack, seg);
- boolean hasArmor = false;
- for(int l = 0; l < steve.inventory.armorInventory.length; l++)
- if(steve.inventory.armorItemInSlot(l) != null) {
- hasArmor = true;
- break;
- }
- if(hasArmor) {
- GL11.glPushMatrix();
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- GL11.glRotatef(rotationAngle, 0.0F, 1.0F, 0.0F);
- GL11.glTranslatef(s * m, -0.75F, 0.0F);
- float scale = 0.6F;
- GL11.glRotatef(-90.0f, 0.0f, 1.0f, 0.0f);
- GL11.glTranslatef(0.0f, 0.8125f, 0.0f);
- GL11.glScalef(scale, scale, scale);
- steve.setPositionAndRotation(player.posX, player.posY, player.posZ, 0.0f, 10.0f);
- RenderManager.instance.renderEntityWithPosYaw(steve, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f);
- Minecraft.getMinecraft().entityRenderer.disableLightmap(partialTicks);
- GL11.glPopMatrix();
- }
- ClientHelper.setLightmapTextureCoords();
- GL11.glEnable(GL11.GL_CULL_FACE);
- GL11.glDisable(3042);
- }
- GL11.glPopMatrix();
- }
-
- protected static int getSegmentLookedAt(ItemStack stack, EntityLivingBase player) {
- float yaw = getCheckingAngle(player, getRotationBase(stack));
- System.out.println(yaw);
- int angles = 360;
- int segAngles = angles / maxSegmentCount;
- for(int seg = 0; seg < segmentCount; seg++) {
- float calcAngle = seg * segAngles;
- if(yaw >= calcAngle && yaw < calcAngle + segAngles)
- return seg;
- }
- return -1;
- }
-
- protected static float getCheckingAngle(EntityLivingBase player, float base) {
- float yaw = MathHelper.wrapAngleTo180_float(player.rotationYaw) + 90.0F;
- int angles = 360;
- int segAngles = angles / maxSegmentCount;
- float shift = (segAngles / 2);
- if(yaw < 0.0F)
- yaw = 180.0F + 180.0F + yaw;
- yaw -= 360.0F - base;
- float angle = 360.0F - yaw + shift;
- if(angle < 0.0F)
- angle = 360.0F + angle;
- return angle;
- }
-
- protected static float getCheckingAngle(EntityLivingBase player) {
- return getCheckingAngle(player, 0.0F);
- }
-
- public static void setEquipped(ItemStack stack, boolean equipped) {
- ItemNBTHelper.setBoolean(stack, "equipped", equipped);
- }
-
- public static boolean wasEquipped(ItemStack stack) {
- return ItemNBTHelper.getBoolean(stack, "equipped", false);
- }
-
- public static void setRotationBase(ItemStack stack, float rotation) {
- ItemNBTHelper.setFloat(stack, "rotationBase", rotation);
- }
-
- public static float getRotationBase(ItemStack stack) {
- return ItemNBTHelper.getFloat(stack, "rotationBase", 0.0F);
- }
-}
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1292)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2477)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2059)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-03-12 18:51:10.175
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1292)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2477)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2059)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-03-12 18:51:10.177
+!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-03-30 13:30:04.958
!MESSAGE Error in JDT Core during AST creation
!STACK 0
java.lang.IllegalArgumentException
@@ -9686,17 +20,31 @@ java.lang.IllegalArgumentException
at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1292)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2477)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2059)
at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
@@ -9714,2373 +62,25 @@ java.lang.IllegalArgumentException
at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 18:51:31.785
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 13:32:40.115
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 18:51:43.415
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 13:38:41.026
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 18:52:03.711
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 13:43:59.616
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 18:52:20.280
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 13:50:41.941
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 18:53:44.534
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 13:57:49.441
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 18:54:16.961
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 14:00:01.708
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 18:56:39.233
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 18:57:38.935
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 19:02:11.564
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 19:04:43.158
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 19:05:24.637
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 19:05:39.717
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 19:05:59.028
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 19:07:08.302
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 19:10:18.564
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 19:10:45.076
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 19:12:30.980
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-03-12 19:15:06.831
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.item.equipment;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.AdvancedBotany;
-import ab.client.core.ClientHelper;
-import ab.common.entity.EntityAnonymousSteve;
-import ab.common.item.ItemBlackHalo;
-import ab.common.item.ItemMod;
-import cpw.mods.fml.common.eventhandler.EventPriority;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.entity.AbstractClientPlayer;
-import net.minecraft.client.entity.EntityClientPlayerMP;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.RenderBlocks;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.entity.RenderManager;
-import net.minecraft.client.renderer.texture.TextureMap;
-import net.minecraft.entity.Entity;
-import net.minecraft.entity.EntityLivingBase;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.ItemArmor;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.nbt.NBTTagList;
-import net.minecraft.stats.Achievement;
-import net.minecraft.util.MathHelper;
-import net.minecraft.util.ResourceLocation;
-import net.minecraft.world.World;
-import net.minecraftforge.client.event.RenderWorldLastEvent;
-import net.minecraftforge.common.MinecraftForge;
-import vazkii.botania.api.item.IRelic;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-import vazkii.botania.common.core.helper.ItemNBTHelper;
-import vazkii.botania.common.item.ItemBlackHoleTalisman;
-import vazkii.botania.common.item.relic.ItemRelic;
-
-public class ItemPocketWardrobe extends ItemMod {
-
- protected static final ResourceLocation glowTexture = new ResourceLocation("ab:textures/misc/glow1.png");
- protected static final int segmentCount = 5;
- protected static final int maxSegmentCount = 10;
-
- public ItemPocketWardrobe() {
- this("pocketWardrobe");
- }
-
- public ItemPocketWardrobe(String name) {
- super(name);
- this.setCreativeTab(AdvancedBotany.tabAB);
- this.setMaxStackSize(1);
- MinecraftForge.EVENT_BUS.register(this);
- }
-
- public ItemStack onItemRightClick(ItemStack pocketWardrobe, World world, EntityPlayer player) {
- int segment = getSegmentLookedAt(pocketWardrobe, player);
- if(segment == -1)
- return pocketWardrobe;
- ItemStack[] playerSet = player.inventory.armorInventory;
- player.inventory.armorInventory = getArmorSet(pocketWardrobe, segment);
- setArmorSet(pocketWardrobe, playerSet, segment);
- return pocketWardrobe;
- }
-
- public void onUpdate(ItemStack pocketWardrobe, World world, Entity entity, int pos, boolean equipped) {
- boolean eqLastTick = wasEquipped(pocketWardrobe);
- if(!equipped && eqLastTick)
- setEquipped(pocketWardrobe, equipped);
- if(!eqLastTick && equipped && entity instanceof EntityLivingBase) {
- setEquipped(pocketWardrobe, equipped);
- int angles = 360;
- int segAngles = angles / maxSegmentCount;
- // segAngles *= segmentCount;
- float shift = (segAngles / 2);
- System.out.println(getCheckingAngle((EntityLivingBase)entity));
- setRotationBase(pocketWardrobe, getCheckingAngle((EntityLivingBase)entity) - (shift * segmentCount));
- }
- }
-
- public void setArmorSet(ItemStack pocketWardrobe, ItemStack[] armorSet, int segment) {
- NBTTagList nbtList = new NBTTagList();
- int i = -1;
- for(ItemStack armor : armorSet) {
- i++;
- if(armor == null)
- continue;
- NBTTagCompound cmp = new NBTTagCompound();
- cmp.setByte("slot", (byte)i);
- armor.copy().writeToNBT(cmp);
- nbtList.appendTag(cmp);
- }
- ItemNBTHelper.setList(pocketWardrobe, "armorSet" + segment, nbtList);
- }
-
- public static ItemStack[] getArmorSet(ItemStack pocketWardrobe, int segment) {
- if(segment >= segmentCount)
- return null;
- ItemStack[] armorSet = new ItemStack[4];
- NBTTagList nbtList = ItemNBTHelper.getList(pocketWardrobe, "armorSet" + segment, 10, false);
- for(int i = 0; i < nbtList.tagCount(); i++) {
- NBTTagCompound cmp = nbtList.getCompoundTagAt(i);
- byte slotCount = cmp.getByte("slot");
- if(slotCount >= 0 && slotCount <= segmentCount)
- armorSet[slotCount] = ItemStack.loadItemStackFromNBT(cmp);
- }
- return armorSet;
- }
-
- protected ResourceLocation getGlowTexture(ItemStack stack, int segment) {
- return glowTexture;
- }
-
- @SideOnly(Side.CLIENT)
- @SubscribeEvent
- public void onRenderWorldLast(RenderWorldLastEvent event) {
- EntityClientPlayerMP entityClientPlayerMP = (Minecraft.getMinecraft()).thePlayer;
- ItemStack stack = entityClientPlayerMP.getCurrentEquippedItem();
- if(stack != null && stack.getItem() instanceof ItemPocketWardrobe)
- render(stack, (EntityPlayer)entityClientPlayerMP, event.partialTicks);
- }
-
- @SideOnly(Side.CLIENT)
- public void render(ItemStack stack, EntityPlayer player, float partialTicks) {
- Minecraft mc = Minecraft.getMinecraft();
- Tessellator tess = Tessellator.instance;
- Tessellator.renderingWorldRenderer = false;
- GL11.glPushMatrix();
- float alpha = ((float)Math.sin(((ClientTickHandler.ticksInGame + partialTicks) * 0.2F)) * 0.5F + 0.5F) * 0.4F + 0.3F;
- double posX = player.prevPosX + (player.posX - player.prevPosX) * partialTicks;
- double posY = player.prevPosY + (player.posY - player.prevPosY) * partialTicks;
- double posZ = player.prevPosZ + (player.posZ - player.prevPosZ) * partialTicks;
- GL11.glTranslated(posX - RenderManager.renderPosX, posY - RenderManager.renderPosY, posZ - RenderManager.renderPosZ);
- float base = getRotationBase(stack);
- int angles = 360;
- int segAngles = angles / maxSegmentCount;
- float shift = base - (segAngles / 2);
- float u = 1.0F;
- float v = 0.25F;
- float s = 3.0F;
- float m = 0.8F;
- float y = v * s * 2.0F;
- float y0 = 0.0F;
- int segmentLookedAt = getSegmentLookedAt(stack, (EntityLivingBase)player);
- for(int seg = 0; seg < segmentCount; seg++) {
- ClientHelper.setLightmapTextureCoords();
- float rotationAngle = (seg + 0.5F) * segAngles + shift;
- GL11.glPushMatrix();
- GL11.glDisable(GL11.GL_LIGHTING);
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- GL11.glRotatef(180.0F, 1.0F, 0.0F, 0.0F);
- GL11.glDisable(GL11.GL_CULL_FACE);
- float a = alpha;
- if(segmentLookedAt == seg) {
- a += 0.3F;
- y0 = -y;
- }
- if(seg % 2 == 0) {
- GL11.glColor4f(0.6F, 0.6F, 0.6F, a);
- } else {
- GL11.glColor4f(1.0F, 1.0F, 1.0F, a);
- }
- ItemPocketWardrobe item = (ItemPocketWardrobe)stack.getItem();
- mc.renderEngine.bindTexture(item.getGlowTexture(stack, seg));
- tess.startDrawingQuads();
- for(int i = 0; i < segAngles; i++) {
- float ang = (i + seg * segAngles) + shift;
- double xp = Math.cos(ang * Math.PI / 180.0D) * s;
- double zp = Math.sin(ang * Math.PI / 180.0D) * s;
- tess.addVertexWithUV(xp * m, y, zp * m, u, v);
- tess.addVertexWithUV(xp, y0, zp, u, 0.0D);
- xp = Math.cos((ang + 1.0F) * Math.PI / 180.0D) * s;
- zp = Math.sin((ang + 1.0F) * Math.PI / 180.0D) * s;
- tess.addVertexWithUV(xp, y0, zp, 0.0D, 0.0D);
- tess.addVertexWithUV(xp * m, y, zp * m, 0.0D, v);
- }
- y0 = 0.0F;
- tess.draw();
- GL11.glPopMatrix();
- AbstractClientPlayer steve = new EntityAnonymousSteve(player.worldObj);
- steve.inventory.armorInventory = getArmorSet(stack, seg);
- boolean hasArmor = false;
- for(int l = 0; l < steve.inventory.armorInventory.length; l++)
- if(steve.inventory.armorItemInSlot(l) != null) {
- hasArmor = true;
- break;
- }
- if(hasArmor) {
- GL11.glPushMatrix();
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- GL11.glRotatef(rotationAngle, 0.0F, 1.0F, 0.0F);
- GL11.glTranslatef(s * m, -0.75F, 0.0F);
- float scale = 0.6F;
- GL11.glRotatef(-90.0f, 0.0f, 1.0f, 0.0f);
- GL11.glTranslatef(0.0f, 0.8125f, 0.0f);
- GL11.glScalef(scale, scale, scale);
- steve.setPositionAndRotation(player.posX, player.posY, player.posZ, 0.0f, 10.0f);
- RenderManager.instance.renderEntityWithPosYaw(steve, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f);
- Minecraft.getMinecraft().entityRenderer.disableLightmap(partialTicks);
- GL11.glPopMatrix();
- }
- ClientHelper.setLightmapTextureCoords();
- GL11.glEnable(GL11.GL_CULL_FACE);
- GL11.glDisable(3042);
- }
- GL11.glPopMatrix();
- }
-
- protected static int getSegmentLookedAt(ItemStack stack, EntityLivingBase player) {
- float yaw = getCheckingAngle(player, getRotationBase(stack));
- // System.out.print(yaw);
- int angles = 360;
- int segAngles = angles / maxSegmentCount;
- for(int seg = 0; seg < segmentCount; seg++) {
- float calcAngle = seg * segAngles;
- if(yaw >= calcAngle && yaw < calcAngle + segAngles)
- return seg;
- }
- return -1;
- }
-
- protected static float getCheckingAngle(EntityLivingBase player, float base) {
- float yaw = MathHelper.wrapAngleTo180_float(player.rotationYaw) + 90.0F;
- int angles = 360;
- int segAngles = angles / maxSegmentCount;
- float shift = (segAngles / 2)(shift * segmentCount);
- if(yaw < 0.0F)
- yaw = 180.0F + 180.0F + yaw;
- yaw -= 360.0F - base;
- float angle = 360.0F - yaw + shift;
- if(angle < 0.0F)
- angle = 360.0F + angle;
- return angle;
- }
-
- protected static float getCheckingAngle(EntityLivingBase player) {
- return getCheckingAngle(player, 0.0F);
- }
-
- public static void setEquipped(ItemStack stack, boolean equipped) {
- ItemNBTHelper.setBoolean(stack, "equipped", equipped);
- }
-
- public static boolean wasEquipped(ItemStack stack) {
- return ItemNBTHelper.getBoolean(stack, "equipped", false);
- }
-
- public static void setRotationBase(ItemStack stack, float rotation) {
- ItemNBTHelper.setFloat(stack, "rotationBase", rotation);
- }
-
- public static float getRotationBase(ItemStack stack) {
- return ItemNBTHelper.getFloat(stack, "rotationBase", 0.0F);
- }
-}
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToVariableDeclarationFragment(ASTConverter.java:3986)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToVariableDeclarationStatement(ASTConverter.java:4066)
- at org.eclipse.jdt.core.dom.ASTConverter.checkAndAddMultipleLocalDeclaration(ASTConverter.java:557)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:749)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 2 2022-03-12 19:15:06.832
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToVariableDeclarationFragment(ASTConverter.java:3986)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToVariableDeclarationStatement(ASTConverter.java:4066)
- at org.eclipse.jdt.core.dom.ASTConverter.checkAndAddMultipleLocalDeclaration(ASTConverter.java:557)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:749)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 0 2022-03-12 19:15:06.833
-!MESSAGE Error in JDT Core during reconcile
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToVariableDeclarationFragment(ASTConverter.java:3986)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToVariableDeclarationStatement(ASTConverter.java:4066)
- at org.eclipse.jdt.core.dom.ASTConverter.checkAndAddMultipleLocalDeclaration(ASTConverter.java:557)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:749)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-03-12 19:15:07.129
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.item.equipment;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.AdvancedBotany;
-import ab.client.core.ClientHelper;
-import ab.common.entity.EntityAnonymousSteve;
-import ab.common.item.ItemBlackHalo;
-import ab.common.item.ItemMod;
-import cpw.mods.fml.common.eventhandler.EventPriority;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.entity.AbstractClientPlayer;
-import net.minecraft.client.entity.EntityClientPlayerMP;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.RenderBlocks;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.entity.RenderManager;
-import net.minecraft.client.renderer.texture.TextureMap;
-import net.minecraft.entity.Entity;
-import net.minecraft.entity.EntityLivingBase;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.ItemArmor;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.nbt.NBTTagList;
-import net.minecraft.stats.Achievement;
-import net.minecraft.util.MathHelper;
-import net.minecraft.util.ResourceLocation;
-import net.minecraft.world.World;
-import net.minecraftforge.client.event.RenderWorldLastEvent;
-import net.minecraftforge.common.MinecraftForge;
-import vazkii.botania.api.item.IRelic;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-import vazkii.botania.common.core.helper.ItemNBTHelper;
-import vazkii.botania.common.item.ItemBlackHoleTalisman;
-import vazkii.botania.common.item.relic.ItemRelic;
-
-public class ItemPocketWardrobe extends ItemMod {
-
- protected static final ResourceLocation glowTexture = new ResourceLocation("ab:textures/misc/glow1.png");
- protected static final int segmentCount = 5;
- protected static final int maxSegmentCount = 10;
-
- public ItemPocketWardrobe() {
- this("pocketWardrobe");
- }
-
- public ItemPocketWardrobe(String name) {
- super(name);
- this.setCreativeTab(AdvancedBotany.tabAB);
- this.setMaxStackSize(1);
- MinecraftForge.EVENT_BUS.register(this);
- }
-
- public ItemStack onItemRightClick(ItemStack pocketWardrobe, World world, EntityPlayer player) {
- int segment = getSegmentLookedAt(pocketWardrobe, player);
- if(segment == -1)
- return pocketWardrobe;
- ItemStack[] playerSet = player.inventory.armorInventory;
- player.inventory.armorInventory = getArmorSet(pocketWardrobe, segment);
- setArmorSet(pocketWardrobe, playerSet, segment);
- return pocketWardrobe;
- }
-
- public void onUpdate(ItemStack pocketWardrobe, World world, Entity entity, int pos, boolean equipped) {
- boolean eqLastTick = wasEquipped(pocketWardrobe);
- if(!equipped && eqLastTick)
- setEquipped(pocketWardrobe, equipped);
- if(!eqLastTick && equipped && entity instanceof EntityLivingBase) {
- setEquipped(pocketWardrobe, equipped);
- int angles = 360;
- int segAngles = angles / maxSegmentCount;
- // segAngles *= segmentCount;
- float shift = (segAngles / 2);
- System.out.println(getCheckingAngle((EntityLivingBase)entity));
- setRotationBase(pocketWardrobe, getCheckingAngle((EntityLivingBase)entity) - (shift * segmentCount));
- }
- }
-
- public void setArmorSet(ItemStack pocketWardrobe, ItemStack[] armorSet, int segment) {
- NBTTagList nbtList = new NBTTagList();
- int i = -1;
- for(ItemStack armor : armorSet) {
- i++;
- if(armor == null)
- continue;
- NBTTagCompound cmp = new NBTTagCompound();
- cmp.setByte("slot", (byte)i);
- armor.copy().writeToNBT(cmp);
- nbtList.appendTag(cmp);
- }
- ItemNBTHelper.setList(pocketWardrobe, "armorSet" + segment, nbtList);
- }
-
- public static ItemStack[] getArmorSet(ItemStack pocketWardrobe, int segment) {
- if(segment >= segmentCount)
- return null;
- ItemStack[] armorSet = new ItemStack[4];
- NBTTagList nbtList = ItemNBTHelper.getList(pocketWardrobe, "armorSet" + segment, 10, false);
- for(int i = 0; i < nbtList.tagCount(); i++) {
- NBTTagCompound cmp = nbtList.getCompoundTagAt(i);
- byte slotCount = cmp.getByte("slot");
- if(slotCount >= 0 && slotCount <= segmentCount)
- armorSet[slotCount] = ItemStack.loadItemStackFromNBT(cmp);
- }
- return armorSet;
- }
-
- protected ResourceLocation getGlowTexture(ItemStack stack, int segment) {
- return glowTexture;
- }
-
- @SideOnly(Side.CLIENT)
- @SubscribeEvent
- public void onRenderWorldLast(RenderWorldLastEvent event) {
- EntityClientPlayerMP entityClientPlayerMP = (Minecraft.getMinecraft()).thePlayer;
- ItemStack stack = entityClientPlayerMP.getCurrentEquippedItem();
- if(stack != null && stack.getItem() instanceof ItemPocketWardrobe)
- render(stack, (EntityPlayer)entityClientPlayerMP, event.partialTicks);
- }
-
- @SideOnly(Side.CLIENT)
- public void render(ItemStack stack, EntityPlayer player, float partialTicks) {
- Minecraft mc = Minecraft.getMinecraft();
- Tessellator tess = Tessellator.instance;
- Tessellator.renderingWorldRenderer = false;
- GL11.glPushMatrix();
- float alpha = ((float)Math.sin(((ClientTickHandler.ticksInGame + partialTicks) * 0.2F)) * 0.5F + 0.5F) * 0.4F + 0.3F;
- double posX = player.prevPosX + (player.posX - player.prevPosX) * partialTicks;
- double posY = player.prevPosY + (player.posY - player.prevPosY) * partialTicks;
- double posZ = player.prevPosZ + (player.posZ - player.prevPosZ) * partialTicks;
- GL11.glTranslated(posX - RenderManager.renderPosX, posY - RenderManager.renderPosY, posZ - RenderManager.renderPosZ);
- float base = getRotationBase(stack);
- int angles = 360;
- int segAngles = angles / maxSegmentCount;
- float shift = base - (segAngles / 2);
- float u = 1.0F;
- float v = 0.25F;
- float s = 3.0F;
- float m = 0.8F;
- float y = v * s * 2.0F;
- float y0 = 0.0F;
- int segmentLookedAt = getSegmentLookedAt(stack, (EntityLivingBase)player);
- for(int seg = 0; seg < segmentCount; seg++) {
- ClientHelper.setLightmapTextureCoords();
- float rotationAngle = (seg + 0.5F) * segAngles + shift;
- GL11.glPushMatrix();
- GL11.glDisable(GL11.GL_LIGHTING);
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- GL11.glRotatef(180.0F, 1.0F, 0.0F, 0.0F);
- GL11.glDisable(GL11.GL_CULL_FACE);
- float a = alpha;
- if(segmentLookedAt == seg) {
- a += 0.3F;
- y0 = -y;
- }
- if(seg % 2 == 0) {
- GL11.glColor4f(0.6F, 0.6F, 0.6F, a);
- } else {
- GL11.glColor4f(1.0F, 1.0F, 1.0F, a);
- }
- ItemPocketWardrobe item = (ItemPocketWardrobe)stack.getItem();
- mc.renderEngine.bindTexture(item.getGlowTexture(stack, seg));
- tess.startDrawingQuads();
- for(int i = 0; i < segAngles; i++) {
- float ang = (i + seg * segAngles) + shift;
- double xp = Math.cos(ang * Math.PI / 180.0D) * s;
- double zp = Math.sin(ang * Math.PI / 180.0D) * s;
- tess.addVertexWithUV(xp * m, y, zp * m, u, v);
- tess.addVertexWithUV(xp, y0, zp, u, 0.0D);
- xp = Math.cos((ang + 1.0F) * Math.PI / 180.0D) * s;
- zp = Math.sin((ang + 1.0F) * Math.PI / 180.0D) * s;
- tess.addVertexWithUV(xp, y0, zp, 0.0D, 0.0D);
- tess.addVertexWithUV(xp * m, y, zp * m, 0.0D, v);
- }
- y0 = 0.0F;
- tess.draw();
- GL11.glPopMatrix();
- AbstractClientPlayer steve = new EntityAnonymousSteve(player.worldObj);
- steve.inventory.armorInventory = getArmorSet(stack, seg);
- boolean hasArmor = false;
- for(int l = 0; l < steve.inventory.armorInventory.length; l++)
- if(steve.inventory.armorItemInSlot(l) != null) {
- hasArmor = true;
- break;
- }
- if(hasArmor) {
- GL11.glPushMatrix();
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- GL11.glRotatef(rotationAngle, 0.0F, 1.0F, 0.0F);
- GL11.glTranslatef(s * m, -0.75F, 0.0F);
- float scale = 0.6F;
- GL11.glRotatef(-90.0f, 0.0f, 1.0f, 0.0f);
- GL11.glTranslatef(0.0f, 0.8125f, 0.0f);
- GL11.glScalef(scale, scale, scale);
- steve.setPositionAndRotation(player.posX, player.posY, player.posZ, 0.0f, 10.0f);
- RenderManager.instance.renderEntityWithPosYaw(steve, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f);
- Minecraft.getMinecraft().entityRenderer.disableLightmap(partialTicks);
- GL11.glPopMatrix();
- }
- ClientHelper.setLightmapTextureCoords();
- GL11.glEnable(GL11.GL_CULL_FACE);
- GL11.glDisable(3042);
- }
- GL11.glPopMatrix();
- }
-
- protected static int getSegmentLookedAt(ItemStack stack, EntityLivingBase player) {
- float yaw = getCheckingAngle(player, getRotationBase(stack));
- // System.out.print(yaw);
- int angles = 360;
- int segAngles = angles / maxSegmentCount;
- for(int seg = 0; seg < segmentCount; seg++) {
- float calcAngle = seg * segAngles;
- if(yaw >= calcAngle && yaw < calcAngle + segAngles)
- return seg;
- }
- return -1;
- }
-
- protected static float getCheckingAngle(EntityLivingBase player, float base) {
- float yaw = MathHelper.wrapAngleTo180_float(player.rotationYaw) + 90.0F;
- int angles = 360;
- int segAngles = angles / maxSegmentCount;
- float shift = (segAngles / 2)(shift * segmentCount);
- if(yaw < 0.0F)
- yaw = 180.0F + 180.0F + yaw;
- yaw -= 360.0F - base;
- float angle = 360.0F - yaw + shift;
- if(angle < 0.0F)
- angle = 360.0F + angle;
- return angle;
- }
-
- protected static float getCheckingAngle(EntityLivingBase player) {
- return getCheckingAngle(player, 0.0F);
- }
-
- public static void setEquipped(ItemStack stack, boolean equipped) {
- ItemNBTHelper.setBoolean(stack, "equipped", equipped);
- }
-
- public static boolean wasEquipped(ItemStack stack) {
- return ItemNBTHelper.getBoolean(stack, "equipped", false);
- }
-
- public static void setRotationBase(ItemStack stack, float rotation) {
- ItemNBTHelper.setFloat(stack, "rotationBase", rotation);
- }
-
- public static float getRotationBase(ItemStack stack) {
- return ItemNBTHelper.getFloat(stack, "rotationBase", 0.0F);
- }
-}
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToVariableDeclarationFragment(ASTConverter.java:3986)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToVariableDeclarationStatement(ASTConverter.java:4066)
- at org.eclipse.jdt.core.dom.ASTConverter.checkAndAddMultipleLocalDeclaration(ASTConverter.java:557)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:749)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-03-12 19:15:07.130
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToVariableDeclarationFragment(ASTConverter.java:3986)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToVariableDeclarationStatement(ASTConverter.java:4066)
- at org.eclipse.jdt.core.dom.ASTConverter.checkAndAddMultipleLocalDeclaration(ASTConverter.java:557)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:749)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-03-12 19:15:07.131
-!MESSAGE Error in JDT Core during AST creation
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToVariableDeclarationFragment(ASTConverter.java:3986)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToVariableDeclarationStatement(ASTConverter.java:4066)
- at org.eclipse.jdt.core.dom.ASTConverter.checkAndAddMultipleLocalDeclaration(ASTConverter.java:557)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:749)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-03-12 19:15:09.853
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.item.equipment;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.AdvancedBotany;
-import ab.client.core.ClientHelper;
-import ab.common.entity.EntityAnonymousSteve;
-import ab.common.item.ItemBlackHalo;
-import ab.common.item.ItemMod;
-import cpw.mods.fml.common.eventhandler.EventPriority;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.entity.AbstractClientPlayer;
-import net.minecraft.client.entity.EntityClientPlayerMP;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.RenderBlocks;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.entity.RenderManager;
-import net.minecraft.client.renderer.texture.TextureMap;
-import net.minecraft.entity.Entity;
-import net.minecraft.entity.EntityLivingBase;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.ItemArmor;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.nbt.NBTTagList;
-import net.minecraft.stats.Achievement;
-import net.minecraft.util.MathHelper;
-import net.minecraft.util.ResourceLocation;
-import net.minecraft.world.World;
-import net.minecraftforge.client.event.RenderWorldLastEvent;
-import net.minecraftforge.common.MinecraftForge;
-import vazkii.botania.api.item.IRelic;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-import vazkii.botania.common.core.helper.ItemNBTHelper;
-import vazkii.botania.common.item.ItemBlackHoleTalisman;
-import vazkii.botania.common.item.relic.ItemRelic;
-
-public class ItemPocketWardrobe extends ItemMod {
-
- protected static final ResourceLocation glowTexture = new ResourceLocation("ab:textures/misc/glow1.png");
- protected static final int segmentCount = 5;
- protected static final int maxSegmentCount = 10;
-
- public ItemPocketWardrobe() {
- this("pocketWardrobe");
- }
-
- public ItemPocketWardrobe(String name) {
- super(name);
- this.setCreativeTab(AdvancedBotany.tabAB);
- this.setMaxStackSize(1);
- MinecraftForge.EVENT_BUS.register(this);
- }
-
- public ItemStack onItemRightClick(ItemStack pocketWardrobe, World world, EntityPlayer player) {
- int segment = getSegmentLookedAt(pocketWardrobe, player);
- if(segment == -1)
- return pocketWardrobe;
- ItemStack[] playerSet = player.inventory.armorInventory;
- player.inventory.armorInventory = getArmorSet(pocketWardrobe, segment);
- setArmorSet(pocketWardrobe, playerSet, segment);
- return pocketWardrobe;
- }
-
- public void onUpdate(ItemStack pocketWardrobe, World world, Entity entity, int pos, boolean equipped) {
- boolean eqLastTick = wasEquipped(pocketWardrobe);
- if(!equipped && eqLastTick)
- setEquipped(pocketWardrobe, equipped);
- if(!eqLastTick && equipped && entity instanceof EntityLivingBase) {
- setEquipped(pocketWardrobe, equipped);
- int angles = 360;
- int segAngles = angles / maxSegmentCount;
- // segAngles *= segmentCount;
- float shift = (segAngles / 2);
- System.out.println(getCheckingAngle((EntityLivingBase)entity));
- setRotationBase(pocketWardrobe, getCheckingAngle((EntityLivingBase)entity) - (shift * segmentCount));
- }
- }
-
- public void setArmorSet(ItemStack pocketWardrobe, ItemStack[] armorSet, int segment) {
- NBTTagList nbtList = new NBTTagList();
- int i = -1;
- for(ItemStack armor : armorSet) {
- i++;
- if(armor == null)
- continue;
- NBTTagCompound cmp = new NBTTagCompound();
- cmp.setByte("slot", (byte)i);
- armor.copy().writeToNBT(cmp);
- nbtList.appendTag(cmp);
- }
- ItemNBTHelper.setList(pocketWardrobe, "armorSet" + segment, nbtList);
- }
-
- public static ItemStack[] getArmorSet(ItemStack pocketWardrobe, int segment) {
- if(segment >= segmentCount)
- return null;
- ItemStack[] armorSet = new ItemStack[4];
- NBTTagList nbtList = ItemNBTHelper.getList(pocketWardrobe, "armorSet" + segment, 10, false);
- for(int i = 0; i < nbtList.tagCount(); i++) {
- NBTTagCompound cmp = nbtList.getCompoundTagAt(i);
- byte slotCount = cmp.getByte("slot");
- if(slotCount >= 0 && slotCount <= segmentCount)
- armorSet[slotCount] = ItemStack.loadItemStackFromNBT(cmp);
- }
- return armorSet;
- }
-
- protected ResourceLocation getGlowTexture(ItemStack stack, int segment) {
- return glowTexture;
- }
-
- @SideOnly(Side.CLIENT)
- @SubscribeEvent
- public void onRenderWorldLast(RenderWorldLastEvent event) {
- EntityClientPlayerMP entityClientPlayerMP = (Minecraft.getMinecraft()).thePlayer;
- ItemStack stack = entityClientPlayerMP.getCurrentEquippedItem();
- if(stack != null && stack.getItem() instanceof ItemPocketWardrobe)
- render(stack, (EntityPlayer)entityClientPlayerMP, event.partialTicks);
- }
-
- @SideOnly(Side.CLIENT)
- public void render(ItemStack stack, EntityPlayer player, float partialTicks) {
- Minecraft mc = Minecraft.getMinecraft();
- Tessellator tess = Tessellator.instance;
- Tessellator.renderingWorldRenderer = false;
- GL11.glPushMatrix();
- float alpha = ((float)Math.sin(((ClientTickHandler.ticksInGame + partialTicks) * 0.2F)) * 0.5F + 0.5F) * 0.4F + 0.3F;
- double posX = player.prevPosX + (player.posX - player.prevPosX) * partialTicks;
- double posY = player.prevPosY + (player.posY - player.prevPosY) * partialTicks;
- double posZ = player.prevPosZ + (player.posZ - player.prevPosZ) * partialTicks;
- GL11.glTranslated(posX - RenderManager.renderPosX, posY - RenderManager.renderPosY, posZ - RenderManager.renderPosZ);
- float base = getRotationBase(stack);
- int angles = 360;
- int segAngles = angles / maxSegmentCount;
- float shift = base - (segAngles / 2);
- float u = 1.0F;
- float v = 0.25F;
- float s = 3.0F;
- float m = 0.8F;
- float y = v * s * 2.0F;
- float y0 = 0.0F;
- int segmentLookedAt = getSegmentLookedAt(stack, (EntityLivingBase)player);
- for(int seg = 0; seg < segmentCount; seg++) {
- ClientHelper.setLightmapTextureCoords();
- float rotationAngle = (seg + 0.5F) * segAngles + shift;
- GL11.glPushMatrix();
- GL11.glDisable(GL11.GL_LIGHTING);
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- GL11.glRotatef(180.0F, 1.0F, 0.0F, 0.0F);
- GL11.glDisable(GL11.GL_CULL_FACE);
- float a = alpha;
- if(segmentLookedAt == seg) {
- a += 0.3F;
- y0 = -y;
- }
- if(seg % 2 == 0) {
- GL11.glColor4f(0.6F, 0.6F, 0.6F, a);
- } else {
- GL11.glColor4f(1.0F, 1.0F, 1.0F, a);
- }
- ItemPocketWardrobe item = (ItemPocketWardrobe)stack.getItem();
- mc.renderEngine.bindTexture(item.getGlowTexture(stack, seg));
- tess.startDrawingQuads();
- for(int i = 0; i < segAngles; i++) {
- float ang = (i + seg * segAngles) + shift;
- double xp = Math.cos(ang * Math.PI / 180.0D) * s;
- double zp = Math.sin(ang * Math.PI / 180.0D) * s;
- tess.addVertexWithUV(xp * m, y, zp * m, u, v);
- tess.addVertexWithUV(xp, y0, zp, u, 0.0D);
- xp = Math.cos((ang + 1.0F) * Math.PI / 180.0D) * s;
- zp = Math.sin((ang + 1.0F) * Math.PI / 180.0D) * s;
- tess.addVertexWithUV(xp, y0, zp, 0.0D, 0.0D);
- tess.addVertexWithUV(xp * m, y, zp * m, 0.0D, v);
- }
- y0 = 0.0F;
- tess.draw();
- GL11.glPopMatrix();
- AbstractClientPlayer steve = new EntityAnonymousSteve(player.worldObj);
- steve.inventory.armorInventory = getArmorSet(stack, seg);
- boolean hasArmor = false;
- for(int l = 0; l < steve.inventory.armorInventory.length; l++)
- if(steve.inventory.armorItemInSlot(l) != null) {
- hasArmor = true;
- break;
- }
- if(hasArmor) {
- GL11.glPushMatrix();
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- GL11.glRotatef(rotationAngle, 0.0F, 1.0F, 0.0F);
- GL11.glTranslatef(s * m, -0.75F, 0.0F);
- float scale = 0.6F;
- GL11.glRotatef(-90.0f, 0.0f, 1.0f, 0.0f);
- GL11.glTranslatef(0.0f, 0.8125f, 0.0f);
- GL11.glScalef(scale, scale, scale);
- steve.setPositionAndRotation(player.posX, player.posY, player.posZ, 0.0f, 10.0f);
- RenderManager.instance.renderEntityWithPosYaw(steve, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f);
- Minecraft.getMinecraft().entityRenderer.disableLightmap(partialTicks);
- GL11.glPopMatrix();
- }
- ClientHelper.setLightmapTextureCoords();
- GL11.glEnable(GL11.GL_CULL_FACE);
- GL11.glDisable(3042);
- }
- GL11.glPopMatrix();
- }
-
- protected static int getSegmentLookedAt(ItemStack stack, EntityLivingBase player) {
- float yaw = getCheckingAngle(player, getRotationBase(stack));
- // System.out.print(yaw);
- int angles = 360;
- int segAngles = angles / maxSegmentCount;
- for(int seg = 0; seg < segmentCount; seg++) {
- float calcAngle = seg * segAngles;
- if(yaw >= calcAngle && yaw < calcAngle + segAngles)
- return seg;
- }
- return -1;
- }
-
- protected static float getCheckingAngle(EntityLivingBase player, float base) {
- float yaw = MathHelper.wrapAngleTo180_float(player.rotationYaw) + 90.0F;
- int angles = 360;
- int segAngles = angles / maxSegmentCount;
- float shift = (segAngles / 2)(shift * segmentCount);
- if(yaw < 0.0F)
- yaw = 180.0F + 180.0F + yaw;
- yaw -= 360.0F - base;
- float angle = 360.0F - yaw + shift;
- if(angle < 0.0F)
- angle = 360.0F + angle;
- return angle;
- }
-
- protected static float getCheckingAngle(EntityLivingBase player) {
- return getCheckingAngle(player, 0.0F);
- }
-
- public static void setEquipped(ItemStack stack, boolean equipped) {
- ItemNBTHelper.setBoolean(stack, "equipped", equipped);
- }
-
- public static boolean wasEquipped(ItemStack stack) {
- return ItemNBTHelper.getBoolean(stack, "equipped", false);
- }
-
- public static void setRotationBase(ItemStack stack, float rotation) {
- ItemNBTHelper.setFloat(stack, "rotationBase", rotation);
- }
-
- public static float getRotationBase(ItemStack stack) {
- return ItemNBTHelper.getFloat(stack, "rotationBase", 0.0F);
- }
-}
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToVariableDeclarationFragment(ASTConverter.java:3986)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToVariableDeclarationStatement(ASTConverter.java:4066)
- at org.eclipse.jdt.core.dom.ASTConverter.checkAndAddMultipleLocalDeclaration(ASTConverter.java:557)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:749)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 2 2022-03-12 19:15:09.854
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToVariableDeclarationFragment(ASTConverter.java:3986)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToVariableDeclarationStatement(ASTConverter.java:4066)
- at org.eclipse.jdt.core.dom.ASTConverter.checkAndAddMultipleLocalDeclaration(ASTConverter.java:557)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:749)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 0 2022-03-12 19:15:09.855
-!MESSAGE Error in JDT Core during reconcile
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToVariableDeclarationFragment(ASTConverter.java:3986)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToVariableDeclarationStatement(ASTConverter.java:4066)
- at org.eclipse.jdt.core.dom.ASTConverter.checkAndAddMultipleLocalDeclaration(ASTConverter.java:557)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:749)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-03-12 19:15:09.870
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.item.equipment;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.AdvancedBotany;
-import ab.client.core.ClientHelper;
-import ab.common.entity.EntityAnonymousSteve;
-import ab.common.item.ItemBlackHalo;
-import ab.common.item.ItemMod;
-import cpw.mods.fml.common.eventhandler.EventPriority;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.entity.AbstractClientPlayer;
-import net.minecraft.client.entity.EntityClientPlayerMP;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.RenderBlocks;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.entity.RenderManager;
-import net.minecraft.client.renderer.texture.TextureMap;
-import net.minecraft.entity.Entity;
-import net.minecraft.entity.EntityLivingBase;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.ItemArmor;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.nbt.NBTTagList;
-import net.minecraft.stats.Achievement;
-import net.minecraft.util.MathHelper;
-import net.minecraft.util.ResourceLocation;
-import net.minecraft.world.World;
-import net.minecraftforge.client.event.RenderWorldLastEvent;
-import net.minecraftforge.common.MinecraftForge;
-import vazkii.botania.api.item.IRelic;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-import vazkii.botania.common.core.helper.ItemNBTHelper;
-import vazkii.botania.common.item.ItemBlackHoleTalisman;
-import vazkii.botania.common.item.relic.ItemRelic;
-
-public class ItemPocketWardrobe extends ItemMod {
-
- protected static final ResourceLocation glowTexture = new ResourceLocation("ab:textures/misc/glow1.png");
- protected static final int segmentCount = 5;
- protected static final int maxSegmentCount = 10;
-
- public ItemPocketWardrobe() {
- this("pocketWardrobe");
- }
-
- public ItemPocketWardrobe(String name) {
- super(name);
- this.setCreativeTab(AdvancedBotany.tabAB);
- this.setMaxStackSize(1);
- MinecraftForge.EVENT_BUS.register(this);
- }
-
- public ItemStack onItemRightClick(ItemStack pocketWardrobe, World world, EntityPlayer player) {
- int segment = getSegmentLookedAt(pocketWardrobe, player);
- if(segment == -1)
- return pocketWardrobe;
- ItemStack[] playerSet = player.inventory.armorInventory;
- player.inventory.armorInventory = getArmorSet(pocketWardrobe, segment);
- setArmorSet(pocketWardrobe, playerSet, segment);
- return pocketWardrobe;
- }
-
- public void onUpdate(ItemStack pocketWardrobe, World world, Entity entity, int pos, boolean equipped) {
- boolean eqLastTick = wasEquipped(pocketWardrobe);
- if(!equipped && eqLastTick)
- setEquipped(pocketWardrobe, equipped);
- if(!eqLastTick && equipped && entity instanceof EntityLivingBase) {
- setEquipped(pocketWardrobe, equipped);
- int angles = 360;
- int segAngles = angles / maxSegmentCount;
- // segAngles *= segmentCount;
- float shift = (segAngles / 2);
- System.out.println(getCheckingAngle((EntityLivingBase)entity));
- setRotationBase(pocketWardrobe, getCheckingAngle((EntityLivingBase)entity) - (shift * segmentCount));
- }
- }
-
- public void setArmorSet(ItemStack pocketWardrobe, ItemStack[] armorSet, int segment) {
- NBTTagList nbtList = new NBTTagList();
- int i = -1;
- for(ItemStack armor : armorSet) {
- i++;
- if(armor == null)
- continue;
- NBTTagCompound cmp = new NBTTagCompound();
- cmp.setByte("slot", (byte)i);
- armor.copy().writeToNBT(cmp);
- nbtList.appendTag(cmp);
- }
- ItemNBTHelper.setList(pocketWardrobe, "armorSet" + segment, nbtList);
- }
-
- public static ItemStack[] getArmorSet(ItemStack pocketWardrobe, int segment) {
- if(segment >= segmentCount)
- return null;
- ItemStack[] armorSet = new ItemStack[4];
- NBTTagList nbtList = ItemNBTHelper.getList(pocketWardrobe, "armorSet" + segment, 10, false);
- for(int i = 0; i < nbtList.tagCount(); i++) {
- NBTTagCompound cmp = nbtList.getCompoundTagAt(i);
- byte slotCount = cmp.getByte("slot");
- if(slotCount >= 0 && slotCount <= segmentCount)
- armorSet[slotCount] = ItemStack.loadItemStackFromNBT(cmp);
- }
- return armorSet;
- }
-
- protected ResourceLocation getGlowTexture(ItemStack stack, int segment) {
- return glowTexture;
- }
-
- @SideOnly(Side.CLIENT)
- @SubscribeEvent
- public void onRenderWorldLast(RenderWorldLastEvent event) {
- EntityClientPlayerMP entityClientPlayerMP = (Minecraft.getMinecraft()).thePlayer;
- ItemStack stack = entityClientPlayerMP.getCurrentEquippedItem();
- if(stack != null && stack.getItem() instanceof ItemPocketWardrobe)
- render(stack, (EntityPlayer)entityClientPlayerMP, event.partialTicks);
- }
-
- @SideOnly(Side.CLIENT)
- public void render(ItemStack stack, EntityPlayer player, float partialTicks) {
- Minecraft mc = Minecraft.getMinecraft();
- Tessellator tess = Tessellator.instance;
- Tessellator.renderingWorldRenderer = false;
- GL11.glPushMatrix();
- float alpha = ((float)Math.sin(((ClientTickHandler.ticksInGame + partialTicks) * 0.2F)) * 0.5F + 0.5F) * 0.4F + 0.3F;
- double posX = player.prevPosX + (player.posX - player.prevPosX) * partialTicks;
- double posY = player.prevPosY + (player.posY - player.prevPosY) * partialTicks;
- double posZ = player.prevPosZ + (player.posZ - player.prevPosZ) * partialTicks;
- GL11.glTranslated(posX - RenderManager.renderPosX, posY - RenderManager.renderPosY, posZ - RenderManager.renderPosZ);
- float base = getRotationBase(stack);
- int angles = 360;
- int segAngles = angles / maxSegmentCount;
- float shift = base - (segAngles / 2);
- float u = 1.0F;
- float v = 0.25F;
- float s = 3.0F;
- float m = 0.8F;
- float y = v * s * 2.0F;
- float y0 = 0.0F;
- int segmentLookedAt = getSegmentLookedAt(stack, (EntityLivingBase)player);
- for(int seg = 0; seg < segmentCount; seg++) {
- ClientHelper.setLightmapTextureCoords();
- float rotationAngle = (seg + 0.5F) * segAngles + shift;
- GL11.glPushMatrix();
- GL11.glDisable(GL11.GL_LIGHTING);
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- GL11.glRotatef(180.0F, 1.0F, 0.0F, 0.0F);
- GL11.glDisable(GL11.GL_CULL_FACE);
- float a = alpha;
- if(segmentLookedAt == seg) {
- a += 0.3F;
- y0 = -y;
- }
- if(seg % 2 == 0) {
- GL11.glColor4f(0.6F, 0.6F, 0.6F, a);
- } else {
- GL11.glColor4f(1.0F, 1.0F, 1.0F, a);
- }
- ItemPocketWardrobe item = (ItemPocketWardrobe)stack.getItem();
- mc.renderEngine.bindTexture(item.getGlowTexture(stack, seg));
- tess.startDrawingQuads();
- for(int i = 0; i < segAngles; i++) {
- float ang = (i + seg * segAngles) + shift;
- double xp = Math.cos(ang * Math.PI / 180.0D) * s;
- double zp = Math.sin(ang * Math.PI / 180.0D) * s;
- tess.addVertexWithUV(xp * m, y, zp * m, u, v);
- tess.addVertexWithUV(xp, y0, zp, u, 0.0D);
- xp = Math.cos((ang + 1.0F) * Math.PI / 180.0D) * s;
- zp = Math.sin((ang + 1.0F) * Math.PI / 180.0D) * s;
- tess.addVertexWithUV(xp, y0, zp, 0.0D, 0.0D);
- tess.addVertexWithUV(xp * m, y, zp * m, 0.0D, v);
- }
- y0 = 0.0F;
- tess.draw();
- GL11.glPopMatrix();
- AbstractClientPlayer steve = new EntityAnonymousSteve(player.worldObj);
- steve.inventory.armorInventory = getArmorSet(stack, seg);
- boolean hasArmor = false;
- for(int l = 0; l < steve.inventory.armorInventory.length; l++)
- if(steve.inventory.armorItemInSlot(l) != null) {
- hasArmor = true;
- break;
- }
- if(hasArmor) {
- GL11.glPushMatrix();
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- GL11.glRotatef(rotationAngle, 0.0F, 1.0F, 0.0F);
- GL11.glTranslatef(s * m, -0.75F, 0.0F);
- float scale = 0.6F;
- GL11.glRotatef(-90.0f, 0.0f, 1.0f, 0.0f);
- GL11.glTranslatef(0.0f, 0.8125f, 0.0f);
- GL11.glScalef(scale, scale, scale);
- steve.setPositionAndRotation(player.posX, player.posY, player.posZ, 0.0f, 10.0f);
- RenderManager.instance.renderEntityWithPosYaw(steve, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f);
- Minecraft.getMinecraft().entityRenderer.disableLightmap(partialTicks);
- GL11.glPopMatrix();
- }
- ClientHelper.setLightmapTextureCoords();
- GL11.glEnable(GL11.GL_CULL_FACE);
- GL11.glDisable(3042);
- }
- GL11.glPopMatrix();
- }
-
- protected static int getSegmentLookedAt(ItemStack stack, EntityLivingBase player) {
- float yaw = getCheckingAngle(player, getRotationBase(stack));
- // System.out.print(yaw);
- int angles = 360;
- int segAngles = angles / maxSegmentCount;
- for(int seg = 0; seg < segmentCount; seg++) {
- float calcAngle = seg * segAngles;
- if(yaw >= calcAngle && yaw < calcAngle + segAngles)
- return seg;
- }
- return -1;
- }
-
- protected static float getCheckingAngle(EntityLivingBase player, float base) {
- float yaw = MathHelper.wrapAngleTo180_float(player.rotationYaw) + 90.0F;
- int angles = 360;
- int segAngles = angles / maxSegmentCount;
- float shift = (segAngles / 2)(shift * segmentCount);
- if(yaw < 0.0F)
- yaw = 180.0F + 180.0F + yaw;
- yaw -= 360.0F - base;
- float angle = 360.0F - yaw + shift;
- if(angle < 0.0F)
- angle = 360.0F + angle;
- return angle;
- }
-
- protected static float getCheckingAngle(EntityLivingBase player) {
- return getCheckingAngle(player, 0.0F);
- }
-
- public static void setEquipped(ItemStack stack, boolean equipped) {
- ItemNBTHelper.setBoolean(stack, "equipped", equipped);
- }
-
- public static boolean wasEquipped(ItemStack stack) {
- return ItemNBTHelper.getBoolean(stack, "equipped", false);
- }
-
- public static void setRotationBase(ItemStack stack, float rotation) {
- ItemNBTHelper.setFloat(stack, "rotationBase", rotation);
- }
-
- public static float getRotationBase(ItemStack stack) {
- return ItemNBTHelper.getFloat(stack, "rotationBase", 0.0F);
- }
-}
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToVariableDeclarationFragment(ASTConverter.java:3986)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToVariableDeclarationStatement(ASTConverter.java:4066)
- at org.eclipse.jdt.core.dom.ASTConverter.checkAndAddMultipleLocalDeclaration(ASTConverter.java:557)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:749)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-03-12 19:15:09.872
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToVariableDeclarationFragment(ASTConverter.java:3986)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToVariableDeclarationStatement(ASTConverter.java:4066)
- at org.eclipse.jdt.core.dom.ASTConverter.checkAndAddMultipleLocalDeclaration(ASTConverter.java:557)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:749)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-03-12 19:15:09.873
-!MESSAGE Error in JDT Core during AST creation
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToVariableDeclarationFragment(ASTConverter.java:3986)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToVariableDeclarationStatement(ASTConverter.java:4066)
- at org.eclipse.jdt.core.dom.ASTConverter.checkAndAddMultipleLocalDeclaration(ASTConverter.java:557)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:749)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-03-12 19:15:11.078
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.item.equipment;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.AdvancedBotany;
-import ab.client.core.ClientHelper;
-import ab.common.entity.EntityAnonymousSteve;
-import ab.common.item.ItemBlackHalo;
-import ab.common.item.ItemMod;
-import cpw.mods.fml.common.eventhandler.EventPriority;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.entity.AbstractClientPlayer;
-import net.minecraft.client.entity.EntityClientPlayerMP;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.RenderBlocks;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.entity.RenderManager;
-import net.minecraft.client.renderer.texture.TextureMap;
-import net.minecraft.entity.Entity;
-import net.minecraft.entity.EntityLivingBase;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.ItemArmor;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.nbt.NBTTagList;
-import net.minecraft.stats.Achievement;
-import net.minecraft.util.MathHelper;
-import net.minecraft.util.ResourceLocation;
-import net.minecraft.world.World;
-import net.minecraftforge.client.event.RenderWorldLastEvent;
-import net.minecraftforge.common.MinecraftForge;
-import vazkii.botania.api.item.IRelic;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-import vazkii.botania.common.core.helper.ItemNBTHelper;
-import vazkii.botania.common.item.ItemBlackHoleTalisman;
-import vazkii.botania.common.item.relic.ItemRelic;
-
-public class ItemPocketWardrobe extends ItemMod {
-
- protected static final ResourceLocation glowTexture = new ResourceLocation("ab:textures/misc/glow1.png");
- protected static final int segmentCount = 5;
- protected static final int maxSegmentCount = 10;
-
- public ItemPocketWardrobe() {
- this("pocketWardrobe");
- }
-
- public ItemPocketWardrobe(String name) {
- super(name);
- this.setCreativeTab(AdvancedBotany.tabAB);
- this.setMaxStackSize(1);
- MinecraftForge.EVENT_BUS.register(this);
- }
-
- public ItemStack onItemRightClick(ItemStack pocketWardrobe, World world, EntityPlayer player) {
- int segment = getSegmentLookedAt(pocketWardrobe, player);
- if(segment == -1)
- return pocketWardrobe;
- ItemStack[] playerSet = player.inventory.armorInventory;
- player.inventory.armorInventory = getArmorSet(pocketWardrobe, segment);
- setArmorSet(pocketWardrobe, playerSet, segment);
- return pocketWardrobe;
- }
-
- public void onUpdate(ItemStack pocketWardrobe, World world, Entity entity, int pos, boolean equipped) {
- boolean eqLastTick = wasEquipped(pocketWardrobe);
- if(!equipped && eqLastTick)
- setEquipped(pocketWardrobe, equipped);
- if(!eqLastTick && equipped && entity instanceof EntityLivingBase) {
- setEquipped(pocketWardrobe, equipped);
- int angles = 360;
- int segAngles = angles / maxSegmentCount;
- // segAngles *= segmentCount;
- float shift = (segAngles / 2);
- System.out.println(getCheckingAngle((EntityLivingBase)entity));
- setRotationBase(pocketWardrobe, getCheckingAngle((EntityLivingBase)entity) - (shift * segmentCount));
- }
- }
-
- public void setArmorSet(ItemStack pocketWardrobe, ItemStack[] armorSet, int segment) {
- NBTTagList nbtList = new NBTTagList();
- int i = -1;
- for(ItemStack armor : armorSet) {
- i++;
- if(armor == null)
- continue;
- NBTTagCompound cmp = new NBTTagCompound();
- cmp.setByte("slot", (byte)i);
- armor.copy().writeToNBT(cmp);
- nbtList.appendTag(cmp);
- }
- ItemNBTHelper.setList(pocketWardrobe, "armorSet" + segment, nbtList);
- }
-
- public static ItemStack[] getArmorSet(ItemStack pocketWardrobe, int segment) {
- if(segment >= segmentCount)
- return null;
- ItemStack[] armorSet = new ItemStack[4];
- NBTTagList nbtList = ItemNBTHelper.getList(pocketWardrobe, "armorSet" + segment, 10, false);
- for(int i = 0; i < nbtList.tagCount(); i++) {
- NBTTagCompound cmp = nbtList.getCompoundTagAt(i);
- byte slotCount = cmp.getByte("slot");
- if(slotCount >= 0 && slotCount <= segmentCount)
- armorSet[slotCount] = ItemStack.loadItemStackFromNBT(cmp);
- }
- return armorSet;
- }
-
- protected ResourceLocation getGlowTexture(ItemStack stack, int segment) {
- return glowTexture;
- }
-
- @SideOnly(Side.CLIENT)
- @SubscribeEvent
- public void onRenderWorldLast(RenderWorldLastEvent event) {
- EntityClientPlayerMP entityClientPlayerMP = (Minecraft.getMinecraft()).thePlayer;
- ItemStack stack = entityClientPlayerMP.getCurrentEquippedItem();
- if(stack != null && stack.getItem() instanceof ItemPocketWardrobe)
- render(stack, (EntityPlayer)entityClientPlayerMP, event.partialTicks);
- }
-
- @SideOnly(Side.CLIENT)
- public void render(ItemStack stack, EntityPlayer player, float partialTicks) {
- Minecraft mc = Minecraft.getMinecraft();
- Tessellator tess = Tessellator.instance;
- Tessellator.renderingWorldRenderer = false;
- GL11.glPushMatrix();
- float alpha = ((float)Math.sin(((ClientTickHandler.ticksInGame + partialTicks) * 0.2F)) * 0.5F + 0.5F) * 0.4F + 0.3F;
- double posX = player.prevPosX + (player.posX - player.prevPosX) * partialTicks;
- double posY = player.prevPosY + (player.posY - player.prevPosY) * partialTicks;
- double posZ = player.prevPosZ + (player.posZ - player.prevPosZ) * partialTicks;
- GL11.glTranslated(posX - RenderManager.renderPosX, posY - RenderManager.renderPosY, posZ - RenderManager.renderPosZ);
- float base = getRotationBase(stack);
- int angles = 360;
- int segAngles = angles / maxSegmentCount;
- float shift = base - (segAngles / 2);
- float u = 1.0F;
- float v = 0.25F;
- float s = 3.0F;
- float m = 0.8F;
- float y = v * s * 2.0F;
- float y0 = 0.0F;
- int segmentLookedAt = getSegmentLookedAt(stack, (EntityLivingBase)player);
- for(int seg = 0; seg < segmentCount; seg++) {
- ClientHelper.setLightmapTextureCoords();
- float rotationAngle = (seg + 0.5F) * segAngles + shift;
- GL11.glPushMatrix();
- GL11.glDisable(GL11.GL_LIGHTING);
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- GL11.glRotatef(180.0F, 1.0F, 0.0F, 0.0F);
- GL11.glDisable(GL11.GL_CULL_FACE);
- float a = alpha;
- if(segmentLookedAt == seg) {
- a += 0.3F;
- y0 = -y;
- }
- if(seg % 2 == 0) {
- GL11.glColor4f(0.6F, 0.6F, 0.6F, a);
- } else {
- GL11.glColor4f(1.0F, 1.0F, 1.0F, a);
- }
- ItemPocketWardrobe item = (ItemPocketWardrobe)stack.getItem();
- mc.renderEngine.bindTexture(item.getGlowTexture(stack, seg));
- tess.startDrawingQuads();
- for(int i = 0; i < segAngles; i++) {
- float ang = (i + seg * segAngles) + shift;
- double xp = Math.cos(ang * Math.PI / 180.0D) * s;
- double zp = Math.sin(ang * Math.PI / 180.0D) * s;
- tess.addVertexWithUV(xp * m, y, zp * m, u, v);
- tess.addVertexWithUV(xp, y0, zp, u, 0.0D);
- xp = Math.cos((ang + 1.0F) * Math.PI / 180.0D) * s;
- zp = Math.sin((ang + 1.0F) * Math.PI / 180.0D) * s;
- tess.addVertexWithUV(xp, y0, zp, 0.0D, 0.0D);
- tess.addVertexWithUV(xp * m, y, zp * m, 0.0D, v);
- }
- y0 = 0.0F;
- tess.draw();
- GL11.glPopMatrix();
- AbstractClientPlayer steve = new EntityAnonymousSteve(player.worldObj);
- steve.inventory.armorInventory = getArmorSet(stack, seg);
- boolean hasArmor = false;
- for(int l = 0; l < steve.inventory.armorInventory.length; l++)
- if(steve.inventory.armorItemInSlot(l) != null) {
- hasArmor = true;
- break;
- }
- if(hasArmor) {
- GL11.glPushMatrix();
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- GL11.glRotatef(rotationAngle, 0.0F, 1.0F, 0.0F);
- GL11.glTranslatef(s * m, -0.75F, 0.0F);
- float scale = 0.6F;
- GL11.glRotatef(-90.0f, 0.0f, 1.0f, 0.0f);
- GL11.glTranslatef(0.0f, 0.8125f, 0.0f);
- GL11.glScalef(scale, scale, scale);
- steve.setPositionAndRotation(player.posX, player.posY, player.posZ, 0.0f, 10.0f);
- RenderManager.instance.renderEntityWithPosYaw(steve, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f);
- Minecraft.getMinecraft().entityRenderer.disableLightmap(partialTicks);
- GL11.glPopMatrix();
- }
- ClientHelper.setLightmapTextureCoords();
- GL11.glEnable(GL11.GL_CULL_FACE);
- GL11.glDisable(3042);
- }
- GL11.glPopMatrix();
- }
-
- protected static int getSegmentLookedAt(ItemStack stack, EntityLivingBase player) {
- float yaw = getCheckingAngle(player, getRotationBase(stack));
- // System.out.print(yaw);
- int angles = 360;
- int segAngles = angles / maxSegmentCount;
- for(int seg = 0; seg < segmentCount; seg++) {
- float calcAngle = seg * segAngles;
- if(yaw >= calcAngle && yaw < calcAngle + segAngles)
- return seg;
- }
- return -1;
- }
-
- protected static float getCheckingAngle(EntityLivingBase player, float base) {
- float yaw = MathHelper.wrapAngleTo180_float(player.rotationYaw) + 90.0F;
- int angles = 360;
- int segAngles = angles / maxSegmentCount;
- float shift = (segAngles / 2)(shift * segmentCount);
- if(yaw < 0.0F)
- yaw = 180.0F + 180.0F + yaw;
- yaw -= 360.0F - base;
- float angle = 360.0F - yaw + shift;
- if(angle < 0.0F)
- angle = 360.0F + angle;
- return angle;
- }
-
- protected static float getCheckingAngle(EntityLivingBase player) {
- return getCheckingAngle(player, 0.0F);
- }
-
- public static void setEquipped(ItemStack stack, boolean equipped) {
- ItemNBTHelper.setBoolean(stack, "equipped", equipped);
- }
-
- public static boolean wasEquipped(ItemStack stack) {
- return ItemNBTHelper.getBoolean(stack, "equipped", false);
- }
-
- public static void setRotationBase(ItemStack stack, float rotation) {
- ItemNBTHelper.setFloat(stack, "rotationBase", rotation);
- }
-
- public static float getRotationBase(ItemStack stack) {
- return ItemNBTHelper.getFloat(stack, "rotationBase", 0.0F);
- }
-}
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToVariableDeclarationFragment(ASTConverter.java:3986)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToVariableDeclarationStatement(ASTConverter.java:4066)
- at org.eclipse.jdt.core.dom.ASTConverter.checkAndAddMultipleLocalDeclaration(ASTConverter.java:557)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:749)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.internalGetHoverInfo(NLSStringHover.java:139)
- at org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.getHoverInfo2(NLSStringHover.java:118)
- at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:163)
- at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:130)
- at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:89)
- at org.eclipse.jface.text.TextViewerHoverManager$1.run(TextViewerHoverManager.java:155)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-03-12 19:15:11.079
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToVariableDeclarationFragment(ASTConverter.java:3986)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToVariableDeclarationStatement(ASTConverter.java:4066)
- at org.eclipse.jdt.core.dom.ASTConverter.checkAndAddMultipleLocalDeclaration(ASTConverter.java:557)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:749)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.internalGetHoverInfo(NLSStringHover.java:139)
- at org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.getHoverInfo2(NLSStringHover.java:118)
- at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:163)
- at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:130)
- at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:89)
- at org.eclipse.jface.text.TextViewerHoverManager$1.run(TextViewerHoverManager.java:155)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-03-12 19:15:11.080
-!MESSAGE Error in JDT Core during AST creation
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToVariableDeclarationFragment(ASTConverter.java:3986)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToVariableDeclarationStatement(ASTConverter.java:4066)
- at org.eclipse.jdt.core.dom.ASTConverter.checkAndAddMultipleLocalDeclaration(ASTConverter.java:557)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:749)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.internalGetHoverInfo(NLSStringHover.java:139)
- at org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.getHoverInfo2(NLSStringHover.java:118)
- at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:163)
- at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:130)
- at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:89)
- at org.eclipse.jface.text.TextViewerHoverManager$1.run(TextViewerHoverManager.java:155)
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 19:15:25.866
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 19:16:03.367
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 19:17:56.045
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 19:19:07.613
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 19:19:27.782
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 19:19:46.179
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 19:20:02.253
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 19:23:32.722
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 19:23:46.828
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 19:24:47.236
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 19:26:04.023
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 19:26:21.804
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 19:27:06.309
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 19:27:21.486
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 19:27:32.581
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 19:28:50.705
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 19:30:18.373
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 19:31:46.343
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.ui 4 4 2022-03-12 19:32:18.673
-!MESSAGE To avoid deadlock while executing Display.syncExec() with argument: org.eclipse.debug.internal.ui.sourcelookup.Prompter$$Lambda$955/0x0000000100b41000@65f8e03e, thread Worker-78: Launching Client will interrupt UI thread.
-!SUBENTRY 1 org.eclipse.ui 4 4 2022-03-12 19:32:18.673
-!MESSAGE Worker-78: Launching Client thread is an instance of Worker or owns an ILock
-!STACK 0
-java.lang.IllegalStateException: Call stack for thread Worker-78: Launching Client
- at java.management@17.0.1/sun.management.ThreadImpl.dumpThreads0(Native Method)
- at java.management@17.0.1/sun.management.ThreadImpl.getThreadInfo(ThreadImpl.java:485)
- at org.eclipse.ui.internal.UILockListener.reportInterruption(UILockListener.java:209)
- at org.eclipse.ui.internal.UILockListener.interruptUI(UILockListener.java:179)
- at org.eclipse.ui.internal.PendingSyncExec.waitUntilExecuted(PendingSyncExec.java:92)
- at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:142)
- at org.eclipse.swt.widgets.Display.syncExec(Display.java:4779)
- at org.eclipse.debug.internal.ui.sourcelookup.Prompter.handleStatus(Prompter.java:81)
- at org.eclipse.debug.core.model.LaunchConfigurationDelegate.saveBeforeLaunch(LaunchConfigurationDelegate.java:245)
- at org.eclipse.debug.core.model.LaunchConfigurationDelegate.preLaunchCheck(LaunchConfigurationDelegate.java:197)
- at org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate.preLaunchCheck(AbstractJavaLaunchConfigurationDelegate.java:1026)
- at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:766)
- at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:716)
- at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1021)
- at org.eclipse.debug.internal.ui.DebugUIPlugin$2.run(DebugUIPlugin.java:1224)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-!SUBENTRY 1 org.eclipse.ui 4 4 2022-03-12 19:32:18.673
-!MESSAGE UI thread waiting on a job or lock.
-!STACK 0
-java.lang.IllegalStateException: Call stack for thread main
- at org.eclipse.ui.internal.PendingSyncExec.run(PendingSyncExec.java:75)
- at org.eclipse.ui.internal.UILockListener.doPendingWork(UILockListener.java:171)
- at org.eclipse.ui.internal.UISynchronizer$$Lambda$861/0x000000010090e238.run(Unknown Source)
- at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:40)
- at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:185)
- at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4035)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3635)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1154)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1045)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
- at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644)
- at org.eclipse.ui.internal.Workbench$$Lambda$284/0x00000001003290f0.run(Unknown Source)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:551)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:156)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
- at java.base@17.0.1/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at java.base@17.0.1/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
- at java.base@17.0.1/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.base@17.0.1/java.lang.reflect.Method.invoke(Method.java:568)
- at app//org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
- at app//org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
- at app//org.eclipse.equinox.launcher.Main.run(Main.java:1467)
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 19:32:19.091
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 19:33:36.137
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 19:34:20.863
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 19:36:19.120
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 19:41:46.411
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 19:42:50.597
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 19:45:26.085
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 19:45:45.626
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 19:46:12.500
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 19:48:43.351
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 19:49:28.157
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 19:49:48.470
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 19:58:43.515
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 20:01:02.732
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 20:01:50.875
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 20:11:35.076
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 20:11:52.292
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 20:12:27.703
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 20:21:33.796
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 20:23:56.554
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 20:28:05.576
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 20:28:53.522
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 20:30:32.626
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 20:31:08.134
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 20:34:52.605
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 20:35:03.239
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 20:35:28.868
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 20:38:56.437
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 20:39:31.453
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 20:39:54.785
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 20:40:38.318
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 20:40:58.985
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 20:41:58.973
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 20:42:16.826
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 20:43:25.719
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 20:44:05.569
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 20:46:01.289
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 20:48:28.903
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 20:49:50.804
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 20:50:09.407
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 20:50:38.083
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 20:50:51.242
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 20:51:19.933
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 20:53:39.382
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 20:54:24.775
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 20:59:31.798
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 21:00:47.268
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 21:02:16.772
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 21:02:43.658
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 21:03:14.536
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 21:03:41.265
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 21:04:19.987
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 21:05:01.150
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 21:07:58.825
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 21:11:29.799
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 21:12:16.790
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 21:13:06.240
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 21:13:46.884
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 21:15:17.170
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 21:20:57.378
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 21:24:09.512
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 21:32:14.432
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 21:33:10.212
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 21:35:14.754
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 21:35:41.827
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 21:36:09.797
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 21:37:14.261
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 21:39:19.487
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 21:39:49.093
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 21:42:40.206
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 21:47:13.520
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 21:48:53.330
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 21:51:56.322
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 21:53:10.203
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 21:55:15.849
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 21:55:40.486
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 21:57:53.767
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 21:59:17.605
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 21:59:30.241
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 22:04:47.759
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 22:07:12.635
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 22:08:04.228
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 22:09:18.172
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 22:10:33.824
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 22:11:06.187
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 22:11:50.896
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 22:18:37.828
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 22:28:29.727
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 22:29:19.968
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 22:29:35.803
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 22:30:50.924
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 22:31:46.430
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 22:32:30.321
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 22:33:49.466
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 22:48:22.901
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 22:51:19.998
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 22:52:03.586
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 22:54:05.680
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 22:55:09.678
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 23:14:04.306
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 23:14:21.824
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 23:21:18.489
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 23:22:48.843
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 23:26:48.583
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 23:27:09.906
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 23:32:56.059
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-12 23:34:56.841
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.core.resources 2 10035 2022-03-12 23:36:53.946
-!MESSAGE The workspace will exit with unsaved changes in this session.
-!SESSION 2022-03-13 11:15:04.411 -----------------------------------------------
-eclipse.buildId=4.22.0.I20211124-1800
-java.version=17.0.1
-java.vendor=Eclipse Adoptium
-BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=ru_RU
-Framework arguments: -product org.eclipse.epp.package.java.product
-Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
-
-!ENTRY org.eclipse.core.resources 2 10035 2022-03-13 11:15:16.079
-!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.
-
-!ENTRY org.eclipse.jface 2 0 2022-03-13 11:15:23.132
-!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
-!SUBENTRY 1 org.eclipse.jface 2 0 2022-03-13 11:15:23.132
-!MESSAGE A conflict occurred for CTRL+SHIFT+T:
-Binding(CTRL+SHIFT+T,
- ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type,
- Open a type in a Java editor,
- Category(org.eclipse.ui.category.navigate,Navigate,null,true),
- org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@41404aa2,
- ,,true),null),
- org.eclipse.ui.defaultAcceleratorConfiguration,
- org.eclipse.ui.contexts.window,,,system)
-Binding(CTRL+SHIFT+T,
- ParameterizedCommand(Command(org.eclipse.lsp4e.symbolinworkspace,Go to Symbol in Workspace,
- ,
- Category(org.eclipse.lsp4e.category,Language Servers,null,true),
- org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@b267745,
- ,,true),null),
- org.eclipse.ui.defaultAcceleratorConfiguration,
- org.eclipse.ui.contexts.window,,,system)
-!SUBENTRY 1 org.eclipse.jface 2 0 2022-03-13 11:15:23.132
-!MESSAGE A conflict occurred for ALT+SHIFT+R:
-Binding(ALT+SHIFT+R,
- ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.rename.element,Rename - Refactoring ,
- Rename the selected element,
- Category(org.eclipse.jdt.ui.category.refactoring,Refactor - Java,Java Refactoring Actions,true),
- org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@31e22365,
- ,,true),null),
- org.eclipse.ui.defaultAcceleratorConfiguration,
- org.eclipse.ui.contexts.window,,,system)
-Binding(ALT+SHIFT+R,
- ParameterizedCommand(Command(org.eclipse.ui.edit.rename,Rename,
- Rename the selected item,
- Category(org.eclipse.ui.category.file,File,null,true),
- org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@2ebf524,
- ,,true),null),
- org.eclipse.ui.defaultAcceleratorConfiguration,
- org.eclipse.ui.contexts.window,,,system)
-
-!ENTRY org.eclipse.egit.ui 2 0 2022-03-13 11:15:26.563
-!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
-user global configuration and to define the default location to store repositories: 'C:\Users\Pulxes'. If this is
-not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
-EGit might behave differently since they see different configuration options.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-13 11:15:33.002
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-13 11:33:28.447
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-13 12:37:07.139
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-13 13:09:26.406
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-13 14:35:14.474
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.debug.core 4 125 2022-03-13 14:35:15.471
+!ENTRY org.eclipse.debug.core 4 125 2022-03-30 15:00:37.029
!MESSAGE Error logged from Debug Core:
!STACK 1
org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
@@ -12109,7 +109,7 @@ Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Mac
at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
... 9 more
-!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-03-13 14:35:15.473
+!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-03-30 15:00:37.029
!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
!STACK 0
com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
@@ -12133,144 +133,417 @@ com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-13 14:36:36.746
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 15:00:37.336
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-13 14:39:33.751
+!ENTRY org.eclipse.debug.core 4 125 2022-03-30 15:31:01.674
+!MESSAGE Error logged from Debug Core:
+!STACK 1
+org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.throwDebugException(JDIDebugElement.java:263)
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.requestFailed(JDIDebugElement.java:202)
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.targetRequestFailed(JDIDebugElement.java:182)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1585)
+ at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.clearSourceElements(AbstractSourceLookupDirector.java:652)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.updateDebugElement(AdvancedSourceLookupParticipant.java:215)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.cacheContainer(AdvancedSourceLookupParticipant.java:162)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.getSourceContainer(AdvancedSourceLookupParticipant.java:146)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:72)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
+ at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
+ at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
+ at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
+ at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
+ ... 17 more
+!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-03-30 15:31:01.675
+!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
+!STACK 0
+com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
+ at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
+ at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
+ at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
+ at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
+ at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.clearSourceElements(AbstractSourceLookupDirector.java:652)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.updateDebugElement(AdvancedSourceLookupParticipant.java:215)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.cacheContainer(AdvancedSourceLookupParticipant.java:162)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.getSourceContainer(AdvancedSourceLookupParticipant.java:146)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:72)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.debug.core 4 125 2022-03-30 15:31:01.675
+!MESSAGE Error logged from Debug Core:
+!STACK 1
+org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.throwDebugException(JDIDebugElement.java:263)
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.requestFailed(JDIDebugElement.java:202)
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.targetRequestFailed(JDIDebugElement.java:182)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1585)
+ at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
+ at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
+ at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
+ at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
+ at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
+ ... 9 more
+!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-03-30 15:31:01.676
+!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
+!STACK 0
+com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
+ at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
+ at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
+ at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
+ at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
+ at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 15:31:04.842
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-13 14:42:06.166
+!ENTRY org.eclipse.debug.core 4 125 2022-03-30 15:33:38.735
+!MESSAGE Error logged from Debug Core:
+!STACK 1
+org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.throwDebugException(JDIDebugElement.java:263)
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.requestFailed(JDIDebugElement.java:202)
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.targetRequestFailed(JDIDebugElement.java:182)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1585)
+ at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.clearSourceElements(AbstractSourceLookupDirector.java:652)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.updateDebugElement(AdvancedSourceLookupParticipant.java:215)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.cacheContainer(AdvancedSourceLookupParticipant.java:162)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.getSourceContainer(AdvancedSourceLookupParticipant.java:146)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:72)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
+ at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
+ at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
+ at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
+ at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
+ ... 17 more
+!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-03-30 15:33:38.735
+!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
+!STACK 0
+com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
+ at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
+ at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
+ at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
+ at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
+ at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.clearSourceElements(AbstractSourceLookupDirector.java:652)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.updateDebugElement(AdvancedSourceLookupParticipant.java:215)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.cacheContainer(AdvancedSourceLookupParticipant.java:162)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.getSourceContainer(AdvancedSourceLookupParticipant.java:146)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:72)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.debug.core 4 125 2022-03-30 15:33:38.736
+!MESSAGE Error logged from Debug Core:
+!STACK 1
+org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.throwDebugException(JDIDebugElement.java:263)
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.requestFailed(JDIDebugElement.java:202)
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.targetRequestFailed(JDIDebugElement.java:182)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1585)
+ at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
+ at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
+ at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
+ at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
+ at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
+ ... 9 more
+!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-03-30 15:33:38.736
+!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
+!STACK 0
+com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
+ at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
+ at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
+ at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
+ at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
+ at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 15:33:42.008
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-13 14:43:45.627
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 15:47:32.351
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-13 14:46:09.496
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 15:51:50.563
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-13 14:49:32.849
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 15:54:37.000
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-13 14:57:40.991
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 16:00:05.929
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-13 14:58:52.655
+!ENTRY org.eclipse.debug.core 4 125 2022-03-30 16:04:35.829
+!MESSAGE Error logged from Debug Core:
+!STACK 1
+org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.throwDebugException(JDIDebugElement.java:263)
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.requestFailed(JDIDebugElement.java:202)
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.targetRequestFailed(JDIDebugElement.java:182)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1585)
+ at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.clearSourceElements(AbstractSourceLookupDirector.java:652)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.updateDebugElement(AdvancedSourceLookupParticipant.java:215)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.cacheContainer(AdvancedSourceLookupParticipant.java:162)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.getSourceContainer(AdvancedSourceLookupParticipant.java:146)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:72)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
+ at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
+ at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
+ at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
+ at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
+ ... 17 more
+!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-03-30 16:04:35.829
+!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
+!STACK 0
+com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
+ at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
+ at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
+ at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
+ at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
+ at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.clearSourceElements(AbstractSourceLookupDirector.java:652)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.updateDebugElement(AdvancedSourceLookupParticipant.java:215)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.cacheContainer(AdvancedSourceLookupParticipant.java:162)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.getSourceContainer(AdvancedSourceLookupParticipant.java:146)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:72)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.debug.core 4 125 2022-03-30 16:04:35.830
+!MESSAGE Error logged from Debug Core:
+!STACK 1
+org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.throwDebugException(JDIDebugElement.java:263)
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.requestFailed(JDIDebugElement.java:202)
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.targetRequestFailed(JDIDebugElement.java:182)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1585)
+ at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
+ at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
+ at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
+ at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
+ at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
+ ... 9 more
+!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-03-30 16:04:35.830
+!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
+!STACK 0
+com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
+ at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
+ at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
+ at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
+ at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
+ at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 16:04:38.540
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-13 14:59:28.786
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 16:09:04.011
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-13 15:00:10.482
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 16:11:10.839
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-13 15:09:02.709
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 16:13:00.722
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-13 15:10:18.502
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 16:13:36.637
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-13 15:22:44.014
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 16:14:31.219
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-13 15:30:32.480
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 16:55:04.225
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-13 15:30:56.785
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 16:58:19.674
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-13 15:31:14.032
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-13 15:32:19.389
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-13 15:35:00.918
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-13 15:38:23.831
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-13 15:42:30.553
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-13 15:45:17.684
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-13 15:52:26.288
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-13 15:55:43.608
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-13 15:59:46.726
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-13 16:00:41.004
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-13 16:02:36.527
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-13 16:04:47.246
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-13 16:05:38.091
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-13 16:08:15.771
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-13 16:12:45.334
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-13 16:14:29.704
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-13 16:15:48.629
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-13 16:17:19.521
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-13 16:25:22.439
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-13 16:30:57.947
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-13 16:34:16.241
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-13 16:39:12.168
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-13 16:42:33.914
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-13 16:45:15.628
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-13 16:47:01.955
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-13 17:01:35.970
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-13 17:11:18.351
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-13 17:11:44.647
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-13 17:12:38.901
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-13 17:14:11.039
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-13 17:56:01.032
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!SESSION 2022-03-14 14:00:37.503 -----------------------------------------------
+!SESSION 2022-03-30 16:58:28.607 -----------------------------------------------
eclipse.buildId=4.22.0.I20211124-1800
java.version=17.0.1
java.vendor=Eclipse Adoptium
@@ -12278,1079 +551,477 @@ BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=ru_RU
Framework arguments: -product org.eclipse.epp.package.java.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
-!ENTRY org.eclipse.jface 2 0 2022-03-14 14:01:46.857
+!ENTRY org.eclipse.jface 2 0 2022-03-30 16:58:59.896
!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
-!SUBENTRY 1 org.eclipse.jface 2 0 2022-03-14 14:01:46.857
+!SUBENTRY 1 org.eclipse.jface 2 0 2022-03-30 16:58:59.896
!MESSAGE A conflict occurred for CTRL+SHIFT+T:
Binding(CTRL+SHIFT+T,
ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type,
Open a type in a Java editor,
Category(org.eclipse.ui.category.navigate,Navigate,null,true),
- org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@632b5c79,
- ,,true),null),
- org.eclipse.ui.defaultAcceleratorConfiguration,
- org.eclipse.ui.contexts.window,,,system)
-Binding(CTRL+SHIFT+T,
- ParameterizedCommand(Command(org.eclipse.lsp4e.symbolinworkspace,Go to Symbol in Workspace,
- ,
- Category(org.eclipse.lsp4e.category,Language Servers,null,true),
org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@6a552721,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
-!SUBENTRY 1 org.eclipse.jface 2 0 2022-03-14 14:01:46.857
-!MESSAGE A conflict occurred for ALT+SHIFT+R:
-Binding(ALT+SHIFT+R,
- ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.rename.element,Rename - Refactoring ,
- Rename the selected element,
- Category(org.eclipse.jdt.ui.category.refactoring,Refactor - Java,Java Refactoring Actions,true),
+Binding(CTRL+SHIFT+T,
+ ParameterizedCommand(Command(org.eclipse.lsp4e.symbolinworkspace,Go to Symbol in Workspace,
+ ,
+ Category(org.eclipse.lsp4e.category,Language Servers,null,true),
org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@3815a7d1,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
+!SUBENTRY 1 org.eclipse.jface 2 0 2022-03-30 16:58:59.896
+!MESSAGE A conflict occurred for ALT+SHIFT+R:
Binding(ALT+SHIFT+R,
- ParameterizedCommand(Command(org.eclipse.ui.edit.rename,Rename,
- Rename the selected item,
- Category(org.eclipse.ui.category.file,File,null,true),
+ ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.rename.element,Rename - Refactoring ,
+ Rename the selected element,
+ Category(org.eclipse.jdt.ui.category.refactoring,Refactor - Java,Java Refactoring Actions,true),
org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@24dc150c,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
+Binding(ALT+SHIFT+R,
+ ParameterizedCommand(Command(org.eclipse.ui.edit.rename,Rename,
+ Rename the selected item,
+ Category(org.eclipse.ui.category.file,File,null,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@1d2d4d7a,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
-!ENTRY org.eclipse.egit.ui 2 0 2022-03-14 14:01:50.386
+!ENTRY org.eclipse.egit.ui 2 0 2022-03-30 16:59:03.684
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Users\Pulxes'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-14 14:03:23.720
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 17:05:21.396
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-14 14:14:56.580
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 17:07:00.637
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-14 14:30:32.791
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 17:16:45.130
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-14 14:36:49.153
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 17:19:05.304
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-14 15:22:05.510
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-14 15:24:36.569
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-14 15:26:09.782
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-14 15:27:14.359
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-14 15:31:22.073
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-14 15:33:12.271
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-14 15:39:38.302
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-14 15:40:55.160
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-14 15:44:34.599
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-14 15:47:26.760
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-14 15:49:28.386
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-14 15:58:41.800
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-14 16:01:09.729
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-14 16:02:30.276
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-14 16:13:36.566
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-14 16:21:47.695
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-14 16:26:12.388
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-14 16:27:36.932
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-14 16:32:07.615
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-14 16:33:27.133
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-14 16:59:15.676
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-14 17:09:12.375
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-14 17:13:12.940
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-14 17:14:04.900
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-14 17:15:30.351
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-14 17:21:02.449
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-14 17:26:21.359
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-14 17:28:44.931
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-14 17:42:50.359
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-14 18:02:56.507
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-14 18:10:58.585
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-14 18:18:30.932
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-14 18:20:20.497
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 14:19:42.674
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 14:25:04.687
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 14:25:46.291
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 14:43:35.436
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 14:47:01.792
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 14:51:34.395
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 14:53:07.967
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 14:56:15.211
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 15:20:47.172
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 15:22:37.744
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 15:23:33.775
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 15:24:25.900
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 15:33:04.428
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:02:20.006
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:05:26.537
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:09:26.117
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:10:00.990
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:10:42.157
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:11:57.002
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:12:07.200
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:12:22.811
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:14:02.201
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:14:52.166
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:15:19.264
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:15:34.865
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:16:05.041
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:16:15.557
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:16:38.069
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:16:57.813
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:17:42.696
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:18:12.244
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:18:35.844
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:19:37.031
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:20:02.781
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:21:03.403
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:21:21.849
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:22:14.805
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:22:47.975
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:23:04.564
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:24:03.035
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:24:47.526
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:25:03.867
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:25:34.600
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:25:46.928
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:26:15.417
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:28:15.033
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:28:41.308
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:29:38.847
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:29:50.356
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:30:03.191
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:30:37.381
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:32:04.722
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:32:38.773
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:33:53.051
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:34:17.006
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:35:20.301
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:36:49.536
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:37:17.567
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:47:04.891
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:47:26.567
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:48:05.394
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:48:28.671
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:48:54.359
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:49:26.187
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:53:10.823
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:55:02.726
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:55:50.611
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:56:47.315
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 16:58:30.172
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 18:57:22.248
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 19:04:27.469
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 19:11:14.205
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 19:13:15.130
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 19:26:16.439
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 19:31:43.022
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 19:34:49.029
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 19:41:33.764
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 19:45:38.171
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 19:47:05.055
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 19:57:29.096
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 19:58:53.831
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 20:03:29.139
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 20:04:38.027
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 20:08:03.057
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 20:09:06.463
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 20:09:38.142
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 20:10:56.394
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 20:15:38.020
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 20:24:36.306
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 20:39:08.242
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 20:42:51.157
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 20:45:10.294
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 20:54:24.722
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.help.base 2 0 2022-03-15 20:57:16.175
-!MESSAGE Unable to consume Lucene index from bundle 'org.eclipse.jdt.doc.user_3.15.1200.v20211124-1019 [215]'. The index should be rebuilt with Lucene 8.4.1
-
-!ENTRY org.eclipse.help.base 2 0 2022-03-15 20:57:16.178
-!MESSAGE Unable to consume Lucene index from bundle 'org.eclipse.platform.doc.user_4.22.0.v20211123-1648 [330]'. The index should be rebuilt with Lucene 8.4.1
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 20:57:30.409
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 20:57:46.503
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 21:04:23.996
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 21:06:23.825
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 21:10:54.382
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 21:13:45.138
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 21:14:41.573
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 21:25:15.744
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 21:33:17.613
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 21:33:42.363
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 21:34:00.718
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 21:34:22.316
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 21:34:51.956
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-15 21:35:19.319
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-16 16:24:20.300
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-16 16:27:30.456
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-16 16:28:21.098
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-16 16:29:36.254
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-16 16:30:49.797
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-16 16:39:51.322
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-16 16:44:07.230
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-16 16:44:58.967
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-16 16:49:14.013
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-16 16:52:28.014
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-16 16:55:19.118
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-16 16:58:41.112
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-16 17:00:36.991
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-16 17:01:12.728
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-16 17:02:46.598
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-16 17:03:34.297
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-16 17:05:06.178
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-16 17:26:14.987
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-16 17:27:41.194
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-03-17 16:44:26.371
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.block;
-
-import ab.AdvancedBotany;
-import ab.common.block.tile.TileInventory;
-import ab.common.block.tile.TileManaCharger;
-import ab.common.lib.register.BlockListAB;
-import ab.common.lib.register.RecipeListAB;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockContainer;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.gui.ScaledResolution;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.IIcon;
-import net.minecraft.util.Vec3;
-import net.minecraft.world.World;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.api.lexicon.ILexiconable;
-import vazkii.botania.api.lexicon.LexiconEntry;
-import vazkii.botania.api.mana.IManaItem;
-import vazkii.botania.api.wand.IWandHUD;
-import vazkii.botania.api.wand.IWandable;
-import vazkii.botania.common.block.ModBlocks;
-
-public class BlockManaCharger extends BlockContainer implements IWandHUD, IWandable, ILexiconable {
-
- public BlockManaCharger() {
- super(Material.iron);
- this.setCreativeTab(AdvancedBotany.tabAB);
- this.setHardness(6.0F);
- float f = 0.0625f;
- this.setBlockBounds(f * 3, f * 3, f * 3, 1.0f - f * 3, 1.0f - f * 4 + f * 3, 1.0f - f * 3);
- this.setBlockName("ABManaCharger");
- }
-
- public IIcon getIcon(int par1, int par2) {
- return ModBlocks.livingrock.getIcon(0, 0);
- }
-
- public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float par7, float par8, float par9) {
- TileManaCharger tile = (TileManaCharger)world.getTileEntity(x, y, z);
- if(tile != null) {
- int slotSide = side - 1;
- if(slotSide < 0)
- return false;
- ItemStack heldItem = player.getCurrentEquippedItem();
- ItemStack stackInSlot = tile.getStackInSlot(slotSide);
- if(player.isSneaking()) {
- if(stackInSlot != null) {
- ItemStack copy = stackInSlot.copy();
- tile.setInventorySlotContents(slotSide, null);
- if(!world.isRemote) {
- Vec3 vec3 = player.getLook(1.0F).normalize();
- EntityItem entityitem = new EntityItem(world, player.posX + vec3.xCoord, player.posY + 1.2f, player.posZ + vec3.zCoord, copy);
- world.spawnEntityInWorld(entityitem);
- tile.requestUpdate = true;
- }
- world.func_147453_f(x, y, z, (Block)this);
- return true;
- }
- } else {
- (heldItem != null && heldItem.getItem() instanceof IManaItem && stackInSlot == null && heldItem.getMaxStackSize() == 1) {
- ItemStack copy = heldItem.copy();
- copy.stackSize = 1;
- heldItem.stackSize--;
- if(heldItem.stackSize == 0)
- player.inventory.setInventorySlotContents(player.inventory.currentItem, null);
- player.inventory.markDirty();
- if(!world.isRemote) {
- tile.setInventorySlotContents(slotSide, copy);
- tile.requestUpdate = true;
- }
- return true;
- }
- }
- }
- return false;
- }
-
- public void breakBlock(World world, int x, int y, int z, Block block, int meta) {
- if(!world.isRemote) {
- TileInventory inv = (TileInventory)world.getTileEntity(x, y, z);
- if (inv != null) {
- for (int i = 0; i < inv.getSizeInventory(); i++) {
- ItemStack stack = inv.getStackInSlot(i);
- if (stack != null) {
- float f = world.rand.nextFloat() * 0.8F + 0.1F;
- float f1 = world.rand.nextFloat() * 0.8F + 0.1F;
- float f2 = world.rand.nextFloat() * 0.8F + 0.1F;
- EntityItem entityitem = new EntityItem(world, (x + f), (y + f1), (z + f2), stack.copy());
- float f3 = 0.05F;
- entityitem.motionX = ((float)world.rand.nextGaussian() * f3);
- entityitem.motionY = ((float)world.rand.nextGaussian() * f3 + 0.2F);
- entityitem.motionZ = ((float)world.rand.nextGaussian() * f3);
- if (stack.hasTagCompound())
- entityitem.getEntityItem().setTagCompound((NBTTagCompound)stack.getTagCompound().copy());
- world.spawnEntityInWorld(entityitem);
- }
- }
- }
- }
- super.breakBlock(world, x, y, z, block, meta);
- }
-
- public boolean isOpaqueCube() {
- return false;
- }
-
- public boolean renderAsNormalBlock() {
- return false;
- }
-
- public int getRenderType() {
- return BlockListAB.blockManaChargerRI;
- }
-
- public TileEntity createNewTileEntity(World world, int meta) {
- return new TileManaCharger();
- }
-
- public void renderHUD(Minecraft mc, ScaledResolution res, World world, int x, int y, int z) {
- ((TileManaCharger)world.getTileEntity(x, y, z)).renderHUD(mc, res);
- }
-
- public boolean onUsedByWand(EntityPlayer player, ItemStack stack, World world, int x, int y, int z, int side) {
- ((TileManaCharger)world.getTileEntity(x, y, z)).onWanded(player, stack);
- return true;
- }
-
- public LexiconEntry getEntry(World arg0, int arg1, int arg2, int arg3, EntityPlayer arg4, ItemStack arg5) {
- return RecipeListAB.manaCharger;
- }
-}
-
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+!ENTRY org.eclipse.debug.core 4 125 2022-03-30 17:34:50.437
+!MESSAGE Error logged from Debug Core:
+!STACK 1
+org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.throwDebugException(JDIDebugElement.java:263)
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.requestFailed(JDIDebugElement.java:202)
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.targetRequestFailed(JDIDebugElement.java:182)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1585)
+ at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 2 2022-03-17 16:44:26.376
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
+ at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
+ at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
+ at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
+ at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
+ ... 9 more
+!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-03-30 17:34:50.439
+!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
+ at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
+ at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
+ at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
+ at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
+ at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 0 2022-03-17 16:44:26.377
-!MESSAGE Error in JDT Core during reconcile
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-03-17 16:44:26.702
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.block;
-
-import ab.AdvancedBotany;
-import ab.common.block.tile.TileInventory;
-import ab.common.block.tile.TileManaCharger;
-import ab.common.lib.register.BlockListAB;
-import ab.common.lib.register.RecipeListAB;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockContainer;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.gui.ScaledResolution;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.IIcon;
-import net.minecraft.util.Vec3;
-import net.minecraft.world.World;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.api.lexicon.ILexiconable;
-import vazkii.botania.api.lexicon.LexiconEntry;
-import vazkii.botania.api.mana.IManaItem;
-import vazkii.botania.api.wand.IWandHUD;
-import vazkii.botania.api.wand.IWandable;
-import vazkii.botania.common.block.ModBlocks;
-
-public class BlockManaCharger extends BlockContainer implements IWandHUD, IWandable, ILexiconable {
-
- public BlockManaCharger() {
- super(Material.iron);
- this.setCreativeTab(AdvancedBotany.tabAB);
- this.setHardness(6.0F);
- float f = 0.0625f;
- this.setBlockBounds(f * 3, f * 3, f * 3, 1.0f - f * 3, 1.0f - f * 4 + f * 3, 1.0f - f * 3);
- this.setBlockName("ABManaCharger");
- }
-
- public IIcon getIcon(int par1, int par2) {
- return ModBlocks.livingrock.getIcon(0, 0);
- }
-
- public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float par7, float par8, float par9) {
- TileManaCharger tile = (TileManaCharger)world.getTileEntity(x, y, z);
- if(tile != null) {
- int slotSide = side - 1;
- if(slotSide < 0)
- return false;
- ItemStack heldItem = player.getCurrentEquippedItem();
- ItemStack stackInSlot = tile.getStackInSlot(slotSide);
- if(player.isSneaking()) {
- if(stackInSlot != null) {
- ItemStack copy = stackInSlot.copy();
- tile.setInventorySlotContents(slotSide, null);
- if(!world.isRemote) {
- Vec3 vec3 = player.getLook(1.0F).normalize();
- EntityItem entityitem = new EntityItem(world, player.posX + vec3.xCoord, player.posY + 1.2f, player.posZ + vec3.zCoord, copy);
- world.spawnEntityInWorld(entityitem);
- tile.requestUpdate = true;
- }
- world.func_147453_f(x, y, z, (Block)this);
- return true;
- }
- } else {
- (heldItem != null && heldItem.getItem() instanceof IManaItem && stackInSlot == null && heldItem.getMaxStackSize() == 1) {
- ItemStack copy = heldItem.copy();
- copy.stackSize = 1;
- heldItem.stackSize--;
- if(heldItem.stackSize == 0)
- player.inventory.setInventorySlotContents(player.inventory.currentItem, null);
- player.inventory.markDirty();
- if(!world.isRemote) {
- tile.setInventorySlotContents(slotSide, copy);
- tile.requestUpdate = true;
- }
- return true;
- }
- }
- }
- return false;
- }
-
- public void breakBlock(World world, int x, int y, int z, Block block, int meta) {
- if(!world.isRemote) {
- TileInventory inv = (TileInventory)world.getTileEntity(x, y, z);
- if (inv != null) {
- for (int i = 0; i < inv.getSizeInventory(); i++) {
- ItemStack stack = inv.getStackInSlot(i);
- if (stack != null) {
- float f = world.rand.nextFloat() * 0.8F + 0.1F;
- float f1 = world.rand.nextFloat() * 0.8F + 0.1F;
- float f2 = world.rand.nextFloat() * 0.8F + 0.1F;
- EntityItem entityitem = new EntityItem(world, (x + f), (y + f1), (z + f2), stack.copy());
- float f3 = 0.05F;
- entityitem.motionX = ((float)world.rand.nextGaussian() * f3);
- entityitem.motionY = ((float)world.rand.nextGaussian() * f3 + 0.2F);
- entityitem.motionZ = ((float)world.rand.nextGaussian() * f3);
- if (stack.hasTagCompound())
- entityitem.getEntityItem().setTagCompound((NBTTagCompound)stack.getTagCompound().copy());
- world.spawnEntityInWorld(entityitem);
- }
- }
- }
- }
- super.breakBlock(world, x, y, z, block, meta);
- }
-
- public boolean isOpaqueCube() {
- return false;
- }
-
- public boolean renderAsNormalBlock() {
- return false;
- }
-
- public int getRenderType() {
- return BlockListAB.blockManaChargerRI;
- }
-
- public TileEntity createNewTileEntity(World world, int meta) {
- return new TileManaCharger();
- }
-
- public void renderHUD(Minecraft mc, ScaledResolution res, World world, int x, int y, int z) {
- ((TileManaCharger)world.getTileEntity(x, y, z)).renderHUD(mc, res);
- }
-
- public boolean onUsedByWand(EntityPlayer player, ItemStack stack, World world, int x, int y, int z, int side) {
- ((TileManaCharger)world.getTileEntity(x, y, z)).onWanded(player, stack);
- return true;
- }
-
- public LexiconEntry getEntry(World arg0, int arg1, int arg2, int arg3, EntityPlayer arg4, ItemStack arg5) {
- return RecipeListAB.manaCharger;
- }
-}
-
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-03-17 16:44:26.704
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 17:34:50.890
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.debug.core 4 125 2022-03-30 17:41:03.964
+!MESSAGE Error logged from Debug Core:
+!STACK 1
+org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.throwDebugException(JDIDebugElement.java:263)
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.requestFailed(JDIDebugElement.java:202)
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.targetRequestFailed(JDIDebugElement.java:182)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1585)
+ at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.clearSourceElements(AbstractSourceLookupDirector.java:652)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.updateDebugElement(AdvancedSourceLookupParticipant.java:215)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.cacheContainer(AdvancedSourceLookupParticipant.java:162)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.getSourceContainer(AdvancedSourceLookupParticipant.java:146)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:72)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
+ at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
+ at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
+ at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
+ at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
+ ... 17 more
+!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-03-30 17:41:03.965
+!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
+!STACK 0
+com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
+ at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
+ at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
+ at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
+ at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
+ at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.clearSourceElements(AbstractSourceLookupDirector.java:652)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.updateDebugElement(AdvancedSourceLookupParticipant.java:215)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.cacheContainer(AdvancedSourceLookupParticipant.java:162)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.getSourceContainer(AdvancedSourceLookupParticipant.java:146)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:72)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-03-17 16:44:26.705
-!MESSAGE Error in JDT Core during AST creation
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+!ENTRY org.eclipse.debug.core 4 125 2022-03-30 17:41:03.966
+!MESSAGE Error logged from Debug Core:
+!STACK 1
+org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.throwDebugException(JDIDebugElement.java:263)
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.requestFailed(JDIDebugElement.java:202)
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.targetRequestFailed(JDIDebugElement.java:182)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1585)
+ at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
+ at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
+ at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
+ at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
+ at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
+ ... 9 more
+!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-03-30 17:41:03.966
+!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
+!STACK 0
+com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
+ at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
+ at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
+ at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
+ at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
+ at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-17 16:54:10.752
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 17:41:06.642
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-17 16:56:48.877
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 17:47:57.999
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-17 17:02:30.434
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 17:50:20.061
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.core.resources 2 10035 2022-03-17 17:03:19.209
-!MESSAGE The workspace will exit with unsaved changes in this session.
-!SESSION 2022-03-17 17:03:21.961 -----------------------------------------------
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 17:51:10.710
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.debug.core 4 125 2022-03-30 17:57:00.104
+!MESSAGE Error logged from Debug Core:
+!STACK 1
+org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.throwDebugException(JDIDebugElement.java:263)
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.requestFailed(JDIDebugElement.java:202)
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.targetRequestFailed(JDIDebugElement.java:182)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1585)
+ at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.clearSourceElements(AbstractSourceLookupDirector.java:652)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.updateDebugElement(AdvancedSourceLookupParticipant.java:215)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.cacheContainer(AdvancedSourceLookupParticipant.java:162)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.getSourceContainer(AdvancedSourceLookupParticipant.java:146)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:72)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
+ at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
+ at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
+ at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
+ at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
+ ... 17 more
+!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-03-30 17:57:00.104
+!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
+!STACK 0
+com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
+ at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
+ at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
+ at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
+ at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
+ at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.clearSourceElements(AbstractSourceLookupDirector.java:652)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.updateDebugElement(AdvancedSourceLookupParticipant.java:215)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.cacheContainer(AdvancedSourceLookupParticipant.java:162)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.getSourceContainer(AdvancedSourceLookupParticipant.java:146)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:72)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.debug.core 4 125 2022-03-30 17:57:00.105
+!MESSAGE Error logged from Debug Core:
+!STACK 1
+org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.throwDebugException(JDIDebugElement.java:263)
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.requestFailed(JDIDebugElement.java:202)
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.targetRequestFailed(JDIDebugElement.java:182)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1585)
+ at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
+ at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
+ at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
+ at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
+ at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
+ ... 9 more
+!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-03-30 17:57:00.105
+!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
+!STACK 0
+com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
+ at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
+ at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
+ at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
+ at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
+ at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 17:57:02.506
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.debug.core 4 125 2022-03-30 18:17:46.940
+!MESSAGE Error logged from Debug Core:
+!STACK 1
+org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.throwDebugException(JDIDebugElement.java:263)
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.requestFailed(JDIDebugElement.java:202)
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.targetRequestFailed(JDIDebugElement.java:182)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1585)
+ at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
+ at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
+ at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
+ at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
+ at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
+ ... 9 more
+!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-03-30 18:17:46.941
+!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
+!STACK 0
+com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
+ at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
+ at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
+ at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
+ at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
+ at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 18:17:47.627
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 18:22:04.132
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 18:50:05.690
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 18:52:57.376
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 19:06:03.895
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 19:25:57.244
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 19:26:56.543
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 19:31:56.308
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 19:32:35.098
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 19:40:13.449
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 19:43:07.115
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 19:44:30.722
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 19:48:53.117
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 19:52:17.295
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 20:00:24.949
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+!SESSION 2022-03-31 09:49:06.812 -----------------------------------------------
eclipse.buildId=4.22.0.I20211124-1800
java.version=17.0.1
java.vendor=Eclipse Adoptium
@@ -13358,18 +1029,15 @@ BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=ru_RU
Framework arguments: -product org.eclipse.epp.package.java.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
-!ENTRY org.eclipse.core.resources 2 10035 2022-03-17 17:03:28.673
-!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.
-
-!ENTRY org.eclipse.jface 2 0 2022-03-17 17:03:35.173
+!ENTRY org.eclipse.jface 2 0 2022-03-31 09:49:25.581
!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
-!SUBENTRY 1 org.eclipse.jface 2 0 2022-03-17 17:03:35.173
+!SUBENTRY 1 org.eclipse.jface 2 0 2022-03-31 09:49:25.581
!MESSAGE A conflict occurred for CTRL+SHIFT+T:
Binding(CTRL+SHIFT+T,
ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type,
Open a type in a Java editor,
Category(org.eclipse.ui.category.navigate,Navigate,null,true),
- org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@b267745,
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@181098bf,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
@@ -13377,17 +1045,17 @@ Binding(CTRL+SHIFT+T,
ParameterizedCommand(Command(org.eclipse.lsp4e.symbolinworkspace,Go to Symbol in Workspace,
,
Category(org.eclipse.lsp4e.category,Language Servers,null,true),
- org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@31e22365,
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@632b5c79,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
-!SUBENTRY 1 org.eclipse.jface 2 0 2022-03-17 17:03:35.173
+!SUBENTRY 1 org.eclipse.jface 2 0 2022-03-31 09:49:25.581
!MESSAGE A conflict occurred for ALT+SHIFT+R:
Binding(ALT+SHIFT+R,
ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.rename.element,Rename - Refactoring ,
Rename the selected element,
Category(org.eclipse.jdt.ui.category.refactoring,Refactor - Java,Java Refactoring Actions,true),
- org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@2ebf524,
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@6a552721,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
@@ -13395,640 +1063,49 @@ Binding(ALT+SHIFT+R,
ParameterizedCommand(Command(org.eclipse.ui.edit.rename,Rename,
Rename the selected item,
Category(org.eclipse.ui.category.file,File,null,true),
- org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@41bdaa81,
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@3815a7d1,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
-!ENTRY org.eclipse.egit.ui 2 0 2022-03-17 17:03:38.974
+!ENTRY org.eclipse.egit.ui 2 0 2022-03-31 09:49:28.696
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Users\Pulxes'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-17 17:03:56.069
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 09:49:41.560
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-17 17:11:35.101
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 09:56:17.282
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-17 17:14:54.292
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 10:20:18.481
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-17 17:15:36.734
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 10:51:08.393
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.ui 4 0 2022-03-17 18:10:07.394
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.IllegalArgumentException: Argument not valid
- at org.eclipse.swt.SWT.error(SWT.java:4888)
- at org.eclipse.swt.SWT.error(SWT.java:4822)
- at org.eclipse.swt.SWT.error(SWT.java:4793)
- at org.eclipse.swt.graphics.GC.setFont(GC.java:4416)
- at org.eclipse.swt.custom.CTabFolderRenderer.computeSize(CTabFolderRenderer.java:311)
- at org.eclipse.e4.ui.workbench.renderers.swt.CTabRendering.computeSize(CTabRendering.java:238)
- at org.eclipse.swt.custom.CTabFolder.createButtonImage(CTabFolder.java:728)
- at org.eclipse.swt.custom.CTabFolder.updateChevronImage(CTabFolder.java:2661)
- at org.eclipse.swt.custom.CTabFolder.setButtonBounds(CTabFolder.java:2566)
- at org.eclipse.swt.custom.CTabFolder.updateItems(CTabFolder.java:3854)
- at org.eclipse.swt.custom.CTabFolder.updateItems(CTabFolder.java:3777)
- at org.eclipse.swt.custom.CTabFolder.onResize(CTabFolder.java:2120)
- at org.eclipse.swt.custom.CTabFolder.lambda$0(CTabFolder.java:338)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
- at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4243)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1060)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1084)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1065)
- at org.eclipse.swt.widgets.Control.sendResize(Control.java:3057)
- at org.eclipse.swt.widgets.Composite.sendResize(Composite.java:1018)
- at org.eclipse.swt.widgets.Composite.setBoundsInPixels(Composite.java:1067)
- at org.eclipse.swt.widgets.Control.setBoundsInPixels(Control.java:3226)
- at org.eclipse.swt.widgets.Control.setBoundsInPixels(Control.java:3222)
- at org.eclipse.swt.widgets.Control.setBounds(Control.java:3217)
- at org.eclipse.swt.layout.FillLayout.layout(FillLayout.java:216)
- at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1335)
- at org.eclipse.swt.widgets.Composite.sendResize(Composite.java:1022)
- at org.eclipse.swt.widgets.Composite.setBoundsInPixels(Composite.java:1067)
- at org.eclipse.swt.widgets.Control.setBoundsInPixels(Control.java:3226)
- at org.eclipse.swt.widgets.Control.setBoundsInPixels(Control.java:3222)
- at org.eclipse.swt.widgets.Control.setBounds(Control.java:3217)
- at org.eclipse.swt.layout.FillLayout.layout(FillLayout.java:216)
- at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1335)
- at org.eclipse.swt.widgets.Composite.sendResize(Composite.java:1022)
- at org.eclipse.swt.widgets.Composite.setBoundsInPixels(Composite.java:1067)
- at org.eclipse.swt.widgets.Control.setBoundsInPixels(Control.java:3226)
- at org.eclipse.swt.widgets.Control.setBoundsInPixels(Control.java:3222)
- at org.eclipse.swt.widgets.Control.setBoundsInPixels(Control.java:3298)
- at org.eclipse.swt.widgets.Control.setBounds(Control.java:3294)
- at org.eclipse.e4.ui.workbench.renderers.swt.SashLayout.setRectangle(SashLayout.java:315)
- at org.eclipse.e4.ui.workbench.renderers.swt.SashLayout.tileSubNodes(SashLayout.java:260)
- at org.eclipse.e4.ui.workbench.renderers.swt.SashLayout.tileSubNodes(SashLayout.java:303)
- at org.eclipse.e4.ui.workbench.renderers.swt.SashLayout.tileSubNodes(SashLayout.java:303)
- at org.eclipse.e4.ui.workbench.renderers.swt.SashLayout.tileSubNodes(SashLayout.java:303)
- at org.eclipse.e4.ui.workbench.renderers.swt.SashLayout.layout(SashLayout.java:178)
- at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1335)
- at org.eclipse.swt.widgets.Composite.sendResize(Composite.java:1022)
- at org.eclipse.swt.widgets.Composite.setBoundsInPixels(Composite.java:1067)
- at org.eclipse.swt.widgets.Control.setBoundsInPixels(Control.java:3226)
- at org.eclipse.swt.widgets.Control.setBoundsInPixels(Control.java:3222)
- at org.eclipse.swt.widgets.Control.setBounds(Control.java:3217)
- at org.eclipse.swt.layout.FillLayout.layout(FillLayout.java:216)
- at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1335)
- at org.eclipse.swt.widgets.Composite.WM_SIZE(Composite.java:1736)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4830)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:5002)
- at org.eclipse.swt.internal.win32.OS.DefWindowProc(Native Method)
- at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:91)
- at org.eclipse.swt.widgets.Control.WM_WINDOWPOSCHANGED(Control.java:5685)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4843)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:5002)
- at org.eclipse.swt.internal.win32.OS.SetWindowPos(Native Method)
- at org.eclipse.swt.widgets.Control.setBoundsInPixels(Control.java:3265)
- at org.eclipse.swt.widgets.Composite.setBoundsInPixels(Composite.java:1061)
- at org.eclipse.swt.widgets.Control.setBoundsInPixels(Control.java:3226)
- at org.eclipse.swt.widgets.Control.setBoundsInPixels(Control.java:3222)
- at org.eclipse.swt.widgets.Control.setBoundsInPixels(Control.java:3298)
- at org.eclipse.swt.widgets.Control.setBounds(Control.java:3294)
- at org.eclipse.swt.custom.StackLayout.layout(StackLayout.java:124)
- at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1335)
- at org.eclipse.swt.widgets.Composite.WM_SIZE(Composite.java:1736)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4830)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:5002)
- at org.eclipse.swt.internal.win32.OS.DefWindowProc(Native Method)
- at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:91)
- at org.eclipse.swt.widgets.Control.WM_WINDOWPOSCHANGED(Control.java:5685)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4843)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:5002)
- at org.eclipse.swt.internal.win32.OS.SetWindowPos(Native Method)
- at org.eclipse.swt.widgets.Control.setBoundsInPixels(Control.java:3265)
- at org.eclipse.swt.widgets.Composite.setBoundsInPixels(Composite.java:1061)
- at org.eclipse.swt.widgets.Control.setBoundsInPixels(Control.java:3226)
- at org.eclipse.swt.widgets.Control.setBoundsInPixels(Control.java:3222)
- at org.eclipse.swt.widgets.Control.setBoundsInPixels(Control.java:3298)
- at org.eclipse.swt.widgets.Control.setBounds(Control.java:3294)
- at org.eclipse.e4.ui.workbench.renderers.swt.SashLayout.setRectangle(SashLayout.java:315)
- at org.eclipse.e4.ui.workbench.renderers.swt.SashLayout.tileSubNodes(SashLayout.java:260)
- at org.eclipse.e4.ui.workbench.renderers.swt.SashLayout.tileSubNodes(SashLayout.java:303)
- at org.eclipse.e4.ui.workbench.renderers.swt.SashLayout.layout(SashLayout.java:178)
- at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1335)
- at org.eclipse.swt.widgets.Composite.WM_SIZE(Composite.java:1736)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4830)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:5002)
- at org.eclipse.swt.internal.win32.OS.DefWindowProc(Native Method)
- at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:91)
- at org.eclipse.swt.widgets.Control.WM_WINDOWPOSCHANGED(Control.java:5685)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4843)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:5002)
- at org.eclipse.swt.internal.win32.OS.SetWindowPos(Native Method)
- at org.eclipse.swt.widgets.Control.setBoundsInPixels(Control.java:3265)
- at org.eclipse.swt.widgets.Composite.setBoundsInPixels(Composite.java:1061)
- at org.eclipse.swt.widgets.Control.setBoundsInPixels(Control.java:3226)
- at org.eclipse.swt.widgets.Control.setBoundsInPixels(Control.java:3222)
- at org.eclipse.swt.widgets.Control.setBounds(Control.java:3217)
- at org.eclipse.swt.layout.FillLayout.layout(FillLayout.java:216)
- at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1335)
- at org.eclipse.swt.widgets.Composite.WM_SIZE(Composite.java:1736)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4830)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:5002)
- at org.eclipse.swt.internal.win32.OS.DefWindowProc(Native Method)
- at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:91)
- at org.eclipse.swt.widgets.Control.WM_WINDOWPOSCHANGED(Control.java:5685)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4843)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:5010)
- at org.eclipse.swt.internal.win32.OS.EndDeferWindowPos(Native Method)
- at org.eclipse.swt.widgets.Composite.resizeChildren(Composite.java:993)
- at org.eclipse.swt.widgets.Composite.resizeChildren(Composite.java:970)
- at org.eclipse.swt.widgets.Composite.setResizeChildren(Composite.java:1166)
- at org.eclipse.swt.widgets.Composite.WM_SIZE(Composite.java:1740)
- at org.eclipse.swt.widgets.Canvas.WM_SIZE(Canvas.java:444)
- at org.eclipse.swt.widgets.Decorations.WM_SIZE(Decorations.java:1646)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4830)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:340)
- at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1480)
- at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2286)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:5010)
- at org.eclipse.swt.internal.win32.OS.DefWindowProc(Native Method)
- at org.eclipse.swt.widgets.Shell.callWindowProc(Shell.java:508)
- at org.eclipse.swt.widgets.Control.WM_WINDOWPOSCHANGED(Control.java:5685)
- at org.eclipse.swt.widgets.Canvas.WM_WINDOWPOSCHANGED(Canvas.java:451)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4843)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:340)
- at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1480)
- at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2286)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:5002)
- at org.eclipse.swt.internal.win32.OS.SetMenu(Native Method)
- at org.eclipse.swt.widgets.Decorations.setMenuBar(Decorations.java:1039)
- at org.eclipse.swt.widgets.Menu.releaseParent(Menu.java:959)
- at org.eclipse.swt.widgets.Widget.release(Widget.java:824)
- at org.eclipse.swt.widgets.Widget.dispose(Widget.java:423)
- at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.disposeWidget(SWTPartRenderer.java:174)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeRemoveGui(PartRenderingEngine.java:937)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:860)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.removeGui(PartRenderingEngine.java:844)
- at org.eclipse.ui.internal.WorkbenchWindow.lambda$0(WorkbenchWindow.java:329)
- at org.eclipse.e4.ui.services.internal.events.UIEventHandler.lambda$0(UIEventHandler.java:38)
- at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:236)
- at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:133)
- at org.eclipse.swt.widgets.Display.syncExec(Display.java:4779)
- at org.eclipse.e4.ui.workbench.swt.DisplayUISynchronize.syncExec(DisplayUISynchronize.java:34)
- at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
- at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:205)
- at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:203)
- at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
- at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:228)
- at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:151)
- at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:133)
- at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:75)
- at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:44)
- at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:55)
- at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:63)
- at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:424)
- at org.eclipse.e4.ui.model.application.ui.impl.UIElementImpl.setWidget(UIElementImpl.java:267)
- at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.unbindWidget(SWTPartRenderer.java:149)
- at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.lambda$0(SWTPartRenderer.java:138)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:127)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
- at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4243)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1060)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1084)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1065)
- at org.eclipse.swt.widgets.Widget.release(Widget.java:809)
- at org.eclipse.swt.widgets.Widget.dispose(Widget.java:423)
- at org.eclipse.swt.widgets.Decorations.dispose(Decorations.java:392)
- at org.eclipse.swt.widgets.Display.release(Display.java:3688)
- at org.eclipse.swt.graphics.Device.dispose(Device.java:324)
- at org.eclipse.swt.widgets.Display.messageProc(Display.java:3232)
- at org.eclipse.swt.internal.win32.OS.DefWindowProc(Native Method)
- at org.eclipse.swt.widgets.Shell.callWindowProc(Shell.java:508)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4854)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:340)
- at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1480)
- at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2286)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:5002)
- at org.eclipse.swt.internal.win32.OS.PeekMessage(Native Method)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3627)
- at org.eclipse.jface.window.Window.runEventLoop(Window.java:823)
- at org.eclipse.jface.window.Window.open(Window.java:799)
- at org.eclipse.ui.internal.SaveablesList.promptForSaving(SaveablesList.java:722)
- at org.eclipse.ui.internal.SaveablesList.promptForSaving(SaveablesList.java:629)
- at org.eclipse.ui.internal.SaveablesList.promptForSavingIfNecessary(SaveablesList.java:608)
- at org.eclipse.ui.internal.SaveablesList.preCloseParts(SaveablesList.java:550)
- at org.eclipse.ui.internal.SaveablesList.preCloseParts(SaveablesList.java:484)
- at org.eclipse.ui.internal.WorkbenchWindow$2.saveParts(WorkbenchWindow.java:775)
- at org.eclipse.ui.internal.Workbench.saveAllParts(Workbench.java:1326)
- at org.eclipse.ui.internal.Workbench.busyClose(Workbench.java:1052)
- at org.eclipse.ui.internal.Workbench.lambda$4(Workbench.java:1392)
- at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:74)
- at org.eclipse.ui.internal.Workbench.close(Workbench.java:1392)
- at org.eclipse.ui.internal.Workbench.close(Workbench.java:1368)
- at org.eclipse.ui.internal.Workbench.lambda$16(Workbench.java:2744)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
- at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4243)
- at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4235)
- at org.eclipse.swt.widgets.Display.messageProc(Display.java:3238)
- at org.eclipse.swt.internal.win32.OS.DefWindowProc(Native Method)
- at org.eclipse.swt.widgets.Shell.callWindowProc(Shell.java:508)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4854)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:340)
- at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1480)
- at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2286)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:5002)
- at org.eclipse.swt.internal.win32.OS.PeekMessage(Native Method)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3627)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1154)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1045)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
- at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:551)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:156)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
- at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
- at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.base/java.lang.reflect.Method.invoke(Method.java:568)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1467)
-
-!ENTRY org.eclipse.ui 4 0 2022-03-17 18:10:07.436
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.IllegalArgumentException: Argument not valid
- at org.eclipse.swt.SWT.error(SWT.java:4888)
- at org.eclipse.swt.SWT.error(SWT.java:4822)
- at org.eclipse.swt.SWT.error(SWT.java:4793)
- at org.eclipse.swt.graphics.GC.setFont(GC.java:4416)
- at org.eclipse.swt.custom.CTabFolderRenderer.computeSize(CTabFolderRenderer.java:351)
- at org.eclipse.e4.ui.workbench.renderers.swt.CTabRendering.computeSize(CTabRendering.java:236)
- at org.eclipse.swt.custom.CTabFolder.setItemSize(CTabFolder.java:2900)
- at org.eclipse.swt.custom.CTabFolder.updateItems(CTabFolder.java:3844)
- at org.eclipse.swt.custom.CTabFolder.updateItems(CTabFolder.java:3777)
- at org.eclipse.swt.custom.CTabFolder.onResize(CTabFolder.java:2120)
- at org.eclipse.swt.custom.CTabFolder.lambda$0(CTabFolder.java:338)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
- at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4243)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1060)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1084)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1065)
- at org.eclipse.swt.widgets.Control.sendResize(Control.java:3057)
- at org.eclipse.swt.widgets.Composite.sendResize(Composite.java:1018)
- at org.eclipse.swt.widgets.Composite.setBoundsInPixels(Composite.java:1067)
- at org.eclipse.swt.widgets.Control.setBoundsInPixels(Control.java:3226)
- at org.eclipse.swt.widgets.Control.setBoundsInPixels(Control.java:3222)
- at org.eclipse.swt.widgets.Control.setBoundsInPixels(Control.java:3298)
- at org.eclipse.swt.widgets.Control.setBounds(Control.java:3294)
- at org.eclipse.e4.ui.workbench.renderers.swt.SashLayout.setRectangle(SashLayout.java:315)
- at org.eclipse.e4.ui.workbench.renderers.swt.SashLayout.tileSubNodes(SashLayout.java:260)
- at org.eclipse.e4.ui.workbench.renderers.swt.SashLayout.tileSubNodes(SashLayout.java:303)
- at org.eclipse.e4.ui.workbench.renderers.swt.SashLayout.tileSubNodes(SashLayout.java:303)
- at org.eclipse.e4.ui.workbench.renderers.swt.SashLayout.tileSubNodes(SashLayout.java:303)
- at org.eclipse.e4.ui.workbench.renderers.swt.SashLayout.layout(SashLayout.java:178)
- at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1335)
- at org.eclipse.swt.widgets.Composite.sendResize(Composite.java:1022)
- at org.eclipse.swt.widgets.Composite.setBoundsInPixels(Composite.java:1067)
- at org.eclipse.swt.widgets.Control.setBoundsInPixels(Control.java:3226)
- at org.eclipse.swt.widgets.Control.setBoundsInPixels(Control.java:3222)
- at org.eclipse.swt.widgets.Control.setBounds(Control.java:3217)
- at org.eclipse.swt.layout.FillLayout.layout(FillLayout.java:216)
- at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1335)
- at org.eclipse.swt.widgets.Composite.WM_SIZE(Composite.java:1736)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4830)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:5002)
- at org.eclipse.swt.internal.win32.OS.DefWindowProc(Native Method)
- at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:91)
- at org.eclipse.swt.widgets.Control.WM_WINDOWPOSCHANGED(Control.java:5685)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4843)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:5002)
- at org.eclipse.swt.internal.win32.OS.SetWindowPos(Native Method)
- at org.eclipse.swt.widgets.Control.setBoundsInPixels(Control.java:3265)
- at org.eclipse.swt.widgets.Composite.setBoundsInPixels(Composite.java:1061)
- at org.eclipse.swt.widgets.Control.setBoundsInPixels(Control.java:3226)
- at org.eclipse.swt.widgets.Control.setBoundsInPixels(Control.java:3222)
- at org.eclipse.swt.widgets.Control.setBoundsInPixels(Control.java:3298)
- at org.eclipse.swt.widgets.Control.setBounds(Control.java:3294)
- at org.eclipse.swt.custom.StackLayout.layout(StackLayout.java:124)
- at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1335)
- at org.eclipse.swt.widgets.Composite.WM_SIZE(Composite.java:1736)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4830)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:5002)
- at org.eclipse.swt.internal.win32.OS.DefWindowProc(Native Method)
- at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:91)
- at org.eclipse.swt.widgets.Control.WM_WINDOWPOSCHANGED(Control.java:5685)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4843)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:5002)
- at org.eclipse.swt.internal.win32.OS.SetWindowPos(Native Method)
- at org.eclipse.swt.widgets.Control.setBoundsInPixels(Control.java:3265)
- at org.eclipse.swt.widgets.Composite.setBoundsInPixels(Composite.java:1061)
- at org.eclipse.swt.widgets.Control.setBoundsInPixels(Control.java:3226)
- at org.eclipse.swt.widgets.Control.setBoundsInPixels(Control.java:3222)
- at org.eclipse.swt.widgets.Control.setBoundsInPixels(Control.java:3298)
- at org.eclipse.swt.widgets.Control.setBounds(Control.java:3294)
- at org.eclipse.e4.ui.workbench.renderers.swt.SashLayout.setRectangle(SashLayout.java:315)
- at org.eclipse.e4.ui.workbench.renderers.swt.SashLayout.tileSubNodes(SashLayout.java:260)
- at org.eclipse.e4.ui.workbench.renderers.swt.SashLayout.tileSubNodes(SashLayout.java:303)
- at org.eclipse.e4.ui.workbench.renderers.swt.SashLayout.layout(SashLayout.java:178)
- at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1335)
- at org.eclipse.swt.widgets.Composite.WM_SIZE(Composite.java:1736)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4830)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:5002)
- at org.eclipse.swt.internal.win32.OS.DefWindowProc(Native Method)
- at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:91)
- at org.eclipse.swt.widgets.Control.WM_WINDOWPOSCHANGED(Control.java:5685)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4843)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:5002)
- at org.eclipse.swt.internal.win32.OS.SetWindowPos(Native Method)
- at org.eclipse.swt.widgets.Control.setBoundsInPixels(Control.java:3265)
- at org.eclipse.swt.widgets.Composite.setBoundsInPixels(Composite.java:1061)
- at org.eclipse.swt.widgets.Control.setBoundsInPixels(Control.java:3226)
- at org.eclipse.swt.widgets.Control.setBoundsInPixels(Control.java:3222)
- at org.eclipse.swt.widgets.Control.setBounds(Control.java:3217)
- at org.eclipse.swt.layout.FillLayout.layout(FillLayout.java:216)
- at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1335)
- at org.eclipse.swt.widgets.Composite.WM_SIZE(Composite.java:1736)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4830)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:5002)
- at org.eclipse.swt.internal.win32.OS.DefWindowProc(Native Method)
- at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:91)
- at org.eclipse.swt.widgets.Control.WM_WINDOWPOSCHANGED(Control.java:5685)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4843)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:5010)
- at org.eclipse.swt.internal.win32.OS.EndDeferWindowPos(Native Method)
- at org.eclipse.swt.widgets.Composite.resizeChildren(Composite.java:993)
- at org.eclipse.swt.widgets.Composite.resizeChildren(Composite.java:970)
- at org.eclipse.swt.widgets.Composite.setResizeChildren(Composite.java:1166)
- at org.eclipse.swt.widgets.Composite.WM_SIZE(Composite.java:1740)
- at org.eclipse.swt.widgets.Canvas.WM_SIZE(Canvas.java:444)
- at org.eclipse.swt.widgets.Decorations.WM_SIZE(Decorations.java:1646)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4830)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:340)
- at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1480)
- at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2286)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:5010)
- at org.eclipse.swt.internal.win32.OS.DefWindowProc(Native Method)
- at org.eclipse.swt.widgets.Shell.callWindowProc(Shell.java:508)
- at org.eclipse.swt.widgets.Control.WM_WINDOWPOSCHANGED(Control.java:5685)
- at org.eclipse.swt.widgets.Canvas.WM_WINDOWPOSCHANGED(Canvas.java:451)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4843)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:340)
- at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1480)
- at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2286)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:5002)
- at org.eclipse.swt.internal.win32.OS.SetMenu(Native Method)
- at org.eclipse.swt.widgets.Decorations.setMenuBar(Decorations.java:1039)
- at org.eclipse.swt.widgets.Menu.releaseParent(Menu.java:959)
- at org.eclipse.swt.widgets.Widget.release(Widget.java:824)
- at org.eclipse.swt.widgets.Widget.dispose(Widget.java:423)
- at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.disposeWidget(SWTPartRenderer.java:174)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeRemoveGui(PartRenderingEngine.java:937)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:860)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.removeGui(PartRenderingEngine.java:844)
- at org.eclipse.ui.internal.WorkbenchWindow.lambda$0(WorkbenchWindow.java:329)
- at org.eclipse.e4.ui.services.internal.events.UIEventHandler.lambda$0(UIEventHandler.java:38)
- at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:236)
- at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:133)
- at org.eclipse.swt.widgets.Display.syncExec(Display.java:4779)
- at org.eclipse.e4.ui.workbench.swt.DisplayUISynchronize.syncExec(DisplayUISynchronize.java:34)
- at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
- at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:205)
- at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:203)
- at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
- at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:228)
- at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:151)
- at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:133)
- at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:75)
- at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:44)
- at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:55)
- at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:63)
- at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:424)
- at org.eclipse.e4.ui.model.application.ui.impl.UIElementImpl.setWidget(UIElementImpl.java:267)
- at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.unbindWidget(SWTPartRenderer.java:149)
- at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.lambda$0(SWTPartRenderer.java:138)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:127)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
- at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4243)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1060)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1084)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1065)
- at org.eclipse.swt.widgets.Widget.release(Widget.java:809)
- at org.eclipse.swt.widgets.Widget.dispose(Widget.java:423)
- at org.eclipse.swt.widgets.Decorations.dispose(Decorations.java:392)
- at org.eclipse.swt.widgets.Display.release(Display.java:3688)
- at org.eclipse.swt.graphics.Device.dispose(Device.java:324)
- at org.eclipse.swt.widgets.Display.messageProc(Display.java:3232)
- at org.eclipse.swt.internal.win32.OS.DefWindowProc(Native Method)
- at org.eclipse.swt.widgets.Shell.callWindowProc(Shell.java:508)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4854)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:340)
- at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1480)
- at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2286)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:5002)
- at org.eclipse.swt.internal.win32.OS.PeekMessage(Native Method)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3627)
- at org.eclipse.jface.window.Window.runEventLoop(Window.java:823)
- at org.eclipse.jface.window.Window.open(Window.java:799)
- at org.eclipse.ui.internal.SaveablesList.promptForSaving(SaveablesList.java:722)
- at org.eclipse.ui.internal.SaveablesList.promptForSaving(SaveablesList.java:629)
- at org.eclipse.ui.internal.SaveablesList.promptForSavingIfNecessary(SaveablesList.java:608)
- at org.eclipse.ui.internal.SaveablesList.preCloseParts(SaveablesList.java:550)
- at org.eclipse.ui.internal.SaveablesList.preCloseParts(SaveablesList.java:484)
- at org.eclipse.ui.internal.WorkbenchWindow$2.saveParts(WorkbenchWindow.java:775)
- at org.eclipse.ui.internal.Workbench.saveAllParts(Workbench.java:1326)
- at org.eclipse.ui.internal.Workbench.busyClose(Workbench.java:1052)
- at org.eclipse.ui.internal.Workbench.lambda$4(Workbench.java:1392)
- at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:74)
- at org.eclipse.ui.internal.Workbench.close(Workbench.java:1392)
- at org.eclipse.ui.internal.Workbench.close(Workbench.java:1368)
- at org.eclipse.ui.internal.Workbench.lambda$16(Workbench.java:2744)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
- at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4243)
- at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4235)
- at org.eclipse.swt.widgets.Display.messageProc(Display.java:3238)
- at org.eclipse.swt.internal.win32.OS.DefWindowProc(Native Method)
- at org.eclipse.swt.widgets.Shell.callWindowProc(Shell.java:508)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4854)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:340)
- at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1480)
- at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2286)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:5002)
- at org.eclipse.swt.internal.win32.OS.PeekMessage(Native Method)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3627)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1154)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1045)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
- at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:551)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:156)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
- at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
- at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.base/java.lang.reflect.Method.invoke(Method.java:568)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1467)
-!SESSION 2022-03-18 15:37:30.953 -----------------------------------------------
-eclipse.buildId=4.22.0.I20211124-1800
-java.version=17.0.1
-java.vendor=Eclipse Adoptium
-BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=ru_RU
-Framework arguments: -product org.eclipse.epp.package.java.product
-Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
-
-!ENTRY org.eclipse.core.resources 2 10035 2022-03-18 15:37:37.470
-!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.
-
-!ENTRY org.eclipse.jface 2 0 2022-03-18 15:37:43.304
-!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
-!SUBENTRY 1 org.eclipse.jface 2 0 2022-03-18 15:37:43.304
-!MESSAGE A conflict occurred for CTRL+SHIFT+T:
-Binding(CTRL+SHIFT+T,
- ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type,
- Open a type in a Java editor,
- Category(org.eclipse.ui.category.navigate,Navigate,null,true),
- org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@7be62956,
- ,,true),null),
- org.eclipse.ui.defaultAcceleratorConfiguration,
- org.eclipse.ui.contexts.window,,,system)
-Binding(CTRL+SHIFT+T,
- ParameterizedCommand(Command(org.eclipse.lsp4e.symbolinworkspace,Go to Symbol in Workspace,
- ,
- Category(org.eclipse.lsp4e.category,Language Servers,null,true),
- org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@30e143ff,
- ,,true),null),
- org.eclipse.ui.defaultAcceleratorConfiguration,
- org.eclipse.ui.contexts.window,,,system)
-!SUBENTRY 1 org.eclipse.jface 2 0 2022-03-18 15:37:43.304
-!MESSAGE A conflict occurred for ALT+SHIFT+R:
-Binding(ALT+SHIFT+R,
- ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.rename.element,Rename - Refactoring ,
- Rename the selected element,
- Category(org.eclipse.jdt.ui.category.refactoring,Refactor - Java,Java Refactoring Actions,true),
- org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@452ec287,
- ,,true),null),
- org.eclipse.ui.defaultAcceleratorConfiguration,
- org.eclipse.ui.contexts.window,,,system)
-Binding(ALT+SHIFT+R,
- ParameterizedCommand(Command(org.eclipse.ui.edit.rename,Rename,
- Rename the selected item,
- Category(org.eclipse.ui.category.file,File,null,true),
- org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@41404aa2,
- ,,true),null),
- org.eclipse.ui.defaultAcceleratorConfiguration,
- org.eclipse.ui.contexts.window,,,system)
-
-!ENTRY org.eclipse.egit.ui 2 0 2022-03-18 15:37:46.772
-!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
-user global configuration and to define the default location to store repositories: 'C:\Users\Pulxes'. If this is
-not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
-EGit might behave differently since they see different configuration options.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-18 15:39:32.412
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 11:02:10.067
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-18 15:49:10.552
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 11:08:24.026
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-18 16:15:10.551
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 11:13:00.153
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-18 16:15:52.155
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 11:15:29.088
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-18 16:16:15.695
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 11:16:09.857
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-18 16:17:30.106
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 11:39:27.559
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-18 16:19:29.978
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-18 16:19:53.445
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-18 16:23:01.143
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-18 16:23:42.070
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-18 16:30:48.676
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-18 16:31:30.869
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-18 16:32:14.854
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-18 17:09:14.507
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-18 17:21:43.441
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-19 14:22:57.388
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-20 17:13:15.162
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-20 18:00:54.842
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-20 18:03:25.777
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-20 18:06:48.729
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-20 18:10:24.560
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-20 18:11:39.613
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-20 18:13:02.925
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-20 18:17:31.914
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-20 18:18:06.229
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-20 18:21:51.361
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-20 18:26:42.385
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-20 18:53:07.041
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-20 19:07:17.301
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.debug.core 4 125 2022-03-20 19:17:01.390
+!ENTRY org.eclipse.debug.core 4 125 2022-03-31 11:41:51.262
!MESSAGE Error logged from Debug Core:
!STACK 1
org.eclipse.debug.core.DebugException: Error retrieving source debug attribute
@@ -14056,7 +1133,7 @@ Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Mac
at org.eclipse.jdi.internal.ReferenceTypeImpl.sourceNames(ReferenceTypeImpl.java:1533)
at org.eclipse.jdt.internal.debug.core.model.JDIReferenceType.getSourceNames(JDIReferenceType.java:247)
... 10 more
-!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-03-20 19:17:01.391
+!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-03-31 11:41:51.263
!MESSAGE Error retrieving source debug attribute
!STACK 0
com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
@@ -14080,93 +1157,10299 @@ com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-20 19:17:06.424
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 11:41:55.166
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-20 19:23:11.163
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 11:42:34.743
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-20 19:28:44.320
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 11:43:58.172
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-20 19:54:07.997
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 11:49:56.558
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-20 20:01:27.851
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 12:09:41.464
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-20 20:03:45.480
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 12:12:22.189
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-20 20:08:17.630
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 14:32:56.453
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-20 20:09:16.028
+!ENTRY org.eclipse.debug.core 4 125 2022-03-31 14:35:01.545
+!MESSAGE Error logged from Debug Core:
+!STACK 1
+org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.throwDebugException(JDIDebugElement.java:263)
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.requestFailed(JDIDebugElement.java:202)
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.targetRequestFailed(JDIDebugElement.java:182)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1585)
+ at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
+ at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
+ at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
+ at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
+ at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
+ ... 9 more
+!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-03-31 14:35:01.545
+!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
+!STACK 0
+com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
+ at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
+ at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
+ at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
+ at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
+ at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 14:35:04.758
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-20 20:15:03.519
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 16:17:52.322
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-20 20:24:56.786
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 16:18:10.964
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-20 20:27:24.700
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 16:19:42.870
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-20 20:30:43.390
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 16:19:55.076
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-20 20:50:32.578
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 16:20:19.221
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-20 20:53:53.502
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 16:21:51.642
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-20 20:55:50.319
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 16:22:14.826
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-20 21:06:56.825
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 16:22:32.829
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-20 21:08:33.340
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 16:22:52.064
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-20 21:10:10.750
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 16:23:35.526
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-20 21:23:11.055
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 16:23:51.731
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-20 21:24:52.280
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 16:24:55.098
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-20 21:26:53.945
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 16:26:30.320
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-20 21:28:05.040
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 16:48:42.585
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-20 21:30:24.259
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 16:50:34.075
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-20 21:33:45.408
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 16:53:24.542
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-20 21:37:00.620
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 17:00:13.496
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-20 21:37:35.904
+!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 18:41:16.843
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-20 21:40:46.229
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 09:25:29.803
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-20 21:42:28.790
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 09:26:14.806
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-20 21:43:32.950
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 09:27:45.287
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!SESSION 2022-03-21 17:53:01.990 -----------------------------------------------
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 09:35:44.378
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 10:57:16.826
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 10:58:16.002
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 10:59:57.286
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 11:02:34.970
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 11:07:09.577
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 11:08:15.521
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 11:13:56.070
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 11:14:40.737
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:01:50.999
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:02:46.458
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:09:57.797
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:12:11.611
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:13:06.346
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:14:19.996
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:15:27.640
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:15:52.011
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:16:08.582
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:17:14.738
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:18:05.350
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:21:00.003
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:22:11.798
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:22:22.664
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:23:53.715
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:25:19.548
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:26:26.364
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:26:58.580
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:28:25.389
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:29:36.842
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:31:35.183
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:33:48.184
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:35:03.969
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:36:12.308
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:36:33.137
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:37:43.297
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:38:12.531
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:38:51.865
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:40:11.109
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:48:40.315
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:57:02.536
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:58:58.488
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 13:09:09.313
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 13:11:34.565
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 13:14:29.740
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 13:15:08.738
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 13:18:57.454
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 13:23:28.613
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 13:24:29.428
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 13:25:58.942
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:01.383
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.core;
+
+import net.minecraft.block.Block;
+import net.minecraft.block.IGrowable;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.world.World;
+import net.minecraftforge.common.ForgeHooks;
+import net.minecraftforge.event.world.BlockEvent;
+
+public class CommonHelper {
+
+ public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
+ if(!(block instanceof IGrowable))
+ return;
+ IGrowable igrowable = (IGrowable)block;
+ if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
+ if(!world.isRemote)
+ if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
+ for(int i = 0; i < count; i++)
+ igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
+ }
+
+ public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
+ if(!world.isRemote) {
+ BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
+ if(event.isCanceled())
+ return;
+ if(checkAir)
+ if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+ else (y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+
+ }
+ }
+}
+
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 2 2022-04-01 14:30:01.384
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 0 2022-04-01 14:30:01.385
+!MESSAGE Error in JDT Core during reconcile
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:01.460
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.core;
+
+import net.minecraft.block.Block;
+import net.minecraft.block.IGrowable;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.world.World;
+import net.minecraftforge.common.ForgeHooks;
+import net.minecraftforge.event.world.BlockEvent;
+
+public class CommonHelper {
+
+ public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
+ if(!(block instanceof IGrowable))
+ return;
+ IGrowable igrowable = (IGrowable)block;
+ if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
+ if(!world.isRemote)
+ if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
+ for(int i = 0; i < count; i++)
+ igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
+ }
+
+ public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
+ if(!world.isRemote) {
+ BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
+ if(event.isCanceled())
+ return;
+ if(checkAir)
+ if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+ else (y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+
+ }
+ }
+}
+
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 14:30:01.461
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 14:30:01.462
+!MESSAGE Error in JDT Core during AST creation
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:04.392
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.core;
+
+import net.minecraft.block.Block;
+import net.minecraft.block.IGrowable;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.world.World;
+import net.minecraftforge.common.ForgeHooks;
+import net.minecraftforge.event.world.BlockEvent;
+
+public class CommonHelper {
+
+ public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
+ if(!(block instanceof IGrowable))
+ return;
+ IGrowable igrowable = (IGrowable)block;
+ if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
+ if(!world.isRemote)
+ if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
+ for(int i = 0; i < count; i++)
+ igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
+ }
+
+ public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
+ if(!world.isRemote) {
+ BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
+ if(event.isCanceled())
+ return;
+ if(checkAir) {
+
+ }
+ if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+ else (y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+
+ }
+ }
+}
+
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 2 2022-04-01 14:30:04.393
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 0 2022-04-01 14:30:04.393
+!MESSAGE Error in JDT Core during reconcile
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:04.398
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.core;
+
+import net.minecraft.block.Block;
+import net.minecraft.block.IGrowable;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.world.World;
+import net.minecraftforge.common.ForgeHooks;
+import net.minecraftforge.event.world.BlockEvent;
+
+public class CommonHelper {
+
+ public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
+ if(!(block instanceof IGrowable))
+ return;
+ IGrowable igrowable = (IGrowable)block;
+ if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
+ if(!world.isRemote)
+ if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
+ for(int i = 0; i < count; i++)
+ igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
+ }
+
+ public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
+ if(!world.isRemote) {
+ BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
+ if(event.isCanceled())
+ return;
+ if(checkAir) {
+
+ }
+ if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+ else (y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+
+ }
+ }
+}
+
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 14:30:04.399
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 14:30:04.400
+!MESSAGE Error in JDT Core during AST creation
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:04.703
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.core;
+
+import net.minecraft.block.Block;
+import net.minecraft.block.IGrowable;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.world.World;
+import net.minecraftforge.common.ForgeHooks;
+import net.minecraftforge.event.world.BlockEvent;
+
+public class CommonHelper {
+
+ public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
+ if(!(block instanceof IGrowable))
+ return;
+ IGrowable igrowable = (IGrowable)block;
+ if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
+ if(!world.isRemote)
+ if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
+ for(int i = 0; i < count; i++)
+ igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
+ }
+
+ public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
+ if(!world.isRemote) {
+ BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
+ if(event.isCanceled())
+ return;
+ if(checkAir) {
+
+ }
+ if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+ else (y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+
+ }
+ }
+}
+
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 14:30:04.704
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 14:30:04.704
+!MESSAGE Error in JDT Core during AST creation
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:05.921
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.core;
+
+import net.minecraft.block.Block;
+import net.minecraft.block.IGrowable;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.world.World;
+import net.minecraftforge.common.ForgeHooks;
+import net.minecraftforge.event.world.BlockEvent;
+
+public class CommonHelper {
+
+ public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
+ if(!(block instanceof IGrowable))
+ return;
+ IGrowable igrowable = (IGrowable)block;
+ if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
+ if(!world.isRemote)
+ if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
+ for(int i = 0; i < count; i++)
+ igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
+ }
+
+ public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
+ if(!world.isRemote) {
+ BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
+ if(event.isCanceled())
+ return;
+ if(checkAir) {
+
+ }
+ if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+ else (y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+
+ }
+ }
+}
+
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.javaeditor.ClipboardOperationAction.getClipboardData(ClipboardOperationAction.java:479)
+ at org.eclipse.jdt.internal.ui.javaeditor.ClipboardOperationAction.doCutCopyWithImportsOperation(ClipboardOperationAction.java:406)
+ at org.eclipse.jdt.internal.ui.javaeditor.ClipboardOperationAction.internalDoOperation(ClipboardOperationAction.java:365)
+ at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:74)
+ at org.eclipse.jdt.internal.ui.javaeditor.ClipboardOperationAction.run(ClipboardOperationAction.java:286)
+ at org.eclipse.jface.action.Action.runWithEvent(Action.java:474)
+ at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:121)
+ at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:97)
+ at jdk.internal.reflect.GeneratedMethodAccessor57.invoke(Unknown Source)
+ at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:568)
+ at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:317)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:251)
+ at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:173)
+ at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:156)
+ at org.eclipse.core.commands.Command.executeWithChecks(Command.java:488)
+ at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:487)
+ at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:213)
+ at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.executeCommand(KeyBindingDispatcher.java:308)
+ at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.press(KeyBindingDispatcher.java:580)
+ at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.processKeyEvent(KeyBindingDispatcher.java:647)
+ at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.filterKeySequenceBindings(KeyBindingDispatcher.java:439)
+ at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher$KeyDownFilter.handleEvent(KeyBindingDispatcher.java:96)
+ at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
+ at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1280)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1059)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1084)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1069)
+ at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1111)
+ at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1107)
+ at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1536)
+ at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:4875)
+ at org.eclipse.swt.widgets.Canvas.WM_CHAR(Canvas.java:345)
+ at org.eclipse.swt.widgets.Control.windowProc(Control.java:4753)
+ at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:340)
+ at org.eclipse.swt.widgets.Display.windowProc(Display.java:5002)
+ at org.eclipse.swt.internal.win32.OS.DispatchMessage(Native Method)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3630)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1154)
+ at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1045)
+ at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
+ at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644)
+ at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
+ at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:551)
+ at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:156)
+ at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152)
+ at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
+ at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
+ at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
+ at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
+ at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
+ at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:568)
+ at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
+ at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
+ at org.eclipse.equinox.launcher.Main.run(Main.java:1467)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 14:30:05.923
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.javaeditor.ClipboardOperationAction.getClipboardData(ClipboardOperationAction.java:479)
+ at org.eclipse.jdt.internal.ui.javaeditor.ClipboardOperationAction.doCutCopyWithImportsOperation(ClipboardOperationAction.java:406)
+ at org.eclipse.jdt.internal.ui.javaeditor.ClipboardOperationAction.internalDoOperation(ClipboardOperationAction.java:365)
+ at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:74)
+ at org.eclipse.jdt.internal.ui.javaeditor.ClipboardOperationAction.run(ClipboardOperationAction.java:286)
+ at org.eclipse.jface.action.Action.runWithEvent(Action.java:474)
+ at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:121)
+ at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:97)
+ at jdk.internal.reflect.GeneratedMethodAccessor57.invoke(Unknown Source)
+ at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:568)
+ at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:317)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:251)
+ at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:173)
+ at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:156)
+ at org.eclipse.core.commands.Command.executeWithChecks(Command.java:488)
+ at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:487)
+ at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:213)
+ at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.executeCommand(KeyBindingDispatcher.java:308)
+ at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.press(KeyBindingDispatcher.java:580)
+ at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.processKeyEvent(KeyBindingDispatcher.java:647)
+ at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.filterKeySequenceBindings(KeyBindingDispatcher.java:439)
+ at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher$KeyDownFilter.handleEvent(KeyBindingDispatcher.java:96)
+ at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
+ at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1280)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1059)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1084)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1069)
+ at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1111)
+ at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1107)
+ at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1536)
+ at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:4875)
+ at org.eclipse.swt.widgets.Canvas.WM_CHAR(Canvas.java:345)
+ at org.eclipse.swt.widgets.Control.windowProc(Control.java:4753)
+ at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:340)
+ at org.eclipse.swt.widgets.Display.windowProc(Display.java:5002)
+ at org.eclipse.swt.internal.win32.OS.DispatchMessage(Native Method)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3630)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1154)
+ at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1045)
+ at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
+ at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644)
+ at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
+ at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:551)
+ at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:156)
+ at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152)
+ at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
+ at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
+ at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
+ at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
+ at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
+ at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:568)
+ at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
+ at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
+ at org.eclipse.equinox.launcher.Main.run(Main.java:1467)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 14:30:05.924
+!MESSAGE Error in JDT Core during AST creation
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.javaeditor.ClipboardOperationAction.getClipboardData(ClipboardOperationAction.java:479)
+ at org.eclipse.jdt.internal.ui.javaeditor.ClipboardOperationAction.doCutCopyWithImportsOperation(ClipboardOperationAction.java:406)
+ at org.eclipse.jdt.internal.ui.javaeditor.ClipboardOperationAction.internalDoOperation(ClipboardOperationAction.java:365)
+ at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:74)
+ at org.eclipse.jdt.internal.ui.javaeditor.ClipboardOperationAction.run(ClipboardOperationAction.java:286)
+ at org.eclipse.jface.action.Action.runWithEvent(Action.java:474)
+ at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:121)
+ at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:97)
+ at jdk.internal.reflect.GeneratedMethodAccessor57.invoke(Unknown Source)
+ at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:568)
+ at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:317)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:251)
+ at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:173)
+ at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:156)
+ at org.eclipse.core.commands.Command.executeWithChecks(Command.java:488)
+ at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:487)
+ at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:213)
+ at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.executeCommand(KeyBindingDispatcher.java:308)
+ at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.press(KeyBindingDispatcher.java:580)
+ at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.processKeyEvent(KeyBindingDispatcher.java:647)
+ at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.filterKeySequenceBindings(KeyBindingDispatcher.java:439)
+ at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher$KeyDownFilter.handleEvent(KeyBindingDispatcher.java:96)
+ at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
+ at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1280)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1059)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1084)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1069)
+ at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1111)
+ at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1107)
+ at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1536)
+ at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:4875)
+ at org.eclipse.swt.widgets.Canvas.WM_CHAR(Canvas.java:345)
+ at org.eclipse.swt.widgets.Control.windowProc(Control.java:4753)
+ at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:340)
+ at org.eclipse.swt.widgets.Display.windowProc(Display.java:5002)
+ at org.eclipse.swt.internal.win32.OS.DispatchMessage(Native Method)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3630)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1154)
+ at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1045)
+ at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
+ at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644)
+ at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
+ at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:551)
+ at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:156)
+ at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152)
+ at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
+ at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
+ at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
+ at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
+ at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
+ at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:568)
+ at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
+ at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
+ at org.eclipse.equinox.launcher.Main.run(Main.java:1467)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:07.402
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.core;
+
+import net.minecraft.block.Block;
+import net.minecraft.block.IGrowable;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.world.World;
+import net.minecraftforge.common.ForgeHooks;
+import net.minecraftforge.event.world.BlockEvent;
+
+public class CommonHelper {
+
+ public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
+ if(!(block instanceof IGrowable))
+ return;
+ IGrowable igrowable = (IGrowable)block;
+ if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
+ if(!world.isRemote)
+ if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
+ for(int i = 0; i < count; i++)
+ igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
+ }
+
+ public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
+ if(!world.isRemote) {
+ BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
+ if(event.isCanceled())
+ return;
+ if(checkAir) {
+
+ }
+ else (y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+
+ }
+ }
+}
+
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 2 2022-04-01 14:30:07.403
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 0 2022-04-01 14:30:07.404
+!MESSAGE Error in JDT Core during reconcile
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:07.488
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.core;
+
+import net.minecraft.block.Block;
+import net.minecraft.block.IGrowable;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.world.World;
+import net.minecraftforge.common.ForgeHooks;
+import net.minecraftforge.event.world.BlockEvent;
+
+public class CommonHelper {
+
+ public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
+ if(!(block instanceof IGrowable))
+ return;
+ IGrowable igrowable = (IGrowable)block;
+ if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
+ if(!world.isRemote)
+ if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
+ for(int i = 0; i < count; i++)
+ igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
+ }
+
+ public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
+ if(!world.isRemote) {
+ BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
+ if(event.isCanceled())
+ return;
+ if(checkAir) {
+
+ }
+ else (y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+
+ }
+ }
+}
+
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 14:30:07.489
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 14:30:07.490
+!MESSAGE Error in JDT Core during AST creation
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:08.408
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.core;
+
+import net.minecraft.block.Block;
+import net.minecraft.block.IGrowable;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.world.World;
+import net.minecraftforge.common.ForgeHooks;
+import net.minecraftforge.event.world.BlockEvent;
+
+public class CommonHelper {
+
+ public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
+ if(!(block instanceof IGrowable))
+ return;
+ IGrowable igrowable = (IGrowable)block;
+ if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
+ if(!world.isRemote)
+ if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
+ for(int i = 0; i < count; i++)
+ igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
+ }
+
+ public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
+ if(!world.isRemote) {
+ BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
+ if(event.isCanceled())
+ return;
+ if(checkAir) {
+ if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+ }
+ else (y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+
+ }
+ }
+}
+
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 2 2022-04-01 14:30:08.409
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 0 2022-04-01 14:30:08.410
+!MESSAGE Error in JDT Core during reconcile
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:08.658
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.core;
+
+import net.minecraft.block.Block;
+import net.minecraft.block.IGrowable;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.world.World;
+import net.minecraftforge.common.ForgeHooks;
+import net.minecraftforge.event.world.BlockEvent;
+
+public class CommonHelper {
+
+ public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
+ if(!(block instanceof IGrowable))
+ return;
+ IGrowable igrowable = (IGrowable)block;
+ if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
+ if(!world.isRemote)
+ if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
+ for(int i = 0; i < count; i++)
+ igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
+ }
+
+ public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
+ if(!world.isRemote) {
+ BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
+ if(event.isCanceled())
+ return;
+ if(checkAir) {
+ if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+ }
+ else (y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+
+ }
+ }
+}
+
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 14:30:08.659
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 14:30:08.659
+!MESSAGE Error in JDT Core during AST creation
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:11.421
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.core;
+
+import net.minecraft.block.Block;
+import net.minecraft.block.IGrowable;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.world.World;
+import net.minecraftforge.common.ForgeHooks;
+import net.minecraftforge.event.world.BlockEvent;
+
+public class CommonHelper {
+
+ public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
+ if(!(block instanceof IGrowable))
+ return;
+ IGrowable igrowable = (IGrowable)block;
+ if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
+ if(!world.isRemote)
+ if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
+ for(int i = 0; i < count; i++)
+ igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
+ }
+
+ public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
+ if(!world.isRemote) {
+ BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
+ if(event.isCanceled())
+ return;
+ if(checkAir) {
+ if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+ } else (y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+
+ }
+ }
+}
+
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 2 2022-04-01 14:30:11.421
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 0 2022-04-01 14:30:11.422
+!MESSAGE Error in JDT Core during reconcile
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:11.428
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.core;
+
+import net.minecraft.block.Block;
+import net.minecraft.block.IGrowable;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.world.World;
+import net.minecraftforge.common.ForgeHooks;
+import net.minecraftforge.event.world.BlockEvent;
+
+public class CommonHelper {
+
+ public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
+ if(!(block instanceof IGrowable))
+ return;
+ IGrowable igrowable = (IGrowable)block;
+ if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
+ if(!world.isRemote)
+ if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
+ for(int i = 0; i < count; i++)
+ igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
+ }
+
+ public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
+ if(!world.isRemote) {
+ BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
+ if(event.isCanceled())
+ return;
+ if(checkAir) {
+ if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+ } else (y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+
+ }
+ }
+}
+
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 14:30:11.429
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 14:30:11.430
+!MESSAGE Error in JDT Core during AST creation
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:12.985
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.core;
+
+import net.minecraft.block.Block;
+import net.minecraft.block.IGrowable;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.world.World;
+import net.minecraftforge.common.ForgeHooks;
+import net.minecraftforge.event.world.BlockEvent;
+
+public class CommonHelper {
+
+ public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
+ if(!(block instanceof IGrowable))
+ return;
+ IGrowable igrowable = (IGrowable)block;
+ if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
+ if(!world.isRemote)
+ if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
+ for(int i = 0; i < count; i++)
+ igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
+ }
+
+ public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
+ if(!world.isRemote) {
+ BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
+ if(event.isCanceled())
+ return;
+ if(checkAir) {
+ if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+ } else (y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+
+ }
+ }
+}
+
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 14:30:12.986
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 14:30:12.987
+!MESSAGE Error in JDT Core during AST creation
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:13.929
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.core;
+
+import net.minecraft.block.Block;
+import net.minecraft.block.IGrowable;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.world.World;
+import net.minecraftforge.common.ForgeHooks;
+import net.minecraftforge.event.world.BlockEvent;
+
+public class CommonHelper {
+
+ public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
+ if(!(block instanceof IGrowable))
+ return;
+ IGrowable igrowable = (IGrowable)block;
+ if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
+ if(!world.isRemote)
+ if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
+ for(int i = 0; i < count; i++)
+ igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
+ }
+
+ public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
+ if(!world.isRemote) {
+ BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
+ if(event.isCanceled())
+ return;
+ if(checkAir) {
+ if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+ } else (y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+
+ }
+ }
+}
+
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 2 2022-04-01 14:30:13.930
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 0 2022-04-01 14:30:13.931
+!MESSAGE Error in JDT Core during reconcile
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:13.937
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.core;
+
+import net.minecraft.block.Block;
+import net.minecraft.block.IGrowable;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.world.World;
+import net.minecraftforge.common.ForgeHooks;
+import net.minecraftforge.event.world.BlockEvent;
+
+public class CommonHelper {
+
+ public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
+ if(!(block instanceof IGrowable))
+ return;
+ IGrowable igrowable = (IGrowable)block;
+ if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
+ if(!world.isRemote)
+ if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
+ for(int i = 0; i < count; i++)
+ igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
+ }
+
+ public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
+ if(!world.isRemote) {
+ BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
+ if(event.isCanceled())
+ return;
+ if(checkAir) {
+ if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+ } else (y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+
+ }
+ }
+}
+
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.internalGetHoverInfo(NLSStringHover.java:139)
+ at org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.getHoverInfo2(NLSStringHover.java:118)
+ at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:163)
+ at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:130)
+ at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:89)
+ at org.eclipse.jface.text.TextViewerHoverManager$1.run(TextViewerHoverManager.java:155)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 14:30:13.938
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.internalGetHoverInfo(NLSStringHover.java:139)
+ at org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.getHoverInfo2(NLSStringHover.java:118)
+ at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:163)
+ at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:130)
+ at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:89)
+ at org.eclipse.jface.text.TextViewerHoverManager$1.run(TextViewerHoverManager.java:155)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 14:30:13.938
+!MESSAGE Error in JDT Core during AST creation
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.internalGetHoverInfo(NLSStringHover.java:139)
+ at org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.getHoverInfo2(NLSStringHover.java:118)
+ at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:163)
+ at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:130)
+ at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:89)
+ at org.eclipse.jface.text.TextViewerHoverManager$1.run(TextViewerHoverManager.java:155)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:13.944
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.core;
+
+import net.minecraft.block.Block;
+import net.minecraft.block.IGrowable;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.world.World;
+import net.minecraftforge.common.ForgeHooks;
+import net.minecraftforge.event.world.BlockEvent;
+
+public class CommonHelper {
+
+ public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
+ if(!(block instanceof IGrowable))
+ return;
+ IGrowable igrowable = (IGrowable)block;
+ if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
+ if(!world.isRemote)
+ if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
+ for(int i = 0; i < count; i++)
+ igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
+ }
+
+ public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
+ if(!world.isRemote) {
+ BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
+ if(event.isCanceled())
+ return;
+ if(checkAir) {
+ if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+ } else (y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+
+ }
+ }
+}
+
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 14:30:13.945
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 14:30:13.945
+!MESSAGE Error in JDT Core during AST creation
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:13.951
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.core;
+
+import net.minecraft.block.Block;
+import net.minecraft.block.IGrowable;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.world.World;
+import net.minecraftforge.common.ForgeHooks;
+import net.minecraftforge.event.world.BlockEvent;
+
+public class CommonHelper {
+
+ public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
+ if(!(block instanceof IGrowable))
+ return;
+ IGrowable igrowable = (IGrowable)block;
+ if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
+ if(!world.isRemote)
+ if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
+ for(int i = 0; i < count; i++)
+ igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
+ }
+
+ public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
+ if(!world.isRemote) {
+ BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
+ if(event.isCanceled())
+ return;
+ if(checkAir) {
+ if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+ } else (y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+
+ }
+ }
+}
+
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.text.java.hover.JavadocHover.getHoveredASTNode(JavadocHover.java:1003)
+ at org.eclipse.jdt.internal.ui.text.java.hover.JavadocHover.getInfoText(JavadocHover.java:799)
+ at org.eclipse.jdt.internal.ui.text.java.hover.JavadocHover.getHoverInfo(JavadocHover.java:743)
+ at org.eclipse.jdt.internal.ui.text.java.hover.JavadocHover.internalGetHoverInfo(JavadocHover.java:666)
+ at org.eclipse.jdt.internal.ui.text.java.hover.JavadocHover.getHoverInfo2(JavadocHover.java:658)
+ at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:163)
+ at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:130)
+ at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:89)
+ at org.eclipse.jface.text.TextViewerHoverManager$1.run(TextViewerHoverManager.java:155)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 14:30:13.952
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.text.java.hover.JavadocHover.getHoveredASTNode(JavadocHover.java:1003)
+ at org.eclipse.jdt.internal.ui.text.java.hover.JavadocHover.getInfoText(JavadocHover.java:799)
+ at org.eclipse.jdt.internal.ui.text.java.hover.JavadocHover.getHoverInfo(JavadocHover.java:743)
+ at org.eclipse.jdt.internal.ui.text.java.hover.JavadocHover.internalGetHoverInfo(JavadocHover.java:666)
+ at org.eclipse.jdt.internal.ui.text.java.hover.JavadocHover.getHoverInfo2(JavadocHover.java:658)
+ at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:163)
+ at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:130)
+ at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:89)
+ at org.eclipse.jface.text.TextViewerHoverManager$1.run(TextViewerHoverManager.java:155)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 14:30:13.952
+!MESSAGE Error in JDT Core during AST creation
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.text.java.hover.JavadocHover.getHoveredASTNode(JavadocHover.java:1003)
+ at org.eclipse.jdt.internal.ui.text.java.hover.JavadocHover.getInfoText(JavadocHover.java:799)
+ at org.eclipse.jdt.internal.ui.text.java.hover.JavadocHover.getHoverInfo(JavadocHover.java:743)
+ at org.eclipse.jdt.internal.ui.text.java.hover.JavadocHover.internalGetHoverInfo(JavadocHover.java:666)
+ at org.eclipse.jdt.internal.ui.text.java.hover.JavadocHover.getHoverInfo2(JavadocHover.java:658)
+ at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:163)
+ at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:130)
+ at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:89)
+ at org.eclipse.jface.text.TextViewerHoverManager$1.run(TextViewerHoverManager.java:155)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:15.528
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.core;
+
+import net.minecraft.block.Block;
+import net.minecraft.block.IGrowable;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.world.World;
+import net.minecraftforge.common.ForgeHooks;
+import net.minecraftforge.event.world.BlockEvent;
+
+public class CommonHelper {
+
+ public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
+ if(!(block instanceof IGrowable))
+ return;
+ IGrowable igrowable = (IGrowable)block;
+ if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
+ if(!world.isRemote)
+ if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
+ for(int i = 0; i < count; i++)
+ igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
+ }
+
+ public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
+ if(!world.isRemote) {
+ BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
+ if(event.isCanceled())
+ return;
+ if(checkAir) {
+ if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+ } else (y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+
+ }
+ }
+}
+
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 14:30:15.530
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 14:30:15.530
+!MESSAGE Error in JDT Core during AST creation
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:16.938
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.core;
+
+import net.minecraft.block.Block;
+import net.minecraft.block.IGrowable;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.world.World;
+import net.minecraftforge.common.ForgeHooks;
+import net.minecraftforge.event.world.BlockEvent;
+
+public class CommonHelper {
+
+ public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
+ if(!(block instanceof IGrowable))
+ return;
+ IGrowable igrowable = (IGrowable)block;
+ if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
+ if(!world.isRemote)
+ if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
+ for(int i = 0; i < count; i++)
+ igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
+ }
+
+ public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
+ if(!world.isRemote) {
+ BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
+ if(event.isCanceled())
+ return;
+ if(checkAir) {
+ if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+ } else (y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+
+ }
+ }
+}
+
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 2 2022-04-01 14:30:16.939
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 0 2022-04-01 14:30:16.939
+!MESSAGE Error in JDT Core during reconcile
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:17.549
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.core;
+
+import net.minecraft.block.Block;
+import net.minecraft.block.IGrowable;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.world.World;
+import net.minecraftforge.common.ForgeHooks;
+import net.minecraftforge.event.world.BlockEvent;
+
+public class CommonHelper {
+
+ public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
+ if(!(block instanceof IGrowable))
+ return;
+ IGrowable igrowable = (IGrowable)block;
+ if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
+ if(!world.isRemote)
+ if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
+ for(int i = 0; i < count; i++)
+ igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
+ }
+
+ public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
+ if(!world.isRemote) {
+ BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
+ if(event.isCanceled())
+ return;
+ if(checkAir) {
+ if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+ } else (y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+
+ }
+ }
+}
+
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 14:30:17.550
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 14:30:17.550
+!MESSAGE Error in JDT Core during AST creation
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:19.946
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.core;
+
+import net.minecraft.block.Block;
+import net.minecraft.block.IGrowable;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.world.World;
+import net.minecraftforge.common.ForgeHooks;
+import net.minecraftforge.event.world.BlockEvent;
+
+public class CommonHelper {
+
+ public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
+ if(!(block instanceof IGrowable))
+ return;
+ IGrowable igrowable = (IGrowable)block;
+ if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
+ if(!world.isRemote)
+ if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
+ for(int i = 0; i < count; i++)
+ igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
+ }
+
+ public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
+ if(!world.isRemote) {
+ BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
+ if(event.isCanceled())
+ return;
+ if(checkAir) {
+ if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+ } else (y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+
+ }
+ }
+}
+
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 2 2022-04-01 14:30:19.947
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 0 2022-04-01 14:30:19.948
+!MESSAGE Error in JDT Core during reconcile
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:20.588
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.core;
+
+import net.minecraft.block.Block;
+import net.minecraft.block.IGrowable;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.world.World;
+import net.minecraftforge.common.ForgeHooks;
+import net.minecraftforge.event.world.BlockEvent;
+
+public class CommonHelper {
+
+ public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
+ if(!(block instanceof IGrowable))
+ return;
+ IGrowable igrowable = (IGrowable)block;
+ if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
+ if(!world.isRemote)
+ if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
+ for(int i = 0; i < count; i++)
+ igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
+ }
+
+ public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
+ if(!world.isRemote) {
+ BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
+ if(event.isCanceled())
+ return;
+ if(checkAir) {
+ if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+ } else (y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+
+ }
+ }
+}
+
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 14:30:20.589
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 14:30:20.591
+!MESSAGE Error in JDT Core during AST creation
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:22.955
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.core;
+
+import net.minecraft.block.Block;
+import net.minecraft.block.IGrowable;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.world.World;
+import net.minecraftforge.common.ForgeHooks;
+import net.minecraftforge.event.world.BlockEvent;
+
+public class CommonHelper {
+
+ public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
+ if(!(block instanceof IGrowable))
+ return;
+ IGrowable igrowable = (IGrowable)block;
+ if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
+ if(!world.isRemote)
+ if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
+ for(int i = 0; i < count; i++)
+ igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
+ }
+
+ public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
+ if(!world.isRemote) {
+ BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
+ if(event.isCanceled())
+ return;
+ if(checkAir) {
+ if(world.getBlock(x, y, z).getMaterial() == Material. && y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+ } else (y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+
+ }
+ }
+}
+
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 2 2022-04-01 14:30:22.956
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 0 2022-04-01 14:30:22.957
+!MESSAGE Error in JDT Core during reconcile
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:22.963
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.core;
+
+import net.minecraft.block.Block;
+import net.minecraft.block.IGrowable;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.world.World;
+import net.minecraftforge.common.ForgeHooks;
+import net.minecraftforge.event.world.BlockEvent;
+
+public class CommonHelper {
+
+ public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
+ if(!(block instanceof IGrowable))
+ return;
+ IGrowable igrowable = (IGrowable)block;
+ if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
+ if(!world.isRemote)
+ if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
+ for(int i = 0; i < count; i++)
+ igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
+ }
+
+ public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
+ if(!world.isRemote) {
+ BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
+ if(event.isCanceled())
+ return;
+ if(checkAir) {
+ if(world.getBlock(x, y, z).getMaterial() == Material. && y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+ } else (y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+
+ }
+ }
+}
+
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 14:30:22.964
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 14:30:22.964
+!MESSAGE Error in JDT Core during AST creation
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:24.963
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.core;
+
+import net.minecraft.block.Block;
+import net.minecraft.block.IGrowable;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.world.World;
+import net.minecraftforge.common.ForgeHooks;
+import net.minecraftforge.event.world.BlockEvent;
+
+public class CommonHelper {
+
+ public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
+ if(!(block instanceof IGrowable))
+ return;
+ IGrowable igrowable = (IGrowable)block;
+ if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
+ if(!world.isRemote)
+ if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
+ for(int i = 0; i < count; i++)
+ igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
+ }
+
+ public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
+ if(!world.isRemote) {
+ BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
+ if(event.isCanceled())
+ return;
+ if(checkAir) {
+ if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+ } else (y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+
+ }
+ }
+}
+
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 2 2022-04-01 14:30:24.964
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 0 2022-04-01 14:30:24.964
+!MESSAGE Error in JDT Core during reconcile
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:25.277
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.core;
+
+import net.minecraft.block.Block;
+import net.minecraft.block.IGrowable;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.world.World;
+import net.minecraftforge.common.ForgeHooks;
+import net.minecraftforge.event.world.BlockEvent;
+
+public class CommonHelper {
+
+ public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
+ if(!(block instanceof IGrowable))
+ return;
+ IGrowable igrowable = (IGrowable)block;
+ if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
+ if(!world.isRemote)
+ if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
+ for(int i = 0; i < count; i++)
+ igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
+ }
+
+ public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
+ if(!world.isRemote) {
+ BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
+ if(event.isCanceled())
+ return;
+ if(checkAir) {
+ if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+ } else (y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+
+ }
+ }
+}
+
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 14:30:25.279
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 14:30:25.279
+!MESSAGE Error in JDT Core during AST creation
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:25.969
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.core;
+
+import net.minecraft.block.Block;
+import net.minecraft.block.IGrowable;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.world.World;
+import net.minecraftforge.common.ForgeHooks;
+import net.minecraftforge.event.world.BlockEvent;
+
+public class CommonHelper {
+
+ public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
+ if(!(block instanceof IGrowable))
+ return;
+ IGrowable igrowable = (IGrowable)block;
+ if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
+ if(!world.isRemote)
+ if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
+ for(int i = 0; i < count; i++)
+ igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
+ }
+
+ public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
+ if(!world.isRemote) {
+ BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
+ if(event.isCanceled())
+ return;
+ if(checkAir) {
+ if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+ } else (y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+
+ }
+ }
+}
+
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 2 2022-04-01 14:30:25.970
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 0 2022-04-01 14:30:25.971
+!MESSAGE Error in JDT Core during reconcile
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:27.321
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.core;
+
+import net.minecraft.block.Block;
+import net.minecraft.block.IGrowable;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.world.World;
+import net.minecraftforge.common.ForgeHooks;
+import net.minecraftforge.event.world.BlockEvent;
+
+public class CommonHelper {
+
+ public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
+ if(!(block instanceof IGrowable))
+ return;
+ IGrowable igrowable = (IGrowable)block;
+ if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
+ if(!world.isRemote)
+ if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
+ for(int i = 0; i < count; i++)
+ igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
+ }
+
+ public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
+ if(!world.isRemote) {
+ BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
+ if(event.isCanceled())
+ return;
+ if(checkAir) {
+ if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+ } else (y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+
+ }
+ }
+}
+
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 14:30:27.322
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 14:30:27.324
+!MESSAGE Error in JDT Core during AST creation
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:28.977
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.core;
+
+import net.minecraft.block.Block;
+import net.minecraft.block.IGrowable;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.world.World;
+import net.minecraftforge.common.ForgeHooks;
+import net.minecraftforge.event.world.BlockEvent;
+
+public class CommonHelper {
+
+ public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
+ if(!(block instanceof IGrowable))
+ return;
+ IGrowable igrowable = (IGrowable)block;
+ if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
+ if(!world.isRemote)
+ if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
+ for(int i = 0; i < count; i++)
+ igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
+ }
+
+ public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
+ if(!world.isRemote) {
+ BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
+ if(event.isCanceled())
+ return;
+ if(checkAir) {
+ if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+ } else (y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+
+ }
+ }
+}
+
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 2 2022-04-01 14:30:28.978
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 0 2022-04-01 14:30:28.978
+!MESSAGE Error in JDT Core during reconcile
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:31.987
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.core;
+
+import net.minecraft.block.Block;
+import net.minecraft.block.IGrowable;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.world.World;
+import net.minecraftforge.common.ForgeHooks;
+import net.minecraftforge.event.world.BlockEvent;
+
+public class CommonHelper {
+
+ public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
+ if(!(block instanceof IGrowable))
+ return;
+ IGrowable igrowable = (IGrowable)block;
+ if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
+ if(!world.isRemote)
+ if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
+ for(int i = 0; i < count; i++)
+ igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
+ }
+
+ public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
+ if(!world.isRemote) {
+ BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
+ if(event.isCanceled())
+ return;
+ if(checkAir) {
+ if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+ } else (y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+
+ }
+ }
+}
+
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 2 2022-04-01 14:30:31.988
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 0 2022-04-01 14:30:31.988
+!MESSAGE Error in JDT Core during reconcile
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:35.995
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.core;
+
+import net.minecraft.block.Block;
+import net.minecraft.block.IGrowable;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.world.World;
+import net.minecraftforge.common.ForgeHooks;
+import net.minecraftforge.event.world.BlockEvent;
+
+public class CommonHelper {
+
+ public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
+ if(!(block instanceof IGrowable))
+ return;
+ IGrowable igrowable = (IGrowable)block;
+ if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
+ if(!world.isRemote)
+ if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
+ for(int i = 0; i < count; i++)
+ igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
+ }
+
+ public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
+ if(!world.isRemote) {
+ BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
+ if(event.isCanceled())
+ return;
+ if(checkAir) {
+ if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+ } else (y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+
+ }
+ }
+}
+
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 2 2022-04-01 14:30:35.996
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 0 2022-04-01 14:30:35.997
+!MESSAGE Error in JDT Core during reconcile
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:38.002
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.core;
+
+import net.minecraft.block.Block;
+import net.minecraft.block.IGrowable;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.world.World;
+import net.minecraftforge.common.ForgeHooks;
+import net.minecraftforge.event.world.BlockEvent;
+
+public class CommonHelper {
+
+ public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
+ if(!(block instanceof IGrowable))
+ return;
+ IGrowable igrowable = (IGrowable)block;
+ if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
+ if(!world.isRemote)
+ if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
+ for(int i = 0; i < count; i++)
+ igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
+ }
+
+ public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
+ if(!world.isRemote) {
+ BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
+ if(event.isCanceled())
+ return;
+ if(checkAir) {
+ if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+ } else (y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+
+ }
+ }
+}
+
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 2 2022-04-01 14:30:38.003
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 0 2022-04-01 14:30:38.003
+!MESSAGE Error in JDT Core during reconcile
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:38.006
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.core;
+
+import net.minecraft.block.Block;
+import net.minecraft.block.IGrowable;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.world.World;
+import net.minecraftforge.common.ForgeHooks;
+import net.minecraftforge.event.world.BlockEvent;
+
+public class CommonHelper {
+
+ public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
+ if(!(block instanceof IGrowable))
+ return;
+ IGrowable igrowable = (IGrowable)block;
+ if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
+ if(!world.isRemote)
+ if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
+ for(int i = 0; i < count; i++)
+ igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
+ }
+
+ public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
+ if(!world.isRemote) {
+ BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
+ if(event.isCanceled())
+ return;
+ if(checkAir) {
+ if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+ } else (y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+
+ }
+ }
+}
+
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 14:30:38.006
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 14:30:38.006
+!MESSAGE Error in JDT Core during AST creation
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:42.509
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.core;
+
+import net.minecraft.block.Block;
+import net.minecraft.block.IGrowable;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.world.World;
+import net.minecraftforge.common.ForgeHooks;
+import net.minecraftforge.event.world.BlockEvent;
+
+public class CommonHelper {
+
+ public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
+ if(!(block instanceof IGrowable))
+ return;
+ IGrowable igrowable = (IGrowable)block;
+ if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
+ if(!world.isRemote)
+ if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
+ for(int i = 0; i < count; i++)
+ igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
+ }
+
+ public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
+ if(!world.isRemote) {
+ BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
+ if(event.isCanceled())
+ return;
+ if(checkAir) {
+ if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+ } else (y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+
+ }
+ }
+}
+
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 2 2022-04-01 14:30:42.509
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 0 2022-04-01 14:30:42.510
+!MESSAGE Error in JDT Core during reconcile
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:42.513
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.core;
+
+import net.minecraft.block.Block;
+import net.minecraft.block.IGrowable;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.world.World;
+import net.minecraftforge.common.ForgeHooks;
+import net.minecraftforge.event.world.BlockEvent;
+
+public class CommonHelper {
+
+ public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
+ if(!(block instanceof IGrowable))
+ return;
+ IGrowable igrowable = (IGrowable)block;
+ if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
+ if(!world.isRemote)
+ if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
+ for(int i = 0; i < count; i++)
+ igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
+ }
+
+ public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
+ if(!world.isRemote) {
+ BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
+ if(event.isCanceled())
+ return;
+ if(checkAir) {
+ if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+ } else (y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+
+ }
+ }
+}
+
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 14:30:42.514
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 14:30:42.514
+!MESSAGE Error in JDT Core during AST creation
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:44.016
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.core;
+
+import net.minecraft.block.Block;
+import net.minecraft.block.IGrowable;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.world.World;
+import net.minecraftforge.common.ForgeHooks;
+import net.minecraftforge.event.world.BlockEvent;
+
+public class CommonHelper {
+
+ public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
+ if(!(block instanceof IGrowable))
+ return;
+ IGrowable igrowable = (IGrowable)block;
+ if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
+ if(!world.isRemote)
+ if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
+ for(int i = 0; i < count; i++)
+ igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
+ }
+
+ public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
+ if(!world.isRemote) {
+ BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
+ if(event.isCanceled())
+ return;
+ if(checkAir) {
+ if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+ } else (y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+
+ }
+ }
+}
+
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 2 2022-04-01 14:30:44.016
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 0 2022-04-01 14:30:44.017
+!MESSAGE Error in JDT Core during reconcile
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:44.638
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.core;
+
+import net.minecraft.block.Block;
+import net.minecraft.block.IGrowable;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.world.World;
+import net.minecraftforge.common.ForgeHooks;
+import net.minecraftforge.event.world.BlockEvent;
+
+public class CommonHelper {
+
+ public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
+ if(!(block instanceof IGrowable))
+ return;
+ IGrowable igrowable = (IGrowable)block;
+ if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
+ if(!world.isRemote)
+ if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
+ for(int i = 0; i < count; i++)
+ igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
+ }
+
+ public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
+ if(!world.isRemote) {
+ BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
+ if(event.isCanceled())
+ return;
+ if(checkAir) {
+ if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+ } else (y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+
+ }
+ }
+}
+
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.internalGetHoverInfo(NLSStringHover.java:139)
+ at org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.getHoverInfo2(NLSStringHover.java:118)
+ at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:163)
+ at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:130)
+ at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:89)
+ at org.eclipse.jface.text.TextViewerHoverManager$1.run(TextViewerHoverManager.java:155)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 14:30:44.639
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.internalGetHoverInfo(NLSStringHover.java:139)
+ at org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.getHoverInfo2(NLSStringHover.java:118)
+ at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:163)
+ at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:130)
+ at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:89)
+ at org.eclipse.jface.text.TextViewerHoverManager$1.run(TextViewerHoverManager.java:155)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 14:30:44.639
+!MESSAGE Error in JDT Core during AST creation
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.internalGetHoverInfo(NLSStringHover.java:139)
+ at org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.getHoverInfo2(NLSStringHover.java:118)
+ at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:163)
+ at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:130)
+ at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:89)
+ at org.eclipse.jface.text.TextViewerHoverManager$1.run(TextViewerHoverManager.java:155)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:44.866
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.core;
+
+import net.minecraft.block.Block;
+import net.minecraft.block.IGrowable;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.world.World;
+import net.minecraftforge.common.ForgeHooks;
+import net.minecraftforge.event.world.BlockEvent;
+
+public class CommonHelper {
+
+ public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
+ if(!(block instanceof IGrowable))
+ return;
+ IGrowable igrowable = (IGrowable)block;
+ if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
+ if(!world.isRemote)
+ if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
+ for(int i = 0; i < count; i++)
+ igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
+ }
+
+ public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
+ if(!world.isRemote) {
+ BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
+ if(event.isCanceled())
+ return;
+ if(checkAir) {
+ if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+ } else (y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+
+ }
+ }
+}
+
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 14:30:44.866
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 14:30:44.867
+!MESSAGE Error in JDT Core during AST creation
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:47.023
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.core;
+
+import net.minecraft.block.Block;
+import net.minecraft.block.IGrowable;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.world.World;
+import net.minecraftforge.common.ForgeHooks;
+import net.minecraftforge.event.world.BlockEvent;
+
+public class CommonHelper {
+
+ public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
+ if(!(block instanceof IGrowable))
+ return;
+ IGrowable igrowable = (IGrowable)block;
+ if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
+ if(!world.isRemote)
+ if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
+ for(int i = 0; i < count; i++)
+ igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
+ }
+
+ public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
+ if(!world.isRemote) {
+ BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
+ if(event.isCanceled())
+ return;
+ if(checkAir) {
+ if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+ } else (y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+
+ }
+ }
+}
+
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 2 2022-04-01 14:30:47.023
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 0 2022-04-01 14:30:47.024
+!MESSAGE Error in JDT Core during reconcile
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:47.461
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.core;
+
+import net.minecraft.block.Block;
+import net.minecraft.block.IGrowable;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.world.World;
+import net.minecraftforge.common.ForgeHooks;
+import net.minecraftforge.event.world.BlockEvent;
+
+public class CommonHelper {
+
+ public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
+ if(!(block instanceof IGrowable))
+ return;
+ IGrowable igrowable = (IGrowable)block;
+ if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
+ if(!world.isRemote)
+ if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
+ for(int i = 0; i < count; i++)
+ igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
+ }
+
+ public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
+ if(!world.isRemote) {
+ BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
+ if(event.isCanceled())
+ return;
+ if(checkAir) {
+ if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+ } else (y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+
+ }
+ }
+}
+
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.internalGetHoverInfo(NLSStringHover.java:139)
+ at org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.getHoverInfo2(NLSStringHover.java:118)
+ at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:163)
+ at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:130)
+ at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:89)
+ at org.eclipse.jface.text.TextViewerHoverManager$1.run(TextViewerHoverManager.java:155)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 14:30:47.461
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.internalGetHoverInfo(NLSStringHover.java:139)
+ at org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.getHoverInfo2(NLSStringHover.java:118)
+ at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:163)
+ at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:130)
+ at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:89)
+ at org.eclipse.jface.text.TextViewerHoverManager$1.run(TextViewerHoverManager.java:155)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 14:30:47.462
+!MESSAGE Error in JDT Core during AST creation
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.internalGetHoverInfo(NLSStringHover.java:139)
+ at org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.getHoverInfo2(NLSStringHover.java:118)
+ at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:163)
+ at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:130)
+ at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:89)
+ at org.eclipse.jface.text.TextViewerHoverManager$1.run(TextViewerHoverManager.java:155)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:47.653
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.core;
+
+import net.minecraft.block.Block;
+import net.minecraft.block.IGrowable;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.world.World;
+import net.minecraftforge.common.ForgeHooks;
+import net.minecraftforge.event.world.BlockEvent;
+
+public class CommonHelper {
+
+ public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
+ if(!(block instanceof IGrowable))
+ return;
+ IGrowable igrowable = (IGrowable)block;
+ if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
+ if(!world.isRemote)
+ if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
+ for(int i = 0; i < count; i++)
+ igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
+ }
+
+ public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
+ if(!world.isRemote) {
+ BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
+ if(event.isCanceled())
+ return;
+ if(checkAir) {
+ if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+ } else (y < 256)
+ world.setBlock(x, y, z, block, meta, 3);
+
+ }
+ }
+}
+
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 14:30:47.653
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 14:30:47.654
+!MESSAGE Error in JDT Core during AST creation
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 14:36:45.052
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 14:40:08.307
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 14:42:22.902
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 14:45:08.996
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 14:45:58.147
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 14:53:10.082
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 14:54:36.638
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 14:55:14.783
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 14:59:29.028
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 15:03:56.183
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 15:04:59.281
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 15:06:54.587
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 15:08:45.129
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 15:09:35.921
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 15:11:44.622
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 15:12:49.345
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 15:13:15.471
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 15:14:10.016
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 15:30:07.674
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 15:32:28.155
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 15:34:05.354
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 15:40:42.427
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 16:02:20.596
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 16:06:28.847
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 16:11:07.736
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 16:13:54.106
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 16:19:43.209
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 16:24:15.918
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.block.tile;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.api.IRenderHud;
+import ab.common.core.CommonHelper;
+import ab.common.lib.register.BlockListAB;
+import net.minecraft.block.Block;
+import net.minecraft.block.material.Material;
+import net.minecraft.client.Minecraft;
+import net.minecraft.client.gui.Gui;
+import net.minecraft.client.gui.ScaledResolution;
+import net.minecraft.client.renderer.RenderHelper;
+import net.minecraft.client.renderer.entity.RenderItem;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.init.Blocks;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.world.World;
+import vazkii.botania.api.internal.VanillaPacketDispatcher;
+import vazkii.botania.api.lexicon.multiblock.Multiblock;
+import vazkii.botania.api.lexicon.multiblock.MultiblockSet;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.block.ModBlocks;
+import vazkii.botania.common.block.ModFluffBlocks;
+import vazkii.botania.common.block.tile.TileMod;
+import vazkii.botania.common.core.handler.ConfigHandler;
+
+public class TileLebethronCore extends TileMod implements IRenderHud {
+
+ protected int tick;
+ protected Block block;
+ protected int meta;
+ protected boolean validTree;
+ private String playerName = "";
+
+ public static MultiblockSet makeMultiblockSet() {
+ Multiblock mb = new Multiblock();
+ mb.addComponent(0, 1, 0, BlockListAB.blockLebethron, 4);
+ mb.addComponent(0, 0, 0, BlockListAB.blockLebethron, 0);
+ mb.addComponent(0, 2, 0, BlockListAB.blockLebethron, 0);
+ mb.addComponent(0, 3, 0, BlockListAB.blockLebethron, 0);
+ mb.addComponent(0, 4, 0, BlockListAB.blockLebethron, 0);
+ mb.addComponent(0, 5, 0, BlockListAB.blockLebethron, 0);
+ mb.setRenderOffset(0, 1, 0);
+ return mb.makeSet();
+ }
+
+ public void updateEntity() {
+ if(!world.isRemote) {
+ if(tick <= 0) {
+ updateStructure();
+ if(validTree && getBlock() != null) {
+ spawnLeaves();
+ tick = 40;
+ }
+ } else
+ tick--;
+ }
+ else(worldObj.isRemote && worldObj.rand.nextBoolean() && this.worldObj.isRemote)
+ Botania.proxy.sparkleFX(this.worldObj, this.xCoord + Math.random(), this.yCoord + Math.random(), this.zCoord + Math.random(), 0.5F, 1.0F, 0.5F, (float)Math.random() * 2, 2);
+ }
+
+ public boolean getValidTree() {
+ return this.validTree;
+ }
+
+ public void updateStructure() {
+ boolean oldValidTree = validTree;
+ validTree = hasValidTree();
+ if(oldValidTree != validTree)
+ VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
+ }
+
+ public void setPlayerName(String name) {
+ if(playerName.isEmpty())
+ playerName = name;
+ }
+
+ public void writeToNBT(NBTTagCompound nbtt) {
+ super.writeToNBT(nbtt);
+ nbtt.setString("playerName", playerName);
+ }
+
+ public void readFromNBT(NBTTagCompound nbtt) {
+ super.readFromNBT(nbtt);
+ playerName = nbtt.getString("playerName");
+ }
+
+ public void writeCustomNBT(NBTTagCompound nbtt) {
+ nbtt.setInteger("blockID", Block.getIdFromBlock(block));
+ nbtt.setInteger("blockMeta", this.meta);
+ nbtt.setInteger("tick", this.tick);
+ nbtt.setBoolean("validTree", validTree);
+ }
+
+ public void readCustomNBT(NBTTagCompound nbtt) {
+ this.block = Block.getBlockById(nbtt.getInteger("blockID"));
+ this.meta = nbtt.getInteger("blockMeta");
+ this.tick = nbtt.getInteger("tick");
+ this.validTree = nbtt.getBoolean("validTree");
+ }
+
+ public boolean setBlock(Block block, int meta) {
+ if(this.block == null) {
+ this.block = block;
+ this.meta = meta;
+ return true;
+ } else {
+ if(Block.isEqualTo(this.block, block) && this.meta == meta) {
+ return false;
+ }
+ if(!this.worldObj.isRemote) {
+ EntityItem entity = new EntityItem(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
+ entity.setEntityItemStack(new ItemStack(this.block, 1, this.meta));
+ this.worldObj.spawnEntityInWorld(entity);
+ }
+ this.block = block;
+ this.meta = meta;
+ return true;
+ }
+ }
+
+ public Block getBlock() {
+ if(!Block.isEqualTo(block, Blocks.air) && block != null)
+ return this.block;
+ return null;
+ }
+
+ public int getMeta() {
+ return this.meta;
+ }
+
+ public boolean hasValidTree() {
+ if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord - 1, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord - 1, this.zCoord))) {
+ return false;
+ }
+ for(int i = 1; i <= 4; i++) {
+ if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord + i, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord + i, this.zCoord))) {
+ return false;
+ }
+ }
+ return true;
+ }
+
+ boolean checkBlock(Block block, int meta) {
+ return block == BlockListAB.blockLebethron && meta == 0;
+ }
+
+ private void spawnLeaves() {
+ for(int x = -1; x <= 1; x++)
+ for(int z = -1; z <= 1; z++)
+ for(int y = 0; y < 5; y++)
+ this.setBlock(worldObj, this.xCoord + x, this.yCoord + y + 2, this.zCoord + z);
+ this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 1, this.zCoord);
+ this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 1, this.zCoord);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord + 1);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord - 1);
+ this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 7, this.zCoord);
+ this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 7, this.zCoord);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord + 1);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord - 1);
+ for(int i = 0; i <= 3; i++)
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 6 + i, this.zCoord);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord - 2);
+ for(int i = -1; i <= 1; i++) {
+ this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord - 2);
+ this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord - 2);
+ }
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord - 2);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord + 2);
+ for(int i = -1; i <= 1; i++) {
+ this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord + 2);
+ this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord + 2);
+ }
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord + 2);
+ this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 2, this.zCoord);
+ for(int i = -1; i <= 1; i++) {
+ this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 3, this.zCoord + i);
+ this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 4, this.zCoord + i);
+ }
+ this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 5, this.zCoord);
+ this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 2, this.zCoord);
+ for(int i = -1; i <= 1; i++) {
+ this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 3, this.zCoord + i);
+ this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 4, this.zCoord + i);
+ }
+ this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 5, this.zCoord);
+ }
+
+ private void setBlock(World world, int x, int y, int z) {
+ EntityPlayer player = worldObj.getPlayerEntityByName(playerName);
+ if(player != null) {
+ if(world.rand.nextInt(10) <= 8)
+ return;
+ else
+ CommonHelper.setBlock(world, block, meta, x, y, z, (EntityPlayerMP)player, true);
+ }
+ }
+
+ public void renderHud(Minecraft mc, ScaledResolution res) {
+ if(!validTree)
+ return;
+ GL11.glEnable(3042);
+ GL11.glBlendFunc(770, 771);
+ ItemStack stack = getBlock() != null ? new ItemStack(block, 1, meta) : new ItemStack(Blocks.leaves);
+ int x = res.getScaledWidth() / 2 - 7;
+ int y = res.getScaledHeight() / 2 + 12;
+ Gui.drawRect(x - 2, y - 2, x + 18, y + 18, 1140850688);
+ Gui.drawRect(x, y, x + 16, y + 16, 1140850688);
+ RenderHelper.enableGUIStandardItemLighting();
+ GL11.glEnable(32826);
+ RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, stack, x, y);
+ RenderHelper.disableStandardItemLighting();
+ GL11.glDisable(2929);
+ boolean unicode = mc.fontRenderer.getUnicodeFlag();
+ mc.fontRenderer.setUnicodeFlag(true);
+ if(getBlock() != null) {
+ mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 9, 19456);
+ mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 8, 774669);
+ } else {
+ mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 9, 4980736);
+ mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 8, 13764621);
+ }
+ mc.fontRenderer.setUnicodeFlag(unicode);
+ GL11.glEnable(2929);
+ GL11.glDisable(3042);
+ }
+}
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 2 2022-04-01 16:24:15.919
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 0 2022-04-01 16:24:15.919
+!MESSAGE Error in JDT Core during reconcile
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 16:24:15.927
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.block.tile;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.api.IRenderHud;
+import ab.common.core.CommonHelper;
+import ab.common.lib.register.BlockListAB;
+import net.minecraft.block.Block;
+import net.minecraft.block.material.Material;
+import net.minecraft.client.Minecraft;
+import net.minecraft.client.gui.Gui;
+import net.minecraft.client.gui.ScaledResolution;
+import net.minecraft.client.renderer.RenderHelper;
+import net.minecraft.client.renderer.entity.RenderItem;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.init.Blocks;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.world.World;
+import vazkii.botania.api.internal.VanillaPacketDispatcher;
+import vazkii.botania.api.lexicon.multiblock.Multiblock;
+import vazkii.botania.api.lexicon.multiblock.MultiblockSet;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.block.ModBlocks;
+import vazkii.botania.common.block.ModFluffBlocks;
+import vazkii.botania.common.block.tile.TileMod;
+import vazkii.botania.common.core.handler.ConfigHandler;
+
+public class TileLebethronCore extends TileMod implements IRenderHud {
+
+ protected int tick;
+ protected Block block;
+ protected int meta;
+ protected boolean validTree;
+ private String playerName = "";
+
+ public static MultiblockSet makeMultiblockSet() {
+ Multiblock mb = new Multiblock();
+ mb.addComponent(0, 1, 0, BlockListAB.blockLebethron, 4);
+ mb.addComponent(0, 0, 0, BlockListAB.blockLebethron, 0);
+ mb.addComponent(0, 2, 0, BlockListAB.blockLebethron, 0);
+ mb.addComponent(0, 3, 0, BlockListAB.blockLebethron, 0);
+ mb.addComponent(0, 4, 0, BlockListAB.blockLebethron, 0);
+ mb.addComponent(0, 5, 0, BlockListAB.blockLebethron, 0);
+ mb.setRenderOffset(0, 1, 0);
+ return mb.makeSet();
+ }
+
+ public void updateEntity() {
+ if(!world.isRemote) {
+ if(tick <= 0) {
+ updateStructure();
+ if(validTree && getBlock() != null) {
+ spawnLeaves();
+ tick = 40;
+ }
+ } else
+ tick--;
+ }
+ else(worldObj.isRemote && worldObj.rand.nextBoolean() && this.worldObj.isRemote)
+ Botania.proxy.sparkleFX(this.worldObj, this.xCoord + Math.random(), this.yCoord + Math.random(), this.zCoord + Math.random(), 0.5F, 1.0F, 0.5F, (float)Math.random() * 2, 2);
+ }
+
+ public boolean getValidTree() {
+ return this.validTree;
+ }
+
+ public void updateStructure() {
+ boolean oldValidTree = validTree;
+ validTree = hasValidTree();
+ if(oldValidTree != validTree)
+ VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
+ }
+
+ public void setPlayerName(String name) {
+ if(playerName.isEmpty())
+ playerName = name;
+ }
+
+ public void writeToNBT(NBTTagCompound nbtt) {
+ super.writeToNBT(nbtt);
+ nbtt.setString("playerName", playerName);
+ }
+
+ public void readFromNBT(NBTTagCompound nbtt) {
+ super.readFromNBT(nbtt);
+ playerName = nbtt.getString("playerName");
+ }
+
+ public void writeCustomNBT(NBTTagCompound nbtt) {
+ nbtt.setInteger("blockID", Block.getIdFromBlock(block));
+ nbtt.setInteger("blockMeta", this.meta);
+ nbtt.setInteger("tick", this.tick);
+ nbtt.setBoolean("validTree", validTree);
+ }
+
+ public void readCustomNBT(NBTTagCompound nbtt) {
+ this.block = Block.getBlockById(nbtt.getInteger("blockID"));
+ this.meta = nbtt.getInteger("blockMeta");
+ this.tick = nbtt.getInteger("tick");
+ this.validTree = nbtt.getBoolean("validTree");
+ }
+
+ public boolean setBlock(Block block, int meta) {
+ if(this.block == null) {
+ this.block = block;
+ this.meta = meta;
+ return true;
+ } else {
+ if(Block.isEqualTo(this.block, block) && this.meta == meta) {
+ return false;
+ }
+ if(!this.worldObj.isRemote) {
+ EntityItem entity = new EntityItem(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
+ entity.setEntityItemStack(new ItemStack(this.block, 1, this.meta));
+ this.worldObj.spawnEntityInWorld(entity);
+ }
+ this.block = block;
+ this.meta = meta;
+ return true;
+ }
+ }
+
+ public Block getBlock() {
+ if(!Block.isEqualTo(block, Blocks.air) && block != null)
+ return this.block;
+ return null;
+ }
+
+ public int getMeta() {
+ return this.meta;
+ }
+
+ public boolean hasValidTree() {
+ if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord - 1, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord - 1, this.zCoord))) {
+ return false;
+ }
+ for(int i = 1; i <= 4; i++) {
+ if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord + i, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord + i, this.zCoord))) {
+ return false;
+ }
+ }
+ return true;
+ }
+
+ boolean checkBlock(Block block, int meta) {
+ return block == BlockListAB.blockLebethron && meta == 0;
+ }
+
+ private void spawnLeaves() {
+ for(int x = -1; x <= 1; x++)
+ for(int z = -1; z <= 1; z++)
+ for(int y = 0; y < 5; y++)
+ this.setBlock(worldObj, this.xCoord + x, this.yCoord + y + 2, this.zCoord + z);
+ this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 1, this.zCoord);
+ this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 1, this.zCoord);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord + 1);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord - 1);
+ this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 7, this.zCoord);
+ this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 7, this.zCoord);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord + 1);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord - 1);
+ for(int i = 0; i <= 3; i++)
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 6 + i, this.zCoord);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord - 2);
+ for(int i = -1; i <= 1; i++) {
+ this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord - 2);
+ this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord - 2);
+ }
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord - 2);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord + 2);
+ for(int i = -1; i <= 1; i++) {
+ this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord + 2);
+ this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord + 2);
+ }
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord + 2);
+ this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 2, this.zCoord);
+ for(int i = -1; i <= 1; i++) {
+ this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 3, this.zCoord + i);
+ this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 4, this.zCoord + i);
+ }
+ this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 5, this.zCoord);
+ this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 2, this.zCoord);
+ for(int i = -1; i <= 1; i++) {
+ this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 3, this.zCoord + i);
+ this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 4, this.zCoord + i);
+ }
+ this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 5, this.zCoord);
+ }
+
+ private void setBlock(World world, int x, int y, int z) {
+ EntityPlayer player = worldObj.getPlayerEntityByName(playerName);
+ if(player != null) {
+ if(world.rand.nextInt(10) <= 8)
+ return;
+ else
+ CommonHelper.setBlock(world, block, meta, x, y, z, (EntityPlayerMP)player, true);
+ }
+ }
+
+ public void renderHud(Minecraft mc, ScaledResolution res) {
+ if(!validTree)
+ return;
+ GL11.glEnable(3042);
+ GL11.glBlendFunc(770, 771);
+ ItemStack stack = getBlock() != null ? new ItemStack(block, 1, meta) : new ItemStack(Blocks.leaves);
+ int x = res.getScaledWidth() / 2 - 7;
+ int y = res.getScaledHeight() / 2 + 12;
+ Gui.drawRect(x - 2, y - 2, x + 18, y + 18, 1140850688);
+ Gui.drawRect(x, y, x + 16, y + 16, 1140850688);
+ RenderHelper.enableGUIStandardItemLighting();
+ GL11.glEnable(32826);
+ RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, stack, x, y);
+ RenderHelper.disableStandardItemLighting();
+ GL11.glDisable(2929);
+ boolean unicode = mc.fontRenderer.getUnicodeFlag();
+ mc.fontRenderer.setUnicodeFlag(true);
+ if(getBlock() != null) {
+ mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 9, 19456);
+ mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 8, 774669);
+ } else {
+ mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 9, 4980736);
+ mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 8, 13764621);
+ }
+ mc.fontRenderer.setUnicodeFlag(unicode);
+ GL11.glEnable(2929);
+ GL11.glDisable(3042);
+ }
+}
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 16:24:15.927
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 16:24:15.928
+!MESSAGE Error in JDT Core during AST creation
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 16:24:20.429
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.block.tile;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.api.IRenderHud;
+import ab.common.core.CommonHelper;
+import ab.common.lib.register.BlockListAB;
+import net.minecraft.block.Block;
+import net.minecraft.block.material.Material;
+import net.minecraft.client.Minecraft;
+import net.minecraft.client.gui.Gui;
+import net.minecraft.client.gui.ScaledResolution;
+import net.minecraft.client.renderer.RenderHelper;
+import net.minecraft.client.renderer.entity.RenderItem;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.init.Blocks;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.world.World;
+import vazkii.botania.api.internal.VanillaPacketDispatcher;
+import vazkii.botania.api.lexicon.multiblock.Multiblock;
+import vazkii.botania.api.lexicon.multiblock.MultiblockSet;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.block.ModBlocks;
+import vazkii.botania.common.block.ModFluffBlocks;
+import vazkii.botania.common.block.tile.TileMod;
+import vazkii.botania.common.core.handler.ConfigHandler;
+
+public class TileLebethronCore extends TileMod implements IRenderHud {
+
+ protected int tick;
+ protected Block block;
+ protected int meta;
+ protected boolean validTree;
+ private String playerName = "";
+
+ public static MultiblockSet makeMultiblockSet() {
+ Multiblock mb = new Multiblock();
+ mb.addComponent(0, 1, 0, BlockListAB.blockLebethron, 4);
+ mb.addComponent(0, 0, 0, BlockListAB.blockLebethron, 0);
+ mb.addComponent(0, 2, 0, BlockListAB.blockLebethron, 0);
+ mb.addComponent(0, 3, 0, BlockListAB.blockLebethron, 0);
+ mb.addComponent(0, 4, 0, BlockListAB.blockLebethron, 0);
+ mb.addComponent(0, 5, 0, BlockListAB.blockLebethron, 0);
+ mb.setRenderOffset(0, 1, 0);
+ return mb.makeSet();
+ }
+
+ public void updateEntity() {
+ if(!worldObj.isRemote) {
+ if(tick <= 0) {
+ updateStructure();
+ if(validTree && getBlock() != null) {
+ spawnLeaves();
+ tick = 40;
+ }
+ } else
+ tick--;
+ }
+ else(worldObj.isRemote && worldObj.rand.nextBoolean() && this.worldObj.isRemote)
+ Botania.proxy.sparkleFX(this.worldObj, this.xCoord + Math.random(), this.yCoord + Math.random(), this.zCoord + Math.random(), 0.5F, 1.0F, 0.5F, (float)Math.random() * 2, 2);
+ }
+
+ public boolean getValidTree() {
+ return this.validTree;
+ }
+
+ public void updateStructure() {
+ boolean oldValidTree = validTree;
+ validTree = hasValidTree();
+ if(oldValidTree != validTree)
+ VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
+ }
+
+ public void setPlayerName(String name) {
+ if(playerName.isEmpty())
+ playerName = name;
+ }
+
+ public void writeToNBT(NBTTagCompound nbtt) {
+ super.writeToNBT(nbtt);
+ nbtt.setString("playerName", playerName);
+ }
+
+ public void readFromNBT(NBTTagCompound nbtt) {
+ super.readFromNBT(nbtt);
+ playerName = nbtt.getString("playerName");
+ }
+
+ public void writeCustomNBT(NBTTagCompound nbtt) {
+ nbtt.setInteger("blockID", Block.getIdFromBlock(block));
+ nbtt.setInteger("blockMeta", this.meta);
+ nbtt.setInteger("tick", this.tick);
+ nbtt.setBoolean("validTree", validTree);
+ }
+
+ public void readCustomNBT(NBTTagCompound nbtt) {
+ this.block = Block.getBlockById(nbtt.getInteger("blockID"));
+ this.meta = nbtt.getInteger("blockMeta");
+ this.tick = nbtt.getInteger("tick");
+ this.validTree = nbtt.getBoolean("validTree");
+ }
+
+ public boolean setBlock(Block block, int meta) {
+ if(this.block == null) {
+ this.block = block;
+ this.meta = meta;
+ return true;
+ } else {
+ if(Block.isEqualTo(this.block, block) && this.meta == meta) {
+ return false;
+ }
+ if(!this.worldObj.isRemote) {
+ EntityItem entity = new EntityItem(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
+ entity.setEntityItemStack(new ItemStack(this.block, 1, this.meta));
+ this.worldObj.spawnEntityInWorld(entity);
+ }
+ this.block = block;
+ this.meta = meta;
+ return true;
+ }
+ }
+
+ public Block getBlock() {
+ if(!Block.isEqualTo(block, Blocks.air) && block != null)
+ return this.block;
+ return null;
+ }
+
+ public int getMeta() {
+ return this.meta;
+ }
+
+ public boolean hasValidTree() {
+ if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord - 1, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord - 1, this.zCoord))) {
+ return false;
+ }
+ for(int i = 1; i <= 4; i++) {
+ if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord + i, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord + i, this.zCoord))) {
+ return false;
+ }
+ }
+ return true;
+ }
+
+ boolean checkBlock(Block block, int meta) {
+ return block == BlockListAB.blockLebethron && meta == 0;
+ }
+
+ private void spawnLeaves() {
+ for(int x = -1; x <= 1; x++)
+ for(int z = -1; z <= 1; z++)
+ for(int y = 0; y < 5; y++)
+ this.setBlock(worldObj, this.xCoord + x, this.yCoord + y + 2, this.zCoord + z);
+ this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 1, this.zCoord);
+ this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 1, this.zCoord);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord + 1);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord - 1);
+ this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 7, this.zCoord);
+ this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 7, this.zCoord);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord + 1);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord - 1);
+ for(int i = 0; i <= 3; i++)
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 6 + i, this.zCoord);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord - 2);
+ for(int i = -1; i <= 1; i++) {
+ this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord - 2);
+ this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord - 2);
+ }
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord - 2);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord + 2);
+ for(int i = -1; i <= 1; i++) {
+ this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord + 2);
+ this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord + 2);
+ }
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord + 2);
+ this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 2, this.zCoord);
+ for(int i = -1; i <= 1; i++) {
+ this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 3, this.zCoord + i);
+ this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 4, this.zCoord + i);
+ }
+ this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 5, this.zCoord);
+ this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 2, this.zCoord);
+ for(int i = -1; i <= 1; i++) {
+ this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 3, this.zCoord + i);
+ this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 4, this.zCoord + i);
+ }
+ this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 5, this.zCoord);
+ }
+
+ private void setBlock(World world, int x, int y, int z) {
+ EntityPlayer player = worldObj.getPlayerEntityByName(playerName);
+ if(player != null) {
+ if(world.rand.nextInt(10) <= 8)
+ return;
+ else
+ CommonHelper.setBlock(world, block, meta, x, y, z, (EntityPlayerMP)player, true);
+ }
+ }
+
+ public void renderHud(Minecraft mc, ScaledResolution res) {
+ if(!validTree)
+ return;
+ GL11.glEnable(3042);
+ GL11.glBlendFunc(770, 771);
+ ItemStack stack = getBlock() != null ? new ItemStack(block, 1, meta) : new ItemStack(Blocks.leaves);
+ int x = res.getScaledWidth() / 2 - 7;
+ int y = res.getScaledHeight() / 2 + 12;
+ Gui.drawRect(x - 2, y - 2, x + 18, y + 18, 1140850688);
+ Gui.drawRect(x, y, x + 16, y + 16, 1140850688);
+ RenderHelper.enableGUIStandardItemLighting();
+ GL11.glEnable(32826);
+ RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, stack, x, y);
+ RenderHelper.disableStandardItemLighting();
+ GL11.glDisable(2929);
+ boolean unicode = mc.fontRenderer.getUnicodeFlag();
+ mc.fontRenderer.setUnicodeFlag(true);
+ if(getBlock() != null) {
+ mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 9, 19456);
+ mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 8, 774669);
+ } else {
+ mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 9, 4980736);
+ mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 8, 13764621);
+ }
+ mc.fontRenderer.setUnicodeFlag(unicode);
+ GL11.glEnable(2929);
+ GL11.glDisable(3042);
+ }
+}
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 2 2022-04-01 16:24:20.430
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 0 2022-04-01 16:24:20.430
+!MESSAGE Error in JDT Core during reconcile
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 16:24:20.616
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.block.tile;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.api.IRenderHud;
+import ab.common.core.CommonHelper;
+import ab.common.lib.register.BlockListAB;
+import net.minecraft.block.Block;
+import net.minecraft.block.material.Material;
+import net.minecraft.client.Minecraft;
+import net.minecraft.client.gui.Gui;
+import net.minecraft.client.gui.ScaledResolution;
+import net.minecraft.client.renderer.RenderHelper;
+import net.minecraft.client.renderer.entity.RenderItem;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.init.Blocks;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.world.World;
+import vazkii.botania.api.internal.VanillaPacketDispatcher;
+import vazkii.botania.api.lexicon.multiblock.Multiblock;
+import vazkii.botania.api.lexicon.multiblock.MultiblockSet;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.block.ModBlocks;
+import vazkii.botania.common.block.ModFluffBlocks;
+import vazkii.botania.common.block.tile.TileMod;
+import vazkii.botania.common.core.handler.ConfigHandler;
+
+public class TileLebethronCore extends TileMod implements IRenderHud {
+
+ protected int tick;
+ protected Block block;
+ protected int meta;
+ protected boolean validTree;
+ private String playerName = "";
+
+ public static MultiblockSet makeMultiblockSet() {
+ Multiblock mb = new Multiblock();
+ mb.addComponent(0, 1, 0, BlockListAB.blockLebethron, 4);
+ mb.addComponent(0, 0, 0, BlockListAB.blockLebethron, 0);
+ mb.addComponent(0, 2, 0, BlockListAB.blockLebethron, 0);
+ mb.addComponent(0, 3, 0, BlockListAB.blockLebethron, 0);
+ mb.addComponent(0, 4, 0, BlockListAB.blockLebethron, 0);
+ mb.addComponent(0, 5, 0, BlockListAB.blockLebethron, 0);
+ mb.setRenderOffset(0, 1, 0);
+ return mb.makeSet();
+ }
+
+ public void updateEntity() {
+ if(!worldObj.isRemote) {
+ if(tick <= 0) {
+ updateStructure();
+ if(validTree && getBlock() != null) {
+ spawnLeaves();
+ tick = 40;
+ }
+ } else
+ tick--;
+ }
+ else(worldObj.isRemote && worldObj.rand.nextBoolean() && this.worldObj.isRemote)
+ Botania.proxy.sparkleFX(this.worldObj, this.xCoord + Math.random(), this.yCoord + Math.random(), this.zCoord + Math.random(), 0.5F, 1.0F, 0.5F, (float)Math.random() * 2, 2);
+ }
+
+ public boolean getValidTree() {
+ return this.validTree;
+ }
+
+ public void updateStructure() {
+ boolean oldValidTree = validTree;
+ validTree = hasValidTree();
+ if(oldValidTree != validTree)
+ VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
+ }
+
+ public void setPlayerName(String name) {
+ if(playerName.isEmpty())
+ playerName = name;
+ }
+
+ public void writeToNBT(NBTTagCompound nbtt) {
+ super.writeToNBT(nbtt);
+ nbtt.setString("playerName", playerName);
+ }
+
+ public void readFromNBT(NBTTagCompound nbtt) {
+ super.readFromNBT(nbtt);
+ playerName = nbtt.getString("playerName");
+ }
+
+ public void writeCustomNBT(NBTTagCompound nbtt) {
+ nbtt.setInteger("blockID", Block.getIdFromBlock(block));
+ nbtt.setInteger("blockMeta", this.meta);
+ nbtt.setInteger("tick", this.tick);
+ nbtt.setBoolean("validTree", validTree);
+ }
+
+ public void readCustomNBT(NBTTagCompound nbtt) {
+ this.block = Block.getBlockById(nbtt.getInteger("blockID"));
+ this.meta = nbtt.getInteger("blockMeta");
+ this.tick = nbtt.getInteger("tick");
+ this.validTree = nbtt.getBoolean("validTree");
+ }
+
+ public boolean setBlock(Block block, int meta) {
+ if(this.block == null) {
+ this.block = block;
+ this.meta = meta;
+ return true;
+ } else {
+ if(Block.isEqualTo(this.block, block) && this.meta == meta) {
+ return false;
+ }
+ if(!this.worldObj.isRemote) {
+ EntityItem entity = new EntityItem(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
+ entity.setEntityItemStack(new ItemStack(this.block, 1, this.meta));
+ this.worldObj.spawnEntityInWorld(entity);
+ }
+ this.block = block;
+ this.meta = meta;
+ return true;
+ }
+ }
+
+ public Block getBlock() {
+ if(!Block.isEqualTo(block, Blocks.air) && block != null)
+ return this.block;
+ return null;
+ }
+
+ public int getMeta() {
+ return this.meta;
+ }
+
+ public boolean hasValidTree() {
+ if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord - 1, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord - 1, this.zCoord))) {
+ return false;
+ }
+ for(int i = 1; i <= 4; i++) {
+ if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord + i, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord + i, this.zCoord))) {
+ return false;
+ }
+ }
+ return true;
+ }
+
+ boolean checkBlock(Block block, int meta) {
+ return block == BlockListAB.blockLebethron && meta == 0;
+ }
+
+ private void spawnLeaves() {
+ for(int x = -1; x <= 1; x++)
+ for(int z = -1; z <= 1; z++)
+ for(int y = 0; y < 5; y++)
+ this.setBlock(worldObj, this.xCoord + x, this.yCoord + y + 2, this.zCoord + z);
+ this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 1, this.zCoord);
+ this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 1, this.zCoord);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord + 1);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord - 1);
+ this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 7, this.zCoord);
+ this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 7, this.zCoord);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord + 1);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord - 1);
+ for(int i = 0; i <= 3; i++)
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 6 + i, this.zCoord);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord - 2);
+ for(int i = -1; i <= 1; i++) {
+ this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord - 2);
+ this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord - 2);
+ }
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord - 2);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord + 2);
+ for(int i = -1; i <= 1; i++) {
+ this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord + 2);
+ this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord + 2);
+ }
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord + 2);
+ this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 2, this.zCoord);
+ for(int i = -1; i <= 1; i++) {
+ this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 3, this.zCoord + i);
+ this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 4, this.zCoord + i);
+ }
+ this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 5, this.zCoord);
+ this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 2, this.zCoord);
+ for(int i = -1; i <= 1; i++) {
+ this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 3, this.zCoord + i);
+ this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 4, this.zCoord + i);
+ }
+ this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 5, this.zCoord);
+ }
+
+ private void setBlock(World world, int x, int y, int z) {
+ EntityPlayer player = worldObj.getPlayerEntityByName(playerName);
+ if(player != null) {
+ if(world.rand.nextInt(10) <= 8)
+ return;
+ else
+ CommonHelper.setBlock(world, block, meta, x, y, z, (EntityPlayerMP)player, true);
+ }
+ }
+
+ public void renderHud(Minecraft mc, ScaledResolution res) {
+ if(!validTree)
+ return;
+ GL11.glEnable(3042);
+ GL11.glBlendFunc(770, 771);
+ ItemStack stack = getBlock() != null ? new ItemStack(block, 1, meta) : new ItemStack(Blocks.leaves);
+ int x = res.getScaledWidth() / 2 - 7;
+ int y = res.getScaledHeight() / 2 + 12;
+ Gui.drawRect(x - 2, y - 2, x + 18, y + 18, 1140850688);
+ Gui.drawRect(x, y, x + 16, y + 16, 1140850688);
+ RenderHelper.enableGUIStandardItemLighting();
+ GL11.glEnable(32826);
+ RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, stack, x, y);
+ RenderHelper.disableStandardItemLighting();
+ GL11.glDisable(2929);
+ boolean unicode = mc.fontRenderer.getUnicodeFlag();
+ mc.fontRenderer.setUnicodeFlag(true);
+ if(getBlock() != null) {
+ mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 9, 19456);
+ mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 8, 774669);
+ } else {
+ mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 9, 4980736);
+ mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 8, 13764621);
+ }
+ mc.fontRenderer.setUnicodeFlag(unicode);
+ GL11.glEnable(2929);
+ GL11.glDisable(3042);
+ }
+}
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 16:24:20.617
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 16:24:20.618
+!MESSAGE Error in JDT Core during AST creation
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 16:24:21.938
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.block.tile;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.api.IRenderHud;
+import ab.common.core.CommonHelper;
+import ab.common.lib.register.BlockListAB;
+import net.minecraft.block.Block;
+import net.minecraft.block.material.Material;
+import net.minecraft.client.Minecraft;
+import net.minecraft.client.gui.Gui;
+import net.minecraft.client.gui.ScaledResolution;
+import net.minecraft.client.renderer.RenderHelper;
+import net.minecraft.client.renderer.entity.RenderItem;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.init.Blocks;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.world.World;
+import vazkii.botania.api.internal.VanillaPacketDispatcher;
+import vazkii.botania.api.lexicon.multiblock.Multiblock;
+import vazkii.botania.api.lexicon.multiblock.MultiblockSet;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.block.ModBlocks;
+import vazkii.botania.common.block.ModFluffBlocks;
+import vazkii.botania.common.block.tile.TileMod;
+import vazkii.botania.common.core.handler.ConfigHandler;
+
+public class TileLebethronCore extends TileMod implements IRenderHud {
+
+ protected int tick;
+ protected Block block;
+ protected int meta;
+ protected boolean validTree;
+ private String playerName = "";
+
+ public static MultiblockSet makeMultiblockSet() {
+ Multiblock mb = new Multiblock();
+ mb.addComponent(0, 1, 0, BlockListAB.blockLebethron, 4);
+ mb.addComponent(0, 0, 0, BlockListAB.blockLebethron, 0);
+ mb.addComponent(0, 2, 0, BlockListAB.blockLebethron, 0);
+ mb.addComponent(0, 3, 0, BlockListAB.blockLebethron, 0);
+ mb.addComponent(0, 4, 0, BlockListAB.blockLebethron, 0);
+ mb.addComponent(0, 5, 0, BlockListAB.blockLebethron, 0);
+ mb.setRenderOffset(0, 1, 0);
+ return mb.makeSet();
+ }
+
+ public void updateEntity() {
+ if(!worldObj.isRemote) {
+ if(tick <= 0) {
+ updateStructure();
+ if(validTree && getBlock() != null) {
+ spawnLeaves();
+ tick = 40;
+ }
+ } else
+ tick--;
+ }
+ else(worldObj.isRemote && worldObj.rand.nextBoolean() && this.worldObj.isRemote)
+ Botania.proxy.sparkleFX(this.worldObj, this.xCoord + Math.random(), this.yCoord + Math.random(), this.zCoord + Math.random(), 0.5F, 1.0F, 0.5F, (float)Math.random() * 2, 2);
+ }
+
+ public boolean getValidTree() {
+ return this.validTree;
+ }
+
+ public void updateStructure() {
+ boolean oldValidTree = validTree;
+ validTree = hasValidTree();
+ if(oldValidTree != validTree)
+ VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
+ }
+
+ public void setPlayerName(String name) {
+ if(playerName.isEmpty())
+ playerName = name;
+ }
+
+ public void writeToNBT(NBTTagCompound nbtt) {
+ super.writeToNBT(nbtt);
+ nbtt.setString("playerName", playerName);
+ }
+
+ public void readFromNBT(NBTTagCompound nbtt) {
+ super.readFromNBT(nbtt);
+ playerName = nbtt.getString("playerName");
+ }
+
+ public void writeCustomNBT(NBTTagCompound nbtt) {
+ nbtt.setInteger("blockID", Block.getIdFromBlock(block));
+ nbtt.setInteger("blockMeta", this.meta);
+ nbtt.setInteger("tick", this.tick);
+ nbtt.setBoolean("validTree", validTree);
+ }
+
+ public void readCustomNBT(NBTTagCompound nbtt) {
+ this.block = Block.getBlockById(nbtt.getInteger("blockID"));
+ this.meta = nbtt.getInteger("blockMeta");
+ this.tick = nbtt.getInteger("tick");
+ this.validTree = nbtt.getBoolean("validTree");
+ }
+
+ public boolean setBlock(Block block, int meta) {
+ if(this.block == null) {
+ this.block = block;
+ this.meta = meta;
+ return true;
+ } else {
+ if(Block.isEqualTo(this.block, block) && this.meta == meta) {
+ return false;
+ }
+ if(!this.worldObj.isRemote) {
+ EntityItem entity = new EntityItem(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
+ entity.setEntityItemStack(new ItemStack(this.block, 1, this.meta));
+ this.worldObj.spawnEntityInWorld(entity);
+ }
+ this.block = block;
+ this.meta = meta;
+ return true;
+ }
+ }
+
+ public Block getBlock() {
+ if(!Block.isEqualTo(block, Blocks.air) && block != null)
+ return this.block;
+ return null;
+ }
+
+ public int getMeta() {
+ return this.meta;
+ }
+
+ public boolean hasValidTree() {
+ if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord - 1, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord - 1, this.zCoord))) {
+ return false;
+ }
+ for(int i = 1; i <= 4; i++) {
+ if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord + i, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord + i, this.zCoord))) {
+ return false;
+ }
+ }
+ return true;
+ }
+
+ boolean checkBlock(Block block, int meta) {
+ return block == BlockListAB.blockLebethron && meta == 0;
+ }
+
+ private void spawnLeaves() {
+ for(int x = -1; x <= 1; x++)
+ for(int z = -1; z <= 1; z++)
+ for(int y = 0; y < 5; y++)
+ this.setBlock(worldObj, this.xCoord + x, this.yCoord + y + 2, this.zCoord + z);
+ this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 1, this.zCoord);
+ this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 1, this.zCoord);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord + 1);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord - 1);
+ this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 7, this.zCoord);
+ this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 7, this.zCoord);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord + 1);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord - 1);
+ for(int i = 0; i <= 3; i++)
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 6 + i, this.zCoord);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord - 2);
+ for(int i = -1; i <= 1; i++) {
+ this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord - 2);
+ this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord - 2);
+ }
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord - 2);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord + 2);
+ for(int i = -1; i <= 1; i++) {
+ this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord + 2);
+ this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord + 2);
+ }
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord + 2);
+ this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 2, this.zCoord);
+ for(int i = -1; i <= 1; i++) {
+ this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 3, this.zCoord + i);
+ this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 4, this.zCoord + i);
+ }
+ this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 5, this.zCoord);
+ this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 2, this.zCoord);
+ for(int i = -1; i <= 1; i++) {
+ this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 3, this.zCoord + i);
+ this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 4, this.zCoord + i);
+ }
+ this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 5, this.zCoord);
+ }
+
+ private void setBlock(World world, int x, int y, int z) {
+ EntityPlayer player = worldObj.getPlayerEntityByName(playerName);
+ if(player != null) {
+ if(world.rand.nextInt(10) <= 8)
+ return;
+ else
+ CommonHelper.setBlock(world, block, meta, x, y, z, (EntityPlayerMP)player, true);
+ }
+ }
+
+ public void renderHud(Minecraft mc, ScaledResolution res) {
+ if(!validTree)
+ return;
+ GL11.glEnable(3042);
+ GL11.glBlendFunc(770, 771);
+ ItemStack stack = getBlock() != null ? new ItemStack(block, 1, meta) : new ItemStack(Blocks.leaves);
+ int x = res.getScaledWidth() / 2 - 7;
+ int y = res.getScaledHeight() / 2 + 12;
+ Gui.drawRect(x - 2, y - 2, x + 18, y + 18, 1140850688);
+ Gui.drawRect(x, y, x + 16, y + 16, 1140850688);
+ RenderHelper.enableGUIStandardItemLighting();
+ GL11.glEnable(32826);
+ RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, stack, x, y);
+ RenderHelper.disableStandardItemLighting();
+ GL11.glDisable(2929);
+ boolean unicode = mc.fontRenderer.getUnicodeFlag();
+ mc.fontRenderer.setUnicodeFlag(true);
+ if(getBlock() != null) {
+ mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 9, 19456);
+ mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 8, 774669);
+ } else {
+ mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 9, 4980736);
+ mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 8, 13764621);
+ }
+ mc.fontRenderer.setUnicodeFlag(unicode);
+ GL11.glEnable(2929);
+ GL11.glDisable(3042);
+ }
+}
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 2 2022-04-01 16:24:21.939
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 0 2022-04-01 16:24:21.939
+!MESSAGE Error in JDT Core during reconcile
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 16:24:21.946
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.block.tile;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.api.IRenderHud;
+import ab.common.core.CommonHelper;
+import ab.common.lib.register.BlockListAB;
+import net.minecraft.block.Block;
+import net.minecraft.block.material.Material;
+import net.minecraft.client.Minecraft;
+import net.minecraft.client.gui.Gui;
+import net.minecraft.client.gui.ScaledResolution;
+import net.minecraft.client.renderer.RenderHelper;
+import net.minecraft.client.renderer.entity.RenderItem;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.init.Blocks;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.world.World;
+import vazkii.botania.api.internal.VanillaPacketDispatcher;
+import vazkii.botania.api.lexicon.multiblock.Multiblock;
+import vazkii.botania.api.lexicon.multiblock.MultiblockSet;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.block.ModBlocks;
+import vazkii.botania.common.block.ModFluffBlocks;
+import vazkii.botania.common.block.tile.TileMod;
+import vazkii.botania.common.core.handler.ConfigHandler;
+
+public class TileLebethronCore extends TileMod implements IRenderHud {
+
+ protected int tick;
+ protected Block block;
+ protected int meta;
+ protected boolean validTree;
+ private String playerName = "";
+
+ public static MultiblockSet makeMultiblockSet() {
+ Multiblock mb = new Multiblock();
+ mb.addComponent(0, 1, 0, BlockListAB.blockLebethron, 4);
+ mb.addComponent(0, 0, 0, BlockListAB.blockLebethron, 0);
+ mb.addComponent(0, 2, 0, BlockListAB.blockLebethron, 0);
+ mb.addComponent(0, 3, 0, BlockListAB.blockLebethron, 0);
+ mb.addComponent(0, 4, 0, BlockListAB.blockLebethron, 0);
+ mb.addComponent(0, 5, 0, BlockListAB.blockLebethron, 0);
+ mb.setRenderOffset(0, 1, 0);
+ return mb.makeSet();
+ }
+
+ public void updateEntity() {
+ if(!worldObj.isRemote) {
+ if(tick <= 0) {
+ updateStructure();
+ if(validTree && getBlock() != null) {
+ spawnLeaves();
+ tick = 40;
+ }
+ } else
+ tick--;
+ }
+ else(worldObj.isRemote && worldObj.rand.nextBoolean() && this.worldObj.isRemote)
+ Botania.proxy.sparkleFX(this.worldObj, this.xCoord + Math.random(), this.yCoord + Math.random(), this.zCoord + Math.random(), 0.5F, 1.0F, 0.5F, (float)Math.random() * 2, 2);
+ }
+
+ public boolean getValidTree() {
+ return this.validTree;
+ }
+
+ public void updateStructure() {
+ boolean oldValidTree = validTree;
+ validTree = hasValidTree();
+ if(oldValidTree != validTree)
+ VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
+ }
+
+ public void setPlayerName(String name) {
+ if(playerName.isEmpty())
+ playerName = name;
+ }
+
+ public void writeToNBT(NBTTagCompound nbtt) {
+ super.writeToNBT(nbtt);
+ nbtt.setString("playerName", playerName);
+ }
+
+ public void readFromNBT(NBTTagCompound nbtt) {
+ super.readFromNBT(nbtt);
+ playerName = nbtt.getString("playerName");
+ }
+
+ public void writeCustomNBT(NBTTagCompound nbtt) {
+ nbtt.setInteger("blockID", Block.getIdFromBlock(block));
+ nbtt.setInteger("blockMeta", this.meta);
+ nbtt.setInteger("tick", this.tick);
+ nbtt.setBoolean("validTree", validTree);
+ }
+
+ public void readCustomNBT(NBTTagCompound nbtt) {
+ this.block = Block.getBlockById(nbtt.getInteger("blockID"));
+ this.meta = nbtt.getInteger("blockMeta");
+ this.tick = nbtt.getInteger("tick");
+ this.validTree = nbtt.getBoolean("validTree");
+ }
+
+ public boolean setBlock(Block block, int meta) {
+ if(this.block == null) {
+ this.block = block;
+ this.meta = meta;
+ return true;
+ } else {
+ if(Block.isEqualTo(this.block, block) && this.meta == meta) {
+ return false;
+ }
+ if(!this.worldObj.isRemote) {
+ EntityItem entity = new EntityItem(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
+ entity.setEntityItemStack(new ItemStack(this.block, 1, this.meta));
+ this.worldObj.spawnEntityInWorld(entity);
+ }
+ this.block = block;
+ this.meta = meta;
+ return true;
+ }
+ }
+
+ public Block getBlock() {
+ if(!Block.isEqualTo(block, Blocks.air) && block != null)
+ return this.block;
+ return null;
+ }
+
+ public int getMeta() {
+ return this.meta;
+ }
+
+ public boolean hasValidTree() {
+ if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord - 1, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord - 1, this.zCoord))) {
+ return false;
+ }
+ for(int i = 1; i <= 4; i++) {
+ if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord + i, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord + i, this.zCoord))) {
+ return false;
+ }
+ }
+ return true;
+ }
+
+ boolean checkBlock(Block block, int meta) {
+ return block == BlockListAB.blockLebethron && meta == 0;
+ }
+
+ private void spawnLeaves() {
+ for(int x = -1; x <= 1; x++)
+ for(int z = -1; z <= 1; z++)
+ for(int y = 0; y < 5; y++)
+ this.setBlock(worldObj, this.xCoord + x, this.yCoord + y + 2, this.zCoord + z);
+ this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 1, this.zCoord);
+ this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 1, this.zCoord);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord + 1);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord - 1);
+ this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 7, this.zCoord);
+ this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 7, this.zCoord);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord + 1);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord - 1);
+ for(int i = 0; i <= 3; i++)
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 6 + i, this.zCoord);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord - 2);
+ for(int i = -1; i <= 1; i++) {
+ this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord - 2);
+ this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord - 2);
+ }
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord - 2);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord + 2);
+ for(int i = -1; i <= 1; i++) {
+ this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord + 2);
+ this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord + 2);
+ }
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord + 2);
+ this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 2, this.zCoord);
+ for(int i = -1; i <= 1; i++) {
+ this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 3, this.zCoord + i);
+ this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 4, this.zCoord + i);
+ }
+ this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 5, this.zCoord);
+ this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 2, this.zCoord);
+ for(int i = -1; i <= 1; i++) {
+ this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 3, this.zCoord + i);
+ this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 4, this.zCoord + i);
+ }
+ this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 5, this.zCoord);
+ }
+
+ private void setBlock(World world, int x, int y, int z) {
+ EntityPlayer player = worldObj.getPlayerEntityByName(playerName);
+ if(player != null) {
+ if(world.rand.nextInt(10) <= 8)
+ return;
+ else
+ CommonHelper.setBlock(world, block, meta, x, y, z, (EntityPlayerMP)player, true);
+ }
+ }
+
+ public void renderHud(Minecraft mc, ScaledResolution res) {
+ if(!validTree)
+ return;
+ GL11.glEnable(3042);
+ GL11.glBlendFunc(770, 771);
+ ItemStack stack = getBlock() != null ? new ItemStack(block, 1, meta) : new ItemStack(Blocks.leaves);
+ int x = res.getScaledWidth() / 2 - 7;
+ int y = res.getScaledHeight() / 2 + 12;
+ Gui.drawRect(x - 2, y - 2, x + 18, y + 18, 1140850688);
+ Gui.drawRect(x, y, x + 16, y + 16, 1140850688);
+ RenderHelper.enableGUIStandardItemLighting();
+ GL11.glEnable(32826);
+ RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, stack, x, y);
+ RenderHelper.disableStandardItemLighting();
+ GL11.glDisable(2929);
+ boolean unicode = mc.fontRenderer.getUnicodeFlag();
+ mc.fontRenderer.setUnicodeFlag(true);
+ if(getBlock() != null) {
+ mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 9, 19456);
+ mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 8, 774669);
+ } else {
+ mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 9, 4980736);
+ mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 8, 13764621);
+ }
+ mc.fontRenderer.setUnicodeFlag(unicode);
+ GL11.glEnable(2929);
+ GL11.glDisable(3042);
+ }
+}
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 16:24:21.947
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 16:24:21.948
+!MESSAGE Error in JDT Core during AST creation
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 16:24:24.946
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.block.tile;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.api.IRenderHud;
+import ab.common.core.CommonHelper;
+import ab.common.lib.register.BlockListAB;
+import net.minecraft.block.Block;
+import net.minecraft.block.material.Material;
+import net.minecraft.client.Minecraft;
+import net.minecraft.client.gui.Gui;
+import net.minecraft.client.gui.ScaledResolution;
+import net.minecraft.client.renderer.RenderHelper;
+import net.minecraft.client.renderer.entity.RenderItem;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.init.Blocks;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.world.World;
+import vazkii.botania.api.internal.VanillaPacketDispatcher;
+import vazkii.botania.api.lexicon.multiblock.Multiblock;
+import vazkii.botania.api.lexicon.multiblock.MultiblockSet;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.block.ModBlocks;
+import vazkii.botania.common.block.ModFluffBlocks;
+import vazkii.botania.common.block.tile.TileMod;
+import vazkii.botania.common.core.handler.ConfigHandler;
+
+public class TileLebethronCore extends TileMod implements IRenderHud {
+
+ protected int tick;
+ protected Block block;
+ protected int meta;
+ protected boolean validTree;
+ private String playerName = "";
+
+ public static MultiblockSet makeMultiblockSet() {
+ Multiblock mb = new Multiblock();
+ mb.addComponent(0, 1, 0, BlockListAB.blockLebethron, 4);
+ mb.addComponent(0, 0, 0, BlockListAB.blockLebethron, 0);
+ mb.addComponent(0, 2, 0, BlockListAB.blockLebethron, 0);
+ mb.addComponent(0, 3, 0, BlockListAB.blockLebethron, 0);
+ mb.addComponent(0, 4, 0, BlockListAB.blockLebethron, 0);
+ mb.addComponent(0, 5, 0, BlockListAB.blockLebethron, 0);
+ mb.setRenderOffset(0, 1, 0);
+ return mb.makeSet();
+ }
+
+ public void updateEntity() {
+ if(!worldObj.isRemote) {
+ if(tick <= 0) {
+ updateStructure();
+ if(validTree && getBlock() != null) {
+ spawnLeaves();
+ tick = 40;
+ }
+ } else
+ tick--;
+ }
+ else(worldObj.isRemote && worldObj.rand.nextBoolean() && this.worldObj.isRemote)
+ Botania.proxy.sparkleFX(this.worldObj, this.xCoord + Math.random(), this.yCoord + Math.random(), this.zCoord + Math.random(), 0.5F, 1.0F, 0.5F, (float)Math.random() * 2, 2);
+ }
+
+ public boolean getValidTree() {
+ return this.validTree;
+ }
+
+ public void updateStructure() {
+ boolean oldValidTree = validTree;
+ validTree = hasValidTree();
+ if(oldValidTree != validTree)
+ VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
+ }
+
+ public void setPlayerName(String name) {
+ if(playerName.isEmpty())
+ playerName = name;
+ }
+
+ public void writeToNBT(NBTTagCompound nbtt) {
+ super.writeToNBT(nbtt);
+ nbtt.setString("playerName", playerName);
+ }
+
+ public void readFromNBT(NBTTagCompound nbtt) {
+ super.readFromNBT(nbtt);
+ playerName = nbtt.getString("playerName");
+ }
+
+ public void writeCustomNBT(NBTTagCompound nbtt) {
+ nbtt.setInteger("blockID", Block.getIdFromBlock(block));
+ nbtt.setInteger("blockMeta", this.meta);
+ nbtt.setInteger("tick", this.tick);
+ nbtt.setBoolean("validTree", validTree);
+ }
+
+ public void readCustomNBT(NBTTagCompound nbtt) {
+ this.block = Block.getBlockById(nbtt.getInteger("blockID"));
+ this.meta = nbtt.getInteger("blockMeta");
+ this.tick = nbtt.getInteger("tick");
+ this.validTree = nbtt.getBoolean("validTree");
+ }
+
+ public boolean setBlock(Block block, int meta) {
+ if(this.block == null) {
+ this.block = block;
+ this.meta = meta;
+ return true;
+ } else {
+ if(Block.isEqualTo(this.block, block) && this.meta == meta) {
+ return false;
+ }
+ if(!this.worldObj.isRemote) {
+ EntityItem entity = new EntityItem(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
+ entity.setEntityItemStack(new ItemStack(this.block, 1, this.meta));
+ this.worldObj.spawnEntityInWorld(entity);
+ }
+ this.block = block;
+ this.meta = meta;
+ return true;
+ }
+ }
+
+ public Block getBlock() {
+ if(!Block.isEqualTo(block, Blocks.air) && block != null)
+ return this.block;
+ return null;
+ }
+
+ public int getMeta() {
+ return this.meta;
+ }
+
+ public boolean hasValidTree() {
+ if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord - 1, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord - 1, this.zCoord))) {
+ return false;
+ }
+ for(int i = 1; i <= 4; i++) {
+ if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord + i, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord + i, this.zCoord))) {
+ return false;
+ }
+ }
+ return true;
+ }
+
+ boolean checkBlock(Block block, int meta) {
+ return block == BlockListAB.blockLebethron && meta == 0;
+ }
+
+ private void spawnLeaves() {
+ for(int x = -1; x <= 1; x++)
+ for(int z = -1; z <= 1; z++)
+ for(int y = 0; y < 5; y++)
+ this.setBlock(worldObj, this.xCoord + x, this.yCoord + y + 2, this.zCoord + z);
+ this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 1, this.zCoord);
+ this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 1, this.zCoord);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord + 1);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord - 1);
+ this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 7, this.zCoord);
+ this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 7, this.zCoord);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord + 1);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord - 1);
+ for(int i = 0; i <= 3; i++)
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 6 + i, this.zCoord);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord - 2);
+ for(int i = -1; i <= 1; i++) {
+ this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord - 2);
+ this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord - 2);
+ }
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord - 2);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord + 2);
+ for(int i = -1; i <= 1; i++) {
+ this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord + 2);
+ this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord + 2);
+ }
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord + 2);
+ this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 2, this.zCoord);
+ for(int i = -1; i <= 1; i++) {
+ this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 3, this.zCoord + i);
+ this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 4, this.zCoord + i);
+ }
+ this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 5, this.zCoord);
+ this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 2, this.zCoord);
+ for(int i = -1; i <= 1; i++) {
+ this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 3, this.zCoord + i);
+ this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 4, this.zCoord + i);
+ }
+ this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 5, this.zCoord);
+ }
+
+ private void setBlock(World world, int x, int y, int z) {
+ EntityPlayer player = worldObj.getPlayerEntityByName(playerName);
+ if(player != null) {
+ if(world.rand.nextInt(10) <= 8)
+ return;
+ else
+ CommonHelper.setBlock(world, block, meta, x, y, z, (EntityPlayerMP)player, true);
+ }
+ }
+
+ public void renderHud(Minecraft mc, ScaledResolution res) {
+ if(!validTree)
+ return;
+ GL11.glEnable(3042);
+ GL11.glBlendFunc(770, 771);
+ ItemStack stack = getBlock() != null ? new ItemStack(block, 1, meta) : new ItemStack(Blocks.leaves);
+ int x = res.getScaledWidth() / 2 - 7;
+ int y = res.getScaledHeight() / 2 + 12;
+ Gui.drawRect(x - 2, y - 2, x + 18, y + 18, 1140850688);
+ Gui.drawRect(x, y, x + 16, y + 16, 1140850688);
+ RenderHelper.enableGUIStandardItemLighting();
+ GL11.glEnable(32826);
+ RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, stack, x, y);
+ RenderHelper.disableStandardItemLighting();
+ GL11.glDisable(2929);
+ boolean unicode = mc.fontRenderer.getUnicodeFlag();
+ mc.fontRenderer.setUnicodeFlag(true);
+ if(getBlock() != null) {
+ mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 9, 19456);
+ mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 8, 774669);
+ } else {
+ mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 9, 4980736);
+ mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 8, 13764621);
+ }
+ mc.fontRenderer.setUnicodeFlag(unicode);
+ GL11.glEnable(2929);
+ GL11.glDisable(3042);
+ }
+}
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 2 2022-04-01 16:24:24.946
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 0 2022-04-01 16:24:24.947
+!MESSAGE Error in JDT Core during reconcile
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 16:24:24.953
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.block.tile;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.api.IRenderHud;
+import ab.common.core.CommonHelper;
+import ab.common.lib.register.BlockListAB;
+import net.minecraft.block.Block;
+import net.minecraft.block.material.Material;
+import net.minecraft.client.Minecraft;
+import net.minecraft.client.gui.Gui;
+import net.minecraft.client.gui.ScaledResolution;
+import net.minecraft.client.renderer.RenderHelper;
+import net.minecraft.client.renderer.entity.RenderItem;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.init.Blocks;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.world.World;
+import vazkii.botania.api.internal.VanillaPacketDispatcher;
+import vazkii.botania.api.lexicon.multiblock.Multiblock;
+import vazkii.botania.api.lexicon.multiblock.MultiblockSet;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.block.ModBlocks;
+import vazkii.botania.common.block.ModFluffBlocks;
+import vazkii.botania.common.block.tile.TileMod;
+import vazkii.botania.common.core.handler.ConfigHandler;
+
+public class TileLebethronCore extends TileMod implements IRenderHud {
+
+ protected int tick;
+ protected Block block;
+ protected int meta;
+ protected boolean validTree;
+ private String playerName = "";
+
+ public static MultiblockSet makeMultiblockSet() {
+ Multiblock mb = new Multiblock();
+ mb.addComponent(0, 1, 0, BlockListAB.blockLebethron, 4);
+ mb.addComponent(0, 0, 0, BlockListAB.blockLebethron, 0);
+ mb.addComponent(0, 2, 0, BlockListAB.blockLebethron, 0);
+ mb.addComponent(0, 3, 0, BlockListAB.blockLebethron, 0);
+ mb.addComponent(0, 4, 0, BlockListAB.blockLebethron, 0);
+ mb.addComponent(0, 5, 0, BlockListAB.blockLebethron, 0);
+ mb.setRenderOffset(0, 1, 0);
+ return mb.makeSet();
+ }
+
+ public void updateEntity() {
+ if(!worldObj.isRemote) {
+ if(tick <= 0) {
+ updateStructure();
+ if(validTree && getBlock() != null) {
+ spawnLeaves();
+ tick = 40;
+ }
+ } else
+ tick--;
+ }
+ else(worldObj.isRemote && worldObj.rand.nextBoolean() && this.worldObj.isRemote)
+ Botania.proxy.sparkleFX(this.worldObj, this.xCoord + Math.random(), this.yCoord + Math.random(), this.zCoord + Math.random(), 0.5F, 1.0F, 0.5F, (float)Math.random() * 2, 2);
+ }
+
+ public boolean getValidTree() {
+ return this.validTree;
+ }
+
+ public void updateStructure() {
+ boolean oldValidTree = validTree;
+ validTree = hasValidTree();
+ if(oldValidTree != validTree)
+ VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
+ }
+
+ public void setPlayerName(String name) {
+ if(playerName.isEmpty())
+ playerName = name;
+ }
+
+ public void writeToNBT(NBTTagCompound nbtt) {
+ super.writeToNBT(nbtt);
+ nbtt.setString("playerName", playerName);
+ }
+
+ public void readFromNBT(NBTTagCompound nbtt) {
+ super.readFromNBT(nbtt);
+ playerName = nbtt.getString("playerName");
+ }
+
+ public void writeCustomNBT(NBTTagCompound nbtt) {
+ nbtt.setInteger("blockID", Block.getIdFromBlock(block));
+ nbtt.setInteger("blockMeta", this.meta);
+ nbtt.setInteger("tick", this.tick);
+ nbtt.setBoolean("validTree", validTree);
+ }
+
+ public void readCustomNBT(NBTTagCompound nbtt) {
+ this.block = Block.getBlockById(nbtt.getInteger("blockID"));
+ this.meta = nbtt.getInteger("blockMeta");
+ this.tick = nbtt.getInteger("tick");
+ this.validTree = nbtt.getBoolean("validTree");
+ }
+
+ public boolean setBlock(Block block, int meta) {
+ if(this.block == null) {
+ this.block = block;
+ this.meta = meta;
+ return true;
+ } else {
+ if(Block.isEqualTo(this.block, block) && this.meta == meta) {
+ return false;
+ }
+ if(!this.worldObj.isRemote) {
+ EntityItem entity = new EntityItem(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
+ entity.setEntityItemStack(new ItemStack(this.block, 1, this.meta));
+ this.worldObj.spawnEntityInWorld(entity);
+ }
+ this.block = block;
+ this.meta = meta;
+ return true;
+ }
+ }
+
+ public Block getBlock() {
+ if(!Block.isEqualTo(block, Blocks.air) && block != null)
+ return this.block;
+ return null;
+ }
+
+ public int getMeta() {
+ return this.meta;
+ }
+
+ public boolean hasValidTree() {
+ if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord - 1, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord - 1, this.zCoord))) {
+ return false;
+ }
+ for(int i = 1; i <= 4; i++) {
+ if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord + i, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord + i, this.zCoord))) {
+ return false;
+ }
+ }
+ return true;
+ }
+
+ boolean checkBlock(Block block, int meta) {
+ return block == BlockListAB.blockLebethron && meta == 0;
+ }
+
+ private void spawnLeaves() {
+ for(int x = -1; x <= 1; x++)
+ for(int z = -1; z <= 1; z++)
+ for(int y = 0; y < 5; y++)
+ this.setBlock(worldObj, this.xCoord + x, this.yCoord + y + 2, this.zCoord + z);
+ this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 1, this.zCoord);
+ this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 1, this.zCoord);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord + 1);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord - 1);
+ this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 7, this.zCoord);
+ this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 7, this.zCoord);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord + 1);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord - 1);
+ for(int i = 0; i <= 3; i++)
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 6 + i, this.zCoord);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord - 2);
+ for(int i = -1; i <= 1; i++) {
+ this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord - 2);
+ this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord - 2);
+ }
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord - 2);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord + 2);
+ for(int i = -1; i <= 1; i++) {
+ this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord + 2);
+ this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord + 2);
+ }
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord + 2);
+ this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 2, this.zCoord);
+ for(int i = -1; i <= 1; i++) {
+ this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 3, this.zCoord + i);
+ this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 4, this.zCoord + i);
+ }
+ this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 5, this.zCoord);
+ this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 2, this.zCoord);
+ for(int i = -1; i <= 1; i++) {
+ this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 3, this.zCoord + i);
+ this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 4, this.zCoord + i);
+ }
+ this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 5, this.zCoord);
+ }
+
+ private void setBlock(World world, int x, int y, int z) {
+ EntityPlayer player = worldObj.getPlayerEntityByName(playerName);
+ if(player != null) {
+ if(world.rand.nextInt(10) <= 8)
+ return;
+ else
+ CommonHelper.setBlock(world, block, meta, x, y, z, (EntityPlayerMP)player, true);
+ }
+ }
+
+ public void renderHud(Minecraft mc, ScaledResolution res) {
+ if(!validTree)
+ return;
+ GL11.glEnable(3042);
+ GL11.glBlendFunc(770, 771);
+ ItemStack stack = getBlock() != null ? new ItemStack(block, 1, meta) : new ItemStack(Blocks.leaves);
+ int x = res.getScaledWidth() / 2 - 7;
+ int y = res.getScaledHeight() / 2 + 12;
+ Gui.drawRect(x - 2, y - 2, x + 18, y + 18, 1140850688);
+ Gui.drawRect(x, y, x + 16, y + 16, 1140850688);
+ RenderHelper.enableGUIStandardItemLighting();
+ GL11.glEnable(32826);
+ RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, stack, x, y);
+ RenderHelper.disableStandardItemLighting();
+ GL11.glDisable(2929);
+ boolean unicode = mc.fontRenderer.getUnicodeFlag();
+ mc.fontRenderer.setUnicodeFlag(true);
+ if(getBlock() != null) {
+ mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 9, 19456);
+ mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 8, 774669);
+ } else {
+ mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 9, 4980736);
+ mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 8, 13764621);
+ }
+ mc.fontRenderer.setUnicodeFlag(unicode);
+ GL11.glEnable(2929);
+ GL11.glDisable(3042);
+ }
+}
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 16:24:24.954
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 16:24:24.955
+!MESSAGE Error in JDT Core during AST creation
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 16:24:35.979
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.block.tile;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.api.IRenderHud;
+import ab.common.core.CommonHelper;
+import ab.common.lib.register.BlockListAB;
+import net.minecraft.block.Block;
+import net.minecraft.block.material.Material;
+import net.minecraft.client.Minecraft;
+import net.minecraft.client.gui.Gui;
+import net.minecraft.client.gui.ScaledResolution;
+import net.minecraft.client.renderer.RenderHelper;
+import net.minecraft.client.renderer.entity.RenderItem;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.init.Blocks;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.world.World;
+import vazkii.botania.api.internal.VanillaPacketDispatcher;
+import vazkii.botania.api.lexicon.multiblock.Multiblock;
+import vazkii.botania.api.lexicon.multiblock.MultiblockSet;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.block.ModBlocks;
+import vazkii.botania.common.block.ModFluffBlocks;
+import vazkii.botania.common.block.tile.TileMod;
+import vazkii.botania.common.core.handler.ConfigHandler;
+
+public class TileLebethronCore extends TileMod implements IRenderHud {
+
+ protected int tick;
+ protected Block block;
+ protected int meta;
+ protected boolean validTree;
+ private String playerName = "";
+
+ public static MultiblockSet makeMultiblockSet() {
+ Multiblock mb = new Multiblock();
+ mb.addComponent(0, 1, 0, BlockListAB.blockLebethron, 4);
+ mb.addComponent(0, 0, 0, BlockListAB.blockLebethron, 0);
+ mb.addComponent(0, 2, 0, BlockListAB.blockLebethron, 0);
+ mb.addComponent(0, 3, 0, BlockListAB.blockLebethron, 0);
+ mb.addComponent(0, 4, 0, BlockListAB.blockLebethron, 0);
+ mb.addComponent(0, 5, 0, BlockListAB.blockLebethron, 0);
+ mb.setRenderOffset(0, 1, 0);
+ return mb.makeSet();
+ }
+
+ public void updateEntity() {
+ if(!worldObj.isRemote) {
+ if(tick <= 0) {
+ updateStructure();
+ if(validTree && getBlock() != null) {
+ spawnLeaves();
+ tick = 40;
+ }
+ } else
+ tick--;
+ }
+ else(worldObj.isRemote && worldObj.rand.nextBoolean() && this.worldObj.isRemote)
+ Botania.proxy.sparkleFX(this.worldObj, this.xCoord + Math.random(), this.yCoord + Math.random(), this.zCoord + Math.random(), 0.5F, 1.0F, 0.5F, (float)Math.random() * 2, 2);
+ }
+
+ public boolean getValidTree() {
+ return this.validTree;
+ }
+
+ public void updateStructure() {
+ boolean oldValidTree = validTree;
+ validTree = hasValidTree();
+ if(oldValidTree != validTree)
+ VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
+ }
+
+ public void setPlayerName(String name) {
+ if(playerName.isEmpty())
+ playerName = name;
+ }
+
+ public void writeToNBT(NBTTagCompound nbtt) {
+ super.writeToNBT(nbtt);
+ nbtt.setString("playerName", playerName);
+ }
+
+ public void readFromNBT(NBTTagCompound nbtt) {
+ super.readFromNBT(nbtt);
+ playerName = nbtt.getString("playerName");
+ }
+
+ public void writeCustomNBT(NBTTagCompound nbtt) {
+ nbtt.setInteger("blockID", Block.getIdFromBlock(block));
+ nbtt.setInteger("blockMeta", this.meta);
+ nbtt.setInteger("tick", this.tick);
+ nbtt.setBoolean("validTree", validTree);
+ }
+
+ public void readCustomNBT(NBTTagCompound nbtt) {
+ this.block = Block.getBlockById(nbtt.getInteger("blockID"));
+ this.meta = nbtt.getInteger("blockMeta");
+ this.tick = nbtt.getInteger("tick");
+ this.validTree = nbtt.getBoolean("validTree");
+ }
+
+ public boolean setBlock(Block block, int meta) {
+ if(this.block == null) {
+ this.block = block;
+ this.meta = meta;
+ return true;
+ } else {
+ if(Block.isEqualTo(this.block, block) && this.meta == meta) {
+ return false;
+ }
+ if(!this.worldObj.isRemote) {
+ EntityItem entity = new EntityItem(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
+ entity.setEntityItemStack(new ItemStack(this.block, 1, this.meta));
+ this.worldObj.spawnEntityInWorld(entity);
+ }
+ this.block = block;
+ this.meta = meta;
+ return true;
+ }
+ }
+
+ public Block getBlock() {
+ if(!Block.isEqualTo(block, Blocks.air) && block != null)
+ return this.block;
+ return null;
+ }
+
+ public int getMeta() {
+ return this.meta;
+ }
+
+ public boolean hasValidTree() {
+ if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord - 1, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord - 1, this.zCoord))) {
+ return false;
+ }
+ for(int i = 1; i <= 4; i++) {
+ if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord + i, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord + i, this.zCoord))) {
+ return false;
+ }
+ }
+ return true;
+ }
+
+ boolean checkBlock(Block block, int meta) {
+ return block == BlockListAB.blockLebethron && meta == 0;
+ }
+
+ private void spawnLeaves() {
+ for(int x = -1; x <= 1; x++)
+ for(int z = -1; z <= 1; z++)
+ for(int y = 0; y < 5; y++)
+ this.setBlock(worldObj, this.xCoord + x, this.yCoord + y + 2, this.zCoord + z);
+ this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 1, this.zCoord);
+ this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 1, this.zCoord);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord + 1);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord - 1);
+ this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 7, this.zCoord);
+ this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 7, this.zCoord);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord + 1);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord - 1);
+ for(int i = 0; i <= 3; i++)
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 6 + i, this.zCoord);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord - 2);
+ for(int i = -1; i <= 1; i++) {
+ this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord - 2);
+ this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord - 2);
+ }
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord - 2);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord + 2);
+ for(int i = -1; i <= 1; i++) {
+ this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord + 2);
+ this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord + 2);
+ }
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord + 2);
+ this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 2, this.zCoord);
+ for(int i = -1; i <= 1; i++) {
+ this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 3, this.zCoord + i);
+ this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 4, this.zCoord + i);
+ }
+ this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 5, this.zCoord);
+ this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 2, this.zCoord);
+ for(int i = -1; i <= 1; i++) {
+ this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 3, this.zCoord + i);
+ this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 4, this.zCoord + i);
+ }
+ this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 5, this.zCoord);
+ }
+
+ private void setBlock(World world, int x, int y, int z) {
+ EntityPlayer player = worldObj.getPlayerEntityByName(playerName);
+ if(player != null) {
+ if(world.rand.nextInt(10) <= 8)
+ return;
+ else
+ CommonHelper.setBlock(world, block, meta, x, y, z, (EntityPlayerMP)player, true);
+ }
+ }
+
+ public void renderHud(Minecraft mc, ScaledResolution res) {
+ if(!validTree)
+ return;
+ GL11.glEnable(3042);
+ GL11.glBlendFunc(770, 771);
+ ItemStack stack = getBlock() != null ? new ItemStack(block, 1, meta) : new ItemStack(Blocks.leaves);
+ int x = res.getScaledWidth() / 2 - 7;
+ int y = res.getScaledHeight() / 2 + 12;
+ Gui.drawRect(x - 2, y - 2, x + 18, y + 18, 1140850688);
+ Gui.drawRect(x, y, x + 16, y + 16, 1140850688);
+ RenderHelper.enableGUIStandardItemLighting();
+ GL11.glEnable(32826);
+ RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, stack, x, y);
+ RenderHelper.disableStandardItemLighting();
+ GL11.glDisable(2929);
+ boolean unicode = mc.fontRenderer.getUnicodeFlag();
+ mc.fontRenderer.setUnicodeFlag(true);
+ if(getBlock() != null) {
+ mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 9, 19456);
+ mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 8, 774669);
+ } else {
+ mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 9, 4980736);
+ mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 8, 13764621);
+ }
+ mc.fontRenderer.setUnicodeFlag(unicode);
+ GL11.glEnable(2929);
+ GL11.glDisable(3042);
+ }
+}
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 2 2022-04-01 16:24:35.980
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 0 2022-04-01 16:24:35.980
+!MESSAGE Error in JDT Core during reconcile
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 16:24:35.987
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.block.tile;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.api.IRenderHud;
+import ab.common.core.CommonHelper;
+import ab.common.lib.register.BlockListAB;
+import net.minecraft.block.Block;
+import net.minecraft.block.material.Material;
+import net.minecraft.client.Minecraft;
+import net.minecraft.client.gui.Gui;
+import net.minecraft.client.gui.ScaledResolution;
+import net.minecraft.client.renderer.RenderHelper;
+import net.minecraft.client.renderer.entity.RenderItem;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.init.Blocks;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.world.World;
+import vazkii.botania.api.internal.VanillaPacketDispatcher;
+import vazkii.botania.api.lexicon.multiblock.Multiblock;
+import vazkii.botania.api.lexicon.multiblock.MultiblockSet;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.block.ModBlocks;
+import vazkii.botania.common.block.ModFluffBlocks;
+import vazkii.botania.common.block.tile.TileMod;
+import vazkii.botania.common.core.handler.ConfigHandler;
+
+public class TileLebethronCore extends TileMod implements IRenderHud {
+
+ protected int tick;
+ protected Block block;
+ protected int meta;
+ protected boolean validTree;
+ private String playerName = "";
+
+ public static MultiblockSet makeMultiblockSet() {
+ Multiblock mb = new Multiblock();
+ mb.addComponent(0, 1, 0, BlockListAB.blockLebethron, 4);
+ mb.addComponent(0, 0, 0, BlockListAB.blockLebethron, 0);
+ mb.addComponent(0, 2, 0, BlockListAB.blockLebethron, 0);
+ mb.addComponent(0, 3, 0, BlockListAB.blockLebethron, 0);
+ mb.addComponent(0, 4, 0, BlockListAB.blockLebethron, 0);
+ mb.addComponent(0, 5, 0, BlockListAB.blockLebethron, 0);
+ mb.setRenderOffset(0, 1, 0);
+ return mb.makeSet();
+ }
+
+ public void updateEntity() {
+ if(!worldObj.isRemote) {
+ if(tick <= 0) {
+ updateStructure();
+ if(validTree && getBlock() != null) {
+ spawnLeaves();
+ tick = 40;
+ }
+ } else
+ tick--;
+ }
+ else(worldObj.isRemote && worldObj.rand.nextBoolean() && this.worldObj.isRemote)
+ Botania.proxy.sparkleFX(this.worldObj, this.xCoord + Math.random(), this.yCoord + Math.random(), this.zCoord + Math.random(), 0.5F, 1.0F, 0.5F, (float)Math.random() * 2, 2);
+ }
+
+ public boolean getValidTree() {
+ return this.validTree;
+ }
+
+ public void updateStructure() {
+ boolean oldValidTree = validTree;
+ validTree = hasValidTree();
+ if(oldValidTree != validTree)
+ VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
+ }
+
+ public void setPlayerName(String name) {
+ if(playerName.isEmpty())
+ playerName = name;
+ }
+
+ public void writeToNBT(NBTTagCompound nbtt) {
+ super.writeToNBT(nbtt);
+ nbtt.setString("playerName", playerName);
+ }
+
+ public void readFromNBT(NBTTagCompound nbtt) {
+ super.readFromNBT(nbtt);
+ playerName = nbtt.getString("playerName");
+ }
+
+ public void writeCustomNBT(NBTTagCompound nbtt) {
+ nbtt.setInteger("blockID", Block.getIdFromBlock(block));
+ nbtt.setInteger("blockMeta", this.meta);
+ nbtt.setInteger("tick", this.tick);
+ nbtt.setBoolean("validTree", validTree);
+ }
+
+ public void readCustomNBT(NBTTagCompound nbtt) {
+ this.block = Block.getBlockById(nbtt.getInteger("blockID"));
+ this.meta = nbtt.getInteger("blockMeta");
+ this.tick = nbtt.getInteger("tick");
+ this.validTree = nbtt.getBoolean("validTree");
+ }
+
+ public boolean setBlock(Block block, int meta) {
+ if(this.block == null) {
+ this.block = block;
+ this.meta = meta;
+ return true;
+ } else {
+ if(Block.isEqualTo(this.block, block) && this.meta == meta) {
+ return false;
+ }
+ if(!this.worldObj.isRemote) {
+ EntityItem entity = new EntityItem(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
+ entity.setEntityItemStack(new ItemStack(this.block, 1, this.meta));
+ this.worldObj.spawnEntityInWorld(entity);
+ }
+ this.block = block;
+ this.meta = meta;
+ return true;
+ }
+ }
+
+ public Block getBlock() {
+ if(!Block.isEqualTo(block, Blocks.air) && block != null)
+ return this.block;
+ return null;
+ }
+
+ public int getMeta() {
+ return this.meta;
+ }
+
+ public boolean hasValidTree() {
+ if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord - 1, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord - 1, this.zCoord))) {
+ return false;
+ }
+ for(int i = 1; i <= 4; i++) {
+ if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord + i, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord + i, this.zCoord))) {
+ return false;
+ }
+ }
+ return true;
+ }
+
+ boolean checkBlock(Block block, int meta) {
+ return block == BlockListAB.blockLebethron && meta == 0;
+ }
+
+ private void spawnLeaves() {
+ for(int x = -1; x <= 1; x++)
+ for(int z = -1; z <= 1; z++)
+ for(int y = 0; y < 5; y++)
+ this.setBlock(worldObj, this.xCoord + x, this.yCoord + y + 2, this.zCoord + z);
+ this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 1, this.zCoord);
+ this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 1, this.zCoord);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord + 1);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord - 1);
+ this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 7, this.zCoord);
+ this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 7, this.zCoord);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord + 1);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord - 1);
+ for(int i = 0; i <= 3; i++)
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 6 + i, this.zCoord);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord - 2);
+ for(int i = -1; i <= 1; i++) {
+ this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord - 2);
+ this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord - 2);
+ }
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord - 2);
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord + 2);
+ for(int i = -1; i <= 1; i++) {
+ this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord + 2);
+ this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord + 2);
+ }
+ this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord + 2);
+ this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 2, this.zCoord);
+ for(int i = -1; i <= 1; i++) {
+ this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 3, this.zCoord + i);
+ this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 4, this.zCoord + i);
+ }
+ this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 5, this.zCoord);
+ this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 2, this.zCoord);
+ for(int i = -1; i <= 1; i++) {
+ this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 3, this.zCoord + i);
+ this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 4, this.zCoord + i);
+ }
+ this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 5, this.zCoord);
+ }
+
+ private void setBlock(World world, int x, int y, int z) {
+ EntityPlayer player = worldObj.getPlayerEntityByName(playerName);
+ if(player != null) {
+ if(world.rand.nextInt(10) <= 8)
+ return;
+ else
+ CommonHelper.setBlock(world, block, meta, x, y, z, (EntityPlayerMP)player, true);
+ }
+ }
+
+ public void renderHud(Minecraft mc, ScaledResolution res) {
+ if(!validTree)
+ return;
+ GL11.glEnable(3042);
+ GL11.glBlendFunc(770, 771);
+ ItemStack stack = getBlock() != null ? new ItemStack(block, 1, meta) : new ItemStack(Blocks.leaves);
+ int x = res.getScaledWidth() / 2 - 7;
+ int y = res.getScaledHeight() / 2 + 12;
+ Gui.drawRect(x - 2, y - 2, x + 18, y + 18, 1140850688);
+ Gui.drawRect(x, y, x + 16, y + 16, 1140850688);
+ RenderHelper.enableGUIStandardItemLighting();
+ GL11.glEnable(32826);
+ RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, stack, x, y);
+ RenderHelper.disableStandardItemLighting();
+ GL11.glDisable(2929);
+ boolean unicode = mc.fontRenderer.getUnicodeFlag();
+ mc.fontRenderer.setUnicodeFlag(true);
+ if(getBlock() != null) {
+ mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 9, 19456);
+ mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 8, 774669);
+ } else {
+ mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 9, 4980736);
+ mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 8, 13764621);
+ }
+ mc.fontRenderer.setUnicodeFlag(unicode);
+ GL11.glEnable(2929);
+ GL11.glDisable(3042);
+ }
+}
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 16:24:35.987
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 16:24:35.988
+!MESSAGE Error in JDT Core during AST creation
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 16:24:56.679
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 16:27:45.817
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 16:32:59.039
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 16:37:48.833
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 17:00:46.066
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 17:05:47.697
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 17:26:23.560
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.core.resources 2 10035 2022-04-01 17:47:05.564
+!MESSAGE The workspace will exit with unsaved changes in this session.
+!SESSION 2022-04-01 17:47:08.750 -----------------------------------------------
eclipse.buildId=4.22.0.I20211124-1800
java.version=17.0.1
java.vendor=Eclipse Adoptium
@@ -14174,15 +11457,18 @@ BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=ru_RU
Framework arguments: -product org.eclipse.epp.package.java.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
-!ENTRY org.eclipse.jface 2 0 2022-03-21 17:53:19.164
+!ENTRY org.eclipse.core.resources 2 10035 2022-04-01 17:47:18.288
+!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.
+
+!ENTRY org.eclipse.jface 2 0 2022-04-01 17:47:24.279
!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
-!SUBENTRY 1 org.eclipse.jface 2 0 2022-03-21 17:53:19.164
+!SUBENTRY 1 org.eclipse.jface 2 0 2022-04-01 17:47:24.279
!MESSAGE A conflict occurred for CTRL+SHIFT+T:
Binding(CTRL+SHIFT+T,
ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type,
Open a type in a Java editor,
Category(org.eclipse.ui.category.navigate,Navigate,null,true),
- org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@3815a7d1,
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@452ec287,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
@@ -14190,17 +11476,17 @@ Binding(CTRL+SHIFT+T,
ParameterizedCommand(Command(org.eclipse.lsp4e.symbolinworkspace,Go to Symbol in Workspace,
,
Category(org.eclipse.lsp4e.category,Language Servers,null,true),
- org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@24dc150c,
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@41404aa2,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
-!SUBENTRY 1 org.eclipse.jface 2 0 2022-03-21 17:53:19.164
+!SUBENTRY 1 org.eclipse.jface 2 0 2022-04-01 17:47:24.279
!MESSAGE A conflict occurred for ALT+SHIFT+R:
Binding(ALT+SHIFT+R,
ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.rename.element,Rename - Refactoring ,
Rename the selected element,
Category(org.eclipse.jdt.ui.category.refactoring,Refactor - Java,Java Refactoring Actions,true),
- org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@1d2d4d7a,
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@b267745,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
@@ -14208,45 +11494,27 @@ Binding(ALT+SHIFT+R,
ParameterizedCommand(Command(org.eclipse.ui.edit.rename,Rename,
Rename the selected item,
Category(org.eclipse.ui.category.file,File,null,true),
- org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@5e020dd1,
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@31e22365,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
-!ENTRY org.eclipse.egit.ui 2 0 2022-03-21 17:53:27.123
+!ENTRY org.eclipse.egit.ui 2 0 2022-04-01 17:47:28.495
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Users\Pulxes'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 17:53:52.807
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 17:47:36.023
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 18:46:41.791
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 18:48:46.986
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 18:49:28.399
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 18:49:40.515
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 18:51:23.473
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 18:51:39.796
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.ui 4 4 2022-03-21 18:51:49.079
-!MESSAGE To avoid deadlock while executing Display.syncExec() with argument: org.eclipse.debug.internal.ui.sourcelookup.Prompter$$Lambda$969/0x0000000100c4e688@15aac491, thread Worker-15: Launching Client will interrupt UI thread.
-!SUBENTRY 1 org.eclipse.ui 4 4 2022-03-21 18:51:49.080
-!MESSAGE Worker-15: Launching Client thread is an instance of Worker or owns an ILock
+!ENTRY org.eclipse.ui 4 4 2022-04-01 18:07:26.873
+!MESSAGE To avoid deadlock while executing Display.syncExec() with argument: org.eclipse.debug.internal.ui.sourcelookup.Prompter$$Lambda$992/0x0000000100c64f28@1573bb54, thread Worker-0: Launching Client will interrupt UI thread.
+!SUBENTRY 1 org.eclipse.ui 4 4 2022-04-01 18:07:26.873
+!MESSAGE Worker-0: Launching Client thread is an instance of Worker or owns an ILock
!STACK 0
-java.lang.IllegalStateException: Call stack for thread Worker-15: Launching Client
+java.lang.IllegalStateException: Call stack for thread Worker-0: Launching Client
at java.management@17.0.1/sun.management.ThreadImpl.dumpThreads0(Native Method)
at java.management@17.0.1/sun.management.ThreadImpl.getThreadInfo(ThreadImpl.java:485)
at org.eclipse.ui.internal.UILockListener.reportInterruption(UILockListener.java:209)
@@ -14263,13 +11531,64 @@ java.lang.IllegalStateException: Call stack for thread Worker-15: Launching Clie
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1021)
at org.eclipse.debug.internal.ui.DebugUIPlugin$2.run(DebugUIPlugin.java:1224)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-!SUBENTRY 1 org.eclipse.ui 4 4 2022-03-21 18:51:49.081
+!SUBENTRY 1 org.eclipse.ui 4 4 2022-04-01 18:07:26.873
!MESSAGE UI thread waiting on a job or lock.
!STACK 0
java.lang.IllegalStateException: Call stack for thread main
- at org.eclipse.ui.internal.PendingSyncExec.run(PendingSyncExec.java:75)
+ at java.base@17.0.1/java.lang.Object.wait(Native Method)
+ at org.eclipse.core.internal.jobs.Semaphore.acquire(Semaphore.java:45)
+ at org.eclipse.core.internal.jobs.OrderedLock.doAcquire(OrderedLock.java:173)
+ at org.eclipse.core.internal.jobs.OrderedLock.acquire(OrderedLock.java:109)
+ at org.eclipse.core.internal.jobs.OrderedLock.acquire(OrderedLock.java:85)
+ at org.eclipse.core.internal.resources.WorkManager.checkIn(WorkManager.java:125)
+ at org.eclipse.core.internal.resources.Workspace.prepareOperation(Workspace.java:2263)
+ at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2308)
+ at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2338)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:811)
+ at org.eclipse.jdt.internal.core.CompilationUnit.commitWorkingCopy(CompilationUnit.java:405)
+ at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocumentProvider.commitWorkingCopy(CompilationUnitDocumentProvider.java:1418)
+ at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocumentProvider$3.execute(CompilationUnitDocumentProvider.java:1495)
+ at org.eclipse.ui.editors.text.TextFileDocumentProvider$DocumentProviderOperation.run(TextFileDocumentProvider.java:133)
+ at org.eclipse.ui.actions.WorkspaceModifyDelegatingOperation.execute(WorkspaceModifyDelegatingOperation.java:71)
+ at org.eclipse.ui.actions.WorkspaceModifyOperation.lambda$0(WorkspaceModifyOperation.java:110)
+ at org.eclipse.ui.actions.WorkspaceModifyOperation$$Lambda$1091/0x0000000100d7ea78.run(Unknown Source)
+ at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2313)
+ at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2338)
+ at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:131)
+ at org.eclipse.ui.internal.editors.text.WorkspaceOperationRunner.run(WorkspaceOperationRunner.java:76)
+ at org.eclipse.ui.internal.editors.text.WorkspaceOperationRunner.run(WorkspaceOperationRunner.java:66)
+ at org.eclipse.ui.editors.text.TextFileDocumentProvider.executeOperation(TextFileDocumentProvider.java:461)
+ at org.eclipse.ui.editors.text.TextFileDocumentProvider.saveDocument(TextFileDocumentProvider.java:764)
+ at org.eclipse.ui.texteditor.AbstractTextEditor.performSave(AbstractTextEditor.java:5003)
+ at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.performSave(CompilationUnitEditor.java:1262)
+ at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.doSave(CompilationUnitEditor.java:1316)
+ at org.eclipse.ui.texteditor.AbstractTextEditor$TextEditorSavable.doSave(AbstractTextEditor.java:7147)
+ at org.eclipse.ui.Saveable.doSave(Saveable.java:213)
+ at org.eclipse.ui.internal.SaveableHelper.doSaveModel(SaveableHelper.java:333)
+ at org.eclipse.ui.internal.SaveablesList.lambda$2(SaveablesList.java:840)
+ at org.eclipse.ui.internal.SaveablesList$$Lambda$1200/0x0000000100d9f960.run(Unknown Source)
+ at org.eclipse.ui.internal.SaveableHelper.lambda$3(SaveableHelper.java:271)
+ at org.eclipse.ui.internal.SaveableHelper$$Lambda$1201/0x0000000100d9fb80.run(Unknown Source)
+ at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:434)
+ at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:352)
+ at org.eclipse.ui.internal.WorkbenchWindow.lambda$7(WorkbenchWindow.java:2345)
+ at org.eclipse.ui.internal.WorkbenchWindow$$Lambda$1066/0x0000000100ade8f0.run(Unknown Source)
+ at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:74)
+ at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2343)
+ at org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOperation(SaveableHelper.java:278)
+ at org.eclipse.ui.internal.SaveablesList.saveModels(SaveablesList.java:848)
+ at org.eclipse.ui.internal.SaveablesList.saveModels(SaveablesList.java:812)
+ at org.eclipse.ui.internal.Workbench.saveAll(Workbench.java:3426)
+ at org.eclipse.ui.ide.IDE$1.run(IDE.java:1494)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.ui.ide.IDE.saveAllEditors(IDE.java:1482)
+ at org.eclipse.debug.internal.ui.launchConfigurations.SaveScopeResourcesHandler.doSave(SaveScopeResourcesHandler.java:228)
+ at org.eclipse.debug.internal.ui.launchConfigurations.SaveScopeResourcesHandler.handleStatus(SaveScopeResourcesHandler.java:182)
+ at org.eclipse.debug.internal.ui.sourcelookup.Prompter.lambda$0(Prompter.java:73)
+ at org.eclipse.debug.internal.ui.sourcelookup.Prompter$$Lambda$992/0x0000000100c64f28.run(Unknown Source)
+ at org.eclipse.ui.internal.PendingSyncExec.run(PendingSyncExec.java:68)
at org.eclipse.ui.internal.UILockListener.doPendingWork(UILockListener.java:171)
- at org.eclipse.ui.internal.UISynchronizer$$Lambda$868/0x000000010090a1c0.run(Unknown Source)
+ at org.eclipse.ui.internal.UISynchronizer$$Lambda$876/0x000000010091a100.run(Unknown Source)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:40)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:185)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4035)
@@ -14279,7 +11598,7 @@ java.lang.IllegalStateException: Call stack for thread main
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1045)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644)
- at org.eclipse.ui.internal.Workbench$$Lambda$284/0x0000000100273140.run(Unknown Source)
+ at org.eclipse.ui.internal.Workbench$$Lambda$284/0x0000000100273a08.run(Unknown Source)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:551)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:156)
@@ -14297,349 +11616,12 @@ java.lang.IllegalStateException: Call stack for thread main
at app//org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
at app//org.eclipse.equinox.launcher.Main.run(Main.java:1467)
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 18:51:49.842
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 18:07:27.472
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 18:55:03.168
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 18:14:53.312
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 19:03:05.412
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 19:04:44.744
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 19:05:21.441
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 19:09:44.669
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 19:11:24.076
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 19:12:23.067
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 19:13:06.081
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 19:13:26.508
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 19:14:21.152
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 19:14:34.061
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 19:14:57.919
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 19:15:07.985
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 19:15:33.456
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 19:16:56.992
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 19:17:38.924
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 19:17:58.485
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 19:18:09.043
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 19:18:19.930
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 19:18:28.745
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 19:18:42.775
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 19:18:59.005
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 19:28:17.524
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 19:29:29.693
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 19:29:50.887
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 19:30:39.780
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 19:31:59.596
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 19:32:10.543
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 19:33:59.234
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 19:35:13.778
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 19:36:16.094
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 19:37:29.256
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 19:38:54.825
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 19:39:11.829
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 19:42:34.124
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 19:43:25.082
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 19:48:45.761
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 19:52:40.577
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 19:55:52.811
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 20:01:03.560
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 20:03:20.936
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 20:07:41.891
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 20:30:43.937
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 21:50:44.237
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 21:51:11.703
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 21:51:43.345
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 21:51:59.229
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-21 21:52:22.135
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-03-21 21:57:49.746
-!MESSAGE JavaBuilder handling ImageBuilderInternalException while building: Minecraft
-!STACK 1
-org.eclipse.core.internal.resources.ResourceException: Problems encountered while deleting resources.
- at org.eclipse.core.internal.resources.Resource.delete(Resource.java:775)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:727)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:588)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:588)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:588)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:588)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:539)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.build(IncrementalImageBuilder.java:119)
- at org.eclipse.jdt.internal.core.builder.JavaBuilder.buildDeltas(JavaBuilder.java:289)
- at org.eclipse.jdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:212)
- at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:853)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:232)
- at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:281)
- at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:334)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:337)
- at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:389)
- at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:410)
- at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:160)
- at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:251)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-Contains: Could not delete 'C:\Users\Pulxes\Desktop\Developing mods for Cubes\Advanced Botany\1.7.10\bin\assets\ab\textures\blocks\boardFate_2.png'.
-org.eclipse.core.runtime.CoreException: Problems encountered while deleting files.
- at org.eclipse.core.internal.filesystem.local.LocalFile.delete(LocalFile.java:141)
- at org.eclipse.core.internal.resources.ResourceTree.internalDeleteFile(ResourceTree.java:316)
- at org.eclipse.core.internal.resources.ResourceTree.standardDeleteFile(ResourceTree.java:802)
- at org.eclipse.core.internal.resources.Resource.unprotectedDelete(Resource.java:1784)
- at org.eclipse.core.internal.resources.Resource.delete(Resource.java:762)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:727)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:588)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:588)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:588)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:588)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:539)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.build(IncrementalImageBuilder.java:119)
- at org.eclipse.jdt.internal.core.builder.JavaBuilder.buildDeltas(JavaBuilder.java:289)
- at org.eclipse.jdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:212)
- at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:853)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:232)
- at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:281)
- at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:334)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:337)
- at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:389)
- at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:410)
- at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:160)
- at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:251)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-Contains: Could not delete: C:\Users\Pulxes\Desktop\Developing mods for Cubes\Advanced Botany\1.7.10\bin\assets\ab\textures\blocks\boardFate_2.png.
-java.nio.file.FileSystemException: C:\Users\Pulxes\Desktop\Developing mods for Cubes\Advanced Botany\1.7.10\bin\assets\ab\textures\blocks\boardFate_2.png: Проце�� не может получить до�туп к файлу, так как �тот файл зан�т другим проце��ом
- at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:92)
- at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
- at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
- at java.base/sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:275)
- at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:110)
- at java.base/java.nio.file.Files.deleteIfExists(Files.java:1191)
- at org.eclipse.core.internal.filesystem.local.LocalFile.internalDelete(LocalFile.java:222)
- at org.eclipse.core.internal.filesystem.local.LocalFile.delete(LocalFile.java:139)
- at org.eclipse.core.internal.resources.ResourceTree.internalDeleteFile(ResourceTree.java:316)
- at org.eclipse.core.internal.resources.ResourceTree.standardDeleteFile(ResourceTree.java:802)
- at org.eclipse.core.internal.resources.Resource.unprotectedDelete(Resource.java:1784)
- at org.eclipse.core.internal.resources.Resource.delete(Resource.java:762)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:727)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:588)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:588)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:588)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:588)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:539)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.build(IncrementalImageBuilder.java:119)
- at org.eclipse.jdt.internal.core.builder.JavaBuilder.buildDeltas(JavaBuilder.java:289)
- at org.eclipse.jdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:212)
- at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:853)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:232)
- at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:281)
- at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:334)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:337)
- at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:389)
- at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:410)
- at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:160)
- at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:251)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-!SUBENTRY 1 org.eclipse.core.resources 4 273 2022-03-21 21:57:49.748
-!MESSAGE Problems encountered while deleting resources.
-!SUBENTRY 2 org.eclipse.core.resources 4 273 2022-03-21 21:57:49.748
-!MESSAGE Could not delete 'C:\Users\Pulxes\Desktop\Developing mods for Cubes\Advanced Botany\1.7.10\bin\assets\ab\textures\blocks\boardFate_2.png'.
-!STACK 1
-org.eclipse.core.runtime.CoreException: Problems encountered while deleting files.
- at org.eclipse.core.internal.filesystem.local.LocalFile.delete(LocalFile.java:141)
- at org.eclipse.core.internal.resources.ResourceTree.internalDeleteFile(ResourceTree.java:316)
- at org.eclipse.core.internal.resources.ResourceTree.standardDeleteFile(ResourceTree.java:802)
- at org.eclipse.core.internal.resources.Resource.unprotectedDelete(Resource.java:1784)
- at org.eclipse.core.internal.resources.Resource.delete(Resource.java:762)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:727)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:588)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:588)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:588)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:588)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:539)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.build(IncrementalImageBuilder.java:119)
- at org.eclipse.jdt.internal.core.builder.JavaBuilder.buildDeltas(JavaBuilder.java:289)
- at org.eclipse.jdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:212)
- at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:853)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:232)
- at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:281)
- at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:334)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:337)
- at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:389)
- at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:410)
- at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:160)
- at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:251)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-Contains: Could not delete: C:\Users\Pulxes\Desktop\Developing mods for Cubes\Advanced Botany\1.7.10\bin\assets\ab\textures\blocks\boardFate_2.png.
-java.nio.file.FileSystemException: C:\Users\Pulxes\Desktop\Developing mods for Cubes\Advanced Botany\1.7.10\bin\assets\ab\textures\blocks\boardFate_2.png: Проце�� не может получить до�туп к файлу, так как �тот файл зан�т другим проце��ом
- at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:92)
- at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
- at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
- at java.base/sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:275)
- at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:110)
- at java.base/java.nio.file.Files.deleteIfExists(Files.java:1191)
- at org.eclipse.core.internal.filesystem.local.LocalFile.internalDelete(LocalFile.java:222)
- at org.eclipse.core.internal.filesystem.local.LocalFile.delete(LocalFile.java:139)
- at org.eclipse.core.internal.resources.ResourceTree.internalDeleteFile(ResourceTree.java:316)
- at org.eclipse.core.internal.resources.ResourceTree.standardDeleteFile(ResourceTree.java:802)
- at org.eclipse.core.internal.resources.Resource.unprotectedDelete(Resource.java:1784)
- at org.eclipse.core.internal.resources.Resource.delete(Resource.java:762)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:727)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:588)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:588)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:588)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:588)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:539)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.build(IncrementalImageBuilder.java:119)
- at org.eclipse.jdt.internal.core.builder.JavaBuilder.buildDeltas(JavaBuilder.java:289)
- at org.eclipse.jdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:212)
- at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:853)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:232)
- at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:281)
- at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:334)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:337)
- at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:389)
- at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:410)
- at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:160)
- at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:251)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-!SUBENTRY 3 org.eclipse.core.filesystem 4 273 2022-03-21 21:57:49.748
-!MESSAGE Problems encountered while deleting files.
-!SUBENTRY 4 org.eclipse.core.filesystem 4 273 2022-03-21 21:57:49.748
-!MESSAGE Could not delete: C:\Users\Pulxes\Desktop\Developing mods for Cubes\Advanced Botany\1.7.10\bin\assets\ab\textures\blocks\boardFate_2.png.
-!STACK 0
-java.nio.file.FileSystemException: C:\Users\Pulxes\Desktop\Developing mods for Cubes\Advanced Botany\1.7.10\bin\assets\ab\textures\blocks\boardFate_2.png: Проце�� не может получить до�туп к файлу, так как �тот файл зан�т другим проце��ом
- at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:92)
- at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
- at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
- at java.base/sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:275)
- at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:110)
- at java.base/java.nio.file.Files.deleteIfExists(Files.java:1191)
- at org.eclipse.core.internal.filesystem.local.LocalFile.internalDelete(LocalFile.java:222)
- at org.eclipse.core.internal.filesystem.local.LocalFile.delete(LocalFile.java:139)
- at org.eclipse.core.internal.resources.ResourceTree.internalDeleteFile(ResourceTree.java:316)
- at org.eclipse.core.internal.resources.ResourceTree.standardDeleteFile(ResourceTree.java:802)
- at org.eclipse.core.internal.resources.Resource.unprotectedDelete(Resource.java:1784)
- at org.eclipse.core.internal.resources.Resource.delete(Resource.java:762)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:727)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:588)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:588)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:588)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:588)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:539)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.build(IncrementalImageBuilder.java:119)
- at org.eclipse.jdt.internal.core.builder.JavaBuilder.buildDeltas(JavaBuilder.java:289)
- at org.eclipse.jdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:212)
- at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:853)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:232)
- at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:281)
- at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:334)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:337)
- at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:389)
- at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:410)
- at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:160)
- at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:251)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-!SESSION 2022-03-22 17:16:46.401 -----------------------------------------------
+!SESSION 2022-04-01 22:20:20.990 -----------------------------------------------
eclipse.buildId=4.22.0.I20211124-1800
java.version=17.0.1
java.vendor=Eclipse Adoptium
@@ -14647,15 +11629,15 @@ BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=ru_RU
Framework arguments: -product org.eclipse.epp.package.java.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
-!ENTRY org.eclipse.jface 2 0 2022-03-22 17:16:58.807
+!ENTRY org.eclipse.jface 2 0 2022-04-01 22:20:27.063
!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
-!SUBENTRY 1 org.eclipse.jface 2 0 2022-03-22 17:16:58.807
+!SUBENTRY 1 org.eclipse.jface 2 0 2022-04-01 22:20:27.064
!MESSAGE A conflict occurred for CTRL+SHIFT+T:
Binding(CTRL+SHIFT+T,
ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type,
Open a type in a Java editor,
Category(org.eclipse.ui.category.navigate,Navigate,null,true),
- org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@632b5c79,
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@f0c1ae1,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
@@ -14663,17 +11645,17 @@ Binding(CTRL+SHIFT+T,
ParameterizedCommand(Command(org.eclipse.lsp4e.symbolinworkspace,Go to Symbol in Workspace,
,
Category(org.eclipse.lsp4e.category,Language Servers,null,true),
- org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@6a552721,
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@783dc0e7,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
-!SUBENTRY 1 org.eclipse.jface 2 0 2022-03-22 17:16:58.807
+!SUBENTRY 1 org.eclipse.jface 2 0 2022-04-01 22:20:27.064
!MESSAGE A conflict occurred for ALT+SHIFT+R:
Binding(ALT+SHIFT+R,
ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.rename.element,Rename - Refactoring ,
Rename the selected element,
Category(org.eclipse.jdt.ui.category.refactoring,Refactor - Java,Java Refactoring Actions,true),
- org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@3815a7d1,
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@361f26b4,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
@@ -14681,79 +11663,380 @@ Binding(ALT+SHIFT+R,
ParameterizedCommand(Command(org.eclipse.ui.edit.rename,Rename,
Rename the selected item,
Category(org.eclipse.ui.category.file,File,null,true),
- org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@24dc150c,
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@1d9ff1e2,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
-!ENTRY org.eclipse.egit.ui 2 0 2022-03-22 17:17:06.371
+!ENTRY org.eclipse.egit.ui 2 0 2022-04-01 22:20:30.340
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Users\Pulxes'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-22 17:17:36.664
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 22:41:28.408
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-22 18:02:54.224
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 22:53:53.897
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-22 18:03:30.043
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 23:02:28.221
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-22 18:07:26.621
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 23:04:40.584
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-22 18:26:54.293
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 23:04:56.730
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-22 18:27:57.091
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 23:05:25.921
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-22 18:29:34.887
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 23:05:47.086
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-24 00:14:38.275
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 23:05:58.792
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-24 01:42:16.460
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 23:07:53.531
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-24 01:44:27.577
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 23:17:19.255
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-24 01:46:27.218
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 23:17:41.089
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-24 01:47:55.299
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 23:18:12.212
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-24 01:49:26.846
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 23:18:37.159
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-24 01:50:11.518
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 23:19:58.368
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-24 02:51:38.359
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 23:21:32.723
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-24 02:55:16.286
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 23:22:29.657
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-24 02:58:25.032
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 23:23:24.169
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.debug.core 4 125 2022-03-24 02:58:25.803
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 23:23:59.540
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 23:24:22.436
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 23:25:18.047
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 23:25:50.964
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 23:27:30.443
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 23:28:43.621
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 23:31:43.179
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 23:32:29.266
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 23:33:05.633
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 23:34:21.671
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 23:34:52.430
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 23:35:06.206
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 23:41:52.251
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 23:42:16.000
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 23:43:00.375
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 23:43:47.313
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 23:44:50.754
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 23:45:21.315
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 23:47:14.341
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 23:49:53.684
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 23:50:33.138
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 23:51:24.372
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 23:52:53.502
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 23:53:49.088
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 23:56:12.922
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 23:56:42.118
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 23:57:36.487
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 23:58:58.890
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.core.resources 2 10035 2022-04-02 00:03:02.638
+!MESSAGE The workspace will exit with unsaved changes in this session.
+!SESSION 2022-04-02 10:17:09.284 -----------------------------------------------
+eclipse.buildId=4.22.0.I20211124-1800
+java.version=17.0.1
+java.vendor=Eclipse Adoptium
+BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=ru_RU
+Framework arguments: -product org.eclipse.epp.package.java.product
+Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
+
+!ENTRY org.eclipse.core.resources 2 10035 2022-04-02 10:17:22.487
+!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.
+
+!ENTRY org.eclipse.jface 2 0 2022-04-02 10:17:33.741
+!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
+!SUBENTRY 1 org.eclipse.jface 2 0 2022-04-02 10:17:33.741
+!MESSAGE A conflict occurred for CTRL+SHIFT+T:
+Binding(CTRL+SHIFT+T,
+ ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type,
+ Open a type in a Java editor,
+ Category(org.eclipse.ui.category.navigate,Navigate,null,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@41404aa2,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+Binding(CTRL+SHIFT+T,
+ ParameterizedCommand(Command(org.eclipse.lsp4e.symbolinworkspace,Go to Symbol in Workspace,
+ ,
+ Category(org.eclipse.lsp4e.category,Language Servers,null,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@b267745,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+!SUBENTRY 1 org.eclipse.jface 2 0 2022-04-02 10:17:33.741
+!MESSAGE A conflict occurred for ALT+SHIFT+R:
+Binding(ALT+SHIFT+R,
+ ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.rename.element,Rename - Refactoring ,
+ Rename the selected element,
+ Category(org.eclipse.jdt.ui.category.refactoring,Refactor - Java,Java Refactoring Actions,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@31e22365,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+Binding(ALT+SHIFT+R,
+ ParameterizedCommand(Command(org.eclipse.ui.edit.rename,Rename,
+ Rename the selected item,
+ Category(org.eclipse.ui.category.file,File,null,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@2ebf524,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+
+!ENTRY org.eclipse.egit.ui 2 0 2022-04-02 10:17:41.350
+!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
+user global configuration and to define the default location to store repositories: 'C:\Users\Pulxes'. If this is
+not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
+EGit might behave differently since they see different configuration options.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 10:17:48.175
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 10:36:09.538
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 10:49:57.394
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.core.resources 2 10035 2022-04-02 10:51:50.133
+!MESSAGE The workspace will exit with unsaved changes in this session.
+!SESSION 2022-04-02 10:55:24.288 -----------------------------------------------
+eclipse.buildId=4.22.0.I20211124-1800
+java.version=17.0.1
+java.vendor=Eclipse Adoptium
+BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=ru_RU
+Framework arguments: -product org.eclipse.epp.package.java.product
+Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
+
+!ENTRY org.eclipse.core.resources 2 10035 2022-04-02 10:55:32.241
+!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.
+
+!ENTRY org.eclipse.jface 2 0 2022-04-02 10:55:38.918
+!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
+!SUBENTRY 1 org.eclipse.jface 2 0 2022-04-02 10:55:38.918
+!MESSAGE A conflict occurred for CTRL+SHIFT+T:
+Binding(CTRL+SHIFT+T,
+ ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type,
+ Open a type in a Java editor,
+ Category(org.eclipse.ui.category.navigate,Navigate,null,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@31e22365,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+Binding(CTRL+SHIFT+T,
+ ParameterizedCommand(Command(org.eclipse.lsp4e.symbolinworkspace,Go to Symbol in Workspace,
+ ,
+ Category(org.eclipse.lsp4e.category,Language Servers,null,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@2ebf524,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+!SUBENTRY 1 org.eclipse.jface 2 0 2022-04-02 10:55:38.918
+!MESSAGE A conflict occurred for ALT+SHIFT+R:
+Binding(ALT+SHIFT+R,
+ ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.rename.element,Rename - Refactoring ,
+ Rename the selected element,
+ Category(org.eclipse.jdt.ui.category.refactoring,Refactor - Java,Java Refactoring Actions,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@41bdaa81,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+Binding(ALT+SHIFT+R,
+ ParameterizedCommand(Command(org.eclipse.ui.edit.rename,Rename,
+ Rename the selected item,
+ Category(org.eclipse.ui.category.file,File,null,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@799971ac,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+
+!ENTRY org.eclipse.egit.ui 2 0 2022-04-02 10:55:43.221
+!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
+user global configuration and to define the default location to store repositories: 'C:\Users\Pulxes'. If this is
+not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
+EGit might behave differently since they see different configuration options.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 10:58:04.477
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 11:02:36.737
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 11:26:54.198
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 11:33:35.683
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 11:52:27.843
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 11:55:48.546
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 11:57:55.515
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 12:08:33.176
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 12:11:39.604
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 12:16:32.447
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 12:25:59.013
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 12:27:04.154
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 12:28:43.828
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 12:34:10.635
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 12:35:12.831
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 12:50:17.693
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 13:00:04.172
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 13:01:07.830
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 13:02:45.405
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 13:12:36.389
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 13:15:49.371
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 13:18:08.329
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 13:29:15.319
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 13:37:33.228
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 13:39:26.520
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 13:39:56.806
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 13:42:51.107
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 13:46:09.685
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 13:46:51.292
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 13:47:02.138
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.debug.core 4 125 2022-04-02 13:49:27.852
!MESSAGE Error logged from Debug Core:
!STACK 1
-org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.throwDebugException(JDIDebugElement.java:263)
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.requestFailed(JDIDebugElement.java:202)
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.targetRequestFailed(JDIDebugElement.java:182)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1585)
- at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
+org.eclipse.debug.core.DebugException: Error retrieving source debug attribute
+ at org.eclipse.jdt.internal.debug.core.model.JDIType.throwDebugException(JDIType.java:79)
+ at org.eclipse.jdt.internal.debug.core.model.JDIType.requestFailed(JDIType.java:69)
+ at org.eclipse.jdt.internal.debug.core.model.JDIReferenceType.getSourceNames(JDIReferenceType.java:252)
+ at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getClassesLocation(JDIHelpers.java:64)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.getSourceContainer(AdvancedSourceLookupParticipant.java:88)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:72)
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
@@ -14765,30 +12048,29 @@ Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Mac
at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
- at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
- at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
- at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
- ... 9 more
-!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-03-24 02:58:25.804
-!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:262)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.getSourceDebugExtension(ReferenceTypeImpl.java:1745)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.isSourceDebugExtensionAvailable(ReferenceTypeImpl.java:1819)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.getStratum(ReferenceTypeImpl.java:1726)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.sourceNames(ReferenceTypeImpl.java:1533)
+ at org.eclipse.jdt.internal.debug.core.model.JDIReferenceType.getSourceNames(JDIReferenceType.java:247)
+ ... 10 more
+!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-04-02 13:49:27.853
+!MESSAGE Error retrieving source debug attribute
!STACK 0
com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
- at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
- at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
- at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
- at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:262)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.getSourceDebugExtension(ReferenceTypeImpl.java:1745)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.isSourceDebugExtensionAvailable(ReferenceTypeImpl.java:1819)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.getStratum(ReferenceTypeImpl.java:1726)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.sourceNames(ReferenceTypeImpl.java:1533)
+ at org.eclipse.jdt.internal.debug.core.model.JDIReferenceType.getSourceNames(JDIReferenceType.java:247)
+ at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getClassesLocation(JDIHelpers.java:64)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.getSourceContainer(AdvancedSourceLookupParticipant.java:88)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:72)
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
@@ -14797,51 +12079,9 @@ com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-24 03:00:02.212
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 13:49:32.250
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-24 09:13:49.892
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-24 09:15:07.082
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-24 09:17:16.933
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-24 09:18:48.461
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-24 09:20:39.962
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-24 09:22:20.907
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-24 09:23:47.321
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-24 09:24:46.532
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 10:09:54.507
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 10:13:45.716
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 15:25:46.960
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 15:27:06.248
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 15:30:38.468
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 15:32:25.135
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!SESSION 2022-03-25 15:34:39.392 -----------------------------------------------
+!SESSION 2022-04-02 13:56:15.854 -----------------------------------------------
eclipse.buildId=4.22.0.I20211124-1800
java.version=17.0.1
java.vendor=Eclipse Adoptium
@@ -14849,9 +12089,724 @@ BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=ru_RU
Framework arguments: -product org.eclipse.epp.package.java.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
-!ENTRY org.eclipse.jface 2 0 2022-03-25 15:34:54.692
+!ENTRY org.eclipse.jface 2 0 2022-04-02 13:56:22.875
!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
-!SUBENTRY 1 org.eclipse.jface 2 0 2022-03-25 15:34:54.692
+!SUBENTRY 1 org.eclipse.jface 2 0 2022-04-02 13:56:22.875
+!MESSAGE A conflict occurred for CTRL+SHIFT+T:
+Binding(CTRL+SHIFT+T,
+ ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type,
+ Open a type in a Java editor,
+ Category(org.eclipse.ui.category.navigate,Navigate,null,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@6a552721,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+Binding(CTRL+SHIFT+T,
+ ParameterizedCommand(Command(org.eclipse.lsp4e.symbolinworkspace,Go to Symbol in Workspace,
+ ,
+ Category(org.eclipse.lsp4e.category,Language Servers,null,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@3815a7d1,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+!SUBENTRY 1 org.eclipse.jface 2 0 2022-04-02 13:56:22.876
+!MESSAGE A conflict occurred for ALT+SHIFT+R:
+Binding(ALT+SHIFT+R,
+ ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.rename.element,Rename - Refactoring ,
+ Rename the selected element,
+ Category(org.eclipse.jdt.ui.category.refactoring,Refactor - Java,Java Refactoring Actions,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@24dc150c,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+Binding(ALT+SHIFT+R,
+ ParameterizedCommand(Command(org.eclipse.ui.edit.rename,Rename,
+ Rename the selected item,
+ Category(org.eclipse.ui.category.file,File,null,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@1d2d4d7a,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+
+!ENTRY org.eclipse.egit.ui 2 0 2022-04-02 13:56:27.320
+!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
+user global configuration and to define the default location to store repositories: 'C:\Users\Pulxes'. If this is
+not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
+EGit might behave differently since they see different configuration options.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 14:01:06.474
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.core.resources 4 566 2022-04-02 14:24:07.741
+!MESSAGE Workspace was not properly initialized or has already shutdown.
+
+!ENTRY org.eclipse.core.jobs 4 1 2022-04-02 14:24:07.742
+!MESSAGE Worker thread ended job: Refreshing workspace(11), but still holds rule: ThreadJob(Refreshing workspace(11),[F/Minecraft/eclipse])
+!SESSION 2022-04-02 14:26:09.564 -----------------------------------------------
+eclipse.buildId=4.22.0.I20211124-1800
+java.version=17.0.1
+java.vendor=Eclipse Adoptium
+BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=ru_RU
+Framework arguments: -product org.eclipse.epp.package.java.product
+Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
+
+!ENTRY org.eclipse.jface 2 0 2022-04-02 14:26:15.710
+!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
+!SUBENTRY 1 org.eclipse.jface 2 0 2022-04-02 14:26:15.710
+!MESSAGE A conflict occurred for CTRL+SHIFT+T:
+Binding(CTRL+SHIFT+T,
+ ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type,
+ Open a type in a Java editor,
+ Category(org.eclipse.ui.category.navigate,Navigate,null,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@24dc150c,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+Binding(CTRL+SHIFT+T,
+ ParameterizedCommand(Command(org.eclipse.lsp4e.symbolinworkspace,Go to Symbol in Workspace,
+ ,
+ Category(org.eclipse.lsp4e.category,Language Servers,null,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@1d2d4d7a,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+!SUBENTRY 1 org.eclipse.jface 2 0 2022-04-02 14:26:15.710
+!MESSAGE A conflict occurred for ALT+SHIFT+R:
+Binding(ALT+SHIFT+R,
+ ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.rename.element,Rename - Refactoring ,
+ Rename the selected element,
+ Category(org.eclipse.jdt.ui.category.refactoring,Refactor - Java,Java Refactoring Actions,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@5e020dd1,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+Binding(ALT+SHIFT+R,
+ ParameterizedCommand(Command(org.eclipse.ui.edit.rename,Rename,
+ Rename the selected item,
+ Category(org.eclipse.ui.category.file,File,null,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@4bbc02ef,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+
+!ENTRY org.eclipse.egit.ui 2 0 2022-04-02 14:26:19.840
+!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
+user global configuration and to define the default location to store repositories: 'C:\Users\Pulxes'. If this is
+not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
+EGit might behave differently since they see different configuration options.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 14:26:31.644
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 15:01:10.481
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 15:05:51.686
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+!SESSION 2022-04-02 15:08:40.148 -----------------------------------------------
+eclipse.buildId=4.22.0.I20211124-1800
+java.version=17.0.1
+java.vendor=Eclipse Adoptium
+BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=ru_RU
+Framework arguments: -product org.eclipse.epp.package.java.product
+Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
+
+!ENTRY org.eclipse.jface 2 0 2022-04-02 15:08:46.538
+!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
+!SUBENTRY 1 org.eclipse.jface 2 0 2022-04-02 15:08:46.538
+!MESSAGE A conflict occurred for CTRL+SHIFT+T:
+Binding(CTRL+SHIFT+T,
+ ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type,
+ Open a type in a Java editor,
+ Category(org.eclipse.ui.category.navigate,Navigate,null,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@1ab268bd,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+Binding(CTRL+SHIFT+T,
+ ParameterizedCommand(Command(org.eclipse.lsp4e.symbolinworkspace,Go to Symbol in Workspace,
+ ,
+ Category(org.eclipse.lsp4e.category,Language Servers,null,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@2fafa7b5,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+!SUBENTRY 1 org.eclipse.jface 2 0 2022-04-02 15:08:46.538
+!MESSAGE A conflict occurred for ALT+SHIFT+R:
+Binding(ALT+SHIFT+R,
+ ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.rename.element,Rename - Refactoring ,
+ Rename the selected element,
+ Category(org.eclipse.jdt.ui.category.refactoring,Refactor - Java,Java Refactoring Actions,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@181098bf,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+Binding(ALT+SHIFT+R,
+ ParameterizedCommand(Command(org.eclipse.ui.edit.rename,Rename,
+ Rename the selected item,
+ Category(org.eclipse.ui.category.file,File,null,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@632b5c79,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+
+!ENTRY org.eclipse.egit.ui 2 0 2022-04-02 15:08:50.578
+!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
+user global configuration and to define the default location to store repositories: 'C:\Users\Pulxes'. If this is
+not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
+EGit might behave differently since they see different configuration options.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 15:08:57.489
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 15:12:57.387
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 15:15:41.919
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 15:23:40.393
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 15:53:57.227
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 15:56:01.064
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 16:28:50.842
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 16:35:41.430
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 16:37:37.627
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+!SESSION 2022-04-02 16:42:06.108 -----------------------------------------------
+eclipse.buildId=4.22.0.I20211124-1800
+java.version=17.0.1
+java.vendor=Eclipse Adoptium
+BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=ru_RU
+Framework arguments: -product org.eclipse.epp.package.java.product
+Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
+
+!ENTRY org.eclipse.jface 2 0 2022-04-02 16:42:12.302
+!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
+!SUBENTRY 1 org.eclipse.jface 2 0 2022-04-02 16:42:12.302
+!MESSAGE A conflict occurred for CTRL+SHIFT+T:
+Binding(CTRL+SHIFT+T,
+ ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type,
+ Open a type in a Java editor,
+ Category(org.eclipse.ui.category.navigate,Navigate,null,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@1d2d4d7a,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+Binding(CTRL+SHIFT+T,
+ ParameterizedCommand(Command(org.eclipse.lsp4e.symbolinworkspace,Go to Symbol in Workspace,
+ ,
+ Category(org.eclipse.lsp4e.category,Language Servers,null,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@5e020dd1,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+!SUBENTRY 1 org.eclipse.jface 2 0 2022-04-02 16:42:12.302
+!MESSAGE A conflict occurred for ALT+SHIFT+R:
+Binding(ALT+SHIFT+R,
+ ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.rename.element,Rename - Refactoring ,
+ Rename the selected element,
+ Category(org.eclipse.jdt.ui.category.refactoring,Refactor - Java,Java Refactoring Actions,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@4bbc02ef,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+Binding(ALT+SHIFT+R,
+ ParameterizedCommand(Command(org.eclipse.ui.edit.rename,Rename,
+ Rename the selected item,
+ Category(org.eclipse.ui.category.file,File,null,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@f0c1ae1,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+
+!ENTRY org.eclipse.egit.ui 2 0 2022-04-02 16:42:16.390
+!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
+user global configuration and to define the default location to store repositories: 'C:\Users\Pulxes'. If this is
+not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
+EGit might behave differently since they see different configuration options.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 16:42:19.312
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.lsp4e 4 0 2022-04-02 16:51:55.964
+!MESSAGE Exception occurred while fetching the content type from the buffer
+!STACK 1
+org.eclipse.core.internal.resources.ResourceException(/Minecraft/src/main/java/ab/client/core/PlayerRenderer.java)[368]: java.lang.Exception: Resource '/Minecraft/src/main/java/ab/client/core/PlayerRenderer.java' does not exist.
+ at org.eclipse.core.internal.resources.ResourceException.provideStackTrace(ResourceException.java:42)
+ at org.eclipse.core.internal.resources.ResourceException.(ResourceException.java:38)
+ at org.eclipse.core.internal.resources.Resource.checkExists(Resource.java:330)
+ at org.eclipse.core.internal.resources.Resource.checkAccessible(Resource.java:204)
+ at org.eclipse.core.internal.resources.File.getContentDescription(File.java:253)
+ at org.eclipse.core.internal.filebuffers.ResourceTextFileBuffer.getContentType(ResourceTextFileBuffer.java:201)
+ at org.eclipse.lsp4e.LSPEclipseUtils.getDocumentContentTypes(LSPEclipseUtils.java:851)
+ at org.eclipse.lsp4e.LanguageServersRegistry.canUseLanguageServer(LanguageServersRegistry.java:403)
+ at org.eclipse.lsp4e.HasLanguageServerPropertyTester.test(HasLanguageServerPropertyTester.java:34)
+ at org.eclipse.core.internal.expressions.Property.test(Property.java:65)
+ at org.eclipse.core.expressions.TestExpression.evaluate(TestExpression.java:107)
+ at org.eclipse.core.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:54)
+ at org.eclipse.core.expressions.WithExpression.evaluate(WithExpression.java:84)
+ at org.eclipse.core.expressions.CompositeExpression.evaluateOr(CompositeExpression.java:68)
+ at org.eclipse.core.expressions.OrExpression.evaluate(OrExpression.java:26)
+ at org.eclipse.ui.internal.texteditor.codemining.CodeMiningProviderDescriptor.matches(CodeMiningProviderDescriptor.java:189)
+ at org.eclipse.ui.internal.texteditor.codemining.CodeMiningProviderRegistry.getProviders(CodeMiningProviderRegistry.java:110)
+ at org.eclipse.ui.texteditor.AbstractTextEditor.installCodeMiningProviders(AbstractTextEditor.java:4022)
+ at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.installCodeMiningProviders(JavaEditor.java:4256)
+ at org.eclipse.ui.texteditor.AbstractTextEditor.initializeSourceViewer(AbstractTextEditor.java:4012)
+ at org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:3473)
+ at org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:64)
+ at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createPartControl(AbstractDecoratedTextEditor.java:454)
+ at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.createPartControl(JavaEditor.java:3093)
+ at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.createPartControl(CompilationUnitEditor.java:1521)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPartControl(CompatibilityPart.java:158)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor.createPartControl(CompatibilityEditor.java:96)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:365)
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
+ at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:568)
+ at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:995)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:960)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalInject(InjectorImpl.java:140)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:403)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:330)
+ at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:202)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:91)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:60)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:42)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:132)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:994)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:658)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:762)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$2.run(PartRenderingEngine.java:727)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:711)
+ at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.lambda$0(PartServiceImpl.java:105)
+ at org.eclipse.e4.ui.services.internal.events.UIEventHandler.lambda$0(UIEventHandler.java:38)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:236)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:133)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4779)
+ at org.eclipse.e4.ui.workbench.swt.DisplayUISynchronize.syncExec(DisplayUISynchronize.java:34)
+ at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
+ at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:205)
+ at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:203)
+ at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
+ at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:228)
+ at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:151)
+ at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:133)
+ at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:75)
+ at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:44)
+ at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:55)
+ at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:63)
+ at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:424)
+ at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElementGen(ElementContainerImpl.java:170)
+ at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:188)
+ at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.lambda$4(StackRenderer.java:975)
+ at org.eclipse.swt.events.SelectionListener$1.widgetSelected(SelectionListener.java:84)
+ at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:252)
+ at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
+ at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4243)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1060)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1084)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1069)
+ at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:773)
+ at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3248)
+ at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1882)
+ at org.eclipse.swt.custom.CTabFolder.lambda$0(CTabFolder.java:331)
+ at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
+ at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4243)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1060)
+ at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4060)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3632)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1154)
+ at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1045)
+ at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
+ at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644)
+ at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
+ at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:551)
+ at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:156)
+ at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152)
+ at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
+ at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
+ at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
+ at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
+ at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
+ at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:568)
+ at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
+ at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
+ at org.eclipse.equinox.launcher.Main.run(Main.java:1467)
+!SUBENTRY 1 org.eclipse.core.resources 4 368 2022-04-02 16:51:55.965
+!MESSAGE Resource '/Minecraft/src/main/java/ab/client/core/PlayerRenderer.java' does not exist.
+!STACK 0
+java.lang.Exception: Resource '/Minecraft/src/main/java/ab/client/core/PlayerRenderer.java' does not exist.
+ at org.eclipse.core.internal.resources.ResourceException.provideStackTrace(ResourceException.java:42)
+ at org.eclipse.core.internal.resources.ResourceException.(ResourceException.java:38)
+ at org.eclipse.core.internal.resources.Resource.checkExists(Resource.java:330)
+ at org.eclipse.core.internal.resources.Resource.checkAccessible(Resource.java:204)
+ at org.eclipse.core.internal.resources.File.getContentDescription(File.java:253)
+ at org.eclipse.core.internal.filebuffers.ResourceTextFileBuffer.getContentType(ResourceTextFileBuffer.java:201)
+ at org.eclipse.lsp4e.LSPEclipseUtils.getDocumentContentTypes(LSPEclipseUtils.java:851)
+ at org.eclipse.lsp4e.LanguageServersRegistry.canUseLanguageServer(LanguageServersRegistry.java:403)
+ at org.eclipse.lsp4e.HasLanguageServerPropertyTester.test(HasLanguageServerPropertyTester.java:34)
+ at org.eclipse.core.internal.expressions.Property.test(Property.java:65)
+ at org.eclipse.core.expressions.TestExpression.evaluate(TestExpression.java:107)
+ at org.eclipse.core.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:54)
+ at org.eclipse.core.expressions.WithExpression.evaluate(WithExpression.java:84)
+ at org.eclipse.core.expressions.CompositeExpression.evaluateOr(CompositeExpression.java:68)
+ at org.eclipse.core.expressions.OrExpression.evaluate(OrExpression.java:26)
+ at org.eclipse.ui.internal.texteditor.codemining.CodeMiningProviderDescriptor.matches(CodeMiningProviderDescriptor.java:189)
+ at org.eclipse.ui.internal.texteditor.codemining.CodeMiningProviderRegistry.getProviders(CodeMiningProviderRegistry.java:110)
+ at org.eclipse.ui.texteditor.AbstractTextEditor.installCodeMiningProviders(AbstractTextEditor.java:4022)
+ at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.installCodeMiningProviders(JavaEditor.java:4256)
+ at org.eclipse.ui.texteditor.AbstractTextEditor.initializeSourceViewer(AbstractTextEditor.java:4012)
+ at org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:3473)
+ at org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:64)
+ at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createPartControl(AbstractDecoratedTextEditor.java:454)
+ at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.createPartControl(JavaEditor.java:3093)
+ at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.createPartControl(CompilationUnitEditor.java:1521)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPartControl(CompatibilityPart.java:158)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor.createPartControl(CompatibilityEditor.java:96)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:365)
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
+ at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:568)
+ at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:995)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:960)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalInject(InjectorImpl.java:140)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:403)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:330)
+ at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:202)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:91)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:60)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:42)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:132)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:994)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:658)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:762)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$2.run(PartRenderingEngine.java:727)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:711)
+ at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.lambda$0(PartServiceImpl.java:105)
+ at org.eclipse.e4.ui.services.internal.events.UIEventHandler.lambda$0(UIEventHandler.java:38)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:236)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:133)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4779)
+ at org.eclipse.e4.ui.workbench.swt.DisplayUISynchronize.syncExec(DisplayUISynchronize.java:34)
+ at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
+ at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:205)
+ at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:203)
+ at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
+ at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:228)
+ at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:151)
+ at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:133)
+ at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:75)
+ at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:44)
+ at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:55)
+ at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:63)
+ at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:424)
+ at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElementGen(ElementContainerImpl.java:170)
+ at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:188)
+ at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.lambda$4(StackRenderer.java:975)
+ at org.eclipse.swt.events.SelectionListener$1.widgetSelected(SelectionListener.java:84)
+ at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:252)
+ at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
+ at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4243)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1060)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1084)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1069)
+ at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:773)
+ at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3248)
+ at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1882)
+ at org.eclipse.swt.custom.CTabFolder.lambda$0(CTabFolder.java:331)
+ at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
+ at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4243)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1060)
+ at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4060)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3632)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1154)
+ at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1045)
+ at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
+ at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644)
+ at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
+ at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:551)
+ at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:156)
+ at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152)
+ at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
+ at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
+ at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
+ at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
+ at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
+ at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:568)
+ at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
+ at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
+ at org.eclipse.equinox.launcher.Main.run(Main.java:1467)
+
+!ENTRY org.eclipse.lsp4e 4 0 2022-04-02 16:51:55.973
+!MESSAGE Exception occurred while fetching the content type from the buffer
+!STACK 1
+org.eclipse.core.internal.resources.ResourceException(/Minecraft/src/main/java/ab/client/core/PlayerRenderer.java)[368]: java.lang.Exception: Resource '/Minecraft/src/main/java/ab/client/core/PlayerRenderer.java' does not exist.
+ at org.eclipse.core.internal.resources.ResourceException.provideStackTrace(ResourceException.java:42)
+ at org.eclipse.core.internal.resources.ResourceException.(ResourceException.java:38)
+ at org.eclipse.core.internal.resources.Resource.checkExists(Resource.java:330)
+ at org.eclipse.core.internal.resources.Resource.checkAccessible(Resource.java:204)
+ at org.eclipse.core.internal.resources.File.getContentDescription(File.java:253)
+ at org.eclipse.core.internal.filebuffers.ResourceTextFileBuffer.getContentType(ResourceTextFileBuffer.java:201)
+ at org.eclipse.lsp4e.LSPEclipseUtils.getDocumentContentTypes(LSPEclipseUtils.java:851)
+ at org.eclipse.lsp4e.LanguageServersRegistry.canUseLanguageServer(LanguageServersRegistry.java:403)
+ at org.eclipse.lsp4e.HasLanguageServerPropertyTester.test(HasLanguageServerPropertyTester.java:34)
+ at org.eclipse.core.internal.expressions.Property.test(Property.java:65)
+ at org.eclipse.core.expressions.TestExpression.evaluate(TestExpression.java:107)
+ at org.eclipse.core.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:54)
+ at org.eclipse.core.expressions.WithExpression.evaluate(WithExpression.java:84)
+ at org.eclipse.core.expressions.CompositeExpression.evaluateOr(CompositeExpression.java:68)
+ at org.eclipse.core.expressions.OrExpression.evaluate(OrExpression.java:26)
+ at org.eclipse.ui.internal.texteditor.codemining.CodeMiningProviderDescriptor.matches(CodeMiningProviderDescriptor.java:189)
+ at org.eclipse.ui.internal.texteditor.codemining.CodeMiningProviderRegistry.getProviders(CodeMiningProviderRegistry.java:110)
+ at org.eclipse.ui.texteditor.AbstractTextEditor.installCodeMiningProviders(AbstractTextEditor.java:4022)
+ at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.installCodeMiningProviders(JavaEditor.java:4256)
+ at org.eclipse.ui.texteditor.AbstractTextEditor.initializeSourceViewer(AbstractTextEditor.java:4012)
+ at org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:3473)
+ at org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:64)
+ at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createPartControl(AbstractDecoratedTextEditor.java:454)
+ at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.createPartControl(JavaEditor.java:3093)
+ at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.createPartControl(CompilationUnitEditor.java:1521)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPartControl(CompatibilityPart.java:158)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor.createPartControl(CompatibilityEditor.java:96)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:365)
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
+ at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:568)
+ at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:995)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:960)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalInject(InjectorImpl.java:140)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:403)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:330)
+ at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:202)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:91)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:60)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:42)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:132)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:994)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:658)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:762)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$2.run(PartRenderingEngine.java:727)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:711)
+ at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.lambda$0(PartServiceImpl.java:105)
+ at org.eclipse.e4.ui.services.internal.events.UIEventHandler.lambda$0(UIEventHandler.java:38)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:236)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:133)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4779)
+ at org.eclipse.e4.ui.workbench.swt.DisplayUISynchronize.syncExec(DisplayUISynchronize.java:34)
+ at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
+ at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:205)
+ at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:203)
+ at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
+ at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:228)
+ at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:151)
+ at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:133)
+ at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:75)
+ at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:44)
+ at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:55)
+ at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:63)
+ at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:424)
+ at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElementGen(ElementContainerImpl.java:170)
+ at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:188)
+ at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.lambda$4(StackRenderer.java:975)
+ at org.eclipse.swt.events.SelectionListener$1.widgetSelected(SelectionListener.java:84)
+ at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:252)
+ at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
+ at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4243)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1060)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1084)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1069)
+ at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:773)
+ at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3248)
+ at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1882)
+ at org.eclipse.swt.custom.CTabFolder.lambda$0(CTabFolder.java:331)
+ at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
+ at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4243)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1060)
+ at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4060)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3632)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1154)
+ at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1045)
+ at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
+ at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644)
+ at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
+ at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:551)
+ at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:156)
+ at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152)
+ at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
+ at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
+ at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
+ at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
+ at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
+ at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:568)
+ at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
+ at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
+ at org.eclipse.equinox.launcher.Main.run(Main.java:1467)
+!SUBENTRY 1 org.eclipse.core.resources 4 368 2022-04-02 16:51:55.975
+!MESSAGE Resource '/Minecraft/src/main/java/ab/client/core/PlayerRenderer.java' does not exist.
+!STACK 0
+java.lang.Exception: Resource '/Minecraft/src/main/java/ab/client/core/PlayerRenderer.java' does not exist.
+ at org.eclipse.core.internal.resources.ResourceException.provideStackTrace(ResourceException.java:42)
+ at org.eclipse.core.internal.resources.ResourceException.(ResourceException.java:38)
+ at org.eclipse.core.internal.resources.Resource.checkExists(Resource.java:330)
+ at org.eclipse.core.internal.resources.Resource.checkAccessible(Resource.java:204)
+ at org.eclipse.core.internal.resources.File.getContentDescription(File.java:253)
+ at org.eclipse.core.internal.filebuffers.ResourceTextFileBuffer.getContentType(ResourceTextFileBuffer.java:201)
+ at org.eclipse.lsp4e.LSPEclipseUtils.getDocumentContentTypes(LSPEclipseUtils.java:851)
+ at org.eclipse.lsp4e.LanguageServersRegistry.canUseLanguageServer(LanguageServersRegistry.java:403)
+ at org.eclipse.lsp4e.HasLanguageServerPropertyTester.test(HasLanguageServerPropertyTester.java:34)
+ at org.eclipse.core.internal.expressions.Property.test(Property.java:65)
+ at org.eclipse.core.expressions.TestExpression.evaluate(TestExpression.java:107)
+ at org.eclipse.core.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:54)
+ at org.eclipse.core.expressions.WithExpression.evaluate(WithExpression.java:84)
+ at org.eclipse.core.expressions.CompositeExpression.evaluateOr(CompositeExpression.java:68)
+ at org.eclipse.core.expressions.OrExpression.evaluate(OrExpression.java:26)
+ at org.eclipse.ui.internal.texteditor.codemining.CodeMiningProviderDescriptor.matches(CodeMiningProviderDescriptor.java:189)
+ at org.eclipse.ui.internal.texteditor.codemining.CodeMiningProviderRegistry.getProviders(CodeMiningProviderRegistry.java:110)
+ at org.eclipse.ui.texteditor.AbstractTextEditor.installCodeMiningProviders(AbstractTextEditor.java:4022)
+ at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.installCodeMiningProviders(JavaEditor.java:4256)
+ at org.eclipse.ui.texteditor.AbstractTextEditor.initializeSourceViewer(AbstractTextEditor.java:4012)
+ at org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:3473)
+ at org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:64)
+ at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createPartControl(AbstractDecoratedTextEditor.java:454)
+ at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.createPartControl(JavaEditor.java:3093)
+ at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.createPartControl(CompilationUnitEditor.java:1521)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPartControl(CompatibilityPart.java:158)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor.createPartControl(CompatibilityEditor.java:96)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:365)
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
+ at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:568)
+ at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:995)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:960)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalInject(InjectorImpl.java:140)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:403)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:330)
+ at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:202)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:91)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:60)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:42)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:132)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:994)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:658)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:762)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$2.run(PartRenderingEngine.java:727)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:711)
+ at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.lambda$0(PartServiceImpl.java:105)
+ at org.eclipse.e4.ui.services.internal.events.UIEventHandler.lambda$0(UIEventHandler.java:38)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:236)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:133)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4779)
+ at org.eclipse.e4.ui.workbench.swt.DisplayUISynchronize.syncExec(DisplayUISynchronize.java:34)
+ at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
+ at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:205)
+ at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:203)
+ at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
+ at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:228)
+ at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:151)
+ at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:133)
+ at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:75)
+ at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:44)
+ at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:55)
+ at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:63)
+ at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:424)
+ at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElementGen(ElementContainerImpl.java:170)
+ at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:188)
+ at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.lambda$4(StackRenderer.java:975)
+ at org.eclipse.swt.events.SelectionListener$1.widgetSelected(SelectionListener.java:84)
+ at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:252)
+ at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
+ at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4243)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1060)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1084)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1069)
+ at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:773)
+ at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3248)
+ at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1882)
+ at org.eclipse.swt.custom.CTabFolder.lambda$0(CTabFolder.java:331)
+ at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
+ at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4243)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1060)
+ at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4060)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3632)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1154)
+ at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1045)
+ at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
+ at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644)
+ at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
+ at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:551)
+ at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:156)
+ at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152)
+ at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
+ at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
+ at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
+ at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
+ at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
+ at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:568)
+ at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
+ at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
+ at org.eclipse.equinox.launcher.Main.run(Main.java:1467)
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 16:55:16.029
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 17:04:26.567
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 17:05:09.608
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+!SESSION 2022-04-02 17:07:25.929 -----------------------------------------------
+eclipse.buildId=4.22.0.I20211124-1800
+java.version=17.0.1
+java.vendor=Eclipse Adoptium
+BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=ru_RU
+Framework arguments: -product org.eclipse.epp.package.java.product
+Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
+
+!ENTRY org.eclipse.jface 2 0 2022-04-02 17:07:40.007
+!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
+!SUBENTRY 1 org.eclipse.jface 2 0 2022-04-02 17:07:40.007
!MESSAGE A conflict occurred for CTRL+SHIFT+T:
Binding(CTRL+SHIFT+T,
ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type,
@@ -14869,7 +12824,7 @@ Binding(CTRL+SHIFT+T,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
-!SUBENTRY 1 org.eclipse.jface 2 0 2022-03-25 15:34:54.692
+!SUBENTRY 1 org.eclipse.jface 2 0 2022-04-02 17:07:40.007
!MESSAGE A conflict occurred for ALT+SHIFT+R:
Binding(ALT+SHIFT+R,
ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.rename.element,Rename - Refactoring ,
@@ -14888,749 +12843,28 @@ Binding(ALT+SHIFT+R,
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
-!ENTRY org.eclipse.egit.ui 2 0 2022-03-25 15:34:58.439
+!ENTRY org.eclipse.egit.ui 2 0 2022-04-02 17:07:43.950
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Users\Pulxes'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 15:35:03.387
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 17:23:49.147
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 15:41:36.817
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 17:55:56.464
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 16:05:44.121
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 17:57:04.268
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 16:12:18.960
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 16:16:41.807
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 16:41:33.567
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 17:01:27.284
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 17:04:40.482
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 17:05:15.990
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 17:05:51.755
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 17:06:17.465
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 17:06:35.919
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 17:07:26.124
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 17:08:43.428
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 17:09:38.520
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 17:12:14.923
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 17:12:55.618
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 17:13:24.498
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 17:14:06.010
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 17:16:13.019
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 17:17:21.777
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 17:18:01.936
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 17:18:21.861
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 17:20:12.377
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 17:20:46.827
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 17:21:31.448
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 17:21:41.680
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 17:22:02.033
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 17:22:47.327
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 17:23:35.770
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 17:23:49.269
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 17:24:44.834
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 17:26:10.931
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 17:27:20.141
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 17:28:17.091
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 17:29:44.962
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 17:29:58.868
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 17:33:38.326
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 17:33:54.309
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 17:35:12.731
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 17:35:44.876
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 17:36:06.907
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 17:37:54.335
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 17:39:24.712
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 17:40:53.421
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 17:41:21.743
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 17:41:41.919
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 17:44:08.757
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 17:51:06.307
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 17:51:18.089
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 17:52:13.978
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 17:52:43.931
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 17:55:09.826
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 17:56:41.571
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-25 18:12:51.310
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 11:18:39.250
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 11:23:29.504
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 11:25:10.179
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 11:27:27.672
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 11:27:59.482
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 11:28:50.813
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 11:29:18.692
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 11:30:06.203
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 11:34:14.526
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 11:34:45.093
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 11:35:04.850
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 11:40:43.913
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 11:42:32.942
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 11:42:54.588
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 11:43:12.728
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 11:43:39.225
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 11:44:59.689
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 11:45:45.839
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 11:45:57.020
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 11:46:39.846
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 11:48:56.750
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 11:53:54.164
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 12:03:55.842
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 12:06:08.126
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 12:08:19.830
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 12:20:05.275
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 12:22:38.705
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 12:25:35.652
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 12:27:09.326
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 12:27:56.434
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 12:31:35.892
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 12:32:04.396
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 12:32:34.600
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 12:49:12.673
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 12:50:41.312
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 12:52:08.040
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 12:52:42.024
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 12:55:34.645
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 12:56:13.693
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 13:00:09.146
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 13:02:21.127
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 13:12:11.893
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 13:13:07.054
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 13:13:51.273
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 13:19:50.949
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 13:21:48.162
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 13:23:55.813
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 13:26:33.309
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 14:14:23.413
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 14:15:23.940
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 14:24:42.962
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.debug.core 4 125 2022-03-26 14:25:13.857
-!MESSAGE Error logged from Debug Core:
-!STACK 1
-org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.throwDebugException(JDIDebugElement.java:263)
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.requestFailed(JDIDebugElement.java:202)
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.targetRequestFailed(JDIDebugElement.java:182)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1585)
- at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.clearSourceElements(AbstractSourceLookupDirector.java:652)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.updateDebugElement(AdvancedSourceLookupParticipant.java:215)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.cacheContainer(AdvancedSourceLookupParticipant.java:162)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.getSourceContainer(AdvancedSourceLookupParticipant.java:146)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:72)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
- at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
- at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
- at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
- at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
- ... 17 more
-!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-03-26 14:25:13.859
-!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
-!STACK 0
-com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
- at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
- at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
- at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
- at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
- at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.clearSourceElements(AbstractSourceLookupDirector.java:652)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.updateDebugElement(AdvancedSourceLookupParticipant.java:215)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.cacheContainer(AdvancedSourceLookupParticipant.java:162)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.getSourceContainer(AdvancedSourceLookupParticipant.java:146)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:72)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.debug.core 4 125 2022-03-26 14:25:13.860
-!MESSAGE Error logged from Debug Core:
-!STACK 1
-org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.throwDebugException(JDIDebugElement.java:263)
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.requestFailed(JDIDebugElement.java:202)
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.targetRequestFailed(JDIDebugElement.java:182)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1585)
- at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
- at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
- at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
- at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
- at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
- ... 9 more
-!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-03-26 14:25:13.860
-!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
-!STACK 0
-com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
- at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
- at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
- at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
- at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
- at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 14:26:22.975
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 14:28:18.646
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 14:30:42.049
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 14:37:19.172
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.debug.core 4 125 2022-03-26 14:37:24.059
-!MESSAGE Error logged from Debug Core:
-!STACK 1
-org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.throwDebugException(JDIDebugElement.java:263)
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.requestFailed(JDIDebugElement.java:202)
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.targetRequestFailed(JDIDebugElement.java:182)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1585)
- at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.clearSourceElements(AbstractSourceLookupDirector.java:652)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.updateDebugElement(AdvancedSourceLookupParticipant.java:215)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.cacheContainer(AdvancedSourceLookupParticipant.java:162)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.getSourceContainer(AdvancedSourceLookupParticipant.java:146)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:72)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
- at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
- at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
- at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
- at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
- ... 17 more
-!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-03-26 14:37:24.060
-!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
-!STACK 0
-com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
- at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
- at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
- at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
- at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
- at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.clearSourceElements(AbstractSourceLookupDirector.java:652)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.updateDebugElement(AdvancedSourceLookupParticipant.java:215)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.cacheContainer(AdvancedSourceLookupParticipant.java:162)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.getSourceContainer(AdvancedSourceLookupParticipant.java:146)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:72)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.debug.core 4 125 2022-03-26 14:37:24.061
-!MESSAGE Error logged from Debug Core:
-!STACK 1
-org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.throwDebugException(JDIDebugElement.java:263)
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.requestFailed(JDIDebugElement.java:202)
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.targetRequestFailed(JDIDebugElement.java:182)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1585)
- at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
- at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
- at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
- at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
- at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
- ... 9 more
-!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-03-26 14:37:24.062
-!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
-!STACK 0
-com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
- at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
- at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
- at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
- at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
- at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 14:38:54.054
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 14:43:53.420
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 14:50:18.513
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 14:50:54.686
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 14:51:44.848
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 14:52:15.982
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 14:54:06.936
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 14:54:29.411
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 14:54:53.704
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 14:55:05.032
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 14:55:12.465
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 14:56:58.715
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 14:59:59.897
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+!ENTRY org.eclipse.core.resources 4 566 2022-04-02 18:14:06.389
+!MESSAGE Workspace was not properly initialized or has already shutdown.
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 15:00:45.707
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 15:02:33.064
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 15:03:14.330
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 15:03:44.797
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 15:12:00.309
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 15:15:35.527
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 15:17:12.464
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 15:19:39.315
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 15:20:04.362
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 16:00:36.338
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 16:03:06.633
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 16:03:30.848
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 16:04:40.182
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 16:05:09.108
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 16:06:13.735
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 16:10:40.006
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 16:14:14.547
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 16:14:36.228
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 16:21:10.766
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-26 16:25:27.762
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-27 12:57:00.436
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-27 13:15:19.304
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-27 13:18:33.488
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-27 13:23:32.496
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-27 13:24:06.936
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-27 13:24:25.299
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-27 13:34:05.947
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-27 13:38:28.560
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-27 13:48:58.207
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-27 13:49:28.638
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-27 14:03:21.666
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-27 14:40:20.344
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-27 14:48:57.213
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-27 15:13:35.592
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-27 15:21:01.389
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-27 15:24:00.702
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-27 15:27:23.887
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-27 15:31:50.659
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-27 15:39:37.976
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-27 15:44:38.911
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-27 16:25:52.029
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!SESSION 2022-03-27 16:31:56.473 -----------------------------------------------
+!ENTRY org.eclipse.core.jobs 4 1 2022-04-02 18:14:06.390
+!MESSAGE Worker thread ended job: Refreshing workspace(11), but still holds rule: ThreadJob(Refreshing workspace(11),[F/Minecraft/build/classes/main/ab/client])
+!SESSION 2022-04-02 18:14:36.642 -----------------------------------------------
eclipse.buildId=4.22.0.I20211124-1800
java.version=17.0.1
java.vendor=Eclipse Adoptium
@@ -15638,15 +12872,15 @@ BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=ru_RU
Framework arguments: -product org.eclipse.epp.package.java.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
-!ENTRY org.eclipse.jface 2 0 2022-03-27 16:32:22.864
+!ENTRY org.eclipse.jface 2 0 2022-04-02 18:14:44.494
!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
-!SUBENTRY 1 org.eclipse.jface 2 0 2022-03-27 16:32:22.864
+!SUBENTRY 1 org.eclipse.jface 2 0 2022-04-02 18:14:44.494
!MESSAGE A conflict occurred for CTRL+SHIFT+T:
Binding(CTRL+SHIFT+T,
ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type,
Open a type in a Java editor,
Category(org.eclipse.ui.category.navigate,Navigate,null,true),
- org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@5e020dd1,
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@6a552721,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
@@ -15654,17 +12888,17 @@ Binding(CTRL+SHIFT+T,
ParameterizedCommand(Command(org.eclipse.lsp4e.symbolinworkspace,Go to Symbol in Workspace,
,
Category(org.eclipse.lsp4e.category,Language Servers,null,true),
- org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@4bbc02ef,
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@3815a7d1,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
-!SUBENTRY 1 org.eclipse.jface 2 0 2022-03-27 16:32:22.864
+!SUBENTRY 1 org.eclipse.jface 2 0 2022-04-02 18:14:44.494
!MESSAGE A conflict occurred for ALT+SHIFT+R:
Binding(ALT+SHIFT+R,
ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.rename.element,Rename - Refactoring ,
Rename the selected element,
Category(org.eclipse.jdt.ui.category.refactoring,Refactor - Java,Java Refactoring Actions,true),
- org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@f0c1ae1,
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@24dc150c,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
@@ -15672,259 +12906,27 @@ Binding(ALT+SHIFT+R,
ParameterizedCommand(Command(org.eclipse.ui.edit.rename,Rename,
Rename the selected item,
Category(org.eclipse.ui.category.file,File,null,true),
- org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@783dc0e7,
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@1d2d4d7a,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
-!ENTRY org.eclipse.egit.ui 2 0 2022-03-27 16:32:27.098
+!ENTRY org.eclipse.egit.ui 2 0 2022-04-02 18:14:48.556
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Users\Pulxes'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-27 16:32:33.043
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-02 18:14:51.967
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-27 18:05:19.542
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-03 12:18:29.180
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-27 18:08:12.606
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-27 18:09:15.868
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-27 18:17:53.096
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-27 18:24:08.764
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-27 18:26:21.561
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-27 18:54:50.058
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-28 12:41:47.318
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-28 12:56:48.522
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-03-28 12:58:50.460
-!MESSAGE JavaBuilder handling ImageBuilderInternalException while building: Minecraft
-!STACK 1
-org.eclipse.core.internal.resources.ResourceException: Problems encountered while deleting resources.
- at org.eclipse.core.internal.resources.Resource.delete(Resource.java:775)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:727)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:588)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:588)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:588)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:539)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.build(IncrementalImageBuilder.java:119)
- at org.eclipse.jdt.internal.core.builder.JavaBuilder.buildDeltas(JavaBuilder.java:289)
- at org.eclipse.jdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:212)
- at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:853)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:232)
- at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:281)
- at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:334)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:337)
- at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:389)
- at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:410)
- at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:160)
- at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:251)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-Contains: Could not delete 'C:\Users\Pulxes\Desktop\Developing mods for Cubes\Advanced Botany\1.7.10\bin\assets\ab\lang\ru_RU.lang'.
-org.eclipse.core.runtime.CoreException: Problems encountered while deleting files.
- at org.eclipse.core.internal.filesystem.local.LocalFile.delete(LocalFile.java:141)
- at org.eclipse.core.internal.resources.ResourceTree.internalDeleteFile(ResourceTree.java:316)
- at org.eclipse.core.internal.resources.ResourceTree.standardDeleteFile(ResourceTree.java:802)
- at org.eclipse.core.internal.resources.Resource.unprotectedDelete(Resource.java:1784)
- at org.eclipse.core.internal.resources.Resource.delete(Resource.java:762)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:727)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:588)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:588)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:588)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:539)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.build(IncrementalImageBuilder.java:119)
- at org.eclipse.jdt.internal.core.builder.JavaBuilder.buildDeltas(JavaBuilder.java:289)
- at org.eclipse.jdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:212)
- at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:853)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:232)
- at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:281)
- at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:334)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:337)
- at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:389)
- at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:410)
- at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:160)
- at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:251)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-Contains: Could not delete: C:\Users\Pulxes\Desktop\Developing mods for Cubes\Advanced Botany\1.7.10\bin\assets\ab\lang\ru_RU.lang.
-java.nio.file.FileSystemException: C:\Users\Pulxes\Desktop\Developing mods for Cubes\Advanced Botany\1.7.10\bin\assets\ab\lang\ru_RU.lang: Проце�� не может получить до�туп к файлу, так как �тот файл зан�т другим проце��ом
- at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:92)
- at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
- at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
- at java.base/sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:275)
- at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:110)
- at java.base/java.nio.file.Files.deleteIfExists(Files.java:1191)
- at org.eclipse.core.internal.filesystem.local.LocalFile.internalDelete(LocalFile.java:222)
- at org.eclipse.core.internal.filesystem.local.LocalFile.delete(LocalFile.java:139)
- at org.eclipse.core.internal.resources.ResourceTree.internalDeleteFile(ResourceTree.java:316)
- at org.eclipse.core.internal.resources.ResourceTree.standardDeleteFile(ResourceTree.java:802)
- at org.eclipse.core.internal.resources.Resource.unprotectedDelete(Resource.java:1784)
- at org.eclipse.core.internal.resources.Resource.delete(Resource.java:762)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:727)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:588)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:588)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:588)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:539)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.build(IncrementalImageBuilder.java:119)
- at org.eclipse.jdt.internal.core.builder.JavaBuilder.buildDeltas(JavaBuilder.java:289)
- at org.eclipse.jdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:212)
- at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:853)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:232)
- at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:281)
- at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:334)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:337)
- at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:389)
- at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:410)
- at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:160)
- at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:251)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-!SUBENTRY 1 org.eclipse.core.resources 4 273 2022-03-28 12:58:50.462
-!MESSAGE Problems encountered while deleting resources.
-!SUBENTRY 2 org.eclipse.core.resources 4 273 2022-03-28 12:58:50.462
-!MESSAGE Could not delete 'C:\Users\Pulxes\Desktop\Developing mods for Cubes\Advanced Botany\1.7.10\bin\assets\ab\lang\ru_RU.lang'.
-!STACK 1
-org.eclipse.core.runtime.CoreException: Problems encountered while deleting files.
- at org.eclipse.core.internal.filesystem.local.LocalFile.delete(LocalFile.java:141)
- at org.eclipse.core.internal.resources.ResourceTree.internalDeleteFile(ResourceTree.java:316)
- at org.eclipse.core.internal.resources.ResourceTree.standardDeleteFile(ResourceTree.java:802)
- at org.eclipse.core.internal.resources.Resource.unprotectedDelete(Resource.java:1784)
- at org.eclipse.core.internal.resources.Resource.delete(Resource.java:762)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:727)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:588)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:588)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:588)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:539)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.build(IncrementalImageBuilder.java:119)
- at org.eclipse.jdt.internal.core.builder.JavaBuilder.buildDeltas(JavaBuilder.java:289)
- at org.eclipse.jdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:212)
- at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:853)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:232)
- at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:281)
- at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:334)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:337)
- at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:389)
- at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:410)
- at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:160)
- at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:251)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-Contains: Could not delete: C:\Users\Pulxes\Desktop\Developing mods for Cubes\Advanced Botany\1.7.10\bin\assets\ab\lang\ru_RU.lang.
-java.nio.file.FileSystemException: C:\Users\Pulxes\Desktop\Developing mods for Cubes\Advanced Botany\1.7.10\bin\assets\ab\lang\ru_RU.lang: Проце�� не может получить до�туп к файлу, так как �тот файл зан�т другим проце��ом
- at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:92)
- at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
- at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
- at java.base/sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:275)
- at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:110)
- at java.base/java.nio.file.Files.deleteIfExists(Files.java:1191)
- at org.eclipse.core.internal.filesystem.local.LocalFile.internalDelete(LocalFile.java:222)
- at org.eclipse.core.internal.filesystem.local.LocalFile.delete(LocalFile.java:139)
- at org.eclipse.core.internal.resources.ResourceTree.internalDeleteFile(ResourceTree.java:316)
- at org.eclipse.core.internal.resources.ResourceTree.standardDeleteFile(ResourceTree.java:802)
- at org.eclipse.core.internal.resources.Resource.unprotectedDelete(Resource.java:1784)
- at org.eclipse.core.internal.resources.Resource.delete(Resource.java:762)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:727)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:588)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:588)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:588)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:539)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.build(IncrementalImageBuilder.java:119)
- at org.eclipse.jdt.internal.core.builder.JavaBuilder.buildDeltas(JavaBuilder.java:289)
- at org.eclipse.jdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:212)
- at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:853)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:232)
- at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:281)
- at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:334)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:337)
- at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:389)
- at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:410)
- at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:160)
- at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:251)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-!SUBENTRY 3 org.eclipse.core.filesystem 4 273 2022-03-28 12:58:50.463
-!MESSAGE Problems encountered while deleting files.
-!SUBENTRY 4 org.eclipse.core.filesystem 4 273 2022-03-28 12:58:50.463
-!MESSAGE Could not delete: C:\Users\Pulxes\Desktop\Developing mods for Cubes\Advanced Botany\1.7.10\bin\assets\ab\lang\ru_RU.lang.
-!STACK 0
-java.nio.file.FileSystemException: C:\Users\Pulxes\Desktop\Developing mods for Cubes\Advanced Botany\1.7.10\bin\assets\ab\lang\ru_RU.lang: Проце�� не может получить до�туп к файлу, так как �тот файл зан�т другим проце��ом
- at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:92)
- at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
- at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
- at java.base/sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:275)
- at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:110)
- at java.base/java.nio.file.Files.deleteIfExists(Files.java:1191)
- at org.eclipse.core.internal.filesystem.local.LocalFile.internalDelete(LocalFile.java:222)
- at org.eclipse.core.internal.filesystem.local.LocalFile.delete(LocalFile.java:139)
- at org.eclipse.core.internal.resources.ResourceTree.internalDeleteFile(ResourceTree.java:316)
- at org.eclipse.core.internal.resources.ResourceTree.standardDeleteFile(ResourceTree.java:802)
- at org.eclipse.core.internal.resources.Resource.unprotectedDelete(Resource.java:1784)
- at org.eclipse.core.internal.resources.Resource.delete(Resource.java:762)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:727)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:588)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:588)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:588)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.findSourceFiles(IncrementalImageBuilder.java:539)
- at org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.build(IncrementalImageBuilder.java:119)
- at org.eclipse.jdt.internal.core.builder.JavaBuilder.buildDeltas(JavaBuilder.java:289)
- at org.eclipse.jdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:212)
- at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:853)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:232)
- at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:281)
- at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:334)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:337)
- at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:389)
- at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:410)
- at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:160)
- at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:251)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-28 13:21:22.660
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-28 13:33:45.564
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-28 13:38:14.643
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-28 13:39:30.361
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-28 13:41:25.711
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-28 13:45:38.793
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.core.resources 2 10035 2022-03-28 13:57:36.194
+!ENTRY org.eclipse.core.resources 2 10035 2022-04-03 12:21:30.631
!MESSAGE The workspace will exit with unsaved changes in this session.
-!SESSION 2022-03-28 14:08:57.056 -----------------------------------------------
+!SESSION 2022-04-03 12:23:32.786 -----------------------------------------------
eclipse.buildId=4.22.0.I20211124-1800
java.version=17.0.1
java.vendor=Eclipse Adoptium
@@ -15932,12 +12934,548 @@ BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=ru_RU
Framework arguments: -product org.eclipse.epp.package.java.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
-!ENTRY org.eclipse.core.resources 2 10035 2022-03-28 14:09:00.008
+!ENTRY org.eclipse.core.resources 2 10035 2022-04-03 12:23:40.253
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.
-!ENTRY org.eclipse.jface 2 0 2022-03-28 14:09:01.973
+!ENTRY org.eclipse.jface 2 0 2022-04-03 12:23:47.954
!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
-!SUBENTRY 1 org.eclipse.jface 2 0 2022-03-28 14:09:01.973
+!SUBENTRY 1 org.eclipse.jface 2 0 2022-04-03 12:23:47.954
+!MESSAGE A conflict occurred for CTRL+SHIFT+T:
+Binding(CTRL+SHIFT+T,
+ ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type,
+ Open a type in a Java editor,
+ Category(org.eclipse.ui.category.navigate,Navigate,null,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@31e22365,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+Binding(CTRL+SHIFT+T,
+ ParameterizedCommand(Command(org.eclipse.lsp4e.symbolinworkspace,Go to Symbol in Workspace,
+ ,
+ Category(org.eclipse.lsp4e.category,Language Servers,null,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@2ebf524,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+!SUBENTRY 1 org.eclipse.jface 2 0 2022-04-03 12:23:47.954
+!MESSAGE A conflict occurred for ALT+SHIFT+R:
+Binding(ALT+SHIFT+R,
+ ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.rename.element,Rename - Refactoring ,
+ Rename the selected element,
+ Category(org.eclipse.jdt.ui.category.refactoring,Refactor - Java,Java Refactoring Actions,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@41bdaa81,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+Binding(ALT+SHIFT+R,
+ ParameterizedCommand(Command(org.eclipse.ui.edit.rename,Rename,
+ Rename the selected item,
+ Category(org.eclipse.ui.category.file,File,null,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@799971ac,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+
+!ENTRY org.eclipse.egit.ui 2 0 2022-04-03 12:23:51.337
+!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
+user global configuration and to define the default location to store repositories: 'C:\Users\Pulxes'. If this is
+not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
+EGit might behave differently since they see different configuration options.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-03 12:25:45.923
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.lsp4e 4 0 2022-04-03 12:29:41.342
+!MESSAGE Exception occurred while fetching the content type from the buffer
+!STACK 1
+org.eclipse.core.internal.resources.ResourceException(/Minecraft/src/main/java/ab/AdvancedBotanyTab.java)[368]: java.lang.Exception: Resource '/Minecraft/src/main/java/ab/AdvancedBotanyTab.java' does not exist.
+ at org.eclipse.core.internal.resources.ResourceException.provideStackTrace(ResourceException.java:42)
+ at org.eclipse.core.internal.resources.ResourceException.(ResourceException.java:38)
+ at org.eclipse.core.internal.resources.Resource.checkExists(Resource.java:330)
+ at org.eclipse.core.internal.resources.Resource.checkAccessible(Resource.java:204)
+ at org.eclipse.core.internal.resources.File.getContentDescription(File.java:253)
+ at org.eclipse.core.internal.filebuffers.ResourceTextFileBuffer.getContentType(ResourceTextFileBuffer.java:201)
+ at org.eclipse.lsp4e.LSPEclipseUtils.getDocumentContentTypes(LSPEclipseUtils.java:851)
+ at org.eclipse.lsp4e.LanguageServersRegistry.canUseLanguageServer(LanguageServersRegistry.java:403)
+ at org.eclipse.lsp4e.HasLanguageServerPropertyTester.test(HasLanguageServerPropertyTester.java:34)
+ at org.eclipse.core.internal.expressions.Property.test(Property.java:65)
+ at org.eclipse.core.expressions.TestExpression.evaluate(TestExpression.java:107)
+ at org.eclipse.core.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:54)
+ at org.eclipse.core.expressions.WithExpression.evaluate(WithExpression.java:84)
+ at org.eclipse.core.expressions.CompositeExpression.evaluateOr(CompositeExpression.java:68)
+ at org.eclipse.core.expressions.OrExpression.evaluate(OrExpression.java:26)
+ at org.eclipse.ui.internal.texteditor.codemining.CodeMiningProviderDescriptor.matches(CodeMiningProviderDescriptor.java:189)
+ at org.eclipse.ui.internal.texteditor.codemining.CodeMiningProviderRegistry.getProviders(CodeMiningProviderRegistry.java:110)
+ at org.eclipse.ui.texteditor.AbstractTextEditor.installCodeMiningProviders(AbstractTextEditor.java:4022)
+ at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.installCodeMiningProviders(JavaEditor.java:4256)
+ at org.eclipse.ui.texteditor.AbstractTextEditor.initializeSourceViewer(AbstractTextEditor.java:4012)
+ at org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:3473)
+ at org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:64)
+ at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createPartControl(AbstractDecoratedTextEditor.java:454)
+ at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.createPartControl(JavaEditor.java:3093)
+ at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.createPartControl(CompilationUnitEditor.java:1521)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPartControl(CompatibilityPart.java:158)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor.createPartControl(CompatibilityEditor.java:96)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:365)
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
+ at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:568)
+ at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:995)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:960)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalInject(InjectorImpl.java:140)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:403)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:330)
+ at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:202)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:91)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:60)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:42)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:132)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:994)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:658)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:762)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$2.run(PartRenderingEngine.java:727)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:711)
+ at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.lambda$0(PartServiceImpl.java:105)
+ at org.eclipse.e4.ui.services.internal.events.UIEventHandler.lambda$0(UIEventHandler.java:38)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:236)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:133)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4779)
+ at org.eclipse.e4.ui.workbench.swt.DisplayUISynchronize.syncExec(DisplayUISynchronize.java:34)
+ at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
+ at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:205)
+ at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:203)
+ at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
+ at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:228)
+ at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:151)
+ at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:133)
+ at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:75)
+ at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:44)
+ at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:55)
+ at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:63)
+ at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:424)
+ at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElementGen(ElementContainerImpl.java:170)
+ at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:188)
+ at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.hidePart(PartServiceImpl.java:1381)
+ at org.eclipse.ui.internal.WorkbenchPage.hidePart(WorkbenchPage.java:1551)
+ at org.eclipse.ui.internal.WorkbenchPage.hidePart(WorkbenchPage.java:1503)
+ at org.eclipse.ui.internal.WorkbenchPage.closeEditors(WorkbenchPage.java:1473)
+ at org.eclipse.ui.internal.WorkbenchPage.closeEditor(WorkbenchPage.java:1597)
+ at org.eclipse.ui.texteditor.AbstractTextEditor.lambda$3(AbstractTextEditor.java:4273)
+ at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:40)
+ at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:185)
+ at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4035)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3635)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1154)
+ at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1045)
+ at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
+ at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644)
+ at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
+ at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:551)
+ at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:156)
+ at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152)
+ at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
+ at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
+ at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
+ at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
+ at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
+ at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:568)
+ at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
+ at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
+ at org.eclipse.equinox.launcher.Main.run(Main.java:1467)
+!SUBENTRY 1 org.eclipse.core.resources 4 368 2022-04-03 12:29:41.343
+!MESSAGE Resource '/Minecraft/src/main/java/ab/AdvancedBotanyTab.java' does not exist.
+!STACK 0
+java.lang.Exception: Resource '/Minecraft/src/main/java/ab/AdvancedBotanyTab.java' does not exist.
+ at org.eclipse.core.internal.resources.ResourceException.provideStackTrace(ResourceException.java:42)
+ at org.eclipse.core.internal.resources.ResourceException.(ResourceException.java:38)
+ at org.eclipse.core.internal.resources.Resource.checkExists(Resource.java:330)
+ at org.eclipse.core.internal.resources.Resource.checkAccessible(Resource.java:204)
+ at org.eclipse.core.internal.resources.File.getContentDescription(File.java:253)
+ at org.eclipse.core.internal.filebuffers.ResourceTextFileBuffer.getContentType(ResourceTextFileBuffer.java:201)
+ at org.eclipse.lsp4e.LSPEclipseUtils.getDocumentContentTypes(LSPEclipseUtils.java:851)
+ at org.eclipse.lsp4e.LanguageServersRegistry.canUseLanguageServer(LanguageServersRegistry.java:403)
+ at org.eclipse.lsp4e.HasLanguageServerPropertyTester.test(HasLanguageServerPropertyTester.java:34)
+ at org.eclipse.core.internal.expressions.Property.test(Property.java:65)
+ at org.eclipse.core.expressions.TestExpression.evaluate(TestExpression.java:107)
+ at org.eclipse.core.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:54)
+ at org.eclipse.core.expressions.WithExpression.evaluate(WithExpression.java:84)
+ at org.eclipse.core.expressions.CompositeExpression.evaluateOr(CompositeExpression.java:68)
+ at org.eclipse.core.expressions.OrExpression.evaluate(OrExpression.java:26)
+ at org.eclipse.ui.internal.texteditor.codemining.CodeMiningProviderDescriptor.matches(CodeMiningProviderDescriptor.java:189)
+ at org.eclipse.ui.internal.texteditor.codemining.CodeMiningProviderRegistry.getProviders(CodeMiningProviderRegistry.java:110)
+ at org.eclipse.ui.texteditor.AbstractTextEditor.installCodeMiningProviders(AbstractTextEditor.java:4022)
+ at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.installCodeMiningProviders(JavaEditor.java:4256)
+ at org.eclipse.ui.texteditor.AbstractTextEditor.initializeSourceViewer(AbstractTextEditor.java:4012)
+ at org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:3473)
+ at org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:64)
+ at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createPartControl(AbstractDecoratedTextEditor.java:454)
+ at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.createPartControl(JavaEditor.java:3093)
+ at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.createPartControl(CompilationUnitEditor.java:1521)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPartControl(CompatibilityPart.java:158)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor.createPartControl(CompatibilityEditor.java:96)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:365)
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
+ at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:568)
+ at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:995)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:960)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalInject(InjectorImpl.java:140)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:403)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:330)
+ at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:202)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:91)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:60)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:42)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:132)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:994)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:658)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:762)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$2.run(PartRenderingEngine.java:727)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:711)
+ at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.lambda$0(PartServiceImpl.java:105)
+ at org.eclipse.e4.ui.services.internal.events.UIEventHandler.lambda$0(UIEventHandler.java:38)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:236)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:133)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4779)
+ at org.eclipse.e4.ui.workbench.swt.DisplayUISynchronize.syncExec(DisplayUISynchronize.java:34)
+ at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
+ at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:205)
+ at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:203)
+ at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
+ at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:228)
+ at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:151)
+ at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:133)
+ at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:75)
+ at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:44)
+ at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:55)
+ at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:63)
+ at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:424)
+ at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElementGen(ElementContainerImpl.java:170)
+ at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:188)
+ at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.hidePart(PartServiceImpl.java:1381)
+ at org.eclipse.ui.internal.WorkbenchPage.hidePart(WorkbenchPage.java:1551)
+ at org.eclipse.ui.internal.WorkbenchPage.hidePart(WorkbenchPage.java:1503)
+ at org.eclipse.ui.internal.WorkbenchPage.closeEditors(WorkbenchPage.java:1473)
+ at org.eclipse.ui.internal.WorkbenchPage.closeEditor(WorkbenchPage.java:1597)
+ at org.eclipse.ui.texteditor.AbstractTextEditor.lambda$3(AbstractTextEditor.java:4273)
+ at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:40)
+ at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:185)
+ at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4035)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3635)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1154)
+ at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1045)
+ at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
+ at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644)
+ at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
+ at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:551)
+ at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:156)
+ at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152)
+ at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
+ at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
+ at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
+ at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
+ at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
+ at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:568)
+ at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
+ at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
+ at org.eclipse.equinox.launcher.Main.run(Main.java:1467)
+
+!ENTRY org.eclipse.lsp4e 4 0 2022-04-03 12:29:41.347
+!MESSAGE Exception occurred while fetching the content type from the buffer
+!STACK 1
+org.eclipse.core.internal.resources.ResourceException(/Minecraft/src/main/java/ab/AdvancedBotanyTab.java)[368]: java.lang.Exception: Resource '/Minecraft/src/main/java/ab/AdvancedBotanyTab.java' does not exist.
+ at org.eclipse.core.internal.resources.ResourceException.provideStackTrace(ResourceException.java:42)
+ at org.eclipse.core.internal.resources.ResourceException.(ResourceException.java:38)
+ at org.eclipse.core.internal.resources.Resource.checkExists(Resource.java:330)
+ at org.eclipse.core.internal.resources.Resource.checkAccessible(Resource.java:204)
+ at org.eclipse.core.internal.resources.File.getContentDescription(File.java:253)
+ at org.eclipse.core.internal.filebuffers.ResourceTextFileBuffer.getContentType(ResourceTextFileBuffer.java:201)
+ at org.eclipse.lsp4e.LSPEclipseUtils.getDocumentContentTypes(LSPEclipseUtils.java:851)
+ at org.eclipse.lsp4e.LanguageServersRegistry.canUseLanguageServer(LanguageServersRegistry.java:403)
+ at org.eclipse.lsp4e.HasLanguageServerPropertyTester.test(HasLanguageServerPropertyTester.java:34)
+ at org.eclipse.core.internal.expressions.Property.test(Property.java:65)
+ at org.eclipse.core.expressions.TestExpression.evaluate(TestExpression.java:107)
+ at org.eclipse.core.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:54)
+ at org.eclipse.core.expressions.WithExpression.evaluate(WithExpression.java:84)
+ at org.eclipse.core.expressions.CompositeExpression.evaluateOr(CompositeExpression.java:68)
+ at org.eclipse.core.expressions.OrExpression.evaluate(OrExpression.java:26)
+ at org.eclipse.ui.internal.texteditor.codemining.CodeMiningProviderDescriptor.matches(CodeMiningProviderDescriptor.java:189)
+ at org.eclipse.ui.internal.texteditor.codemining.CodeMiningProviderRegistry.getProviders(CodeMiningProviderRegistry.java:110)
+ at org.eclipse.ui.texteditor.AbstractTextEditor.installCodeMiningProviders(AbstractTextEditor.java:4022)
+ at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.installCodeMiningProviders(JavaEditor.java:4256)
+ at org.eclipse.ui.texteditor.AbstractTextEditor.initializeSourceViewer(AbstractTextEditor.java:4012)
+ at org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:3473)
+ at org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:64)
+ at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createPartControl(AbstractDecoratedTextEditor.java:454)
+ at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.createPartControl(JavaEditor.java:3093)
+ at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.createPartControl(CompilationUnitEditor.java:1521)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPartControl(CompatibilityPart.java:158)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor.createPartControl(CompatibilityEditor.java:96)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:365)
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
+ at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:568)
+ at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:995)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:960)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalInject(InjectorImpl.java:140)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:403)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:330)
+ at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:202)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:91)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:60)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:42)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:132)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:994)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:658)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:762)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$2.run(PartRenderingEngine.java:727)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:711)
+ at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.lambda$0(PartServiceImpl.java:105)
+ at org.eclipse.e4.ui.services.internal.events.UIEventHandler.lambda$0(UIEventHandler.java:38)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:236)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:133)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4779)
+ at org.eclipse.e4.ui.workbench.swt.DisplayUISynchronize.syncExec(DisplayUISynchronize.java:34)
+ at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
+ at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:205)
+ at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:203)
+ at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
+ at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:228)
+ at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:151)
+ at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:133)
+ at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:75)
+ at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:44)
+ at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:55)
+ at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:63)
+ at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:424)
+ at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElementGen(ElementContainerImpl.java:170)
+ at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:188)
+ at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.hidePart(PartServiceImpl.java:1381)
+ at org.eclipse.ui.internal.WorkbenchPage.hidePart(WorkbenchPage.java:1551)
+ at org.eclipse.ui.internal.WorkbenchPage.hidePart(WorkbenchPage.java:1503)
+ at org.eclipse.ui.internal.WorkbenchPage.closeEditors(WorkbenchPage.java:1473)
+ at org.eclipse.ui.internal.WorkbenchPage.closeEditor(WorkbenchPage.java:1597)
+ at org.eclipse.ui.texteditor.AbstractTextEditor.lambda$3(AbstractTextEditor.java:4273)
+ at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:40)
+ at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:185)
+ at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4035)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3635)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1154)
+ at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1045)
+ at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
+ at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644)
+ at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
+ at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:551)
+ at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:156)
+ at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152)
+ at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
+ at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
+ at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
+ at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
+ at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
+ at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:568)
+ at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
+ at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
+ at org.eclipse.equinox.launcher.Main.run(Main.java:1467)
+!SUBENTRY 1 org.eclipse.core.resources 4 368 2022-04-03 12:29:41.348
+!MESSAGE Resource '/Minecraft/src/main/java/ab/AdvancedBotanyTab.java' does not exist.
+!STACK 0
+java.lang.Exception: Resource '/Minecraft/src/main/java/ab/AdvancedBotanyTab.java' does not exist.
+ at org.eclipse.core.internal.resources.ResourceException.provideStackTrace(ResourceException.java:42)
+ at org.eclipse.core.internal.resources.ResourceException.(ResourceException.java:38)
+ at org.eclipse.core.internal.resources.Resource.checkExists(Resource.java:330)
+ at org.eclipse.core.internal.resources.Resource.checkAccessible(Resource.java:204)
+ at org.eclipse.core.internal.resources.File.getContentDescription(File.java:253)
+ at org.eclipse.core.internal.filebuffers.ResourceTextFileBuffer.getContentType(ResourceTextFileBuffer.java:201)
+ at org.eclipse.lsp4e.LSPEclipseUtils.getDocumentContentTypes(LSPEclipseUtils.java:851)
+ at org.eclipse.lsp4e.LanguageServersRegistry.canUseLanguageServer(LanguageServersRegistry.java:403)
+ at org.eclipse.lsp4e.HasLanguageServerPropertyTester.test(HasLanguageServerPropertyTester.java:34)
+ at org.eclipse.core.internal.expressions.Property.test(Property.java:65)
+ at org.eclipse.core.expressions.TestExpression.evaluate(TestExpression.java:107)
+ at org.eclipse.core.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:54)
+ at org.eclipse.core.expressions.WithExpression.evaluate(WithExpression.java:84)
+ at org.eclipse.core.expressions.CompositeExpression.evaluateOr(CompositeExpression.java:68)
+ at org.eclipse.core.expressions.OrExpression.evaluate(OrExpression.java:26)
+ at org.eclipse.ui.internal.texteditor.codemining.CodeMiningProviderDescriptor.matches(CodeMiningProviderDescriptor.java:189)
+ at org.eclipse.ui.internal.texteditor.codemining.CodeMiningProviderRegistry.getProviders(CodeMiningProviderRegistry.java:110)
+ at org.eclipse.ui.texteditor.AbstractTextEditor.installCodeMiningProviders(AbstractTextEditor.java:4022)
+ at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.installCodeMiningProviders(JavaEditor.java:4256)
+ at org.eclipse.ui.texteditor.AbstractTextEditor.initializeSourceViewer(AbstractTextEditor.java:4012)
+ at org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:3473)
+ at org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:64)
+ at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createPartControl(AbstractDecoratedTextEditor.java:454)
+ at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.createPartControl(JavaEditor.java:3093)
+ at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.createPartControl(CompilationUnitEditor.java:1521)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPartControl(CompatibilityPart.java:158)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor.createPartControl(CompatibilityEditor.java:96)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:365)
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
+ at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:568)
+ at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:995)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:960)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalInject(InjectorImpl.java:140)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:403)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:330)
+ at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:202)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:91)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:60)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:42)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:132)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:994)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:658)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:762)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$2.run(PartRenderingEngine.java:727)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:711)
+ at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.lambda$0(PartServiceImpl.java:105)
+ at org.eclipse.e4.ui.services.internal.events.UIEventHandler.lambda$0(UIEventHandler.java:38)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:236)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:133)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4779)
+ at org.eclipse.e4.ui.workbench.swt.DisplayUISynchronize.syncExec(DisplayUISynchronize.java:34)
+ at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
+ at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:205)
+ at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:203)
+ at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
+ at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:228)
+ at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:151)
+ at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:133)
+ at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:75)
+ at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:44)
+ at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:55)
+ at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:63)
+ at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:424)
+ at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElementGen(ElementContainerImpl.java:170)
+ at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:188)
+ at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.hidePart(PartServiceImpl.java:1381)
+ at org.eclipse.ui.internal.WorkbenchPage.hidePart(WorkbenchPage.java:1551)
+ at org.eclipse.ui.internal.WorkbenchPage.hidePart(WorkbenchPage.java:1503)
+ at org.eclipse.ui.internal.WorkbenchPage.closeEditors(WorkbenchPage.java:1473)
+ at org.eclipse.ui.internal.WorkbenchPage.closeEditor(WorkbenchPage.java:1597)
+ at org.eclipse.ui.texteditor.AbstractTextEditor.lambda$3(AbstractTextEditor.java:4273)
+ at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:40)
+ at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:185)
+ at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4035)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3635)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1154)
+ at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1045)
+ at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
+ at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644)
+ at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
+ at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:551)
+ at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:156)
+ at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152)
+ at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
+ at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
+ at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
+ at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
+ at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
+ at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:568)
+ at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
+ at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
+ at org.eclipse.equinox.launcher.Main.run(Main.java:1467)
+!SESSION 2022-04-03 12:31:48.406 -----------------------------------------------
+eclipse.buildId=4.22.0.I20211124-1800
+java.version=17.0.1
+java.vendor=Eclipse Adoptium
+BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=ru_RU
+Framework arguments: -product org.eclipse.epp.package.java.product
+Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
+
+!ENTRY org.eclipse.jface 2 0 2022-04-03 12:32:25.435
+!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
+!SUBENTRY 1 org.eclipse.jface 2 0 2022-04-03 12:32:25.436
+!MESSAGE A conflict occurred for CTRL+SHIFT+T:
+Binding(CTRL+SHIFT+T,
+ ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type,
+ Open a type in a Java editor,
+ Category(org.eclipse.ui.category.navigate,Navigate,null,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@2fafa7b5,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+Binding(CTRL+SHIFT+T,
+ ParameterizedCommand(Command(org.eclipse.lsp4e.symbolinworkspace,Go to Symbol in Workspace,
+ ,
+ Category(org.eclipse.lsp4e.category,Language Servers,null,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@181098bf,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+!SUBENTRY 1 org.eclipse.jface 2 0 2022-04-03 12:32:25.436
+!MESSAGE A conflict occurred for ALT+SHIFT+R:
+Binding(ALT+SHIFT+R,
+ ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.rename.element,Rename - Refactoring ,
+ Rename the selected element,
+ Category(org.eclipse.jdt.ui.category.refactoring,Refactor - Java,Java Refactoring Actions,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@632b5c79,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+Binding(ALT+SHIFT+R,
+ ParameterizedCommand(Command(org.eclipse.ui.edit.rename,Rename,
+ Rename the selected item,
+ Category(org.eclipse.ui.category.file,File,null,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@6a552721,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+
+!ENTRY org.eclipse.egit.ui 2 0 2022-04-03 12:32:28.446
+!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
+user global configuration and to define the default location to store repositories: 'C:\Users\Pulxes'. If this is
+not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
+EGit might behave differently since they see different configuration options.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-03 12:32:41.844
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.core.resources 2 10035 2022-04-03 12:36:29.235
+!MESSAGE The workspace will exit with unsaved changes in this session.
+!SESSION 2022-04-03 12:47:22.556 -----------------------------------------------
+eclipse.buildId=4.22.0.I20211124-1800
+java.version=17.0.1
+java.vendor=Eclipse Adoptium
+BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=ru_RU
+Framework arguments: -product org.eclipse.epp.package.java.product
+Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
+
+!ENTRY org.eclipse.core.resources 2 10035 2022-04-03 12:47:26.301
+!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.
+
+!ENTRY org.eclipse.jface 2 0 2022-04-03 12:47:28.308
+!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
+!SUBENTRY 1 org.eclipse.jface 2 0 2022-04-03 12:47:28.308
!MESSAGE A conflict occurred for CTRL+SHIFT+T:
Binding(CTRL+SHIFT+T,
ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type,
@@ -15955,7 +13493,7 @@ Binding(CTRL+SHIFT+T,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
-!SUBENTRY 1 org.eclipse.jface 2 0 2022-03-28 14:09:01.973
+!SUBENTRY 1 org.eclipse.jface 2 0 2022-04-03 12:47:28.308
!MESSAGE A conflict occurred for ALT+SHIFT+R:
Binding(ALT+SHIFT+R,
ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.rename.element,Rename - Refactoring ,
@@ -15974,47 +13512,602 @@ Binding(ALT+SHIFT+R,
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
-!ENTRY org.eclipse.egit.ui 2 0 2022-03-28 14:09:05.288
+!ENTRY org.eclipse.egit.ui 2 0 2022-04-03 12:47:31.494
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Users\Pulxes'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-28 14:09:56.709
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-03 12:55:57.581
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-28 14:29:40.125
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-28 14:36:53.359
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.debug.core 4 2 2022-03-28 14:39:11.393
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.debug.core".
-!STACK 0
-java.lang.NullPointerException: Cannot invoke "org.eclipse.m2e.core.internal.MavenPluginActivator.getMaven()" because the return value of "org.eclipse.m2e.core.internal.MavenPluginActivator.getDefault()" is null
- at org.eclipse.m2e.core.MavenPlugin.getMaven(MavenPlugin.java:46)
- at org.eclipse.m2e.sourcelookup.internal.launch.MavenSourceContainerResolver.resolveSourceContainer(MavenSourceContainerResolver.java:63)
- at org.eclipse.m2e.sourcelookup.internal.launch.MavenSourceContainerResolver.resolveSourceContainers(MavenSourceContainerResolver.java:50)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.getSourceContainer(AdvancedSourceLookupParticipant.java:144)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:72)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+!ENTRY org.eclipse.lsp4e 4 0 2022-04-03 13:02:37.988
+!MESSAGE Exception occurred while fetching the content type from the buffer
+!STACK 1
+org.eclipse.core.internal.resources.ResourceException(/Minecraft/src/main/java/ab/AdvancedBotanyTab.java)[368]: java.lang.Exception: Resource '/Minecraft/src/main/java/ab/AdvancedBotanyTab.java' does not exist.
+ at org.eclipse.core.internal.resources.ResourceException.provideStackTrace(ResourceException.java:42)
+ at org.eclipse.core.internal.resources.ResourceException.(ResourceException.java:38)
+ at org.eclipse.core.internal.resources.Resource.checkExists(Resource.java:330)
+ at org.eclipse.core.internal.resources.Resource.checkAccessible(Resource.java:204)
+ at org.eclipse.core.internal.resources.File.getContentDescription(File.java:253)
+ at org.eclipse.core.internal.filebuffers.ResourceTextFileBuffer.getContentType(ResourceTextFileBuffer.java:201)
+ at org.eclipse.lsp4e.LSPEclipseUtils.getDocumentContentTypes(LSPEclipseUtils.java:851)
+ at org.eclipse.lsp4e.LanguageServersRegistry.canUseLanguageServer(LanguageServersRegistry.java:403)
+ at org.eclipse.lsp4e.HasLanguageServerPropertyTester.test(HasLanguageServerPropertyTester.java:34)
+ at org.eclipse.core.internal.expressions.Property.test(Property.java:65)
+ at org.eclipse.core.expressions.TestExpression.evaluate(TestExpression.java:107)
+ at org.eclipse.core.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:54)
+ at org.eclipse.core.expressions.WithExpression.evaluate(WithExpression.java:84)
+ at org.eclipse.core.expressions.CompositeExpression.evaluateOr(CompositeExpression.java:68)
+ at org.eclipse.core.expressions.OrExpression.evaluate(OrExpression.java:26)
+ at org.eclipse.ui.internal.texteditor.codemining.CodeMiningProviderDescriptor.matches(CodeMiningProviderDescriptor.java:189)
+ at org.eclipse.ui.internal.texteditor.codemining.CodeMiningProviderRegistry.getProviders(CodeMiningProviderRegistry.java:110)
+ at org.eclipse.ui.texteditor.AbstractTextEditor.installCodeMiningProviders(AbstractTextEditor.java:4022)
+ at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.installCodeMiningProviders(JavaEditor.java:4256)
+ at org.eclipse.ui.texteditor.AbstractTextEditor.initializeSourceViewer(AbstractTextEditor.java:4012)
+ at org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:3473)
+ at org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:64)
+ at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createPartControl(AbstractDecoratedTextEditor.java:454)
+ at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.createPartControl(JavaEditor.java:3093)
+ at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.createPartControl(CompilationUnitEditor.java:1521)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPartControl(CompatibilityPart.java:158)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor.createPartControl(CompatibilityEditor.java:96)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:365)
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
+ at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:568)
+ at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:995)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:960)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalInject(InjectorImpl.java:140)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:403)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:330)
+ at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:202)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:91)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:60)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:42)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:132)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:994)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:658)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:762)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$2.run(PartRenderingEngine.java:727)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:711)
+ at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.lambda$0(PartServiceImpl.java:105)
+ at org.eclipse.e4.ui.services.internal.events.UIEventHandler.lambda$0(UIEventHandler.java:38)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:236)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:133)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4779)
+ at org.eclipse.e4.ui.workbench.swt.DisplayUISynchronize.syncExec(DisplayUISynchronize.java:34)
+ at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
+ at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:205)
+ at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:203)
+ at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
+ at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:228)
+ at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:151)
+ at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:133)
+ at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:75)
+ at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:44)
+ at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:55)
+ at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:63)
+ at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:424)
+ at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElementGen(ElementContainerImpl.java:170)
+ at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:188)
+ at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.hidePart(PartServiceImpl.java:1381)
+ at org.eclipse.ui.internal.WorkbenchPage.hidePart(WorkbenchPage.java:1551)
+ at org.eclipse.ui.internal.WorkbenchPage.hidePart(WorkbenchPage.java:1503)
+ at org.eclipse.ui.internal.WorkbenchPage.closeEditors(WorkbenchPage.java:1473)
+ at org.eclipse.ui.internal.WorkbenchPage.closeEditor(WorkbenchPage.java:1597)
+ at org.eclipse.ui.texteditor.AbstractTextEditor.lambda$3(AbstractTextEditor.java:4273)
+ at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:40)
+ at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:185)
+ at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4035)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3635)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1154)
+ at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1045)
+ at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
+ at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644)
+ at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
+ at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:551)
+ at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:156)
+ at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152)
+ at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
+ at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
+ at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
+ at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
+ at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
+ at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:568)
+ at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
+ at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
+ at org.eclipse.equinox.launcher.Main.run(Main.java:1467)
+!SUBENTRY 1 org.eclipse.core.resources 4 368 2022-04-03 13:02:37.990
+!MESSAGE Resource '/Minecraft/src/main/java/ab/AdvancedBotanyTab.java' does not exist.
+!STACK 0
+java.lang.Exception: Resource '/Minecraft/src/main/java/ab/AdvancedBotanyTab.java' does not exist.
+ at org.eclipse.core.internal.resources.ResourceException.provideStackTrace(ResourceException.java:42)
+ at org.eclipse.core.internal.resources.ResourceException.(ResourceException.java:38)
+ at org.eclipse.core.internal.resources.Resource.checkExists(Resource.java:330)
+ at org.eclipse.core.internal.resources.Resource.checkAccessible(Resource.java:204)
+ at org.eclipse.core.internal.resources.File.getContentDescription(File.java:253)
+ at org.eclipse.core.internal.filebuffers.ResourceTextFileBuffer.getContentType(ResourceTextFileBuffer.java:201)
+ at org.eclipse.lsp4e.LSPEclipseUtils.getDocumentContentTypes(LSPEclipseUtils.java:851)
+ at org.eclipse.lsp4e.LanguageServersRegistry.canUseLanguageServer(LanguageServersRegistry.java:403)
+ at org.eclipse.lsp4e.HasLanguageServerPropertyTester.test(HasLanguageServerPropertyTester.java:34)
+ at org.eclipse.core.internal.expressions.Property.test(Property.java:65)
+ at org.eclipse.core.expressions.TestExpression.evaluate(TestExpression.java:107)
+ at org.eclipse.core.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:54)
+ at org.eclipse.core.expressions.WithExpression.evaluate(WithExpression.java:84)
+ at org.eclipse.core.expressions.CompositeExpression.evaluateOr(CompositeExpression.java:68)
+ at org.eclipse.core.expressions.OrExpression.evaluate(OrExpression.java:26)
+ at org.eclipse.ui.internal.texteditor.codemining.CodeMiningProviderDescriptor.matches(CodeMiningProviderDescriptor.java:189)
+ at org.eclipse.ui.internal.texteditor.codemining.CodeMiningProviderRegistry.getProviders(CodeMiningProviderRegistry.java:110)
+ at org.eclipse.ui.texteditor.AbstractTextEditor.installCodeMiningProviders(AbstractTextEditor.java:4022)
+ at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.installCodeMiningProviders(JavaEditor.java:4256)
+ at org.eclipse.ui.texteditor.AbstractTextEditor.initializeSourceViewer(AbstractTextEditor.java:4012)
+ at org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:3473)
+ at org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:64)
+ at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createPartControl(AbstractDecoratedTextEditor.java:454)
+ at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.createPartControl(JavaEditor.java:3093)
+ at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.createPartControl(CompilationUnitEditor.java:1521)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPartControl(CompatibilityPart.java:158)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor.createPartControl(CompatibilityEditor.java:96)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:365)
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
+ at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:568)
+ at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:995)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:960)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalInject(InjectorImpl.java:140)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:403)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:330)
+ at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:202)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:91)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:60)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:42)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:132)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:994)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:658)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:762)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$2.run(PartRenderingEngine.java:727)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:711)
+ at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.lambda$0(PartServiceImpl.java:105)
+ at org.eclipse.e4.ui.services.internal.events.UIEventHandler.lambda$0(UIEventHandler.java:38)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:236)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:133)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4779)
+ at org.eclipse.e4.ui.workbench.swt.DisplayUISynchronize.syncExec(DisplayUISynchronize.java:34)
+ at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
+ at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:205)
+ at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:203)
+ at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
+ at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:228)
+ at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:151)
+ at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:133)
+ at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:75)
+ at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:44)
+ at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:55)
+ at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:63)
+ at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:424)
+ at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElementGen(ElementContainerImpl.java:170)
+ at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:188)
+ at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.hidePart(PartServiceImpl.java:1381)
+ at org.eclipse.ui.internal.WorkbenchPage.hidePart(WorkbenchPage.java:1551)
+ at org.eclipse.ui.internal.WorkbenchPage.hidePart(WorkbenchPage.java:1503)
+ at org.eclipse.ui.internal.WorkbenchPage.closeEditors(WorkbenchPage.java:1473)
+ at org.eclipse.ui.internal.WorkbenchPage.closeEditor(WorkbenchPage.java:1597)
+ at org.eclipse.ui.texteditor.AbstractTextEditor.lambda$3(AbstractTextEditor.java:4273)
+ at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:40)
+ at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:185)
+ at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4035)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3635)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1154)
+ at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1045)
+ at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
+ at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644)
+ at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
+ at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:551)
+ at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:156)
+ at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152)
+ at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
+ at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
+ at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
+ at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
+ at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
+ at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:568)
+ at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
+ at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
+ at org.eclipse.equinox.launcher.Main.run(Main.java:1467)
-!ENTRY org.eclipse.debug.core 4 125 2022-03-28 14:39:11.397
+!ENTRY org.eclipse.lsp4e 4 0 2022-04-03 13:02:37.994
+!MESSAGE Exception occurred while fetching the content type from the buffer
+!STACK 1
+org.eclipse.core.internal.resources.ResourceException(/Minecraft/src/main/java/ab/AdvancedBotanyTab.java)[368]: java.lang.Exception: Resource '/Minecraft/src/main/java/ab/AdvancedBotanyTab.java' does not exist.
+ at org.eclipse.core.internal.resources.ResourceException.provideStackTrace(ResourceException.java:42)
+ at org.eclipse.core.internal.resources.ResourceException.(ResourceException.java:38)
+ at org.eclipse.core.internal.resources.Resource.checkExists(Resource.java:330)
+ at org.eclipse.core.internal.resources.Resource.checkAccessible(Resource.java:204)
+ at org.eclipse.core.internal.resources.File.getContentDescription(File.java:253)
+ at org.eclipse.core.internal.filebuffers.ResourceTextFileBuffer.getContentType(ResourceTextFileBuffer.java:201)
+ at org.eclipse.lsp4e.LSPEclipseUtils.getDocumentContentTypes(LSPEclipseUtils.java:851)
+ at org.eclipse.lsp4e.LanguageServersRegistry.canUseLanguageServer(LanguageServersRegistry.java:403)
+ at org.eclipse.lsp4e.HasLanguageServerPropertyTester.test(HasLanguageServerPropertyTester.java:34)
+ at org.eclipse.core.internal.expressions.Property.test(Property.java:65)
+ at org.eclipse.core.expressions.TestExpression.evaluate(TestExpression.java:107)
+ at org.eclipse.core.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:54)
+ at org.eclipse.core.expressions.WithExpression.evaluate(WithExpression.java:84)
+ at org.eclipse.core.expressions.CompositeExpression.evaluateOr(CompositeExpression.java:68)
+ at org.eclipse.core.expressions.OrExpression.evaluate(OrExpression.java:26)
+ at org.eclipse.ui.internal.texteditor.codemining.CodeMiningProviderDescriptor.matches(CodeMiningProviderDescriptor.java:189)
+ at org.eclipse.ui.internal.texteditor.codemining.CodeMiningProviderRegistry.getProviders(CodeMiningProviderRegistry.java:110)
+ at org.eclipse.ui.texteditor.AbstractTextEditor.installCodeMiningProviders(AbstractTextEditor.java:4022)
+ at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.installCodeMiningProviders(JavaEditor.java:4256)
+ at org.eclipse.ui.texteditor.AbstractTextEditor.initializeSourceViewer(AbstractTextEditor.java:4012)
+ at org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:3473)
+ at org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:64)
+ at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createPartControl(AbstractDecoratedTextEditor.java:454)
+ at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.createPartControl(JavaEditor.java:3093)
+ at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.createPartControl(CompilationUnitEditor.java:1521)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPartControl(CompatibilityPart.java:158)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor.createPartControl(CompatibilityEditor.java:96)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:365)
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
+ at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:568)
+ at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:995)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:960)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalInject(InjectorImpl.java:140)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:403)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:330)
+ at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:202)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:91)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:60)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:42)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:132)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:994)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:658)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:762)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$2.run(PartRenderingEngine.java:727)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:711)
+ at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.lambda$0(PartServiceImpl.java:105)
+ at org.eclipse.e4.ui.services.internal.events.UIEventHandler.lambda$0(UIEventHandler.java:38)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:236)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:133)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4779)
+ at org.eclipse.e4.ui.workbench.swt.DisplayUISynchronize.syncExec(DisplayUISynchronize.java:34)
+ at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
+ at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:205)
+ at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:203)
+ at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
+ at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:228)
+ at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:151)
+ at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:133)
+ at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:75)
+ at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:44)
+ at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:55)
+ at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:63)
+ at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:424)
+ at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElementGen(ElementContainerImpl.java:170)
+ at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:188)
+ at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.hidePart(PartServiceImpl.java:1381)
+ at org.eclipse.ui.internal.WorkbenchPage.hidePart(WorkbenchPage.java:1551)
+ at org.eclipse.ui.internal.WorkbenchPage.hidePart(WorkbenchPage.java:1503)
+ at org.eclipse.ui.internal.WorkbenchPage.closeEditors(WorkbenchPage.java:1473)
+ at org.eclipse.ui.internal.WorkbenchPage.closeEditor(WorkbenchPage.java:1597)
+ at org.eclipse.ui.texteditor.AbstractTextEditor.lambda$3(AbstractTextEditor.java:4273)
+ at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:40)
+ at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:185)
+ at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4035)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3635)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1154)
+ at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1045)
+ at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
+ at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644)
+ at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
+ at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:551)
+ at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:156)
+ at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152)
+ at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
+ at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
+ at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
+ at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
+ at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
+ at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:568)
+ at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
+ at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
+ at org.eclipse.equinox.launcher.Main.run(Main.java:1467)
+!SUBENTRY 1 org.eclipse.core.resources 4 368 2022-04-03 13:02:37.995
+!MESSAGE Resource '/Minecraft/src/main/java/ab/AdvancedBotanyTab.java' does not exist.
+!STACK 0
+java.lang.Exception: Resource '/Minecraft/src/main/java/ab/AdvancedBotanyTab.java' does not exist.
+ at org.eclipse.core.internal.resources.ResourceException.provideStackTrace(ResourceException.java:42)
+ at org.eclipse.core.internal.resources.ResourceException.(ResourceException.java:38)
+ at org.eclipse.core.internal.resources.Resource.checkExists(Resource.java:330)
+ at org.eclipse.core.internal.resources.Resource.checkAccessible(Resource.java:204)
+ at org.eclipse.core.internal.resources.File.getContentDescription(File.java:253)
+ at org.eclipse.core.internal.filebuffers.ResourceTextFileBuffer.getContentType(ResourceTextFileBuffer.java:201)
+ at org.eclipse.lsp4e.LSPEclipseUtils.getDocumentContentTypes(LSPEclipseUtils.java:851)
+ at org.eclipse.lsp4e.LanguageServersRegistry.canUseLanguageServer(LanguageServersRegistry.java:403)
+ at org.eclipse.lsp4e.HasLanguageServerPropertyTester.test(HasLanguageServerPropertyTester.java:34)
+ at org.eclipse.core.internal.expressions.Property.test(Property.java:65)
+ at org.eclipse.core.expressions.TestExpression.evaluate(TestExpression.java:107)
+ at org.eclipse.core.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:54)
+ at org.eclipse.core.expressions.WithExpression.evaluate(WithExpression.java:84)
+ at org.eclipse.core.expressions.CompositeExpression.evaluateOr(CompositeExpression.java:68)
+ at org.eclipse.core.expressions.OrExpression.evaluate(OrExpression.java:26)
+ at org.eclipse.ui.internal.texteditor.codemining.CodeMiningProviderDescriptor.matches(CodeMiningProviderDescriptor.java:189)
+ at org.eclipse.ui.internal.texteditor.codemining.CodeMiningProviderRegistry.getProviders(CodeMiningProviderRegistry.java:110)
+ at org.eclipse.ui.texteditor.AbstractTextEditor.installCodeMiningProviders(AbstractTextEditor.java:4022)
+ at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.installCodeMiningProviders(JavaEditor.java:4256)
+ at org.eclipse.ui.texteditor.AbstractTextEditor.initializeSourceViewer(AbstractTextEditor.java:4012)
+ at org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:3473)
+ at org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:64)
+ at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createPartControl(AbstractDecoratedTextEditor.java:454)
+ at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.createPartControl(JavaEditor.java:3093)
+ at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.createPartControl(CompilationUnitEditor.java:1521)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPartControl(CompatibilityPart.java:158)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor.createPartControl(CompatibilityEditor.java:96)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:365)
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
+ at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:568)
+ at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:995)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:960)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalInject(InjectorImpl.java:140)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:403)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:330)
+ at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:202)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:91)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:60)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:42)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:132)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:994)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:658)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:762)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$2.run(PartRenderingEngine.java:727)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:711)
+ at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.lambda$0(PartServiceImpl.java:105)
+ at org.eclipse.e4.ui.services.internal.events.UIEventHandler.lambda$0(UIEventHandler.java:38)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:236)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:133)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4779)
+ at org.eclipse.e4.ui.workbench.swt.DisplayUISynchronize.syncExec(DisplayUISynchronize.java:34)
+ at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
+ at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:205)
+ at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:203)
+ at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
+ at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:228)
+ at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:151)
+ at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:133)
+ at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:75)
+ at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:44)
+ at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:55)
+ at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:63)
+ at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:424)
+ at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElementGen(ElementContainerImpl.java:170)
+ at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:188)
+ at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.hidePart(PartServiceImpl.java:1381)
+ at org.eclipse.ui.internal.WorkbenchPage.hidePart(WorkbenchPage.java:1551)
+ at org.eclipse.ui.internal.WorkbenchPage.hidePart(WorkbenchPage.java:1503)
+ at org.eclipse.ui.internal.WorkbenchPage.closeEditors(WorkbenchPage.java:1473)
+ at org.eclipse.ui.internal.WorkbenchPage.closeEditor(WorkbenchPage.java:1597)
+ at org.eclipse.ui.texteditor.AbstractTextEditor.lambda$3(AbstractTextEditor.java:4273)
+ at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:40)
+ at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:185)
+ at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4035)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3635)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1154)
+ at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1045)
+ at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
+ at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644)
+ at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
+ at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:551)
+ at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:156)
+ at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152)
+ at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
+ at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
+ at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
+ at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
+ at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
+ at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:568)
+ at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
+ at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
+ at org.eclipse.equinox.launcher.Main.run(Main.java:1467)
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-03 13:24:53.652
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-03 13:52:19.101
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-03 13:55:44.854
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-03 14:11:25.797
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-03 14:53:43.790
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-03 14:55:00.398
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-03 15:07:09.379
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-03 16:11:13.842
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-03 16:14:40.378
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-03 16:15:18.192
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-03 16:15:47.573
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-03 16:19:39.570
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-03 16:29:02.143
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-03 16:30:41.347
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-03 16:43:58.907
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-03 16:46:24.906
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-03 16:47:04.503
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-03 16:48:17.582
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-03 16:55:25.866
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-03 16:56:13.458
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-03 17:58:24.493
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-03 18:04:00.293
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-03 18:07:19.683
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-03 18:10:20.811
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-03 18:12:47.095
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-03 18:22:16.190
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-03 18:24:04.174
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-03 18:25:10.166
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-03 18:26:43.732
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-03 18:27:41.300
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-03 18:35:50.581
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-03 18:40:44.059
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-03 18:45:04.579
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 08:34:04.129
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 09:16:42.778
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 09:22:36.082
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.debug.core 4 125 2022-04-04 09:23:03.705
!MESSAGE Error logged from Debug Core:
+!STACK 1
+org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.throwDebugException(JDIDebugElement.java:263)
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.requestFailed(JDIDebugElement.java:202)
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.targetRequestFailed(JDIDebugElement.java:182)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1585)
+ at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.clearSourceElements(AbstractSourceLookupDirector.java:652)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.updateDebugElement(AdvancedSourceLookupParticipant.java:215)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.cacheContainer(AdvancedSourceLookupParticipant.java:162)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.getSourceContainer(AdvancedSourceLookupParticipant.java:146)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:72)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
+ at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
+ at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
+ at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
+ at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
+ ... 17 more
+!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-04-04 09:23:03.705
+!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
!STACK 0
-java.lang.NullPointerException: Cannot invoke "org.eclipse.m2e.core.internal.MavenPluginActivator.getMaven()" because the return value of "org.eclipse.m2e.core.internal.MavenPluginActivator.getDefault()" is null
- at org.eclipse.m2e.core.MavenPlugin.getMaven(MavenPlugin.java:46)
- at org.eclipse.m2e.sourcelookup.internal.launch.MavenSourceContainerResolver.resolveSourceContainer(MavenSourceContainerResolver.java:63)
- at org.eclipse.m2e.sourcelookup.internal.launch.MavenSourceContainerResolver.resolveSourceContainers(MavenSourceContainerResolver.java:50)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.getSourceContainer(AdvancedSourceLookupParticipant.java:144)
+com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
+ at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
+ at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
+ at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
+ at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
+ at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.clearSourceElements(AbstractSourceLookupDirector.java:652)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.updateDebugElement(AdvancedSourceLookupParticipant.java:215)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.cacheContainer(AdvancedSourceLookupParticipant.java:162)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.getSourceContainer(AdvancedSourceLookupParticipant.java:146)
at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:72)
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
@@ -16024,9 +14117,718 @@ java.lang.NullPointerException: Cannot invoke "org.eclipse.m2e.core.internal.Mav
at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-!ENTRY org.eclipse.core.resources 2 10035 2022-03-28 14:39:12.258
+!ENTRY org.eclipse.debug.core 4 125 2022-04-04 09:23:03.707
+!MESSAGE Error logged from Debug Core:
+!STACK 1
+org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.throwDebugException(JDIDebugElement.java:263)
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.requestFailed(JDIDebugElement.java:202)
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.targetRequestFailed(JDIDebugElement.java:182)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1585)
+ at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
+ at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
+ at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
+ at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
+ at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
+ ... 9 more
+!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-04-04 09:23:03.707
+!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
+!STACK 0
+com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
+ at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
+ at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
+ at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
+ at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
+ at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 09:27:19.815
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 09:27:40.001
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 09:51:44.047
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 10:16:56.422
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 10:19:31.773
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 10:20:28.454
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 10:32:10.078
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 10:48:06.581
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 10:55:41.136
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 10:57:20.754
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 10:59:28.707
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 11:00:28.055
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 11:01:35.024
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 11:02:47.126
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 11:04:24.760
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 11:07:00.350
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 11:34:51.923
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 11:36:10.012
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 11:37:13.133
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 11:40:14.482
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 12:40:21.050
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 12:41:32.673
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 12:41:47.207
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 12:42:11.893
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 12:43:10.876
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 12:44:19.407
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 12:44:55.066
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 12:45:25.721
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 12:59:23.583
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 13:01:04.050
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.debug.core 4 125 2022-04-04 13:07:25.347
+!MESSAGE Error logged from Debug Core:
+!STACK 1
+org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.throwDebugException(JDIDebugElement.java:263)
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.requestFailed(JDIDebugElement.java:202)
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.targetRequestFailed(JDIDebugElement.java:182)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1585)
+ at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.clearSourceElements(AbstractSourceLookupDirector.java:652)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.updateDebugElement(AdvancedSourceLookupParticipant.java:215)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.cacheContainer(AdvancedSourceLookupParticipant.java:162)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.getSourceContainer(AdvancedSourceLookupParticipant.java:146)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:72)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
+ at org.eclipse.debug.ui.DebugUITools.lookupSource(DebugUITools.java:1229)
+ at org.eclipse.jdt.internal.debug.ui.JavaDebugOptionsManager.getProblem(JavaDebugOptionsManager.java:718)
+ at org.eclipse.jdt.internal.debug.ui.JDIModelPresentation.getThreadText(JDIModelPresentation.java:355)
+ at org.eclipse.jdt.internal.debug.ui.JDIModelPresentation.getText(JDIModelPresentation.java:252)
+ at org.eclipse.debug.internal.ui.LazyModelPresentation.getText(LazyModelPresentation.java:188)
+ at org.eclipse.debug.internal.ui.DelegatingModelPresentation.getText(DelegatingModelPresentation.java:151)
+ at org.eclipse.debug.internal.ui.model.elements.DebugElementLabelProvider.getLabel(DebugElementLabelProvider.java:39)
+ at org.eclipse.debug.internal.ui.model.elements.ElementLabelProvider.getLabel(ElementLabelProvider.java:297)
+ at org.eclipse.debug.internal.ui.model.elements.ElementLabelProvider.retrieveLabel(ElementLabelProvider.java:200)
+ at org.eclipse.debug.internal.ui.model.elements.ElementLabelProvider$LabelUpdater.run(ElementLabelProvider.java:147)
+ at org.eclipse.debug.internal.ui.model.elements.ElementLabelProvider$LabelJob.run(ElementLabelProvider.java:74)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
+ at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
+ at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
+ at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
+ at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
+ ... 27 more
+!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-04-04 13:07:25.347
+!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
+!STACK 0
+com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
+ at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
+ at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
+ at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
+ at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
+ at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.clearSourceElements(AbstractSourceLookupDirector.java:652)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.updateDebugElement(AdvancedSourceLookupParticipant.java:215)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.cacheContainer(AdvancedSourceLookupParticipant.java:162)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.getSourceContainer(AdvancedSourceLookupParticipant.java:146)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:72)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
+ at org.eclipse.debug.ui.DebugUITools.lookupSource(DebugUITools.java:1229)
+ at org.eclipse.jdt.internal.debug.ui.JavaDebugOptionsManager.getProblem(JavaDebugOptionsManager.java:718)
+ at org.eclipse.jdt.internal.debug.ui.JDIModelPresentation.getThreadText(JDIModelPresentation.java:355)
+ at org.eclipse.jdt.internal.debug.ui.JDIModelPresentation.getText(JDIModelPresentation.java:252)
+ at org.eclipse.debug.internal.ui.LazyModelPresentation.getText(LazyModelPresentation.java:188)
+ at org.eclipse.debug.internal.ui.DelegatingModelPresentation.getText(DelegatingModelPresentation.java:151)
+ at org.eclipse.debug.internal.ui.model.elements.DebugElementLabelProvider.getLabel(DebugElementLabelProvider.java:39)
+ at org.eclipse.debug.internal.ui.model.elements.ElementLabelProvider.getLabel(ElementLabelProvider.java:297)
+ at org.eclipse.debug.internal.ui.model.elements.ElementLabelProvider.retrieveLabel(ElementLabelProvider.java:200)
+ at org.eclipse.debug.internal.ui.model.elements.ElementLabelProvider$LabelUpdater.run(ElementLabelProvider.java:147)
+ at org.eclipse.debug.internal.ui.model.elements.ElementLabelProvider$LabelJob.run(ElementLabelProvider.java:74)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.debug.core 4 125 2022-04-04 13:07:25.348
+!MESSAGE Error logged from Debug Core:
+!STACK 1
+org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.throwDebugException(JDIDebugElement.java:263)
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.requestFailed(JDIDebugElement.java:202)
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.targetRequestFailed(JDIDebugElement.java:182)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1585)
+ at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
+ at org.eclipse.debug.ui.DebugUITools.lookupSource(DebugUITools.java:1229)
+ at org.eclipse.jdt.internal.debug.ui.JavaDebugOptionsManager.getProblem(JavaDebugOptionsManager.java:718)
+ at org.eclipse.jdt.internal.debug.ui.JDIModelPresentation.getThreadText(JDIModelPresentation.java:355)
+ at org.eclipse.jdt.internal.debug.ui.JDIModelPresentation.getText(JDIModelPresentation.java:252)
+ at org.eclipse.debug.internal.ui.LazyModelPresentation.getText(LazyModelPresentation.java:188)
+ at org.eclipse.debug.internal.ui.DelegatingModelPresentation.getText(DelegatingModelPresentation.java:151)
+ at org.eclipse.debug.internal.ui.model.elements.DebugElementLabelProvider.getLabel(DebugElementLabelProvider.java:39)
+ at org.eclipse.debug.internal.ui.model.elements.ElementLabelProvider.getLabel(ElementLabelProvider.java:297)
+ at org.eclipse.debug.internal.ui.model.elements.ElementLabelProvider.retrieveLabel(ElementLabelProvider.java:200)
+ at org.eclipse.debug.internal.ui.model.elements.ElementLabelProvider$LabelUpdater.run(ElementLabelProvider.java:147)
+ at org.eclipse.debug.internal.ui.model.elements.ElementLabelProvider$LabelJob.run(ElementLabelProvider.java:74)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
+ at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
+ at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
+ at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
+ at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
+ ... 19 more
+!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-04-04 13:07:25.349
+!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
+!STACK 0
+com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
+ at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
+ at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
+ at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
+ at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
+ at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
+ at org.eclipse.debug.ui.DebugUITools.lookupSource(DebugUITools.java:1229)
+ at org.eclipse.jdt.internal.debug.ui.JavaDebugOptionsManager.getProblem(JavaDebugOptionsManager.java:718)
+ at org.eclipse.jdt.internal.debug.ui.JDIModelPresentation.getThreadText(JDIModelPresentation.java:355)
+ at org.eclipse.jdt.internal.debug.ui.JDIModelPresentation.getText(JDIModelPresentation.java:252)
+ at org.eclipse.debug.internal.ui.LazyModelPresentation.getText(LazyModelPresentation.java:188)
+ at org.eclipse.debug.internal.ui.DelegatingModelPresentation.getText(DelegatingModelPresentation.java:151)
+ at org.eclipse.debug.internal.ui.model.elements.DebugElementLabelProvider.getLabel(DebugElementLabelProvider.java:39)
+ at org.eclipse.debug.internal.ui.model.elements.ElementLabelProvider.getLabel(ElementLabelProvider.java:297)
+ at org.eclipse.debug.internal.ui.model.elements.ElementLabelProvider.retrieveLabel(ElementLabelProvider.java:200)
+ at org.eclipse.debug.internal.ui.model.elements.ElementLabelProvider$LabelUpdater.run(ElementLabelProvider.java:147)
+ at org.eclipse.debug.internal.ui.model.elements.ElementLabelProvider$LabelJob.run(ElementLabelProvider.java:74)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 13:07:34.063
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 13:08:40.729
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 13:11:27.028
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 13:13:27.049
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 13:14:31.375
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 13:14:48.746
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 13:15:43.090
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 13:16:09.714
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 13:16:37.705
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 13:19:14.067
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 13:20:12.188
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 13:20:31.621
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 13:36:10.864
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 13:36:27.602
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 13:36:51.968
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 13:37:01.843
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 13:37:54.676
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 16:17:14.443
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 16:18:14.881
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 16:18:36.400
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 16:20:31.999
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 16:21:35.257
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 16:23:10.766
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 16:23:26.431
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 16:24:12.419
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 16:24:39.198
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 16:25:16.256
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.debug.core 4 125 2022-04-04 16:31:59.647
+!MESSAGE Error logged from Debug Core:
+!STACK 1
+org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.throwDebugException(JDIDebugElement.java:263)
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.requestFailed(JDIDebugElement.java:202)
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.targetRequestFailed(JDIDebugElement.java:182)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1585)
+ at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.clearSourceElements(AbstractSourceLookupDirector.java:652)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.updateDebugElement(AdvancedSourceLookupParticipant.java:215)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.cacheContainer(AdvancedSourceLookupParticipant.java:162)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.getSourceContainer(AdvancedSourceLookupParticipant.java:146)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:72)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
+ at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
+ at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
+ at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
+ at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
+ ... 17 more
+!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-04-04 16:31:59.647
+!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
+!STACK 0
+com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
+ at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
+ at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
+ at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
+ at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
+ at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.clearSourceElements(AbstractSourceLookupDirector.java:652)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.updateDebugElement(AdvancedSourceLookupParticipant.java:215)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.cacheContainer(AdvancedSourceLookupParticipant.java:162)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.getSourceContainer(AdvancedSourceLookupParticipant.java:146)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:72)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.debug.core 4 125 2022-04-04 16:31:59.648
+!MESSAGE Error logged from Debug Core:
+!STACK 1
+org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.throwDebugException(JDIDebugElement.java:263)
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.requestFailed(JDIDebugElement.java:202)
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.targetRequestFailed(JDIDebugElement.java:182)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1585)
+ at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
+ at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
+ at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
+ at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
+ at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
+ ... 9 more
+!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-04-04 16:31:59.648
+!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
+!STACK 0
+com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
+ at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
+ at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
+ at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
+ at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
+ at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 16:32:01.747
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 16:33:08.726
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 16:33:30.389
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 16:33:47.040
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 16:34:10.570
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 16:34:30.550
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 16:34:41.587
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 16:34:53.724
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 16:52:13.902
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 16:52:21.562
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 16:53:56.711
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 16:56:20.089
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 16:56:50.437
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 16:58:22.572
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 17:00:57.644
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 17:01:54.160
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 17:02:07.005
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 17:02:21.583
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 17:03:07.606
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 17:03:32.831
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 17:09:54.640
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 17:27:58.736
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 17:29:03.095
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 17:31:23.671
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 17:34:18.848
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 17:36:37.300
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 17:41:15.042
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 17:42:09.490
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 17:44:03.600
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-04 17:44:38.917
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-05 16:44:33.190
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-05 17:07:55.590
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-05 17:16:28.084
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-05 17:17:35.768
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-05 17:22:04.132
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-05 17:24:14.272
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-05 17:26:06.039
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-05 17:28:09.794
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-05 17:30:35.223
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-05 17:33:12.678
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-05 17:36:11.011
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-05 17:37:48.161
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-05 17:41:34.421
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-06 10:11:39.959
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-06 10:13:41.087
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-06 10:13:41.271
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-06 10:15:17.911
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-06 10:28:55.840
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-06 10:31:35.752
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-06 10:40:34.417
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-06 10:46:08.938
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-06 10:47:54.903
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-06 10:49:55.976
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-06 10:50:44.695
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-06 10:51:26.615
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-06 10:51:39.507
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-06 11:00:44.925
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-06 11:01:03.150
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-06 11:44:37.068
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-06 11:54:03.622
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-06 12:00:43.007
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-06 12:01:22.174
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-06 12:01:41.943
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-06 12:02:13.800
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-06 12:02:35.340
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-06 12:03:11.332
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-06 12:04:40.475
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.core.resources 2 10035 2022-04-06 12:06:29.254
!MESSAGE The workspace will exit with unsaved changes in this session.
-!SESSION 2022-03-29 14:56:24.302 -----------------------------------------------
+!SESSION 2022-04-06 12:06:30.714 -----------------------------------------------
eclipse.buildId=4.22.0.I20211124-1800
java.version=17.0.1
java.vendor=Eclipse Adoptium
@@ -16034,18 +14836,18 @@ BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=ru_RU
Framework arguments: -product org.eclipse.epp.package.java.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
-!ENTRY org.eclipse.core.resources 2 10035 2022-03-29 14:57:22.616
+!ENTRY org.eclipse.core.resources 2 10035 2022-04-06 12:06:39.289
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.
-!ENTRY org.eclipse.jface 2 0 2022-03-29 14:57:24.521
+!ENTRY org.eclipse.jface 2 0 2022-04-06 12:06:46.423
!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
-!SUBENTRY 1 org.eclipse.jface 2 0 2022-03-29 14:57:24.521
+!SUBENTRY 1 org.eclipse.jface 2 0 2022-04-06 12:06:46.423
!MESSAGE A conflict occurred for CTRL+SHIFT+T:
Binding(CTRL+SHIFT+T,
ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type,
Open a type in a Java editor,
Category(org.eclipse.ui.category.navigate,Navigate,null,true),
- org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@7507d96c,
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@59c08cf1,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
@@ -16053,17 +14855,17 @@ Binding(CTRL+SHIFT+T,
ParameterizedCommand(Command(org.eclipse.lsp4e.symbolinworkspace,Go to Symbol in Workspace,
,
Category(org.eclipse.lsp4e.category,Language Servers,null,true),
- org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@7210f559,
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@45f0038,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
-!SUBENTRY 1 org.eclipse.jface 2 0 2022-03-29 14:57:24.521
+!SUBENTRY 1 org.eclipse.jface 2 0 2022-04-06 12:06:46.423
!MESSAGE A conflict occurred for ALT+SHIFT+R:
Binding(ALT+SHIFT+R,
ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.rename.element,Rename - Refactoring ,
Rename the selected element,
Category(org.eclipse.jdt.ui.category.refactoring,Refactor - Java,Java Refactoring Actions,true),
- org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@49b9ba6a,
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@289a4b90,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
@@ -16071,158 +14873,37 @@ Binding(ALT+SHIFT+R,
ParameterizedCommand(Command(org.eclipse.ui.edit.rename,Rename,
Rename the selected item,
Category(org.eclipse.ui.category.file,File,null,true),
- org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@7be62956,
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@1a3c4b3e,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
-!ENTRY org.eclipse.egit.ui 2 0 2022-03-29 14:57:27.984
+!ENTRY org.eclipse.egit.ui 2 0 2022-04-06 12:06:50.667
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Users\Pulxes'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-29 14:59:34.498
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-06 12:23:03.881
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-29 15:53:36.541
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-06 12:24:54.254
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-29 16:24:44.480
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!SESSION 2022-03-30 10:55:50.250 -----------------------------------------------
-eclipse.buildId=4.22.0.I20211124-1800
-java.version=17.0.1
-java.vendor=Eclipse Adoptium
-BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=ru_RU
-Framework arguments: -product org.eclipse.epp.package.java.product
-Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
-
-!ENTRY org.eclipse.jface 2 0 2022-03-30 10:55:59.590
-!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
-!SUBENTRY 1 org.eclipse.jface 2 0 2022-03-30 10:55:59.590
-!MESSAGE A conflict occurred for CTRL+SHIFT+T:
-Binding(CTRL+SHIFT+T,
- ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type,
- Open a type in a Java editor,
- Category(org.eclipse.ui.category.navigate,Navigate,null,true),
- org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@24dc150c,
- ,,true),null),
- org.eclipse.ui.defaultAcceleratorConfiguration,
- org.eclipse.ui.contexts.window,,,system)
-Binding(CTRL+SHIFT+T,
- ParameterizedCommand(Command(org.eclipse.lsp4e.symbolinworkspace,Go to Symbol in Workspace,
- ,
- Category(org.eclipse.lsp4e.category,Language Servers,null,true),
- org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@1d2d4d7a,
- ,,true),null),
- org.eclipse.ui.defaultAcceleratorConfiguration,
- org.eclipse.ui.contexts.window,,,system)
-!SUBENTRY 1 org.eclipse.jface 2 0 2022-03-30 10:55:59.590
-!MESSAGE A conflict occurred for ALT+SHIFT+R:
-Binding(ALT+SHIFT+R,
- ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.rename.element,Rename - Refactoring ,
- Rename the selected element,
- Category(org.eclipse.jdt.ui.category.refactoring,Refactor - Java,Java Refactoring Actions,true),
- org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@5e020dd1,
- ,,true),null),
- org.eclipse.ui.defaultAcceleratorConfiguration,
- org.eclipse.ui.contexts.window,,,system)
-Binding(ALT+SHIFT+R,
- ParameterizedCommand(Command(org.eclipse.ui.edit.rename,Rename,
- Rename the selected item,
- Category(org.eclipse.ui.category.file,File,null,true),
- org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@4bbc02ef,
- ,,true),null),
- org.eclipse.ui.defaultAcceleratorConfiguration,
- org.eclipse.ui.contexts.window,,,system)
-
-!ENTRY org.eclipse.egit.ui 2 0 2022-03-30 10:56:07.134
-!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
-user global configuration and to define the default location to store repositories: 'C:\Users\Pulxes'. If this is
-not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
-EGit might behave differently since they see different configuration options.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 10:56:17.307
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-06 12:31:15.861
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 11:00:58.124
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-06 12:33:51.943
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.core.resources 2 10035 2022-03-30 11:26:08.915
-!MESSAGE The workspace will exit with unsaved changes in this session.
-!SESSION 2022-03-30 11:26:09.935 -----------------------------------------------
-eclipse.buildId=4.22.0.I20211124-1800
-java.version=17.0.1
-java.vendor=Eclipse Adoptium
-BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=ru_RU
-Framework arguments: -product org.eclipse.epp.package.java.product
-Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
-
-!ENTRY org.eclipse.core.resources 2 10035 2022-03-30 11:26:13.236
-!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.
-
-!ENTRY org.eclipse.jface 2 0 2022-03-30 11:26:15.360
-!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
-!SUBENTRY 1 org.eclipse.jface 2 0 2022-03-30 11:26:15.360
-!MESSAGE A conflict occurred for CTRL+SHIFT+T:
-Binding(CTRL+SHIFT+T,
- ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type,
- Open a type in a Java editor,
- Category(org.eclipse.ui.category.navigate,Navigate,null,true),
- org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@4746fb8c,
- ,,true),null),
- org.eclipse.ui.defaultAcceleratorConfiguration,
- org.eclipse.ui.contexts.window,,,system)
-Binding(CTRL+SHIFT+T,
- ParameterizedCommand(Command(org.eclipse.lsp4e.symbolinworkspace,Go to Symbol in Workspace,
- ,
- Category(org.eclipse.lsp4e.category,Language Servers,null,true),
- org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@3be46d9c,
- ,,true),null),
- org.eclipse.ui.defaultAcceleratorConfiguration,
- org.eclipse.ui.contexts.window,,,system)
-!SUBENTRY 1 org.eclipse.jface 2 0 2022-03-30 11:26:15.360
-!MESSAGE A conflict occurred for ALT+SHIFT+R:
-Binding(ALT+SHIFT+R,
- ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.rename.element,Rename - Refactoring ,
- Rename the selected element,
- Category(org.eclipse.jdt.ui.category.refactoring,Refactor - Java,Java Refactoring Actions,true),
- org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@41d877bb,
- ,,true),null),
- org.eclipse.ui.defaultAcceleratorConfiguration,
- org.eclipse.ui.contexts.window,,,system)
-Binding(ALT+SHIFT+R,
- ParameterizedCommand(Command(org.eclipse.ui.edit.rename,Rename,
- Rename the selected item,
- Category(org.eclipse.ui.category.file,File,null,true),
- org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@39c5a105,
- ,,true),null),
- org.eclipse.ui.defaultAcceleratorConfiguration,
- org.eclipse.ui.contexts.window,,,system)
-
-!ENTRY org.eclipse.egit.ui 2 0 2022-03-30 11:26:18.907
-!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
-user global configuration and to define the default location to store repositories: 'C:\Users\Pulxes'. If this is
-not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
-EGit might behave differently since they see different configuration options.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 11:26:56.882
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-06 12:50:49.939
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 11:53:53.613
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-06 12:52:18.061
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 11:55:37.955
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 11:57:02.843
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.debug.core 4 125 2022-03-30 12:03:26.516
+!ENTRY org.eclipse.debug.core 4 125 2022-04-06 12:56:16.253
!MESSAGE Error logged from Debug Core:
!STACK 1
org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
@@ -16259,7 +14940,7 @@ Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Mac
at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
... 17 more
-!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-03-30 12:03:26.517
+!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-04-06 12:56:16.254
!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
!STACK 0
com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
@@ -16291,7 +14972,7 @@ com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-!ENTRY org.eclipse.debug.core 4 125 2022-03-30 12:03:26.517
+!ENTRY org.eclipse.debug.core 4 125 2022-04-06 12:56:16.256
!MESSAGE Error logged from Debug Core:
!STACK 1
org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
@@ -16320,7 +15001,7 @@ Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Mac
at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
... 9 more
-!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-03-30 12:03:26.518
+!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-04-06 12:56:16.256
!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
!STACK 0
com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
@@ -16344,16 +15025,16 @@ com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 12:03:28.652
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-06 12:56:19.025
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 12:04:39.779
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-06 13:02:50.055
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 12:07:06.067
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-06 13:04:24.316
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.debug.core 4 125 2022-03-30 12:08:53.711
+!ENTRY org.eclipse.debug.core 4 125 2022-04-06 13:05:42.626
!MESSAGE Error logged from Debug Core:
!STACK 1
org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
@@ -16390,7 +15071,7 @@ Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Mac
at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
... 17 more
-!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-03-30 12:08:53.712
+!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-04-06 13:05:42.626
!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
!STACK 0
com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
@@ -16421,627 +15102,3 @@ com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.debug.core 4 125 2022-03-30 12:08:53.712
-!MESSAGE Error logged from Debug Core:
-!STACK 1
-org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.throwDebugException(JDIDebugElement.java:263)
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.requestFailed(JDIDebugElement.java:202)
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.targetRequestFailed(JDIDebugElement.java:182)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1585)
- at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
- at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
- at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
- at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
- at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
- ... 9 more
-!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-03-30 12:08:53.713
-!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
-!STACK 0
-com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
- at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
- at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
- at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
- at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
- at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 12:08:55.951
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.debug.core 4 125 2022-03-30 12:13:13.815
-!MESSAGE Error logged from Debug Core:
-!STACK 1
-org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.throwDebugException(JDIDebugElement.java:263)
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.requestFailed(JDIDebugElement.java:202)
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.targetRequestFailed(JDIDebugElement.java:182)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1585)
- at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.clearSourceElements(AbstractSourceLookupDirector.java:652)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.updateDebugElement(AdvancedSourceLookupParticipant.java:215)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.cacheContainer(AdvancedSourceLookupParticipant.java:162)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.getSourceContainer(AdvancedSourceLookupParticipant.java:146)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:72)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
- at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
- at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
- at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
- at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
- ... 17 more
-!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-03-30 12:13:13.815
-!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
-!STACK 0
-com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
- at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
- at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
- at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
- at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
- at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.clearSourceElements(AbstractSourceLookupDirector.java:652)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.updateDebugElement(AdvancedSourceLookupParticipant.java:215)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.cacheContainer(AdvancedSourceLookupParticipant.java:162)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.getSourceContainer(AdvancedSourceLookupParticipant.java:146)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:72)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.debug.core 4 125 2022-03-30 12:13:13.816
-!MESSAGE Error logged from Debug Core:
-!STACK 1
-org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.throwDebugException(JDIDebugElement.java:263)
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.requestFailed(JDIDebugElement.java:202)
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.targetRequestFailed(JDIDebugElement.java:182)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1585)
- at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
- at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
- at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
- at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
- at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
- ... 9 more
-!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-03-30 12:13:13.816
-!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
-!STACK 0
-com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
- at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
- at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
- at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
- at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
- at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 12:13:16.212
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 12:20:47.919
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 12:27:35.142
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 12:29:27.932
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-03-30 13:30:04.944
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.block.subtile;
-
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.world.World;
-import vazkii.botania.api.subtile.SubTileGenerating;
-
-public class SubTileArdentAzarcissus extends SubTileGenerating {
-
- public static final String playerName = "ArdentAzarcissus#21sda2gaj91*21df#111sfq3jrns@#";
- int cooldown;
- int workMana = 400;
-
- public void onUpdate() {
- super.onUpdate();
- World world = this.supertile.getWorldObj();
- int posX = this.supertile.xCoord;
- int posY = this.supertile.yCoord;
- int posZ = this.supertile.zCoord;
- if(world.isRemote)
- return;
- if(cooldown > 0) {
- cooldown--;
- return;
- }
- for(int i = -1; i <= 1; i++)
- for(int f = 0; f < 2; f++)
- for(int j = -1; j <= 1; j++) {
- int x = posX + i;
- int y = posY + f;
- int z = posZ + j;
- TileEntity tile = world.getTileEntity(x, y, z);
- if(tile != null && tile instanceof TileGameBoard) {
- TileGameBoard board = (TileGameBoard)tile;
- if(board.isSingleGame) {
- if(!board.hasGame()) {
- board.setPlayer(playerName, true);
- cooldown = 100;
- } else {
- if(!board.playersName[0].equals(playerName))
- board.playersName[0] = playerName;
- if(board.endGameTick == 0) {
- int winCount = slotChance[0] + slotChance[1]) (slotChance[2] + slotChance[3]
- board.finishGame(false);
- } else
- board.dropDice(playerName);
- cooldown = 100;
- }
- }
- }
- }
- }
-
- public int getMaxMana() {
- return 15000;
- }
-
- public int getColor() {
- return 0xd2cdb2;
- }
-
- public void writeToPacketNBT(NBTTagCompound cmp) {
- super.writeToPacketNBT(cmp);
- cmp.setInteger("cooldown", this.cooldown);
- }
-
- public void readFromPacketNBT(NBTTagCompound cmp) {
- super.readFromPacketNBT(cmp);
- this.cooldown = cmp.getInteger("cooldown");
- }
-}
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 2 2022-03-30 13:30:04.945
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 0 2022-03-30 13:30:04.946
-!MESSAGE Error in JDT Core during reconcile
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-03-30 13:30:04.953
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.block.subtile;
-
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.world.World;
-import vazkii.botania.api.subtile.SubTileGenerating;
-
-public class SubTileArdentAzarcissus extends SubTileGenerating {
-
- public static final String playerName = "ArdentAzarcissus#21sda2gaj91*21df#111sfq3jrns@#";
- int cooldown;
- int workMana = 400;
-
- public void onUpdate() {
- super.onUpdate();
- World world = this.supertile.getWorldObj();
- int posX = this.supertile.xCoord;
- int posY = this.supertile.yCoord;
- int posZ = this.supertile.zCoord;
- if(world.isRemote)
- return;
- if(cooldown > 0) {
- cooldown--;
- return;
- }
- for(int i = -1; i <= 1; i++)
- for(int f = 0; f < 2; f++)
- for(int j = -1; j <= 1; j++) {
- int x = posX + i;
- int y = posY + f;
- int z = posZ + j;
- TileEntity tile = world.getTileEntity(x, y, z);
- if(tile != null && tile instanceof TileGameBoard) {
- TileGameBoard board = (TileGameBoard)tile;
- if(board.isSingleGame) {
- if(!board.hasGame()) {
- board.setPlayer(playerName, true);
- cooldown = 100;
- } else {
- if(!board.playersName[0].equals(playerName))
- board.playersName[0] = playerName;
- if(board.endGameTick == 0) {
- int winCount = slotChance[0] + slotChance[1]) (slotChance[2] + slotChance[3]
- board.finishGame(false);
- } else
- board.dropDice(playerName);
- cooldown = 100;
- }
- }
- }
- }
- }
-
- public int getMaxMana() {
- return 15000;
- }
-
- public int getColor() {
- return 0xd2cdb2;
- }
-
- public void writeToPacketNBT(NBTTagCompound cmp) {
- super.writeToPacketNBT(cmp);
- cmp.setInteger("cooldown", this.cooldown);
- }
-
- public void readFromPacketNBT(NBTTagCompound cmp) {
- super.readFromPacketNBT(cmp);
- this.cooldown = cmp.getInteger("cooldown");
- }
-}
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-03-30 13:30:04.955
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
diff --git a/1.7.10/eclipse/.metadata/.log b/1.7.10/eclipse/.metadata/.log
index 8ebfc30..d9aef5f 100644
--- a/1.7.10/eclipse/.metadata/.log
+++ b/1.7.10/eclipse/.metadata/.log
@@ -1,4 +1,4 @@
-!SESSION 2022-03-30 11:26:09.935 -----------------------------------------------
+!SESSION 2022-04-06 12:06:30.714 -----------------------------------------------
eclipse.buildId=4.22.0.I20211124-1800
java.version=17.0.1
java.vendor=Eclipse Adoptium
@@ -7,80 +7,9 @@ Framework arguments: -product org.eclipse.epp.package.java.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
This is a continuation of log file C:\Users\Pulxes\Desktop\Developing mods for Cubes\Advanced Botany\1.7.10\eclipse\.metadata\.bak_0.log
-Created Time: 2022-03-30 13:30:04.958
+Created Time: 2022-04-06 13:05:42.630
-!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-03-30 13:30:04.958
-!MESSAGE Error in JDT Core during AST creation
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 13:32:40.115
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 13:38:41.026
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 13:43:59.616
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 13:50:41.941
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 13:57:49.441
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 14:00:01.708
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.debug.core 4 125 2022-03-30 15:00:37.029
+!ENTRY org.eclipse.debug.core 4 125 2022-04-06 13:05:42.630
!MESSAGE Error logged from Debug Core:
!STACK 1
org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
@@ -109,7 +38,7 @@ Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Mac
at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
... 9 more
-!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-03-30 15:00:37.029
+!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-04-06 13:05:42.631
!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
!STACK 0
com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
@@ -133,417 +62,45 @@ com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 15:00:37.336
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-06 13:05:46.313
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.debug.core 4 125 2022-03-30 15:31:01.674
-!MESSAGE Error logged from Debug Core:
-!STACK 1
-org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.throwDebugException(JDIDebugElement.java:263)
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.requestFailed(JDIDebugElement.java:202)
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.targetRequestFailed(JDIDebugElement.java:182)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1585)
- at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.clearSourceElements(AbstractSourceLookupDirector.java:652)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.updateDebugElement(AdvancedSourceLookupParticipant.java:215)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.cacheContainer(AdvancedSourceLookupParticipant.java:162)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.getSourceContainer(AdvancedSourceLookupParticipant.java:146)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:72)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
- at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
- at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
- at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
- at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
- ... 17 more
-!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-03-30 15:31:01.675
-!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
-!STACK 0
-com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
- at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
- at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
- at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
- at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
- at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.clearSourceElements(AbstractSourceLookupDirector.java:652)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.updateDebugElement(AdvancedSourceLookupParticipant.java:215)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.cacheContainer(AdvancedSourceLookupParticipant.java:162)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.getSourceContainer(AdvancedSourceLookupParticipant.java:146)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:72)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.debug.core 4 125 2022-03-30 15:31:01.675
-!MESSAGE Error logged from Debug Core:
-!STACK 1
-org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.throwDebugException(JDIDebugElement.java:263)
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.requestFailed(JDIDebugElement.java:202)
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.targetRequestFailed(JDIDebugElement.java:182)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1585)
- at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
- at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
- at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
- at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
- at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
- ... 9 more
-!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-03-30 15:31:01.676
-!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
-!STACK 0
-com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
- at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
- at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
- at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
- at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
- at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 15:31:04.842
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-06 13:12:56.137
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.debug.core 4 125 2022-03-30 15:33:38.735
-!MESSAGE Error logged from Debug Core:
-!STACK 1
-org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.throwDebugException(JDIDebugElement.java:263)
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.requestFailed(JDIDebugElement.java:202)
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.targetRequestFailed(JDIDebugElement.java:182)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1585)
- at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.clearSourceElements(AbstractSourceLookupDirector.java:652)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.updateDebugElement(AdvancedSourceLookupParticipant.java:215)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.cacheContainer(AdvancedSourceLookupParticipant.java:162)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.getSourceContainer(AdvancedSourceLookupParticipant.java:146)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:72)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
- at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
- at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
- at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
- at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
- ... 17 more
-!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-03-30 15:33:38.735
-!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
-!STACK 0
-com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
- at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
- at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
- at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
- at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
- at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.clearSourceElements(AbstractSourceLookupDirector.java:652)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.updateDebugElement(AdvancedSourceLookupParticipant.java:215)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.cacheContainer(AdvancedSourceLookupParticipant.java:162)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.getSourceContainer(AdvancedSourceLookupParticipant.java:146)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:72)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.debug.core 4 125 2022-03-30 15:33:38.736
-!MESSAGE Error logged from Debug Core:
-!STACK 1
-org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.throwDebugException(JDIDebugElement.java:263)
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.requestFailed(JDIDebugElement.java:202)
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.targetRequestFailed(JDIDebugElement.java:182)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1585)
- at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
- at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
- at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
- at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
- at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
- ... 9 more
-!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-03-30 15:33:38.736
-!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
-!STACK 0
-com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
- at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
- at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
- at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
- at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
- at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 15:33:42.008
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-06 13:13:11.036
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 15:47:32.351
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-06 13:15:19.659
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 15:51:50.563
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-06 13:16:45.993
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 15:54:37.000
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-06 13:18:25.451
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 16:00:05.929
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-06 13:29:44.788
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.debug.core 4 125 2022-03-30 16:04:35.829
-!MESSAGE Error logged from Debug Core:
-!STACK 1
-org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.throwDebugException(JDIDebugElement.java:263)
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.requestFailed(JDIDebugElement.java:202)
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.targetRequestFailed(JDIDebugElement.java:182)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1585)
- at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.clearSourceElements(AbstractSourceLookupDirector.java:652)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.updateDebugElement(AdvancedSourceLookupParticipant.java:215)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.cacheContainer(AdvancedSourceLookupParticipant.java:162)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.getSourceContainer(AdvancedSourceLookupParticipant.java:146)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:72)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
- at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
- at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
- at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
- at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
- ... 17 more
-!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-03-30 16:04:35.829
-!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
-!STACK 0
-com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
- at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
- at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
- at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
- at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
- at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.clearSourceElements(AbstractSourceLookupDirector.java:652)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.updateDebugElement(AdvancedSourceLookupParticipant.java:215)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.cacheContainer(AdvancedSourceLookupParticipant.java:162)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.getSourceContainer(AdvancedSourceLookupParticipant.java:146)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:72)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.debug.core 4 125 2022-03-30 16:04:35.830
-!MESSAGE Error logged from Debug Core:
-!STACK 1
-org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.throwDebugException(JDIDebugElement.java:263)
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.requestFailed(JDIDebugElement.java:202)
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.targetRequestFailed(JDIDebugElement.java:182)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1585)
- at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
- at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
- at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
- at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
- at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
- ... 9 more
-!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-03-30 16:04:35.830
-!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
-!STACK 0
-com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
- at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
- at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
- at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
- at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
- at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 16:04:38.540
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-06 13:31:12.389
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 16:09:04.011
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-06 13:32:08.976
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 16:11:10.839
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-06 13:33:10.204
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 16:13:00.722
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-06 13:33:28.234
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 16:13:36.637
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-06 13:33:51.793
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 16:14:31.219
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-06 13:37:00.780
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 16:55:04.225
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 16:58:19.674
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!SESSION 2022-03-30 16:58:28.607 -----------------------------------------------
+!SESSION 2022-04-07 20:00:30.584 -----------------------------------------------
eclipse.buildId=4.22.0.I20211124-1800
java.version=17.0.1
java.vendor=Eclipse Adoptium
@@ -551,487 +108,9 @@ BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=ru_RU
Framework arguments: -product org.eclipse.epp.package.java.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
-!ENTRY org.eclipse.jface 2 0 2022-03-30 16:58:59.896
+!ENTRY org.eclipse.jface 2 0 2022-04-07 20:00:51.175
!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
-!SUBENTRY 1 org.eclipse.jface 2 0 2022-03-30 16:58:59.896
-!MESSAGE A conflict occurred for CTRL+SHIFT+T:
-Binding(CTRL+SHIFT+T,
- ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type,
- Open a type in a Java editor,
- Category(org.eclipse.ui.category.navigate,Navigate,null,true),
- org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@6a552721,
- ,,true),null),
- org.eclipse.ui.defaultAcceleratorConfiguration,
- org.eclipse.ui.contexts.window,,,system)
-Binding(CTRL+SHIFT+T,
- ParameterizedCommand(Command(org.eclipse.lsp4e.symbolinworkspace,Go to Symbol in Workspace,
- ,
- Category(org.eclipse.lsp4e.category,Language Servers,null,true),
- org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@3815a7d1,
- ,,true),null),
- org.eclipse.ui.defaultAcceleratorConfiguration,
- org.eclipse.ui.contexts.window,,,system)
-!SUBENTRY 1 org.eclipse.jface 2 0 2022-03-30 16:58:59.896
-!MESSAGE A conflict occurred for ALT+SHIFT+R:
-Binding(ALT+SHIFT+R,
- ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.rename.element,Rename - Refactoring ,
- Rename the selected element,
- Category(org.eclipse.jdt.ui.category.refactoring,Refactor - Java,Java Refactoring Actions,true),
- org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@24dc150c,
- ,,true),null),
- org.eclipse.ui.defaultAcceleratorConfiguration,
- org.eclipse.ui.contexts.window,,,system)
-Binding(ALT+SHIFT+R,
- ParameterizedCommand(Command(org.eclipse.ui.edit.rename,Rename,
- Rename the selected item,
- Category(org.eclipse.ui.category.file,File,null,true),
- org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@1d2d4d7a,
- ,,true),null),
- org.eclipse.ui.defaultAcceleratorConfiguration,
- org.eclipse.ui.contexts.window,,,system)
-
-!ENTRY org.eclipse.egit.ui 2 0 2022-03-30 16:59:03.684
-!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
-user global configuration and to define the default location to store repositories: 'C:\Users\Pulxes'. If this is
-not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
-EGit might behave differently since they see different configuration options.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 17:05:21.396
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 17:07:00.637
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 17:16:45.130
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 17:19:05.304
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.debug.core 4 125 2022-03-30 17:34:50.437
-!MESSAGE Error logged from Debug Core:
-!STACK 1
-org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.throwDebugException(JDIDebugElement.java:263)
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.requestFailed(JDIDebugElement.java:202)
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.targetRequestFailed(JDIDebugElement.java:182)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1585)
- at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
- at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
- at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
- at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
- at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
- ... 9 more
-!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-03-30 17:34:50.439
-!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
-!STACK 0
-com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
- at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
- at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
- at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
- at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
- at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 17:34:50.890
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.debug.core 4 125 2022-03-30 17:41:03.964
-!MESSAGE Error logged from Debug Core:
-!STACK 1
-org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.throwDebugException(JDIDebugElement.java:263)
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.requestFailed(JDIDebugElement.java:202)
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.targetRequestFailed(JDIDebugElement.java:182)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1585)
- at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.clearSourceElements(AbstractSourceLookupDirector.java:652)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.updateDebugElement(AdvancedSourceLookupParticipant.java:215)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.cacheContainer(AdvancedSourceLookupParticipant.java:162)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.getSourceContainer(AdvancedSourceLookupParticipant.java:146)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:72)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
- at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
- at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
- at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
- at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
- ... 17 more
-!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-03-30 17:41:03.965
-!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
-!STACK 0
-com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
- at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
- at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
- at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
- at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
- at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.clearSourceElements(AbstractSourceLookupDirector.java:652)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.updateDebugElement(AdvancedSourceLookupParticipant.java:215)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.cacheContainer(AdvancedSourceLookupParticipant.java:162)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.getSourceContainer(AdvancedSourceLookupParticipant.java:146)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:72)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.debug.core 4 125 2022-03-30 17:41:03.966
-!MESSAGE Error logged from Debug Core:
-!STACK 1
-org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.throwDebugException(JDIDebugElement.java:263)
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.requestFailed(JDIDebugElement.java:202)
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.targetRequestFailed(JDIDebugElement.java:182)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1585)
- at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
- at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
- at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
- at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
- at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
- ... 9 more
-!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-03-30 17:41:03.966
-!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
-!STACK 0
-com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
- at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
- at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
- at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
- at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
- at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 17:41:06.642
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 17:47:57.999
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 17:50:20.061
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 17:51:10.710
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.debug.core 4 125 2022-03-30 17:57:00.104
-!MESSAGE Error logged from Debug Core:
-!STACK 1
-org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.throwDebugException(JDIDebugElement.java:263)
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.requestFailed(JDIDebugElement.java:202)
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.targetRequestFailed(JDIDebugElement.java:182)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1585)
- at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.clearSourceElements(AbstractSourceLookupDirector.java:652)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.updateDebugElement(AdvancedSourceLookupParticipant.java:215)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.cacheContainer(AdvancedSourceLookupParticipant.java:162)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.getSourceContainer(AdvancedSourceLookupParticipant.java:146)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:72)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
- at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
- at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
- at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
- at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
- ... 17 more
-!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-03-30 17:57:00.104
-!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
-!STACK 0
-com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
- at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
- at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
- at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
- at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
- at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.clearSourceElements(AbstractSourceLookupDirector.java:652)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.updateDebugElement(AdvancedSourceLookupParticipant.java:215)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.cacheContainer(AdvancedSourceLookupParticipant.java:162)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.getSourceContainer(AdvancedSourceLookupParticipant.java:146)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:72)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.debug.core 4 125 2022-03-30 17:57:00.105
-!MESSAGE Error logged from Debug Core:
-!STACK 1
-org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.throwDebugException(JDIDebugElement.java:263)
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.requestFailed(JDIDebugElement.java:202)
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.targetRequestFailed(JDIDebugElement.java:182)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1585)
- at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
- at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
- at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
- at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
- at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
- ... 9 more
-!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-03-30 17:57:00.105
-!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
-!STACK 0
-com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
- at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
- at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
- at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
- at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
- at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 17:57:02.506
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.debug.core 4 125 2022-03-30 18:17:46.940
-!MESSAGE Error logged from Debug Core:
-!STACK 1
-org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.throwDebugException(JDIDebugElement.java:263)
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.requestFailed(JDIDebugElement.java:202)
- at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.targetRequestFailed(JDIDebugElement.java:182)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1585)
- at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
- at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
- at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
- at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
- at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
- ... 9 more
-!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-03-30 18:17:46.941
-!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
-!STACK 0
-com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
- at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
- at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
- at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
- at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
- at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
- at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
- at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
- at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
- at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
- at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
- at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 18:17:47.627
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 18:22:04.132
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 18:50:05.690
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 18:52:57.376
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 19:06:03.895
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 19:25:57.244
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 19:26:56.543
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 19:31:56.308
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 19:32:35.098
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 19:40:13.449
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 19:43:07.115
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 19:44:30.722
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 19:48:53.117
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 19:52:17.295
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-30 20:00:24.949
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!SESSION 2022-03-31 09:49:06.812 -----------------------------------------------
-eclipse.buildId=4.22.0.I20211124-1800
-java.version=17.0.1
-java.vendor=Eclipse Adoptium
-BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=ru_RU
-Framework arguments: -product org.eclipse.epp.package.java.product
-Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
-
-!ENTRY org.eclipse.jface 2 0 2022-03-31 09:49:25.581
-!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
-!SUBENTRY 1 org.eclipse.jface 2 0 2022-03-31 09:49:25.581
+!SUBENTRY 1 org.eclipse.jface 2 0 2022-04-07 20:00:51.175
!MESSAGE A conflict occurred for CTRL+SHIFT+T:
Binding(CTRL+SHIFT+T,
ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type,
@@ -1049,7 +128,7 @@ Binding(CTRL+SHIFT+T,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
-!SUBENTRY 1 org.eclipse.jface 2 0 2022-03-31 09:49:25.581
+!SUBENTRY 1 org.eclipse.jface 2 0 2022-04-07 20:00:51.175
!MESSAGE A conflict occurred for ALT+SHIFT+R:
Binding(ALT+SHIFT+R,
ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.rename.element,Rename - Refactoring ,
@@ -1068,44 +147,23 @@ Binding(ALT+SHIFT+R,
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
-!ENTRY org.eclipse.egit.ui 2 0 2022-03-31 09:49:28.696
+!ENTRY org.eclipse.egit.ui 2 0 2022-04-07 20:00:55.255
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Users\Pulxes'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 09:49:41.560
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-07 20:05:54.852
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 09:56:17.282
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-07 20:17:30.436
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 10:20:18.481
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-08 18:11:20.227
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 10:51:08.393
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 11:02:10.067
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 11:08:24.026
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 11:13:00.153
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 11:15:29.088
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 11:16:09.857
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 11:39:27.559
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.debug.core 4 125 2022-03-31 11:41:51.262
+!ENTRY org.eclipse.debug.core 4 125 2022-04-08 18:19:33.813
!MESSAGE Error logged from Debug Core:
!STACK 1
org.eclipse.debug.core.DebugException: Error retrieving source debug attribute
@@ -1133,7 +191,7 @@ Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Mac
at org.eclipse.jdi.internal.ReferenceTypeImpl.sourceNames(ReferenceTypeImpl.java:1533)
at org.eclipse.jdt.internal.debug.core.model.JDIReferenceType.getSourceNames(JDIReferenceType.java:247)
... 10 more
-!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-03-31 11:41:51.263
+!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-04-08 18:19:33.814
!MESSAGE Error retrieving source debug attribute
!STACK 0
com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
@@ -1157,28 +215,391 @@ com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 11:41:55.166
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-08 18:19:48.481
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 11:42:34.743
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 09:03:11.645
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 11:43:58.172
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 09:08:24.551
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 11:49:56.558
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 09:08:49.088
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 12:09:41.464
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 09:09:04.691
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 12:12:22.189
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 09:11:52.224
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 14:32:56.453
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 09:40:07.293
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.debug.core 4 125 2022-03-31 14:35:01.545
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 09:47:21.212
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 09:47:59.495
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 13:18:13.993
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 13:19:39.853
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 13:30:18.304
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 14:00:43.223
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+!SESSION 2022-04-10 14:00:50.105 -----------------------------------------------
+eclipse.buildId=4.22.0.I20211124-1800
+java.version=17.0.1
+java.vendor=Eclipse Adoptium
+BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=ru_RU
+Framework arguments: -product org.eclipse.epp.package.java.product
+Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
+
+!ENTRY org.eclipse.jface 2 0 2022-04-10 14:01:01.182
+!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
+!SUBENTRY 1 org.eclipse.jface 2 0 2022-04-10 14:01:01.182
+!MESSAGE A conflict occurred for CTRL+SHIFT+T:
+Binding(CTRL+SHIFT+T,
+ ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type,
+ Open a type in a Java editor,
+ Category(org.eclipse.ui.category.navigate,Navigate,null,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@632b5c79,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+Binding(CTRL+SHIFT+T,
+ ParameterizedCommand(Command(org.eclipse.lsp4e.symbolinworkspace,Go to Symbol in Workspace,
+ ,
+ Category(org.eclipse.lsp4e.category,Language Servers,null,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@6a552721,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+!SUBENTRY 1 org.eclipse.jface 2 0 2022-04-10 14:01:01.182
+!MESSAGE A conflict occurred for ALT+SHIFT+R:
+Binding(ALT+SHIFT+R,
+ ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.rename.element,Rename - Refactoring ,
+ Rename the selected element,
+ Category(org.eclipse.jdt.ui.category.refactoring,Refactor - Java,Java Refactoring Actions,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@3815a7d1,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+Binding(ALT+SHIFT+R,
+ ParameterizedCommand(Command(org.eclipse.ui.edit.rename,Rename,
+ Rename the selected item,
+ Category(org.eclipse.ui.category.file,File,null,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@24dc150c,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+
+!ENTRY org.eclipse.egit.ui 2 0 2022-04-10 14:01:04.172
+!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
+user global configuration and to define the default location to store repositories: 'C:\Users\Pulxes'. If this is
+not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
+EGit might behave differently since they see different configuration options.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 14:18:36.867
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 14:19:37.763
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 14:22:36.011
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 14:27:35.005
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 14:37:26.670
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 14:38:23.234
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 14:38:50.454
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 14:43:47.201
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 14:46:16.751
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 14:54:43.538
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 15:14:25.984
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 15:16:52.900
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 15:20:32.517
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.debug.core 4 125 2022-04-10 15:29:58.826
+!MESSAGE Error logged from Debug Core:
+!STACK 1
+org.eclipse.debug.core.DebugException: Error retrieving source debug attribute
+ at org.eclipse.jdt.internal.debug.core.model.JDIType.throwDebugException(JDIType.java:79)
+ at org.eclipse.jdt.internal.debug.core.model.JDIType.requestFailed(JDIType.java:69)
+ at org.eclipse.jdt.internal.debug.core.model.JDIReferenceType.getSourceNames(JDIReferenceType.java:252)
+ at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getClassesLocation(JDIHelpers.java:64)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.getSourceContainer(AdvancedSourceLookupParticipant.java:88)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:72)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
+ at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:262)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.getSourceDebugExtension(ReferenceTypeImpl.java:1745)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.isSourceDebugExtensionAvailable(ReferenceTypeImpl.java:1819)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.getStratum(ReferenceTypeImpl.java:1726)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.sourceNames(ReferenceTypeImpl.java:1533)
+ at org.eclipse.jdt.internal.debug.core.model.JDIReferenceType.getSourceNames(JDIReferenceType.java:247)
+ ... 10 more
+!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-04-10 15:29:58.827
+!MESSAGE Error retrieving source debug attribute
+!STACK 0
+com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
+ at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:262)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.getSourceDebugExtension(ReferenceTypeImpl.java:1745)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.isSourceDebugExtensionAvailable(ReferenceTypeImpl.java:1819)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.getStratum(ReferenceTypeImpl.java:1726)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.sourceNames(ReferenceTypeImpl.java:1533)
+ at org.eclipse.jdt.internal.debug.core.model.JDIReferenceType.getSourceNames(JDIReferenceType.java:247)
+ at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getClassesLocation(JDIHelpers.java:64)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.getSourceContainer(AdvancedSourceLookupParticipant.java:88)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:72)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 15:30:02.668
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 15:33:21.848
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 15:34:50.856
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 15:35:44.211
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 15:36:08.902
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 15:42:23.775
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 15:43:33.765
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 15:45:12.775
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 15:46:04.728
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 15:46:26.582
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 15:54:26.079
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 15:54:38.067
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 15:55:16.556
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 15:58:18.190
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 15:58:37.892
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 16:00:26.263
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 16:03:16.398
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 16:05:36.471
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 16:06:30.496
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 16:09:17.455
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 16:10:03.184
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 16:11:03.964
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 16:11:56.439
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 16:12:18.667
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 16:13:15.493
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 16:18:00.448
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 16:21:19.371
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 16:22:14.759
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 16:39:28.474
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 16:40:34.950
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 16:40:56.547
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 16:44:44.807
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 16:45:45.214
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 16:46:01.371
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 16:46:11.756
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 16:53:28.967
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 16:54:50.400
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 16:55:00.611
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 16:55:16.991
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 17:00:44.928
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 17:03:06.027
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 17:12:28.207
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 17:13:11.317
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 17:19:06.398
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.debug.core 4 125 2022-04-10 17:19:54.189
+!MESSAGE Error logged from Debug Core:
+!STACK 1
+org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.throwDebugException(JDIDebugElement.java:263)
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.requestFailed(JDIDebugElement.java:202)
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.targetRequestFailed(JDIDebugElement.java:182)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1585)
+ at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.clearSourceElements(AbstractSourceLookupDirector.java:652)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.updateDebugElement(AdvancedSourceLookupParticipant.java:215)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.cacheContainer(AdvancedSourceLookupParticipant.java:162)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.getSourceContainer(AdvancedSourceLookupParticipant.java:146)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:72)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
+ at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
+ at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
+ at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
+ at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
+ ... 17 more
+!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-04-10 17:19:54.189
+!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
+!STACK 0
+com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
+ at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
+ at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
+ at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
+ at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
+ at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.clearSourceElements(AbstractSourceLookupDirector.java:652)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.updateDebugElement(AdvancedSourceLookupParticipant.java:215)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.cacheContainer(AdvancedSourceLookupParticipant.java:162)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.getSourceContainer(AdvancedSourceLookupParticipant.java:146)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:72)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.debug.core 4 125 2022-04-10 17:19:54.190
!MESSAGE Error logged from Debug Core:
!STACK 1
org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
@@ -1207,7 +628,7 @@ Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Mac
at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
... 9 more
-!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-03-31 14:35:01.545
+!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-04-10 17:19:54.190
!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
!STACK 0
com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
@@ -1231,10225 +652,24 @@ com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 14:35:04.758
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 17:20:00.011
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 16:17:52.322
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 17:29:53.156
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 16:18:10.964
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 17:31:17.415
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 16:19:42.870
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 17:33:11.164
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 16:19:55.076
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 17:36:57.882
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 16:20:19.221
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-10 17:40:05.597
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 16:21:51.642
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 16:22:14.826
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 16:22:32.829
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 16:22:52.064
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 16:23:35.526
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 16:23:51.731
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 16:24:55.098
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 16:26:30.320
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 16:48:42.585
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 16:50:34.075
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 16:53:24.542
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 17:00:13.496
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-03-31 18:41:16.843
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 09:25:29.803
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 09:26:14.806
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 09:27:45.287
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 09:35:44.378
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 10:57:16.826
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 10:58:16.002
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 10:59:57.286
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 11:02:34.970
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 11:07:09.577
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 11:08:15.521
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 11:13:56.070
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 11:14:40.737
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:01:50.999
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:02:46.458
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:09:57.797
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:12:11.611
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:13:06.346
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:14:19.996
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:15:27.640
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:15:52.011
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:16:08.582
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:17:14.738
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:18:05.350
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:21:00.003
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:22:11.798
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:22:22.664
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:23:53.715
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:25:19.548
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:26:26.364
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:26:58.580
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:28:25.389
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:29:36.842
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:31:35.183
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:33:48.184
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:35:03.969
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:36:12.308
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:36:33.137
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:37:43.297
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:38:12.531
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:38:51.865
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:40:11.109
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:48:40.315
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:57:02.536
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 12:58:58.488
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 13:09:09.313
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 13:11:34.565
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 13:14:29.740
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 13:15:08.738
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 13:18:57.454
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 13:23:28.613
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 13:24:29.428
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 13:25:58.942
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:01.383
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.core;
-
-import net.minecraft.block.Block;
-import net.minecraft.block.IGrowable;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.world.World;
-import net.minecraftforge.common.ForgeHooks;
-import net.minecraftforge.event.world.BlockEvent;
-
-public class CommonHelper {
-
- public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
- if(!(block instanceof IGrowable))
- return;
- IGrowable igrowable = (IGrowable)block;
- if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
- if(!world.isRemote)
- if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
- for(int i = 0; i < count; i++)
- igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
- }
-
- public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
- if(!world.isRemote) {
- BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
- if(event.isCanceled())
- return;
- if(checkAir)
- if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
- world.setBlock(x, y, z, block, meta, 3);
- else (y < 256)
- world.setBlock(x, y, z, block, meta, 3);
-
- }
- }
-}
-
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 2 2022-04-01 14:30:01.384
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 0 2022-04-01 14:30:01.385
-!MESSAGE Error in JDT Core during reconcile
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:01.460
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.core;
-
-import net.minecraft.block.Block;
-import net.minecraft.block.IGrowable;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.world.World;
-import net.minecraftforge.common.ForgeHooks;
-import net.minecraftforge.event.world.BlockEvent;
-
-public class CommonHelper {
-
- public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
- if(!(block instanceof IGrowable))
- return;
- IGrowable igrowable = (IGrowable)block;
- if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
- if(!world.isRemote)
- if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
- for(int i = 0; i < count; i++)
- igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
- }
-
- public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
- if(!world.isRemote) {
- BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
- if(event.isCanceled())
- return;
- if(checkAir)
- if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
- world.setBlock(x, y, z, block, meta, 3);
- else (y < 256)
- world.setBlock(x, y, z, block, meta, 3);
-
- }
- }
-}
-
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 14:30:01.461
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 14:30:01.462
-!MESSAGE Error in JDT Core during AST creation
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:04.392
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.core;
-
-import net.minecraft.block.Block;
-import net.minecraft.block.IGrowable;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.world.World;
-import net.minecraftforge.common.ForgeHooks;
-import net.minecraftforge.event.world.BlockEvent;
-
-public class CommonHelper {
-
- public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
- if(!(block instanceof IGrowable))
- return;
- IGrowable igrowable = (IGrowable)block;
- if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
- if(!world.isRemote)
- if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
- for(int i = 0; i < count; i++)
- igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
- }
-
- public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
- if(!world.isRemote) {
- BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
- if(event.isCanceled())
- return;
- if(checkAir) {
-
- }
- if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
- world.setBlock(x, y, z, block, meta, 3);
- else (y < 256)
- world.setBlock(x, y, z, block, meta, 3);
-
- }
- }
-}
-
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 2 2022-04-01 14:30:04.393
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 0 2022-04-01 14:30:04.393
-!MESSAGE Error in JDT Core during reconcile
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:04.398
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.core;
-
-import net.minecraft.block.Block;
-import net.minecraft.block.IGrowable;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.world.World;
-import net.minecraftforge.common.ForgeHooks;
-import net.minecraftforge.event.world.BlockEvent;
-
-public class CommonHelper {
-
- public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
- if(!(block instanceof IGrowable))
- return;
- IGrowable igrowable = (IGrowable)block;
- if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
- if(!world.isRemote)
- if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
- for(int i = 0; i < count; i++)
- igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
- }
-
- public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
- if(!world.isRemote) {
- BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
- if(event.isCanceled())
- return;
- if(checkAir) {
-
- }
- if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
- world.setBlock(x, y, z, block, meta, 3);
- else (y < 256)
- world.setBlock(x, y, z, block, meta, 3);
-
- }
- }
-}
-
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 14:30:04.399
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 14:30:04.400
-!MESSAGE Error in JDT Core during AST creation
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:04.703
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.core;
-
-import net.minecraft.block.Block;
-import net.minecraft.block.IGrowable;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.world.World;
-import net.minecraftforge.common.ForgeHooks;
-import net.minecraftforge.event.world.BlockEvent;
-
-public class CommonHelper {
-
- public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
- if(!(block instanceof IGrowable))
- return;
- IGrowable igrowable = (IGrowable)block;
- if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
- if(!world.isRemote)
- if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
- for(int i = 0; i < count; i++)
- igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
- }
-
- public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
- if(!world.isRemote) {
- BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
- if(event.isCanceled())
- return;
- if(checkAir) {
-
- }
- if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
- world.setBlock(x, y, z, block, meta, 3);
- else (y < 256)
- world.setBlock(x, y, z, block, meta, 3);
-
- }
- }
-}
-
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 14:30:04.704
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 14:30:04.704
-!MESSAGE Error in JDT Core during AST creation
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:05.921
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.core;
-
-import net.minecraft.block.Block;
-import net.minecraft.block.IGrowable;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.world.World;
-import net.minecraftforge.common.ForgeHooks;
-import net.minecraftforge.event.world.BlockEvent;
-
-public class CommonHelper {
-
- public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
- if(!(block instanceof IGrowable))
- return;
- IGrowable igrowable = (IGrowable)block;
- if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
- if(!world.isRemote)
- if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
- for(int i = 0; i < count; i++)
- igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
- }
-
- public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
- if(!world.isRemote) {
- BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
- if(event.isCanceled())
- return;
- if(checkAir) {
-
- }
- if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
- world.setBlock(x, y, z, block, meta, 3);
- else (y < 256)
- world.setBlock(x, y, z, block, meta, 3);
-
- }
- }
-}
-
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.javaeditor.ClipboardOperationAction.getClipboardData(ClipboardOperationAction.java:479)
- at org.eclipse.jdt.internal.ui.javaeditor.ClipboardOperationAction.doCutCopyWithImportsOperation(ClipboardOperationAction.java:406)
- at org.eclipse.jdt.internal.ui.javaeditor.ClipboardOperationAction.internalDoOperation(ClipboardOperationAction.java:365)
- at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:74)
- at org.eclipse.jdt.internal.ui.javaeditor.ClipboardOperationAction.run(ClipboardOperationAction.java:286)
- at org.eclipse.jface.action.Action.runWithEvent(Action.java:474)
- at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:121)
- at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:97)
- at jdk.internal.reflect.GeneratedMethodAccessor57.invoke(Unknown Source)
- at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.base/java.lang.reflect.Method.invoke(Method.java:568)
- at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58)
- at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:317)
- at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:251)
- at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:173)
- at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:156)
- at org.eclipse.core.commands.Command.executeWithChecks(Command.java:488)
- at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:487)
- at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:213)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.executeCommand(KeyBindingDispatcher.java:308)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.press(KeyBindingDispatcher.java:580)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.processKeyEvent(KeyBindingDispatcher.java:647)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.filterKeySequenceBindings(KeyBindingDispatcher.java:439)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher$KeyDownFilter.handleEvent(KeyBindingDispatcher.java:96)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
- at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1280)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1059)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1084)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1069)
- at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1111)
- at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1107)
- at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1536)
- at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:4875)
- at org.eclipse.swt.widgets.Canvas.WM_CHAR(Canvas.java:345)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4753)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:340)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:5002)
- at org.eclipse.swt.internal.win32.OS.DispatchMessage(Native Method)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3630)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1154)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1045)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
- at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:551)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:156)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
- at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
- at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.base/java.lang.reflect.Method.invoke(Method.java:568)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1467)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 14:30:05.923
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.javaeditor.ClipboardOperationAction.getClipboardData(ClipboardOperationAction.java:479)
- at org.eclipse.jdt.internal.ui.javaeditor.ClipboardOperationAction.doCutCopyWithImportsOperation(ClipboardOperationAction.java:406)
- at org.eclipse.jdt.internal.ui.javaeditor.ClipboardOperationAction.internalDoOperation(ClipboardOperationAction.java:365)
- at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:74)
- at org.eclipse.jdt.internal.ui.javaeditor.ClipboardOperationAction.run(ClipboardOperationAction.java:286)
- at org.eclipse.jface.action.Action.runWithEvent(Action.java:474)
- at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:121)
- at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:97)
- at jdk.internal.reflect.GeneratedMethodAccessor57.invoke(Unknown Source)
- at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.base/java.lang.reflect.Method.invoke(Method.java:568)
- at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58)
- at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:317)
- at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:251)
- at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:173)
- at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:156)
- at org.eclipse.core.commands.Command.executeWithChecks(Command.java:488)
- at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:487)
- at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:213)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.executeCommand(KeyBindingDispatcher.java:308)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.press(KeyBindingDispatcher.java:580)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.processKeyEvent(KeyBindingDispatcher.java:647)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.filterKeySequenceBindings(KeyBindingDispatcher.java:439)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher$KeyDownFilter.handleEvent(KeyBindingDispatcher.java:96)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
- at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1280)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1059)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1084)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1069)
- at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1111)
- at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1107)
- at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1536)
- at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:4875)
- at org.eclipse.swt.widgets.Canvas.WM_CHAR(Canvas.java:345)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4753)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:340)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:5002)
- at org.eclipse.swt.internal.win32.OS.DispatchMessage(Native Method)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3630)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1154)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1045)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
- at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:551)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:156)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
- at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
- at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.base/java.lang.reflect.Method.invoke(Method.java:568)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1467)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 14:30:05.924
-!MESSAGE Error in JDT Core during AST creation
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.javaeditor.ClipboardOperationAction.getClipboardData(ClipboardOperationAction.java:479)
- at org.eclipse.jdt.internal.ui.javaeditor.ClipboardOperationAction.doCutCopyWithImportsOperation(ClipboardOperationAction.java:406)
- at org.eclipse.jdt.internal.ui.javaeditor.ClipboardOperationAction.internalDoOperation(ClipboardOperationAction.java:365)
- at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:74)
- at org.eclipse.jdt.internal.ui.javaeditor.ClipboardOperationAction.run(ClipboardOperationAction.java:286)
- at org.eclipse.jface.action.Action.runWithEvent(Action.java:474)
- at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:121)
- at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:97)
- at jdk.internal.reflect.GeneratedMethodAccessor57.invoke(Unknown Source)
- at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.base/java.lang.reflect.Method.invoke(Method.java:568)
- at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58)
- at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:317)
- at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:251)
- at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:173)
- at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:156)
- at org.eclipse.core.commands.Command.executeWithChecks(Command.java:488)
- at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:487)
- at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:213)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.executeCommand(KeyBindingDispatcher.java:308)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.press(KeyBindingDispatcher.java:580)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.processKeyEvent(KeyBindingDispatcher.java:647)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.filterKeySequenceBindings(KeyBindingDispatcher.java:439)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher$KeyDownFilter.handleEvent(KeyBindingDispatcher.java:96)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
- at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1280)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1059)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1084)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1069)
- at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1111)
- at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1107)
- at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1536)
- at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:4875)
- at org.eclipse.swt.widgets.Canvas.WM_CHAR(Canvas.java:345)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4753)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:340)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:5002)
- at org.eclipse.swt.internal.win32.OS.DispatchMessage(Native Method)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3630)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1154)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1045)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
- at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:551)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:156)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
- at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
- at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.base/java.lang.reflect.Method.invoke(Method.java:568)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1467)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:07.402
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.core;
-
-import net.minecraft.block.Block;
-import net.minecraft.block.IGrowable;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.world.World;
-import net.minecraftforge.common.ForgeHooks;
-import net.minecraftforge.event.world.BlockEvent;
-
-public class CommonHelper {
-
- public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
- if(!(block instanceof IGrowable))
- return;
- IGrowable igrowable = (IGrowable)block;
- if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
- if(!world.isRemote)
- if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
- for(int i = 0; i < count; i++)
- igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
- }
-
- public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
- if(!world.isRemote) {
- BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
- if(event.isCanceled())
- return;
- if(checkAir) {
-
- }
- else (y < 256)
- world.setBlock(x, y, z, block, meta, 3);
-
- }
- }
-}
-
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 2 2022-04-01 14:30:07.403
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 0 2022-04-01 14:30:07.404
-!MESSAGE Error in JDT Core during reconcile
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:07.488
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.core;
-
-import net.minecraft.block.Block;
-import net.minecraft.block.IGrowable;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.world.World;
-import net.minecraftforge.common.ForgeHooks;
-import net.minecraftforge.event.world.BlockEvent;
-
-public class CommonHelper {
-
- public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
- if(!(block instanceof IGrowable))
- return;
- IGrowable igrowable = (IGrowable)block;
- if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
- if(!world.isRemote)
- if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
- for(int i = 0; i < count; i++)
- igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
- }
-
- public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
- if(!world.isRemote) {
- BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
- if(event.isCanceled())
- return;
- if(checkAir) {
-
- }
- else (y < 256)
- world.setBlock(x, y, z, block, meta, 3);
-
- }
- }
-}
-
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 14:30:07.489
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 14:30:07.490
-!MESSAGE Error in JDT Core during AST creation
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:08.408
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.core;
-
-import net.minecraft.block.Block;
-import net.minecraft.block.IGrowable;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.world.World;
-import net.minecraftforge.common.ForgeHooks;
-import net.minecraftforge.event.world.BlockEvent;
-
-public class CommonHelper {
-
- public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
- if(!(block instanceof IGrowable))
- return;
- IGrowable igrowable = (IGrowable)block;
- if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
- if(!world.isRemote)
- if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
- for(int i = 0; i < count; i++)
- igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
- }
-
- public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
- if(!world.isRemote) {
- BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
- if(event.isCanceled())
- return;
- if(checkAir) {
- if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
- world.setBlock(x, y, z, block, meta, 3);
- }
- else (y < 256)
- world.setBlock(x, y, z, block, meta, 3);
-
- }
- }
-}
-
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 2 2022-04-01 14:30:08.409
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 0 2022-04-01 14:30:08.410
-!MESSAGE Error in JDT Core during reconcile
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:08.658
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.core;
-
-import net.minecraft.block.Block;
-import net.minecraft.block.IGrowable;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.world.World;
-import net.minecraftforge.common.ForgeHooks;
-import net.minecraftforge.event.world.BlockEvent;
-
-public class CommonHelper {
-
- public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
- if(!(block instanceof IGrowable))
- return;
- IGrowable igrowable = (IGrowable)block;
- if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
- if(!world.isRemote)
- if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
- for(int i = 0; i < count; i++)
- igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
- }
-
- public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
- if(!world.isRemote) {
- BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
- if(event.isCanceled())
- return;
- if(checkAir) {
- if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
- world.setBlock(x, y, z, block, meta, 3);
- }
- else (y < 256)
- world.setBlock(x, y, z, block, meta, 3);
-
- }
- }
-}
-
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 14:30:08.659
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 14:30:08.659
-!MESSAGE Error in JDT Core during AST creation
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:11.421
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.core;
-
-import net.minecraft.block.Block;
-import net.minecraft.block.IGrowable;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.world.World;
-import net.minecraftforge.common.ForgeHooks;
-import net.minecraftforge.event.world.BlockEvent;
-
-public class CommonHelper {
-
- public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
- if(!(block instanceof IGrowable))
- return;
- IGrowable igrowable = (IGrowable)block;
- if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
- if(!world.isRemote)
- if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
- for(int i = 0; i < count; i++)
- igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
- }
-
- public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
- if(!world.isRemote) {
- BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
- if(event.isCanceled())
- return;
- if(checkAir) {
- if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
- world.setBlock(x, y, z, block, meta, 3);
- } else (y < 256)
- world.setBlock(x, y, z, block, meta, 3);
-
- }
- }
-}
-
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 2 2022-04-01 14:30:11.421
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 0 2022-04-01 14:30:11.422
-!MESSAGE Error in JDT Core during reconcile
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:11.428
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.core;
-
-import net.minecraft.block.Block;
-import net.minecraft.block.IGrowable;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.world.World;
-import net.minecraftforge.common.ForgeHooks;
-import net.minecraftforge.event.world.BlockEvent;
-
-public class CommonHelper {
-
- public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
- if(!(block instanceof IGrowable))
- return;
- IGrowable igrowable = (IGrowable)block;
- if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
- if(!world.isRemote)
- if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
- for(int i = 0; i < count; i++)
- igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
- }
-
- public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
- if(!world.isRemote) {
- BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
- if(event.isCanceled())
- return;
- if(checkAir) {
- if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
- world.setBlock(x, y, z, block, meta, 3);
- } else (y < 256)
- world.setBlock(x, y, z, block, meta, 3);
-
- }
- }
-}
-
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 14:30:11.429
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 14:30:11.430
-!MESSAGE Error in JDT Core during AST creation
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:12.985
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.core;
-
-import net.minecraft.block.Block;
-import net.minecraft.block.IGrowable;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.world.World;
-import net.minecraftforge.common.ForgeHooks;
-import net.minecraftforge.event.world.BlockEvent;
-
-public class CommonHelper {
-
- public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
- if(!(block instanceof IGrowable))
- return;
- IGrowable igrowable = (IGrowable)block;
- if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
- if(!world.isRemote)
- if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
- for(int i = 0; i < count; i++)
- igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
- }
-
- public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
- if(!world.isRemote) {
- BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
- if(event.isCanceled())
- return;
- if(checkAir) {
- if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
- world.setBlock(x, y, z, block, meta, 3);
- } else (y < 256)
- world.setBlock(x, y, z, block, meta, 3);
-
- }
- }
-}
-
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 14:30:12.986
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 14:30:12.987
-!MESSAGE Error in JDT Core during AST creation
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:13.929
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.core;
-
-import net.minecraft.block.Block;
-import net.minecraft.block.IGrowable;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.world.World;
-import net.minecraftforge.common.ForgeHooks;
-import net.minecraftforge.event.world.BlockEvent;
-
-public class CommonHelper {
-
- public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
- if(!(block instanceof IGrowable))
- return;
- IGrowable igrowable = (IGrowable)block;
- if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
- if(!world.isRemote)
- if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
- for(int i = 0; i < count; i++)
- igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
- }
-
- public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
- if(!world.isRemote) {
- BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
- if(event.isCanceled())
- return;
- if(checkAir) {
- if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
- world.setBlock(x, y, z, block, meta, 3);
- } else (y < 256)
- world.setBlock(x, y, z, block, meta, 3);
-
- }
- }
-}
-
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 2 2022-04-01 14:30:13.930
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 0 2022-04-01 14:30:13.931
-!MESSAGE Error in JDT Core during reconcile
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:13.937
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.core;
-
-import net.minecraft.block.Block;
-import net.minecraft.block.IGrowable;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.world.World;
-import net.minecraftforge.common.ForgeHooks;
-import net.minecraftforge.event.world.BlockEvent;
-
-public class CommonHelper {
-
- public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
- if(!(block instanceof IGrowable))
- return;
- IGrowable igrowable = (IGrowable)block;
- if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
- if(!world.isRemote)
- if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
- for(int i = 0; i < count; i++)
- igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
- }
-
- public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
- if(!world.isRemote) {
- BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
- if(event.isCanceled())
- return;
- if(checkAir) {
- if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
- world.setBlock(x, y, z, block, meta, 3);
- } else (y < 256)
- world.setBlock(x, y, z, block, meta, 3);
-
- }
- }
-}
-
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.internalGetHoverInfo(NLSStringHover.java:139)
- at org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.getHoverInfo2(NLSStringHover.java:118)
- at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:163)
- at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:130)
- at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:89)
- at org.eclipse.jface.text.TextViewerHoverManager$1.run(TextViewerHoverManager.java:155)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 14:30:13.938
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.internalGetHoverInfo(NLSStringHover.java:139)
- at org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.getHoverInfo2(NLSStringHover.java:118)
- at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:163)
- at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:130)
- at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:89)
- at org.eclipse.jface.text.TextViewerHoverManager$1.run(TextViewerHoverManager.java:155)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 14:30:13.938
-!MESSAGE Error in JDT Core during AST creation
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.internalGetHoverInfo(NLSStringHover.java:139)
- at org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.getHoverInfo2(NLSStringHover.java:118)
- at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:163)
- at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:130)
- at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:89)
- at org.eclipse.jface.text.TextViewerHoverManager$1.run(TextViewerHoverManager.java:155)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:13.944
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.core;
-
-import net.minecraft.block.Block;
-import net.minecraft.block.IGrowable;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.world.World;
-import net.minecraftforge.common.ForgeHooks;
-import net.minecraftforge.event.world.BlockEvent;
-
-public class CommonHelper {
-
- public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
- if(!(block instanceof IGrowable))
- return;
- IGrowable igrowable = (IGrowable)block;
- if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
- if(!world.isRemote)
- if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
- for(int i = 0; i < count; i++)
- igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
- }
-
- public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
- if(!world.isRemote) {
- BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
- if(event.isCanceled())
- return;
- if(checkAir) {
- if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
- world.setBlock(x, y, z, block, meta, 3);
- } else (y < 256)
- world.setBlock(x, y, z, block, meta, 3);
-
- }
- }
-}
-
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 14:30:13.945
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 14:30:13.945
-!MESSAGE Error in JDT Core during AST creation
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:13.951
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.core;
-
-import net.minecraft.block.Block;
-import net.minecraft.block.IGrowable;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.world.World;
-import net.minecraftforge.common.ForgeHooks;
-import net.minecraftforge.event.world.BlockEvent;
-
-public class CommonHelper {
-
- public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
- if(!(block instanceof IGrowable))
- return;
- IGrowable igrowable = (IGrowable)block;
- if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
- if(!world.isRemote)
- if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
- for(int i = 0; i < count; i++)
- igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
- }
-
- public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
- if(!world.isRemote) {
- BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
- if(event.isCanceled())
- return;
- if(checkAir) {
- if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
- world.setBlock(x, y, z, block, meta, 3);
- } else (y < 256)
- world.setBlock(x, y, z, block, meta, 3);
-
- }
- }
-}
-
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.text.java.hover.JavadocHover.getHoveredASTNode(JavadocHover.java:1003)
- at org.eclipse.jdt.internal.ui.text.java.hover.JavadocHover.getInfoText(JavadocHover.java:799)
- at org.eclipse.jdt.internal.ui.text.java.hover.JavadocHover.getHoverInfo(JavadocHover.java:743)
- at org.eclipse.jdt.internal.ui.text.java.hover.JavadocHover.internalGetHoverInfo(JavadocHover.java:666)
- at org.eclipse.jdt.internal.ui.text.java.hover.JavadocHover.getHoverInfo2(JavadocHover.java:658)
- at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:163)
- at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:130)
- at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:89)
- at org.eclipse.jface.text.TextViewerHoverManager$1.run(TextViewerHoverManager.java:155)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 14:30:13.952
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.text.java.hover.JavadocHover.getHoveredASTNode(JavadocHover.java:1003)
- at org.eclipse.jdt.internal.ui.text.java.hover.JavadocHover.getInfoText(JavadocHover.java:799)
- at org.eclipse.jdt.internal.ui.text.java.hover.JavadocHover.getHoverInfo(JavadocHover.java:743)
- at org.eclipse.jdt.internal.ui.text.java.hover.JavadocHover.internalGetHoverInfo(JavadocHover.java:666)
- at org.eclipse.jdt.internal.ui.text.java.hover.JavadocHover.getHoverInfo2(JavadocHover.java:658)
- at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:163)
- at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:130)
- at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:89)
- at org.eclipse.jface.text.TextViewerHoverManager$1.run(TextViewerHoverManager.java:155)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 14:30:13.952
-!MESSAGE Error in JDT Core during AST creation
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.text.java.hover.JavadocHover.getHoveredASTNode(JavadocHover.java:1003)
- at org.eclipse.jdt.internal.ui.text.java.hover.JavadocHover.getInfoText(JavadocHover.java:799)
- at org.eclipse.jdt.internal.ui.text.java.hover.JavadocHover.getHoverInfo(JavadocHover.java:743)
- at org.eclipse.jdt.internal.ui.text.java.hover.JavadocHover.internalGetHoverInfo(JavadocHover.java:666)
- at org.eclipse.jdt.internal.ui.text.java.hover.JavadocHover.getHoverInfo2(JavadocHover.java:658)
- at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:163)
- at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:130)
- at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:89)
- at org.eclipse.jface.text.TextViewerHoverManager$1.run(TextViewerHoverManager.java:155)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:15.528
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.core;
-
-import net.minecraft.block.Block;
-import net.minecraft.block.IGrowable;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.world.World;
-import net.minecraftforge.common.ForgeHooks;
-import net.minecraftforge.event.world.BlockEvent;
-
-public class CommonHelper {
-
- public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
- if(!(block instanceof IGrowable))
- return;
- IGrowable igrowable = (IGrowable)block;
- if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
- if(!world.isRemote)
- if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
- for(int i = 0; i < count; i++)
- igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
- }
-
- public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
- if(!world.isRemote) {
- BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
- if(event.isCanceled())
- return;
- if(checkAir) {
- if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
- world.setBlock(x, y, z, block, meta, 3);
- } else (y < 256)
- world.setBlock(x, y, z, block, meta, 3);
-
- }
- }
-}
-
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 14:30:15.530
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 14:30:15.530
-!MESSAGE Error in JDT Core during AST creation
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:16.938
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.core;
-
-import net.minecraft.block.Block;
-import net.minecraft.block.IGrowable;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.world.World;
-import net.minecraftforge.common.ForgeHooks;
-import net.minecraftforge.event.world.BlockEvent;
-
-public class CommonHelper {
-
- public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
- if(!(block instanceof IGrowable))
- return;
- IGrowable igrowable = (IGrowable)block;
- if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
- if(!world.isRemote)
- if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
- for(int i = 0; i < count; i++)
- igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
- }
-
- public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
- if(!world.isRemote) {
- BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
- if(event.isCanceled())
- return;
- if(checkAir) {
- if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
- world.setBlock(x, y, z, block, meta, 3);
- } else (y < 256)
- world.setBlock(x, y, z, block, meta, 3);
-
- }
- }
-}
-
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 2 2022-04-01 14:30:16.939
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 0 2022-04-01 14:30:16.939
-!MESSAGE Error in JDT Core during reconcile
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:17.549
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.core;
-
-import net.minecraft.block.Block;
-import net.minecraft.block.IGrowable;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.world.World;
-import net.minecraftforge.common.ForgeHooks;
-import net.minecraftforge.event.world.BlockEvent;
-
-public class CommonHelper {
-
- public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
- if(!(block instanceof IGrowable))
- return;
- IGrowable igrowable = (IGrowable)block;
- if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
- if(!world.isRemote)
- if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
- for(int i = 0; i < count; i++)
- igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
- }
-
- public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
- if(!world.isRemote) {
- BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
- if(event.isCanceled())
- return;
- if(checkAir) {
- if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
- world.setBlock(x, y, z, block, meta, 3);
- } else (y < 256)
- world.setBlock(x, y, z, block, meta, 3);
-
- }
- }
-}
-
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 14:30:17.550
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 14:30:17.550
-!MESSAGE Error in JDT Core during AST creation
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:19.946
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.core;
-
-import net.minecraft.block.Block;
-import net.minecraft.block.IGrowable;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.world.World;
-import net.minecraftforge.common.ForgeHooks;
-import net.minecraftforge.event.world.BlockEvent;
-
-public class CommonHelper {
-
- public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
- if(!(block instanceof IGrowable))
- return;
- IGrowable igrowable = (IGrowable)block;
- if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
- if(!world.isRemote)
- if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
- for(int i = 0; i < count; i++)
- igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
- }
-
- public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
- if(!world.isRemote) {
- BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
- if(event.isCanceled())
- return;
- if(checkAir) {
- if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
- world.setBlock(x, y, z, block, meta, 3);
- } else (y < 256)
- world.setBlock(x, y, z, block, meta, 3);
-
- }
- }
-}
-
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 2 2022-04-01 14:30:19.947
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 0 2022-04-01 14:30:19.948
-!MESSAGE Error in JDT Core during reconcile
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:20.588
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.core;
-
-import net.minecraft.block.Block;
-import net.minecraft.block.IGrowable;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.world.World;
-import net.minecraftforge.common.ForgeHooks;
-import net.minecraftforge.event.world.BlockEvent;
-
-public class CommonHelper {
-
- public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
- if(!(block instanceof IGrowable))
- return;
- IGrowable igrowable = (IGrowable)block;
- if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
- if(!world.isRemote)
- if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
- for(int i = 0; i < count; i++)
- igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
- }
-
- public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
- if(!world.isRemote) {
- BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
- if(event.isCanceled())
- return;
- if(checkAir) {
- if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
- world.setBlock(x, y, z, block, meta, 3);
- } else (y < 256)
- world.setBlock(x, y, z, block, meta, 3);
-
- }
- }
-}
-
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 14:30:20.589
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 14:30:20.591
-!MESSAGE Error in JDT Core during AST creation
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:22.955
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.core;
-
-import net.minecraft.block.Block;
-import net.minecraft.block.IGrowable;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.world.World;
-import net.minecraftforge.common.ForgeHooks;
-import net.minecraftforge.event.world.BlockEvent;
-
-public class CommonHelper {
-
- public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
- if(!(block instanceof IGrowable))
- return;
- IGrowable igrowable = (IGrowable)block;
- if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
- if(!world.isRemote)
- if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
- for(int i = 0; i < count; i++)
- igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
- }
-
- public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
- if(!world.isRemote) {
- BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
- if(event.isCanceled())
- return;
- if(checkAir) {
- if(world.getBlock(x, y, z).getMaterial() == Material. && y < 256)
- world.setBlock(x, y, z, block, meta, 3);
- } else (y < 256)
- world.setBlock(x, y, z, block, meta, 3);
-
- }
- }
-}
-
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 2 2022-04-01 14:30:22.956
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 0 2022-04-01 14:30:22.957
-!MESSAGE Error in JDT Core during reconcile
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:22.963
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.core;
-
-import net.minecraft.block.Block;
-import net.minecraft.block.IGrowable;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.world.World;
-import net.minecraftforge.common.ForgeHooks;
-import net.minecraftforge.event.world.BlockEvent;
-
-public class CommonHelper {
-
- public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
- if(!(block instanceof IGrowable))
- return;
- IGrowable igrowable = (IGrowable)block;
- if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
- if(!world.isRemote)
- if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
- for(int i = 0; i < count; i++)
- igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
- }
-
- public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
- if(!world.isRemote) {
- BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
- if(event.isCanceled())
- return;
- if(checkAir) {
- if(world.getBlock(x, y, z).getMaterial() == Material. && y < 256)
- world.setBlock(x, y, z, block, meta, 3);
- } else (y < 256)
- world.setBlock(x, y, z, block, meta, 3);
-
- }
- }
-}
-
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 14:30:22.964
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 14:30:22.964
-!MESSAGE Error in JDT Core during AST creation
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:24.963
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.core;
-
-import net.minecraft.block.Block;
-import net.minecraft.block.IGrowable;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.world.World;
-import net.minecraftforge.common.ForgeHooks;
-import net.minecraftforge.event.world.BlockEvent;
-
-public class CommonHelper {
-
- public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
- if(!(block instanceof IGrowable))
- return;
- IGrowable igrowable = (IGrowable)block;
- if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
- if(!world.isRemote)
- if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
- for(int i = 0; i < count; i++)
- igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
- }
-
- public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
- if(!world.isRemote) {
- BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
- if(event.isCanceled())
- return;
- if(checkAir) {
- if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
- world.setBlock(x, y, z, block, meta, 3);
- } else (y < 256)
- world.setBlock(x, y, z, block, meta, 3);
-
- }
- }
-}
-
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 2 2022-04-01 14:30:24.964
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 0 2022-04-01 14:30:24.964
-!MESSAGE Error in JDT Core during reconcile
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:25.277
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.core;
-
-import net.minecraft.block.Block;
-import net.minecraft.block.IGrowable;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.world.World;
-import net.minecraftforge.common.ForgeHooks;
-import net.minecraftforge.event.world.BlockEvent;
-
-public class CommonHelper {
-
- public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
- if(!(block instanceof IGrowable))
- return;
- IGrowable igrowable = (IGrowable)block;
- if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
- if(!world.isRemote)
- if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
- for(int i = 0; i < count; i++)
- igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
- }
-
- public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
- if(!world.isRemote) {
- BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
- if(event.isCanceled())
- return;
- if(checkAir) {
- if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
- world.setBlock(x, y, z, block, meta, 3);
- } else (y < 256)
- world.setBlock(x, y, z, block, meta, 3);
-
- }
- }
-}
-
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 14:30:25.279
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 14:30:25.279
-!MESSAGE Error in JDT Core during AST creation
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:25.969
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.core;
-
-import net.minecraft.block.Block;
-import net.minecraft.block.IGrowable;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.world.World;
-import net.minecraftforge.common.ForgeHooks;
-import net.minecraftforge.event.world.BlockEvent;
-
-public class CommonHelper {
-
- public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
- if(!(block instanceof IGrowable))
- return;
- IGrowable igrowable = (IGrowable)block;
- if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
- if(!world.isRemote)
- if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
- for(int i = 0; i < count; i++)
- igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
- }
-
- public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
- if(!world.isRemote) {
- BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
- if(event.isCanceled())
- return;
- if(checkAir) {
- if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
- world.setBlock(x, y, z, block, meta, 3);
- } else (y < 256)
- world.setBlock(x, y, z, block, meta, 3);
-
- }
- }
-}
-
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 2 2022-04-01 14:30:25.970
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 0 2022-04-01 14:30:25.971
-!MESSAGE Error in JDT Core during reconcile
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:27.321
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.core;
-
-import net.minecraft.block.Block;
-import net.minecraft.block.IGrowable;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.world.World;
-import net.minecraftforge.common.ForgeHooks;
-import net.minecraftforge.event.world.BlockEvent;
-
-public class CommonHelper {
-
- public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
- if(!(block instanceof IGrowable))
- return;
- IGrowable igrowable = (IGrowable)block;
- if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
- if(!world.isRemote)
- if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
- for(int i = 0; i < count; i++)
- igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
- }
-
- public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
- if(!world.isRemote) {
- BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
- if(event.isCanceled())
- return;
- if(checkAir) {
- if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
- world.setBlock(x, y, z, block, meta, 3);
- } else (y < 256)
- world.setBlock(x, y, z, block, meta, 3);
-
- }
- }
-}
-
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 14:30:27.322
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 14:30:27.324
-!MESSAGE Error in JDT Core during AST creation
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:28.977
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.core;
-
-import net.minecraft.block.Block;
-import net.minecraft.block.IGrowable;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.world.World;
-import net.minecraftforge.common.ForgeHooks;
-import net.minecraftforge.event.world.BlockEvent;
-
-public class CommonHelper {
-
- public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
- if(!(block instanceof IGrowable))
- return;
- IGrowable igrowable = (IGrowable)block;
- if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
- if(!world.isRemote)
- if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
- for(int i = 0; i < count; i++)
- igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
- }
-
- public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
- if(!world.isRemote) {
- BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
- if(event.isCanceled())
- return;
- if(checkAir) {
- if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
- world.setBlock(x, y, z, block, meta, 3);
- } else (y < 256)
- world.setBlock(x, y, z, block, meta, 3);
-
- }
- }
-}
-
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 2 2022-04-01 14:30:28.978
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 0 2022-04-01 14:30:28.978
-!MESSAGE Error in JDT Core during reconcile
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:31.987
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.core;
-
-import net.minecraft.block.Block;
-import net.minecraft.block.IGrowable;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.world.World;
-import net.minecraftforge.common.ForgeHooks;
-import net.minecraftforge.event.world.BlockEvent;
-
-public class CommonHelper {
-
- public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
- if(!(block instanceof IGrowable))
- return;
- IGrowable igrowable = (IGrowable)block;
- if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
- if(!world.isRemote)
- if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
- for(int i = 0; i < count; i++)
- igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
- }
-
- public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
- if(!world.isRemote) {
- BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
- if(event.isCanceled())
- return;
- if(checkAir) {
- if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
- world.setBlock(x, y, z, block, meta, 3);
- } else (y < 256)
- world.setBlock(x, y, z, block, meta, 3);
-
- }
- }
-}
-
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 2 2022-04-01 14:30:31.988
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 0 2022-04-01 14:30:31.988
-!MESSAGE Error in JDT Core during reconcile
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:35.995
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.core;
-
-import net.minecraft.block.Block;
-import net.minecraft.block.IGrowable;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.world.World;
-import net.minecraftforge.common.ForgeHooks;
-import net.minecraftforge.event.world.BlockEvent;
-
-public class CommonHelper {
-
- public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
- if(!(block instanceof IGrowable))
- return;
- IGrowable igrowable = (IGrowable)block;
- if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
- if(!world.isRemote)
- if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
- for(int i = 0; i < count; i++)
- igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
- }
-
- public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
- if(!world.isRemote) {
- BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
- if(event.isCanceled())
- return;
- if(checkAir) {
- if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
- world.setBlock(x, y, z, block, meta, 3);
- } else (y < 256)
- world.setBlock(x, y, z, block, meta, 3);
-
- }
- }
-}
-
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 2 2022-04-01 14:30:35.996
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 0 2022-04-01 14:30:35.997
-!MESSAGE Error in JDT Core during reconcile
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:38.002
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.core;
-
-import net.minecraft.block.Block;
-import net.minecraft.block.IGrowable;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.world.World;
-import net.minecraftforge.common.ForgeHooks;
-import net.minecraftforge.event.world.BlockEvent;
-
-public class CommonHelper {
-
- public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
- if(!(block instanceof IGrowable))
- return;
- IGrowable igrowable = (IGrowable)block;
- if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
- if(!world.isRemote)
- if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
- for(int i = 0; i < count; i++)
- igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
- }
-
- public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
- if(!world.isRemote) {
- BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
- if(event.isCanceled())
- return;
- if(checkAir) {
- if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
- world.setBlock(x, y, z, block, meta, 3);
- } else (y < 256)
- world.setBlock(x, y, z, block, meta, 3);
-
- }
- }
-}
-
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 2 2022-04-01 14:30:38.003
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 0 2022-04-01 14:30:38.003
-!MESSAGE Error in JDT Core during reconcile
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:38.006
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.core;
-
-import net.minecraft.block.Block;
-import net.minecraft.block.IGrowable;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.world.World;
-import net.minecraftforge.common.ForgeHooks;
-import net.minecraftforge.event.world.BlockEvent;
-
-public class CommonHelper {
-
- public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
- if(!(block instanceof IGrowable))
- return;
- IGrowable igrowable = (IGrowable)block;
- if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
- if(!world.isRemote)
- if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
- for(int i = 0; i < count; i++)
- igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
- }
-
- public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
- if(!world.isRemote) {
- BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
- if(event.isCanceled())
- return;
- if(checkAir) {
- if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
- world.setBlock(x, y, z, block, meta, 3);
- } else (y < 256)
- world.setBlock(x, y, z, block, meta, 3);
-
- }
- }
-}
-
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 14:30:38.006
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 14:30:38.006
-!MESSAGE Error in JDT Core during AST creation
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:42.509
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.core;
-
-import net.minecraft.block.Block;
-import net.minecraft.block.IGrowable;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.world.World;
-import net.minecraftforge.common.ForgeHooks;
-import net.minecraftforge.event.world.BlockEvent;
-
-public class CommonHelper {
-
- public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
- if(!(block instanceof IGrowable))
- return;
- IGrowable igrowable = (IGrowable)block;
- if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
- if(!world.isRemote)
- if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
- for(int i = 0; i < count; i++)
- igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
- }
-
- public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
- if(!world.isRemote) {
- BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
- if(event.isCanceled())
- return;
- if(checkAir) {
- if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
- world.setBlock(x, y, z, block, meta, 3);
- } else (y < 256)
- world.setBlock(x, y, z, block, meta, 3);
-
- }
- }
-}
-
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 2 2022-04-01 14:30:42.509
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 0 2022-04-01 14:30:42.510
-!MESSAGE Error in JDT Core during reconcile
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:42.513
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.core;
-
-import net.minecraft.block.Block;
-import net.minecraft.block.IGrowable;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.world.World;
-import net.minecraftforge.common.ForgeHooks;
-import net.minecraftforge.event.world.BlockEvent;
-
-public class CommonHelper {
-
- public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
- if(!(block instanceof IGrowable))
- return;
- IGrowable igrowable = (IGrowable)block;
- if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
- if(!world.isRemote)
- if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
- for(int i = 0; i < count; i++)
- igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
- }
-
- public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
- if(!world.isRemote) {
- BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
- if(event.isCanceled())
- return;
- if(checkAir) {
- if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
- world.setBlock(x, y, z, block, meta, 3);
- } else (y < 256)
- world.setBlock(x, y, z, block, meta, 3);
-
- }
- }
-}
-
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 14:30:42.514
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 14:30:42.514
-!MESSAGE Error in JDT Core during AST creation
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:44.016
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.core;
-
-import net.minecraft.block.Block;
-import net.minecraft.block.IGrowable;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.world.World;
-import net.minecraftforge.common.ForgeHooks;
-import net.minecraftforge.event.world.BlockEvent;
-
-public class CommonHelper {
-
- public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
- if(!(block instanceof IGrowable))
- return;
- IGrowable igrowable = (IGrowable)block;
- if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
- if(!world.isRemote)
- if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
- for(int i = 0; i < count; i++)
- igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
- }
-
- public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
- if(!world.isRemote) {
- BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
- if(event.isCanceled())
- return;
- if(checkAir) {
- if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
- world.setBlock(x, y, z, block, meta, 3);
- } else (y < 256)
- world.setBlock(x, y, z, block, meta, 3);
-
- }
- }
-}
-
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 2 2022-04-01 14:30:44.016
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 0 2022-04-01 14:30:44.017
-!MESSAGE Error in JDT Core during reconcile
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:44.638
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.core;
-
-import net.minecraft.block.Block;
-import net.minecraft.block.IGrowable;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.world.World;
-import net.minecraftforge.common.ForgeHooks;
-import net.minecraftforge.event.world.BlockEvent;
-
-public class CommonHelper {
-
- public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
- if(!(block instanceof IGrowable))
- return;
- IGrowable igrowable = (IGrowable)block;
- if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
- if(!world.isRemote)
- if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
- for(int i = 0; i < count; i++)
- igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
- }
-
- public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
- if(!world.isRemote) {
- BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
- if(event.isCanceled())
- return;
- if(checkAir) {
- if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
- world.setBlock(x, y, z, block, meta, 3);
- } else (y < 256)
- world.setBlock(x, y, z, block, meta, 3);
-
- }
- }
-}
-
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.internalGetHoverInfo(NLSStringHover.java:139)
- at org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.getHoverInfo2(NLSStringHover.java:118)
- at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:163)
- at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:130)
- at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:89)
- at org.eclipse.jface.text.TextViewerHoverManager$1.run(TextViewerHoverManager.java:155)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 14:30:44.639
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.internalGetHoverInfo(NLSStringHover.java:139)
- at org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.getHoverInfo2(NLSStringHover.java:118)
- at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:163)
- at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:130)
- at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:89)
- at org.eclipse.jface.text.TextViewerHoverManager$1.run(TextViewerHoverManager.java:155)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 14:30:44.639
-!MESSAGE Error in JDT Core during AST creation
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.internalGetHoverInfo(NLSStringHover.java:139)
- at org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.getHoverInfo2(NLSStringHover.java:118)
- at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:163)
- at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:130)
- at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:89)
- at org.eclipse.jface.text.TextViewerHoverManager$1.run(TextViewerHoverManager.java:155)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:44.866
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.core;
-
-import net.minecraft.block.Block;
-import net.minecraft.block.IGrowable;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.world.World;
-import net.minecraftforge.common.ForgeHooks;
-import net.minecraftforge.event.world.BlockEvent;
-
-public class CommonHelper {
-
- public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
- if(!(block instanceof IGrowable))
- return;
- IGrowable igrowable = (IGrowable)block;
- if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
- if(!world.isRemote)
- if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
- for(int i = 0; i < count; i++)
- igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
- }
-
- public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
- if(!world.isRemote) {
- BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
- if(event.isCanceled())
- return;
- if(checkAir) {
- if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
- world.setBlock(x, y, z, block, meta, 3);
- } else (y < 256)
- world.setBlock(x, y, z, block, meta, 3);
-
- }
- }
-}
-
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 14:30:44.866
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 14:30:44.867
-!MESSAGE Error in JDT Core during AST creation
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:47.023
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.core;
-
-import net.minecraft.block.Block;
-import net.minecraft.block.IGrowable;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.world.World;
-import net.minecraftforge.common.ForgeHooks;
-import net.minecraftforge.event.world.BlockEvent;
-
-public class CommonHelper {
-
- public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
- if(!(block instanceof IGrowable))
- return;
- IGrowable igrowable = (IGrowable)block;
- if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
- if(!world.isRemote)
- if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
- for(int i = 0; i < count; i++)
- igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
- }
-
- public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
- if(!world.isRemote) {
- BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
- if(event.isCanceled())
- return;
- if(checkAir) {
- if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
- world.setBlock(x, y, z, block, meta, 3);
- } else (y < 256)
- world.setBlock(x, y, z, block, meta, 3);
-
- }
- }
-}
-
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 2 2022-04-01 14:30:47.023
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 0 2022-04-01 14:30:47.024
-!MESSAGE Error in JDT Core during reconcile
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:47.461
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.core;
-
-import net.minecraft.block.Block;
-import net.minecraft.block.IGrowable;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.world.World;
-import net.minecraftforge.common.ForgeHooks;
-import net.minecraftforge.event.world.BlockEvent;
-
-public class CommonHelper {
-
- public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
- if(!(block instanceof IGrowable))
- return;
- IGrowable igrowable = (IGrowable)block;
- if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
- if(!world.isRemote)
- if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
- for(int i = 0; i < count; i++)
- igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
- }
-
- public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
- if(!world.isRemote) {
- BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
- if(event.isCanceled())
- return;
- if(checkAir) {
- if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
- world.setBlock(x, y, z, block, meta, 3);
- } else (y < 256)
- world.setBlock(x, y, z, block, meta, 3);
-
- }
- }
-}
-
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.internalGetHoverInfo(NLSStringHover.java:139)
- at org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.getHoverInfo2(NLSStringHover.java:118)
- at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:163)
- at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:130)
- at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:89)
- at org.eclipse.jface.text.TextViewerHoverManager$1.run(TextViewerHoverManager.java:155)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 14:30:47.461
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.internalGetHoverInfo(NLSStringHover.java:139)
- at org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.getHoverInfo2(NLSStringHover.java:118)
- at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:163)
- at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:130)
- at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:89)
- at org.eclipse.jface.text.TextViewerHoverManager$1.run(TextViewerHoverManager.java:155)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 14:30:47.462
-!MESSAGE Error in JDT Core during AST creation
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.internalGetHoverInfo(NLSStringHover.java:139)
- at org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.getHoverInfo2(NLSStringHover.java:118)
- at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:163)
- at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:130)
- at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:89)
- at org.eclipse.jface.text.TextViewerHoverManager$1.run(TextViewerHoverManager.java:155)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 14:30:47.653
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.core;
-
-import net.minecraft.block.Block;
-import net.minecraft.block.IGrowable;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.world.World;
-import net.minecraftforge.common.ForgeHooks;
-import net.minecraftforge.event.world.BlockEvent;
-
-public class CommonHelper {
-
- public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
- if(!(block instanceof IGrowable))
- return;
- IGrowable igrowable = (IGrowable)block;
- if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
- if(!world.isRemote)
- if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
- for(int i = 0; i < count; i++)
- igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
- }
-
- public static void setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
- if(!world.isRemote) {
- BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
- if(event.isCanceled())
- return;
- if(checkAir) {
- if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
- world.setBlock(x, y, z, block, meta, 3);
- } else (y < 256)
- world.setBlock(x, y, z, block, meta, 3);
-
- }
- }
-}
-
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 14:30:47.653
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 14:30:47.654
-!MESSAGE Error in JDT Core during AST creation
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 14:36:45.052
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 14:40:08.307
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 14:42:22.902
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 14:45:08.996
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 14:45:58.147
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 14:53:10.082
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 14:54:36.638
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 14:55:14.783
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 14:59:29.028
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 15:03:56.183
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 15:04:59.281
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 15:06:54.587
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 15:08:45.129
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 15:09:35.921
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 15:11:44.622
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 15:12:49.345
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 15:13:15.471
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 15:14:10.016
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 15:30:07.674
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 15:32:28.155
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 15:34:05.354
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 15:40:42.427
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 16:02:20.596
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 16:06:28.847
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 16:11:07.736
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 16:13:54.106
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 16:19:43.209
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 16:24:15.918
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.block.tile;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.api.IRenderHud;
-import ab.common.core.CommonHelper;
-import ab.common.lib.register.BlockListAB;
-import net.minecraft.block.Block;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.gui.Gui;
-import net.minecraft.client.gui.ScaledResolution;
-import net.minecraft.client.renderer.RenderHelper;
-import net.minecraft.client.renderer.entity.RenderItem;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.ItemBlock;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.world.World;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.api.lexicon.multiblock.Multiblock;
-import vazkii.botania.api.lexicon.multiblock.MultiblockSet;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.block.ModBlocks;
-import vazkii.botania.common.block.ModFluffBlocks;
-import vazkii.botania.common.block.tile.TileMod;
-import vazkii.botania.common.core.handler.ConfigHandler;
-
-public class TileLebethronCore extends TileMod implements IRenderHud {
-
- protected int tick;
- protected Block block;
- protected int meta;
- protected boolean validTree;
- private String playerName = "";
-
- public static MultiblockSet makeMultiblockSet() {
- Multiblock mb = new Multiblock();
- mb.addComponent(0, 1, 0, BlockListAB.blockLebethron, 4);
- mb.addComponent(0, 0, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 2, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 3, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 4, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 5, 0, BlockListAB.blockLebethron, 0);
- mb.setRenderOffset(0, 1, 0);
- return mb.makeSet();
- }
-
- public void updateEntity() {
- if(!world.isRemote) {
- if(tick <= 0) {
- updateStructure();
- if(validTree && getBlock() != null) {
- spawnLeaves();
- tick = 40;
- }
- } else
- tick--;
- }
- else(worldObj.isRemote && worldObj.rand.nextBoolean() && this.worldObj.isRemote)
- Botania.proxy.sparkleFX(this.worldObj, this.xCoord + Math.random(), this.yCoord + Math.random(), this.zCoord + Math.random(), 0.5F, 1.0F, 0.5F, (float)Math.random() * 2, 2);
- }
-
- public boolean getValidTree() {
- return this.validTree;
- }
-
- public void updateStructure() {
- boolean oldValidTree = validTree;
- validTree = hasValidTree();
- if(oldValidTree != validTree)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- }
-
- public void setPlayerName(String name) {
- if(playerName.isEmpty())
- playerName = name;
- }
-
- public void writeToNBT(NBTTagCompound nbtt) {
- super.writeToNBT(nbtt);
- nbtt.setString("playerName", playerName);
- }
-
- public void readFromNBT(NBTTagCompound nbtt) {
- super.readFromNBT(nbtt);
- playerName = nbtt.getString("playerName");
- }
-
- public void writeCustomNBT(NBTTagCompound nbtt) {
- nbtt.setInteger("blockID", Block.getIdFromBlock(block));
- nbtt.setInteger("blockMeta", this.meta);
- nbtt.setInteger("tick", this.tick);
- nbtt.setBoolean("validTree", validTree);
- }
-
- public void readCustomNBT(NBTTagCompound nbtt) {
- this.block = Block.getBlockById(nbtt.getInteger("blockID"));
- this.meta = nbtt.getInteger("blockMeta");
- this.tick = nbtt.getInteger("tick");
- this.validTree = nbtt.getBoolean("validTree");
- }
-
- public boolean setBlock(Block block, int meta) {
- if(this.block == null) {
- this.block = block;
- this.meta = meta;
- return true;
- } else {
- if(Block.isEqualTo(this.block, block) && this.meta == meta) {
- return false;
- }
- if(!this.worldObj.isRemote) {
- EntityItem entity = new EntityItem(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- entity.setEntityItemStack(new ItemStack(this.block, 1, this.meta));
- this.worldObj.spawnEntityInWorld(entity);
- }
- this.block = block;
- this.meta = meta;
- return true;
- }
- }
-
- public Block getBlock() {
- if(!Block.isEqualTo(block, Blocks.air) && block != null)
- return this.block;
- return null;
- }
-
- public int getMeta() {
- return this.meta;
- }
-
- public boolean hasValidTree() {
- if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord - 1, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord - 1, this.zCoord))) {
- return false;
- }
- for(int i = 1; i <= 4; i++) {
- if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord + i, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord + i, this.zCoord))) {
- return false;
- }
- }
- return true;
- }
-
- boolean checkBlock(Block block, int meta) {
- return block == BlockListAB.blockLebethron && meta == 0;
- }
-
- private void spawnLeaves() {
- for(int x = -1; x <= 1; x++)
- for(int z = -1; z <= 1; z++)
- for(int y = 0; y < 5; y++)
- this.setBlock(worldObj, this.xCoord + x, this.yCoord + y + 2, this.zCoord + z);
- this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 1, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 1, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord + 1);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord - 1);
- this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 7, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 7, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord + 1);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord - 1);
- for(int i = 0; i <= 3; i++)
- this.setBlock(worldObj, this.xCoord, this.yCoord + 6 + i, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord - 2);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord - 2);
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord - 2);
- }
- this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord - 2);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord + 2);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord + 2);
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord + 2);
- }
- this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord + 2);
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 2, this.zCoord);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 3, this.zCoord + i);
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 4, this.zCoord + i);
- }
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 5, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 2, this.zCoord);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 3, this.zCoord + i);
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 4, this.zCoord + i);
- }
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 5, this.zCoord);
- }
-
- private void setBlock(World world, int x, int y, int z) {
- EntityPlayer player = worldObj.getPlayerEntityByName(playerName);
- if(player != null) {
- if(world.rand.nextInt(10) <= 8)
- return;
- else
- CommonHelper.setBlock(world, block, meta, x, y, z, (EntityPlayerMP)player, true);
- }
- }
-
- public void renderHud(Minecraft mc, ScaledResolution res) {
- if(!validTree)
- return;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- ItemStack stack = getBlock() != null ? new ItemStack(block, 1, meta) : new ItemStack(Blocks.leaves);
- int x = res.getScaledWidth() / 2 - 7;
- int y = res.getScaledHeight() / 2 + 12;
- Gui.drawRect(x - 2, y - 2, x + 18, y + 18, 1140850688);
- Gui.drawRect(x, y, x + 16, y + 16, 1140850688);
- RenderHelper.enableGUIStandardItemLighting();
- GL11.glEnable(32826);
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, stack, x, y);
- RenderHelper.disableStandardItemLighting();
- GL11.glDisable(2929);
- boolean unicode = mc.fontRenderer.getUnicodeFlag();
- mc.fontRenderer.setUnicodeFlag(true);
- if(getBlock() != null) {
- mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 9, 19456);
- mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 8, 774669);
- } else {
- mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 9, 4980736);
- mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 8, 13764621);
- }
- mc.fontRenderer.setUnicodeFlag(unicode);
- GL11.glEnable(2929);
- GL11.glDisable(3042);
- }
-}
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 2 2022-04-01 16:24:15.919
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 0 2022-04-01 16:24:15.919
-!MESSAGE Error in JDT Core during reconcile
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 16:24:15.927
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.block.tile;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.api.IRenderHud;
-import ab.common.core.CommonHelper;
-import ab.common.lib.register.BlockListAB;
-import net.minecraft.block.Block;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.gui.Gui;
-import net.minecraft.client.gui.ScaledResolution;
-import net.minecraft.client.renderer.RenderHelper;
-import net.minecraft.client.renderer.entity.RenderItem;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.ItemBlock;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.world.World;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.api.lexicon.multiblock.Multiblock;
-import vazkii.botania.api.lexicon.multiblock.MultiblockSet;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.block.ModBlocks;
-import vazkii.botania.common.block.ModFluffBlocks;
-import vazkii.botania.common.block.tile.TileMod;
-import vazkii.botania.common.core.handler.ConfigHandler;
-
-public class TileLebethronCore extends TileMod implements IRenderHud {
-
- protected int tick;
- protected Block block;
- protected int meta;
- protected boolean validTree;
- private String playerName = "";
-
- public static MultiblockSet makeMultiblockSet() {
- Multiblock mb = new Multiblock();
- mb.addComponent(0, 1, 0, BlockListAB.blockLebethron, 4);
- mb.addComponent(0, 0, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 2, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 3, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 4, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 5, 0, BlockListAB.blockLebethron, 0);
- mb.setRenderOffset(0, 1, 0);
- return mb.makeSet();
- }
-
- public void updateEntity() {
- if(!world.isRemote) {
- if(tick <= 0) {
- updateStructure();
- if(validTree && getBlock() != null) {
- spawnLeaves();
- tick = 40;
- }
- } else
- tick--;
- }
- else(worldObj.isRemote && worldObj.rand.nextBoolean() && this.worldObj.isRemote)
- Botania.proxy.sparkleFX(this.worldObj, this.xCoord + Math.random(), this.yCoord + Math.random(), this.zCoord + Math.random(), 0.5F, 1.0F, 0.5F, (float)Math.random() * 2, 2);
- }
-
- public boolean getValidTree() {
- return this.validTree;
- }
-
- public void updateStructure() {
- boolean oldValidTree = validTree;
- validTree = hasValidTree();
- if(oldValidTree != validTree)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- }
-
- public void setPlayerName(String name) {
- if(playerName.isEmpty())
- playerName = name;
- }
-
- public void writeToNBT(NBTTagCompound nbtt) {
- super.writeToNBT(nbtt);
- nbtt.setString("playerName", playerName);
- }
-
- public void readFromNBT(NBTTagCompound nbtt) {
- super.readFromNBT(nbtt);
- playerName = nbtt.getString("playerName");
- }
-
- public void writeCustomNBT(NBTTagCompound nbtt) {
- nbtt.setInteger("blockID", Block.getIdFromBlock(block));
- nbtt.setInteger("blockMeta", this.meta);
- nbtt.setInteger("tick", this.tick);
- nbtt.setBoolean("validTree", validTree);
- }
-
- public void readCustomNBT(NBTTagCompound nbtt) {
- this.block = Block.getBlockById(nbtt.getInteger("blockID"));
- this.meta = nbtt.getInteger("blockMeta");
- this.tick = nbtt.getInteger("tick");
- this.validTree = nbtt.getBoolean("validTree");
- }
-
- public boolean setBlock(Block block, int meta) {
- if(this.block == null) {
- this.block = block;
- this.meta = meta;
- return true;
- } else {
- if(Block.isEqualTo(this.block, block) && this.meta == meta) {
- return false;
- }
- if(!this.worldObj.isRemote) {
- EntityItem entity = new EntityItem(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- entity.setEntityItemStack(new ItemStack(this.block, 1, this.meta));
- this.worldObj.spawnEntityInWorld(entity);
- }
- this.block = block;
- this.meta = meta;
- return true;
- }
- }
-
- public Block getBlock() {
- if(!Block.isEqualTo(block, Blocks.air) && block != null)
- return this.block;
- return null;
- }
-
- public int getMeta() {
- return this.meta;
- }
-
- public boolean hasValidTree() {
- if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord - 1, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord - 1, this.zCoord))) {
- return false;
- }
- for(int i = 1; i <= 4; i++) {
- if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord + i, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord + i, this.zCoord))) {
- return false;
- }
- }
- return true;
- }
-
- boolean checkBlock(Block block, int meta) {
- return block == BlockListAB.blockLebethron && meta == 0;
- }
-
- private void spawnLeaves() {
- for(int x = -1; x <= 1; x++)
- for(int z = -1; z <= 1; z++)
- for(int y = 0; y < 5; y++)
- this.setBlock(worldObj, this.xCoord + x, this.yCoord + y + 2, this.zCoord + z);
- this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 1, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 1, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord + 1);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord - 1);
- this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 7, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 7, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord + 1);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord - 1);
- for(int i = 0; i <= 3; i++)
- this.setBlock(worldObj, this.xCoord, this.yCoord + 6 + i, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord - 2);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord - 2);
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord - 2);
- }
- this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord - 2);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord + 2);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord + 2);
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord + 2);
- }
- this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord + 2);
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 2, this.zCoord);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 3, this.zCoord + i);
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 4, this.zCoord + i);
- }
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 5, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 2, this.zCoord);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 3, this.zCoord + i);
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 4, this.zCoord + i);
- }
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 5, this.zCoord);
- }
-
- private void setBlock(World world, int x, int y, int z) {
- EntityPlayer player = worldObj.getPlayerEntityByName(playerName);
- if(player != null) {
- if(world.rand.nextInt(10) <= 8)
- return;
- else
- CommonHelper.setBlock(world, block, meta, x, y, z, (EntityPlayerMP)player, true);
- }
- }
-
- public void renderHud(Minecraft mc, ScaledResolution res) {
- if(!validTree)
- return;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- ItemStack stack = getBlock() != null ? new ItemStack(block, 1, meta) : new ItemStack(Blocks.leaves);
- int x = res.getScaledWidth() / 2 - 7;
- int y = res.getScaledHeight() / 2 + 12;
- Gui.drawRect(x - 2, y - 2, x + 18, y + 18, 1140850688);
- Gui.drawRect(x, y, x + 16, y + 16, 1140850688);
- RenderHelper.enableGUIStandardItemLighting();
- GL11.glEnable(32826);
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, stack, x, y);
- RenderHelper.disableStandardItemLighting();
- GL11.glDisable(2929);
- boolean unicode = mc.fontRenderer.getUnicodeFlag();
- mc.fontRenderer.setUnicodeFlag(true);
- if(getBlock() != null) {
- mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 9, 19456);
- mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 8, 774669);
- } else {
- mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 9, 4980736);
- mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 8, 13764621);
- }
- mc.fontRenderer.setUnicodeFlag(unicode);
- GL11.glEnable(2929);
- GL11.glDisable(3042);
- }
-}
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 16:24:15.927
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 16:24:15.928
-!MESSAGE Error in JDT Core during AST creation
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 16:24:20.429
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.block.tile;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.api.IRenderHud;
-import ab.common.core.CommonHelper;
-import ab.common.lib.register.BlockListAB;
-import net.minecraft.block.Block;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.gui.Gui;
-import net.minecraft.client.gui.ScaledResolution;
-import net.minecraft.client.renderer.RenderHelper;
-import net.minecraft.client.renderer.entity.RenderItem;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.ItemBlock;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.world.World;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.api.lexicon.multiblock.Multiblock;
-import vazkii.botania.api.lexicon.multiblock.MultiblockSet;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.block.ModBlocks;
-import vazkii.botania.common.block.ModFluffBlocks;
-import vazkii.botania.common.block.tile.TileMod;
-import vazkii.botania.common.core.handler.ConfigHandler;
-
-public class TileLebethronCore extends TileMod implements IRenderHud {
-
- protected int tick;
- protected Block block;
- protected int meta;
- protected boolean validTree;
- private String playerName = "";
-
- public static MultiblockSet makeMultiblockSet() {
- Multiblock mb = new Multiblock();
- mb.addComponent(0, 1, 0, BlockListAB.blockLebethron, 4);
- mb.addComponent(0, 0, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 2, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 3, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 4, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 5, 0, BlockListAB.blockLebethron, 0);
- mb.setRenderOffset(0, 1, 0);
- return mb.makeSet();
- }
-
- public void updateEntity() {
- if(!worldObj.isRemote) {
- if(tick <= 0) {
- updateStructure();
- if(validTree && getBlock() != null) {
- spawnLeaves();
- tick = 40;
- }
- } else
- tick--;
- }
- else(worldObj.isRemote && worldObj.rand.nextBoolean() && this.worldObj.isRemote)
- Botania.proxy.sparkleFX(this.worldObj, this.xCoord + Math.random(), this.yCoord + Math.random(), this.zCoord + Math.random(), 0.5F, 1.0F, 0.5F, (float)Math.random() * 2, 2);
- }
-
- public boolean getValidTree() {
- return this.validTree;
- }
-
- public void updateStructure() {
- boolean oldValidTree = validTree;
- validTree = hasValidTree();
- if(oldValidTree != validTree)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- }
-
- public void setPlayerName(String name) {
- if(playerName.isEmpty())
- playerName = name;
- }
-
- public void writeToNBT(NBTTagCompound nbtt) {
- super.writeToNBT(nbtt);
- nbtt.setString("playerName", playerName);
- }
-
- public void readFromNBT(NBTTagCompound nbtt) {
- super.readFromNBT(nbtt);
- playerName = nbtt.getString("playerName");
- }
-
- public void writeCustomNBT(NBTTagCompound nbtt) {
- nbtt.setInteger("blockID", Block.getIdFromBlock(block));
- nbtt.setInteger("blockMeta", this.meta);
- nbtt.setInteger("tick", this.tick);
- nbtt.setBoolean("validTree", validTree);
- }
-
- public void readCustomNBT(NBTTagCompound nbtt) {
- this.block = Block.getBlockById(nbtt.getInteger("blockID"));
- this.meta = nbtt.getInteger("blockMeta");
- this.tick = nbtt.getInteger("tick");
- this.validTree = nbtt.getBoolean("validTree");
- }
-
- public boolean setBlock(Block block, int meta) {
- if(this.block == null) {
- this.block = block;
- this.meta = meta;
- return true;
- } else {
- if(Block.isEqualTo(this.block, block) && this.meta == meta) {
- return false;
- }
- if(!this.worldObj.isRemote) {
- EntityItem entity = new EntityItem(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- entity.setEntityItemStack(new ItemStack(this.block, 1, this.meta));
- this.worldObj.spawnEntityInWorld(entity);
- }
- this.block = block;
- this.meta = meta;
- return true;
- }
- }
-
- public Block getBlock() {
- if(!Block.isEqualTo(block, Blocks.air) && block != null)
- return this.block;
- return null;
- }
-
- public int getMeta() {
- return this.meta;
- }
-
- public boolean hasValidTree() {
- if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord - 1, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord - 1, this.zCoord))) {
- return false;
- }
- for(int i = 1; i <= 4; i++) {
- if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord + i, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord + i, this.zCoord))) {
- return false;
- }
- }
- return true;
- }
-
- boolean checkBlock(Block block, int meta) {
- return block == BlockListAB.blockLebethron && meta == 0;
- }
-
- private void spawnLeaves() {
- for(int x = -1; x <= 1; x++)
- for(int z = -1; z <= 1; z++)
- for(int y = 0; y < 5; y++)
- this.setBlock(worldObj, this.xCoord + x, this.yCoord + y + 2, this.zCoord + z);
- this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 1, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 1, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord + 1);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord - 1);
- this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 7, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 7, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord + 1);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord - 1);
- for(int i = 0; i <= 3; i++)
- this.setBlock(worldObj, this.xCoord, this.yCoord + 6 + i, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord - 2);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord - 2);
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord - 2);
- }
- this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord - 2);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord + 2);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord + 2);
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord + 2);
- }
- this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord + 2);
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 2, this.zCoord);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 3, this.zCoord + i);
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 4, this.zCoord + i);
- }
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 5, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 2, this.zCoord);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 3, this.zCoord + i);
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 4, this.zCoord + i);
- }
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 5, this.zCoord);
- }
-
- private void setBlock(World world, int x, int y, int z) {
- EntityPlayer player = worldObj.getPlayerEntityByName(playerName);
- if(player != null) {
- if(world.rand.nextInt(10) <= 8)
- return;
- else
- CommonHelper.setBlock(world, block, meta, x, y, z, (EntityPlayerMP)player, true);
- }
- }
-
- public void renderHud(Minecraft mc, ScaledResolution res) {
- if(!validTree)
- return;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- ItemStack stack = getBlock() != null ? new ItemStack(block, 1, meta) : new ItemStack(Blocks.leaves);
- int x = res.getScaledWidth() / 2 - 7;
- int y = res.getScaledHeight() / 2 + 12;
- Gui.drawRect(x - 2, y - 2, x + 18, y + 18, 1140850688);
- Gui.drawRect(x, y, x + 16, y + 16, 1140850688);
- RenderHelper.enableGUIStandardItemLighting();
- GL11.glEnable(32826);
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, stack, x, y);
- RenderHelper.disableStandardItemLighting();
- GL11.glDisable(2929);
- boolean unicode = mc.fontRenderer.getUnicodeFlag();
- mc.fontRenderer.setUnicodeFlag(true);
- if(getBlock() != null) {
- mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 9, 19456);
- mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 8, 774669);
- } else {
- mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 9, 4980736);
- mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 8, 13764621);
- }
- mc.fontRenderer.setUnicodeFlag(unicode);
- GL11.glEnable(2929);
- GL11.glDisable(3042);
- }
-}
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 2 2022-04-01 16:24:20.430
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 0 2022-04-01 16:24:20.430
-!MESSAGE Error in JDT Core during reconcile
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 16:24:20.616
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.block.tile;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.api.IRenderHud;
-import ab.common.core.CommonHelper;
-import ab.common.lib.register.BlockListAB;
-import net.minecraft.block.Block;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.gui.Gui;
-import net.minecraft.client.gui.ScaledResolution;
-import net.minecraft.client.renderer.RenderHelper;
-import net.minecraft.client.renderer.entity.RenderItem;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.ItemBlock;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.world.World;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.api.lexicon.multiblock.Multiblock;
-import vazkii.botania.api.lexicon.multiblock.MultiblockSet;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.block.ModBlocks;
-import vazkii.botania.common.block.ModFluffBlocks;
-import vazkii.botania.common.block.tile.TileMod;
-import vazkii.botania.common.core.handler.ConfigHandler;
-
-public class TileLebethronCore extends TileMod implements IRenderHud {
-
- protected int tick;
- protected Block block;
- protected int meta;
- protected boolean validTree;
- private String playerName = "";
-
- public static MultiblockSet makeMultiblockSet() {
- Multiblock mb = new Multiblock();
- mb.addComponent(0, 1, 0, BlockListAB.blockLebethron, 4);
- mb.addComponent(0, 0, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 2, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 3, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 4, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 5, 0, BlockListAB.blockLebethron, 0);
- mb.setRenderOffset(0, 1, 0);
- return mb.makeSet();
- }
-
- public void updateEntity() {
- if(!worldObj.isRemote) {
- if(tick <= 0) {
- updateStructure();
- if(validTree && getBlock() != null) {
- spawnLeaves();
- tick = 40;
- }
- } else
- tick--;
- }
- else(worldObj.isRemote && worldObj.rand.nextBoolean() && this.worldObj.isRemote)
- Botania.proxy.sparkleFX(this.worldObj, this.xCoord + Math.random(), this.yCoord + Math.random(), this.zCoord + Math.random(), 0.5F, 1.0F, 0.5F, (float)Math.random() * 2, 2);
- }
-
- public boolean getValidTree() {
- return this.validTree;
- }
-
- public void updateStructure() {
- boolean oldValidTree = validTree;
- validTree = hasValidTree();
- if(oldValidTree != validTree)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- }
-
- public void setPlayerName(String name) {
- if(playerName.isEmpty())
- playerName = name;
- }
-
- public void writeToNBT(NBTTagCompound nbtt) {
- super.writeToNBT(nbtt);
- nbtt.setString("playerName", playerName);
- }
-
- public void readFromNBT(NBTTagCompound nbtt) {
- super.readFromNBT(nbtt);
- playerName = nbtt.getString("playerName");
- }
-
- public void writeCustomNBT(NBTTagCompound nbtt) {
- nbtt.setInteger("blockID", Block.getIdFromBlock(block));
- nbtt.setInteger("blockMeta", this.meta);
- nbtt.setInteger("tick", this.tick);
- nbtt.setBoolean("validTree", validTree);
- }
-
- public void readCustomNBT(NBTTagCompound nbtt) {
- this.block = Block.getBlockById(nbtt.getInteger("blockID"));
- this.meta = nbtt.getInteger("blockMeta");
- this.tick = nbtt.getInteger("tick");
- this.validTree = nbtt.getBoolean("validTree");
- }
-
- public boolean setBlock(Block block, int meta) {
- if(this.block == null) {
- this.block = block;
- this.meta = meta;
- return true;
- } else {
- if(Block.isEqualTo(this.block, block) && this.meta == meta) {
- return false;
- }
- if(!this.worldObj.isRemote) {
- EntityItem entity = new EntityItem(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- entity.setEntityItemStack(new ItemStack(this.block, 1, this.meta));
- this.worldObj.spawnEntityInWorld(entity);
- }
- this.block = block;
- this.meta = meta;
- return true;
- }
- }
-
- public Block getBlock() {
- if(!Block.isEqualTo(block, Blocks.air) && block != null)
- return this.block;
- return null;
- }
-
- public int getMeta() {
- return this.meta;
- }
-
- public boolean hasValidTree() {
- if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord - 1, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord - 1, this.zCoord))) {
- return false;
- }
- for(int i = 1; i <= 4; i++) {
- if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord + i, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord + i, this.zCoord))) {
- return false;
- }
- }
- return true;
- }
-
- boolean checkBlock(Block block, int meta) {
- return block == BlockListAB.blockLebethron && meta == 0;
- }
-
- private void spawnLeaves() {
- for(int x = -1; x <= 1; x++)
- for(int z = -1; z <= 1; z++)
- for(int y = 0; y < 5; y++)
- this.setBlock(worldObj, this.xCoord + x, this.yCoord + y + 2, this.zCoord + z);
- this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 1, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 1, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord + 1);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord - 1);
- this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 7, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 7, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord + 1);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord - 1);
- for(int i = 0; i <= 3; i++)
- this.setBlock(worldObj, this.xCoord, this.yCoord + 6 + i, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord - 2);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord - 2);
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord - 2);
- }
- this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord - 2);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord + 2);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord + 2);
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord + 2);
- }
- this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord + 2);
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 2, this.zCoord);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 3, this.zCoord + i);
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 4, this.zCoord + i);
- }
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 5, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 2, this.zCoord);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 3, this.zCoord + i);
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 4, this.zCoord + i);
- }
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 5, this.zCoord);
- }
-
- private void setBlock(World world, int x, int y, int z) {
- EntityPlayer player = worldObj.getPlayerEntityByName(playerName);
- if(player != null) {
- if(world.rand.nextInt(10) <= 8)
- return;
- else
- CommonHelper.setBlock(world, block, meta, x, y, z, (EntityPlayerMP)player, true);
- }
- }
-
- public void renderHud(Minecraft mc, ScaledResolution res) {
- if(!validTree)
- return;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- ItemStack stack = getBlock() != null ? new ItemStack(block, 1, meta) : new ItemStack(Blocks.leaves);
- int x = res.getScaledWidth() / 2 - 7;
- int y = res.getScaledHeight() / 2 + 12;
- Gui.drawRect(x - 2, y - 2, x + 18, y + 18, 1140850688);
- Gui.drawRect(x, y, x + 16, y + 16, 1140850688);
- RenderHelper.enableGUIStandardItemLighting();
- GL11.glEnable(32826);
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, stack, x, y);
- RenderHelper.disableStandardItemLighting();
- GL11.glDisable(2929);
- boolean unicode = mc.fontRenderer.getUnicodeFlag();
- mc.fontRenderer.setUnicodeFlag(true);
- if(getBlock() != null) {
- mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 9, 19456);
- mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 8, 774669);
- } else {
- mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 9, 4980736);
- mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 8, 13764621);
- }
- mc.fontRenderer.setUnicodeFlag(unicode);
- GL11.glEnable(2929);
- GL11.glDisable(3042);
- }
-}
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 16:24:20.617
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 16:24:20.618
-!MESSAGE Error in JDT Core during AST creation
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 16:24:21.938
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.block.tile;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.api.IRenderHud;
-import ab.common.core.CommonHelper;
-import ab.common.lib.register.BlockListAB;
-import net.minecraft.block.Block;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.gui.Gui;
-import net.minecraft.client.gui.ScaledResolution;
-import net.minecraft.client.renderer.RenderHelper;
-import net.minecraft.client.renderer.entity.RenderItem;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.ItemBlock;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.world.World;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.api.lexicon.multiblock.Multiblock;
-import vazkii.botania.api.lexicon.multiblock.MultiblockSet;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.block.ModBlocks;
-import vazkii.botania.common.block.ModFluffBlocks;
-import vazkii.botania.common.block.tile.TileMod;
-import vazkii.botania.common.core.handler.ConfigHandler;
-
-public class TileLebethronCore extends TileMod implements IRenderHud {
-
- protected int tick;
- protected Block block;
- protected int meta;
- protected boolean validTree;
- private String playerName = "";
-
- public static MultiblockSet makeMultiblockSet() {
- Multiblock mb = new Multiblock();
- mb.addComponent(0, 1, 0, BlockListAB.blockLebethron, 4);
- mb.addComponent(0, 0, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 2, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 3, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 4, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 5, 0, BlockListAB.blockLebethron, 0);
- mb.setRenderOffset(0, 1, 0);
- return mb.makeSet();
- }
-
- public void updateEntity() {
- if(!worldObj.isRemote) {
- if(tick <= 0) {
- updateStructure();
- if(validTree && getBlock() != null) {
- spawnLeaves();
- tick = 40;
- }
- } else
- tick--;
- }
- else(worldObj.isRemote && worldObj.rand.nextBoolean() && this.worldObj.isRemote)
- Botania.proxy.sparkleFX(this.worldObj, this.xCoord + Math.random(), this.yCoord + Math.random(), this.zCoord + Math.random(), 0.5F, 1.0F, 0.5F, (float)Math.random() * 2, 2);
- }
-
- public boolean getValidTree() {
- return this.validTree;
- }
-
- public void updateStructure() {
- boolean oldValidTree = validTree;
- validTree = hasValidTree();
- if(oldValidTree != validTree)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- }
-
- public void setPlayerName(String name) {
- if(playerName.isEmpty())
- playerName = name;
- }
-
- public void writeToNBT(NBTTagCompound nbtt) {
- super.writeToNBT(nbtt);
- nbtt.setString("playerName", playerName);
- }
-
- public void readFromNBT(NBTTagCompound nbtt) {
- super.readFromNBT(nbtt);
- playerName = nbtt.getString("playerName");
- }
-
- public void writeCustomNBT(NBTTagCompound nbtt) {
- nbtt.setInteger("blockID", Block.getIdFromBlock(block));
- nbtt.setInteger("blockMeta", this.meta);
- nbtt.setInteger("tick", this.tick);
- nbtt.setBoolean("validTree", validTree);
- }
-
- public void readCustomNBT(NBTTagCompound nbtt) {
- this.block = Block.getBlockById(nbtt.getInteger("blockID"));
- this.meta = nbtt.getInteger("blockMeta");
- this.tick = nbtt.getInteger("tick");
- this.validTree = nbtt.getBoolean("validTree");
- }
-
- public boolean setBlock(Block block, int meta) {
- if(this.block == null) {
- this.block = block;
- this.meta = meta;
- return true;
- } else {
- if(Block.isEqualTo(this.block, block) && this.meta == meta) {
- return false;
- }
- if(!this.worldObj.isRemote) {
- EntityItem entity = new EntityItem(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- entity.setEntityItemStack(new ItemStack(this.block, 1, this.meta));
- this.worldObj.spawnEntityInWorld(entity);
- }
- this.block = block;
- this.meta = meta;
- return true;
- }
- }
-
- public Block getBlock() {
- if(!Block.isEqualTo(block, Blocks.air) && block != null)
- return this.block;
- return null;
- }
-
- public int getMeta() {
- return this.meta;
- }
-
- public boolean hasValidTree() {
- if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord - 1, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord - 1, this.zCoord))) {
- return false;
- }
- for(int i = 1; i <= 4; i++) {
- if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord + i, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord + i, this.zCoord))) {
- return false;
- }
- }
- return true;
- }
-
- boolean checkBlock(Block block, int meta) {
- return block == BlockListAB.blockLebethron && meta == 0;
- }
-
- private void spawnLeaves() {
- for(int x = -1; x <= 1; x++)
- for(int z = -1; z <= 1; z++)
- for(int y = 0; y < 5; y++)
- this.setBlock(worldObj, this.xCoord + x, this.yCoord + y + 2, this.zCoord + z);
- this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 1, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 1, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord + 1);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord - 1);
- this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 7, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 7, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord + 1);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord - 1);
- for(int i = 0; i <= 3; i++)
- this.setBlock(worldObj, this.xCoord, this.yCoord + 6 + i, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord - 2);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord - 2);
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord - 2);
- }
- this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord - 2);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord + 2);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord + 2);
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord + 2);
- }
- this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord + 2);
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 2, this.zCoord);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 3, this.zCoord + i);
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 4, this.zCoord + i);
- }
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 5, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 2, this.zCoord);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 3, this.zCoord + i);
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 4, this.zCoord + i);
- }
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 5, this.zCoord);
- }
-
- private void setBlock(World world, int x, int y, int z) {
- EntityPlayer player = worldObj.getPlayerEntityByName(playerName);
- if(player != null) {
- if(world.rand.nextInt(10) <= 8)
- return;
- else
- CommonHelper.setBlock(world, block, meta, x, y, z, (EntityPlayerMP)player, true);
- }
- }
-
- public void renderHud(Minecraft mc, ScaledResolution res) {
- if(!validTree)
- return;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- ItemStack stack = getBlock() != null ? new ItemStack(block, 1, meta) : new ItemStack(Blocks.leaves);
- int x = res.getScaledWidth() / 2 - 7;
- int y = res.getScaledHeight() / 2 + 12;
- Gui.drawRect(x - 2, y - 2, x + 18, y + 18, 1140850688);
- Gui.drawRect(x, y, x + 16, y + 16, 1140850688);
- RenderHelper.enableGUIStandardItemLighting();
- GL11.glEnable(32826);
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, stack, x, y);
- RenderHelper.disableStandardItemLighting();
- GL11.glDisable(2929);
- boolean unicode = mc.fontRenderer.getUnicodeFlag();
- mc.fontRenderer.setUnicodeFlag(true);
- if(getBlock() != null) {
- mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 9, 19456);
- mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 8, 774669);
- } else {
- mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 9, 4980736);
- mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 8, 13764621);
- }
- mc.fontRenderer.setUnicodeFlag(unicode);
- GL11.glEnable(2929);
- GL11.glDisable(3042);
- }
-}
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 2 2022-04-01 16:24:21.939
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 0 2022-04-01 16:24:21.939
-!MESSAGE Error in JDT Core during reconcile
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 16:24:21.946
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.block.tile;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.api.IRenderHud;
-import ab.common.core.CommonHelper;
-import ab.common.lib.register.BlockListAB;
-import net.minecraft.block.Block;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.gui.Gui;
-import net.minecraft.client.gui.ScaledResolution;
-import net.minecraft.client.renderer.RenderHelper;
-import net.minecraft.client.renderer.entity.RenderItem;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.ItemBlock;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.world.World;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.api.lexicon.multiblock.Multiblock;
-import vazkii.botania.api.lexicon.multiblock.MultiblockSet;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.block.ModBlocks;
-import vazkii.botania.common.block.ModFluffBlocks;
-import vazkii.botania.common.block.tile.TileMod;
-import vazkii.botania.common.core.handler.ConfigHandler;
-
-public class TileLebethronCore extends TileMod implements IRenderHud {
-
- protected int tick;
- protected Block block;
- protected int meta;
- protected boolean validTree;
- private String playerName = "";
-
- public static MultiblockSet makeMultiblockSet() {
- Multiblock mb = new Multiblock();
- mb.addComponent(0, 1, 0, BlockListAB.blockLebethron, 4);
- mb.addComponent(0, 0, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 2, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 3, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 4, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 5, 0, BlockListAB.blockLebethron, 0);
- mb.setRenderOffset(0, 1, 0);
- return mb.makeSet();
- }
-
- public void updateEntity() {
- if(!worldObj.isRemote) {
- if(tick <= 0) {
- updateStructure();
- if(validTree && getBlock() != null) {
- spawnLeaves();
- tick = 40;
- }
- } else
- tick--;
- }
- else(worldObj.isRemote && worldObj.rand.nextBoolean() && this.worldObj.isRemote)
- Botania.proxy.sparkleFX(this.worldObj, this.xCoord + Math.random(), this.yCoord + Math.random(), this.zCoord + Math.random(), 0.5F, 1.0F, 0.5F, (float)Math.random() * 2, 2);
- }
-
- public boolean getValidTree() {
- return this.validTree;
- }
-
- public void updateStructure() {
- boolean oldValidTree = validTree;
- validTree = hasValidTree();
- if(oldValidTree != validTree)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- }
-
- public void setPlayerName(String name) {
- if(playerName.isEmpty())
- playerName = name;
- }
-
- public void writeToNBT(NBTTagCompound nbtt) {
- super.writeToNBT(nbtt);
- nbtt.setString("playerName", playerName);
- }
-
- public void readFromNBT(NBTTagCompound nbtt) {
- super.readFromNBT(nbtt);
- playerName = nbtt.getString("playerName");
- }
-
- public void writeCustomNBT(NBTTagCompound nbtt) {
- nbtt.setInteger("blockID", Block.getIdFromBlock(block));
- nbtt.setInteger("blockMeta", this.meta);
- nbtt.setInteger("tick", this.tick);
- nbtt.setBoolean("validTree", validTree);
- }
-
- public void readCustomNBT(NBTTagCompound nbtt) {
- this.block = Block.getBlockById(nbtt.getInteger("blockID"));
- this.meta = nbtt.getInteger("blockMeta");
- this.tick = nbtt.getInteger("tick");
- this.validTree = nbtt.getBoolean("validTree");
- }
-
- public boolean setBlock(Block block, int meta) {
- if(this.block == null) {
- this.block = block;
- this.meta = meta;
- return true;
- } else {
- if(Block.isEqualTo(this.block, block) && this.meta == meta) {
- return false;
- }
- if(!this.worldObj.isRemote) {
- EntityItem entity = new EntityItem(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- entity.setEntityItemStack(new ItemStack(this.block, 1, this.meta));
- this.worldObj.spawnEntityInWorld(entity);
- }
- this.block = block;
- this.meta = meta;
- return true;
- }
- }
-
- public Block getBlock() {
- if(!Block.isEqualTo(block, Blocks.air) && block != null)
- return this.block;
- return null;
- }
-
- public int getMeta() {
- return this.meta;
- }
-
- public boolean hasValidTree() {
- if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord - 1, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord - 1, this.zCoord))) {
- return false;
- }
- for(int i = 1; i <= 4; i++) {
- if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord + i, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord + i, this.zCoord))) {
- return false;
- }
- }
- return true;
- }
-
- boolean checkBlock(Block block, int meta) {
- return block == BlockListAB.blockLebethron && meta == 0;
- }
-
- private void spawnLeaves() {
- for(int x = -1; x <= 1; x++)
- for(int z = -1; z <= 1; z++)
- for(int y = 0; y < 5; y++)
- this.setBlock(worldObj, this.xCoord + x, this.yCoord + y + 2, this.zCoord + z);
- this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 1, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 1, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord + 1);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord - 1);
- this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 7, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 7, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord + 1);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord - 1);
- for(int i = 0; i <= 3; i++)
- this.setBlock(worldObj, this.xCoord, this.yCoord + 6 + i, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord - 2);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord - 2);
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord - 2);
- }
- this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord - 2);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord + 2);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord + 2);
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord + 2);
- }
- this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord + 2);
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 2, this.zCoord);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 3, this.zCoord + i);
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 4, this.zCoord + i);
- }
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 5, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 2, this.zCoord);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 3, this.zCoord + i);
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 4, this.zCoord + i);
- }
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 5, this.zCoord);
- }
-
- private void setBlock(World world, int x, int y, int z) {
- EntityPlayer player = worldObj.getPlayerEntityByName(playerName);
- if(player != null) {
- if(world.rand.nextInt(10) <= 8)
- return;
- else
- CommonHelper.setBlock(world, block, meta, x, y, z, (EntityPlayerMP)player, true);
- }
- }
-
- public void renderHud(Minecraft mc, ScaledResolution res) {
- if(!validTree)
- return;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- ItemStack stack = getBlock() != null ? new ItemStack(block, 1, meta) : new ItemStack(Blocks.leaves);
- int x = res.getScaledWidth() / 2 - 7;
- int y = res.getScaledHeight() / 2 + 12;
- Gui.drawRect(x - 2, y - 2, x + 18, y + 18, 1140850688);
- Gui.drawRect(x, y, x + 16, y + 16, 1140850688);
- RenderHelper.enableGUIStandardItemLighting();
- GL11.glEnable(32826);
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, stack, x, y);
- RenderHelper.disableStandardItemLighting();
- GL11.glDisable(2929);
- boolean unicode = mc.fontRenderer.getUnicodeFlag();
- mc.fontRenderer.setUnicodeFlag(true);
- if(getBlock() != null) {
- mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 9, 19456);
- mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 8, 774669);
- } else {
- mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 9, 4980736);
- mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 8, 13764621);
- }
- mc.fontRenderer.setUnicodeFlag(unicode);
- GL11.glEnable(2929);
- GL11.glDisable(3042);
- }
-}
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 16:24:21.947
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 16:24:21.948
-!MESSAGE Error in JDT Core during AST creation
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 16:24:24.946
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.block.tile;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.api.IRenderHud;
-import ab.common.core.CommonHelper;
-import ab.common.lib.register.BlockListAB;
-import net.minecraft.block.Block;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.gui.Gui;
-import net.minecraft.client.gui.ScaledResolution;
-import net.minecraft.client.renderer.RenderHelper;
-import net.minecraft.client.renderer.entity.RenderItem;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.ItemBlock;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.world.World;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.api.lexicon.multiblock.Multiblock;
-import vazkii.botania.api.lexicon.multiblock.MultiblockSet;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.block.ModBlocks;
-import vazkii.botania.common.block.ModFluffBlocks;
-import vazkii.botania.common.block.tile.TileMod;
-import vazkii.botania.common.core.handler.ConfigHandler;
-
-public class TileLebethronCore extends TileMod implements IRenderHud {
-
- protected int tick;
- protected Block block;
- protected int meta;
- protected boolean validTree;
- private String playerName = "";
-
- public static MultiblockSet makeMultiblockSet() {
- Multiblock mb = new Multiblock();
- mb.addComponent(0, 1, 0, BlockListAB.blockLebethron, 4);
- mb.addComponent(0, 0, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 2, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 3, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 4, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 5, 0, BlockListAB.blockLebethron, 0);
- mb.setRenderOffset(0, 1, 0);
- return mb.makeSet();
- }
-
- public void updateEntity() {
- if(!worldObj.isRemote) {
- if(tick <= 0) {
- updateStructure();
- if(validTree && getBlock() != null) {
- spawnLeaves();
- tick = 40;
- }
- } else
- tick--;
- }
- else(worldObj.isRemote && worldObj.rand.nextBoolean() && this.worldObj.isRemote)
- Botania.proxy.sparkleFX(this.worldObj, this.xCoord + Math.random(), this.yCoord + Math.random(), this.zCoord + Math.random(), 0.5F, 1.0F, 0.5F, (float)Math.random() * 2, 2);
- }
-
- public boolean getValidTree() {
- return this.validTree;
- }
-
- public void updateStructure() {
- boolean oldValidTree = validTree;
- validTree = hasValidTree();
- if(oldValidTree != validTree)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- }
-
- public void setPlayerName(String name) {
- if(playerName.isEmpty())
- playerName = name;
- }
-
- public void writeToNBT(NBTTagCompound nbtt) {
- super.writeToNBT(nbtt);
- nbtt.setString("playerName", playerName);
- }
-
- public void readFromNBT(NBTTagCompound nbtt) {
- super.readFromNBT(nbtt);
- playerName = nbtt.getString("playerName");
- }
-
- public void writeCustomNBT(NBTTagCompound nbtt) {
- nbtt.setInteger("blockID", Block.getIdFromBlock(block));
- nbtt.setInteger("blockMeta", this.meta);
- nbtt.setInteger("tick", this.tick);
- nbtt.setBoolean("validTree", validTree);
- }
-
- public void readCustomNBT(NBTTagCompound nbtt) {
- this.block = Block.getBlockById(nbtt.getInteger("blockID"));
- this.meta = nbtt.getInteger("blockMeta");
- this.tick = nbtt.getInteger("tick");
- this.validTree = nbtt.getBoolean("validTree");
- }
-
- public boolean setBlock(Block block, int meta) {
- if(this.block == null) {
- this.block = block;
- this.meta = meta;
- return true;
- } else {
- if(Block.isEqualTo(this.block, block) && this.meta == meta) {
- return false;
- }
- if(!this.worldObj.isRemote) {
- EntityItem entity = new EntityItem(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- entity.setEntityItemStack(new ItemStack(this.block, 1, this.meta));
- this.worldObj.spawnEntityInWorld(entity);
- }
- this.block = block;
- this.meta = meta;
- return true;
- }
- }
-
- public Block getBlock() {
- if(!Block.isEqualTo(block, Blocks.air) && block != null)
- return this.block;
- return null;
- }
-
- public int getMeta() {
- return this.meta;
- }
-
- public boolean hasValidTree() {
- if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord - 1, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord - 1, this.zCoord))) {
- return false;
- }
- for(int i = 1; i <= 4; i++) {
- if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord + i, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord + i, this.zCoord))) {
- return false;
- }
- }
- return true;
- }
-
- boolean checkBlock(Block block, int meta) {
- return block == BlockListAB.blockLebethron && meta == 0;
- }
-
- private void spawnLeaves() {
- for(int x = -1; x <= 1; x++)
- for(int z = -1; z <= 1; z++)
- for(int y = 0; y < 5; y++)
- this.setBlock(worldObj, this.xCoord + x, this.yCoord + y + 2, this.zCoord + z);
- this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 1, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 1, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord + 1);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord - 1);
- this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 7, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 7, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord + 1);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord - 1);
- for(int i = 0; i <= 3; i++)
- this.setBlock(worldObj, this.xCoord, this.yCoord + 6 + i, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord - 2);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord - 2);
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord - 2);
- }
- this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord - 2);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord + 2);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord + 2);
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord + 2);
- }
- this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord + 2);
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 2, this.zCoord);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 3, this.zCoord + i);
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 4, this.zCoord + i);
- }
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 5, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 2, this.zCoord);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 3, this.zCoord + i);
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 4, this.zCoord + i);
- }
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 5, this.zCoord);
- }
-
- private void setBlock(World world, int x, int y, int z) {
- EntityPlayer player = worldObj.getPlayerEntityByName(playerName);
- if(player != null) {
- if(world.rand.nextInt(10) <= 8)
- return;
- else
- CommonHelper.setBlock(world, block, meta, x, y, z, (EntityPlayerMP)player, true);
- }
- }
-
- public void renderHud(Minecraft mc, ScaledResolution res) {
- if(!validTree)
- return;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- ItemStack stack = getBlock() != null ? new ItemStack(block, 1, meta) : new ItemStack(Blocks.leaves);
- int x = res.getScaledWidth() / 2 - 7;
- int y = res.getScaledHeight() / 2 + 12;
- Gui.drawRect(x - 2, y - 2, x + 18, y + 18, 1140850688);
- Gui.drawRect(x, y, x + 16, y + 16, 1140850688);
- RenderHelper.enableGUIStandardItemLighting();
- GL11.glEnable(32826);
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, stack, x, y);
- RenderHelper.disableStandardItemLighting();
- GL11.glDisable(2929);
- boolean unicode = mc.fontRenderer.getUnicodeFlag();
- mc.fontRenderer.setUnicodeFlag(true);
- if(getBlock() != null) {
- mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 9, 19456);
- mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 8, 774669);
- } else {
- mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 9, 4980736);
- mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 8, 13764621);
- }
- mc.fontRenderer.setUnicodeFlag(unicode);
- GL11.glEnable(2929);
- GL11.glDisable(3042);
- }
-}
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 2 2022-04-01 16:24:24.946
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 0 2022-04-01 16:24:24.947
-!MESSAGE Error in JDT Core during reconcile
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 16:24:24.953
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.block.tile;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.api.IRenderHud;
-import ab.common.core.CommonHelper;
-import ab.common.lib.register.BlockListAB;
-import net.minecraft.block.Block;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.gui.Gui;
-import net.minecraft.client.gui.ScaledResolution;
-import net.minecraft.client.renderer.RenderHelper;
-import net.minecraft.client.renderer.entity.RenderItem;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.ItemBlock;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.world.World;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.api.lexicon.multiblock.Multiblock;
-import vazkii.botania.api.lexicon.multiblock.MultiblockSet;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.block.ModBlocks;
-import vazkii.botania.common.block.ModFluffBlocks;
-import vazkii.botania.common.block.tile.TileMod;
-import vazkii.botania.common.core.handler.ConfigHandler;
-
-public class TileLebethronCore extends TileMod implements IRenderHud {
-
- protected int tick;
- protected Block block;
- protected int meta;
- protected boolean validTree;
- private String playerName = "";
-
- public static MultiblockSet makeMultiblockSet() {
- Multiblock mb = new Multiblock();
- mb.addComponent(0, 1, 0, BlockListAB.blockLebethron, 4);
- mb.addComponent(0, 0, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 2, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 3, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 4, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 5, 0, BlockListAB.blockLebethron, 0);
- mb.setRenderOffset(0, 1, 0);
- return mb.makeSet();
- }
-
- public void updateEntity() {
- if(!worldObj.isRemote) {
- if(tick <= 0) {
- updateStructure();
- if(validTree && getBlock() != null) {
- spawnLeaves();
- tick = 40;
- }
- } else
- tick--;
- }
- else(worldObj.isRemote && worldObj.rand.nextBoolean() && this.worldObj.isRemote)
- Botania.proxy.sparkleFX(this.worldObj, this.xCoord + Math.random(), this.yCoord + Math.random(), this.zCoord + Math.random(), 0.5F, 1.0F, 0.5F, (float)Math.random() * 2, 2);
- }
-
- public boolean getValidTree() {
- return this.validTree;
- }
-
- public void updateStructure() {
- boolean oldValidTree = validTree;
- validTree = hasValidTree();
- if(oldValidTree != validTree)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- }
-
- public void setPlayerName(String name) {
- if(playerName.isEmpty())
- playerName = name;
- }
-
- public void writeToNBT(NBTTagCompound nbtt) {
- super.writeToNBT(nbtt);
- nbtt.setString("playerName", playerName);
- }
-
- public void readFromNBT(NBTTagCompound nbtt) {
- super.readFromNBT(nbtt);
- playerName = nbtt.getString("playerName");
- }
-
- public void writeCustomNBT(NBTTagCompound nbtt) {
- nbtt.setInteger("blockID", Block.getIdFromBlock(block));
- nbtt.setInteger("blockMeta", this.meta);
- nbtt.setInteger("tick", this.tick);
- nbtt.setBoolean("validTree", validTree);
- }
-
- public void readCustomNBT(NBTTagCompound nbtt) {
- this.block = Block.getBlockById(nbtt.getInteger("blockID"));
- this.meta = nbtt.getInteger("blockMeta");
- this.tick = nbtt.getInteger("tick");
- this.validTree = nbtt.getBoolean("validTree");
- }
-
- public boolean setBlock(Block block, int meta) {
- if(this.block == null) {
- this.block = block;
- this.meta = meta;
- return true;
- } else {
- if(Block.isEqualTo(this.block, block) && this.meta == meta) {
- return false;
- }
- if(!this.worldObj.isRemote) {
- EntityItem entity = new EntityItem(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- entity.setEntityItemStack(new ItemStack(this.block, 1, this.meta));
- this.worldObj.spawnEntityInWorld(entity);
- }
- this.block = block;
- this.meta = meta;
- return true;
- }
- }
-
- public Block getBlock() {
- if(!Block.isEqualTo(block, Blocks.air) && block != null)
- return this.block;
- return null;
- }
-
- public int getMeta() {
- return this.meta;
- }
-
- public boolean hasValidTree() {
- if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord - 1, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord - 1, this.zCoord))) {
- return false;
- }
- for(int i = 1; i <= 4; i++) {
- if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord + i, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord + i, this.zCoord))) {
- return false;
- }
- }
- return true;
- }
-
- boolean checkBlock(Block block, int meta) {
- return block == BlockListAB.blockLebethron && meta == 0;
- }
-
- private void spawnLeaves() {
- for(int x = -1; x <= 1; x++)
- for(int z = -1; z <= 1; z++)
- for(int y = 0; y < 5; y++)
- this.setBlock(worldObj, this.xCoord + x, this.yCoord + y + 2, this.zCoord + z);
- this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 1, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 1, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord + 1);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord - 1);
- this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 7, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 7, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord + 1);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord - 1);
- for(int i = 0; i <= 3; i++)
- this.setBlock(worldObj, this.xCoord, this.yCoord + 6 + i, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord - 2);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord - 2);
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord - 2);
- }
- this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord - 2);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord + 2);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord + 2);
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord + 2);
- }
- this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord + 2);
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 2, this.zCoord);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 3, this.zCoord + i);
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 4, this.zCoord + i);
- }
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 5, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 2, this.zCoord);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 3, this.zCoord + i);
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 4, this.zCoord + i);
- }
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 5, this.zCoord);
- }
-
- private void setBlock(World world, int x, int y, int z) {
- EntityPlayer player = worldObj.getPlayerEntityByName(playerName);
- if(player != null) {
- if(world.rand.nextInt(10) <= 8)
- return;
- else
- CommonHelper.setBlock(world, block, meta, x, y, z, (EntityPlayerMP)player, true);
- }
- }
-
- public void renderHud(Minecraft mc, ScaledResolution res) {
- if(!validTree)
- return;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- ItemStack stack = getBlock() != null ? new ItemStack(block, 1, meta) : new ItemStack(Blocks.leaves);
- int x = res.getScaledWidth() / 2 - 7;
- int y = res.getScaledHeight() / 2 + 12;
- Gui.drawRect(x - 2, y - 2, x + 18, y + 18, 1140850688);
- Gui.drawRect(x, y, x + 16, y + 16, 1140850688);
- RenderHelper.enableGUIStandardItemLighting();
- GL11.glEnable(32826);
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, stack, x, y);
- RenderHelper.disableStandardItemLighting();
- GL11.glDisable(2929);
- boolean unicode = mc.fontRenderer.getUnicodeFlag();
- mc.fontRenderer.setUnicodeFlag(true);
- if(getBlock() != null) {
- mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 9, 19456);
- mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 8, 774669);
- } else {
- mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 9, 4980736);
- mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 8, 13764621);
- }
- mc.fontRenderer.setUnicodeFlag(unicode);
- GL11.glEnable(2929);
- GL11.glDisable(3042);
- }
-}
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 16:24:24.954
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 16:24:24.955
-!MESSAGE Error in JDT Core during AST creation
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 16:24:35.979
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.block.tile;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.api.IRenderHud;
-import ab.common.core.CommonHelper;
-import ab.common.lib.register.BlockListAB;
-import net.minecraft.block.Block;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.gui.Gui;
-import net.minecraft.client.gui.ScaledResolution;
-import net.minecraft.client.renderer.RenderHelper;
-import net.minecraft.client.renderer.entity.RenderItem;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.ItemBlock;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.world.World;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.api.lexicon.multiblock.Multiblock;
-import vazkii.botania.api.lexicon.multiblock.MultiblockSet;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.block.ModBlocks;
-import vazkii.botania.common.block.ModFluffBlocks;
-import vazkii.botania.common.block.tile.TileMod;
-import vazkii.botania.common.core.handler.ConfigHandler;
-
-public class TileLebethronCore extends TileMod implements IRenderHud {
-
- protected int tick;
- protected Block block;
- protected int meta;
- protected boolean validTree;
- private String playerName = "";
-
- public static MultiblockSet makeMultiblockSet() {
- Multiblock mb = new Multiblock();
- mb.addComponent(0, 1, 0, BlockListAB.blockLebethron, 4);
- mb.addComponent(0, 0, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 2, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 3, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 4, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 5, 0, BlockListAB.blockLebethron, 0);
- mb.setRenderOffset(0, 1, 0);
- return mb.makeSet();
- }
-
- public void updateEntity() {
- if(!worldObj.isRemote) {
- if(tick <= 0) {
- updateStructure();
- if(validTree && getBlock() != null) {
- spawnLeaves();
- tick = 40;
- }
- } else
- tick--;
- }
- else(worldObj.isRemote && worldObj.rand.nextBoolean() && this.worldObj.isRemote)
- Botania.proxy.sparkleFX(this.worldObj, this.xCoord + Math.random(), this.yCoord + Math.random(), this.zCoord + Math.random(), 0.5F, 1.0F, 0.5F, (float)Math.random() * 2, 2);
- }
-
- public boolean getValidTree() {
- return this.validTree;
- }
-
- public void updateStructure() {
- boolean oldValidTree = validTree;
- validTree = hasValidTree();
- if(oldValidTree != validTree)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- }
-
- public void setPlayerName(String name) {
- if(playerName.isEmpty())
- playerName = name;
- }
-
- public void writeToNBT(NBTTagCompound nbtt) {
- super.writeToNBT(nbtt);
- nbtt.setString("playerName", playerName);
- }
-
- public void readFromNBT(NBTTagCompound nbtt) {
- super.readFromNBT(nbtt);
- playerName = nbtt.getString("playerName");
- }
-
- public void writeCustomNBT(NBTTagCompound nbtt) {
- nbtt.setInteger("blockID", Block.getIdFromBlock(block));
- nbtt.setInteger("blockMeta", this.meta);
- nbtt.setInteger("tick", this.tick);
- nbtt.setBoolean("validTree", validTree);
- }
-
- public void readCustomNBT(NBTTagCompound nbtt) {
- this.block = Block.getBlockById(nbtt.getInteger("blockID"));
- this.meta = nbtt.getInteger("blockMeta");
- this.tick = nbtt.getInteger("tick");
- this.validTree = nbtt.getBoolean("validTree");
- }
-
- public boolean setBlock(Block block, int meta) {
- if(this.block == null) {
- this.block = block;
- this.meta = meta;
- return true;
- } else {
- if(Block.isEqualTo(this.block, block) && this.meta == meta) {
- return false;
- }
- if(!this.worldObj.isRemote) {
- EntityItem entity = new EntityItem(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- entity.setEntityItemStack(new ItemStack(this.block, 1, this.meta));
- this.worldObj.spawnEntityInWorld(entity);
- }
- this.block = block;
- this.meta = meta;
- return true;
- }
- }
-
- public Block getBlock() {
- if(!Block.isEqualTo(block, Blocks.air) && block != null)
- return this.block;
- return null;
- }
-
- public int getMeta() {
- return this.meta;
- }
-
- public boolean hasValidTree() {
- if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord - 1, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord - 1, this.zCoord))) {
- return false;
- }
- for(int i = 1; i <= 4; i++) {
- if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord + i, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord + i, this.zCoord))) {
- return false;
- }
- }
- return true;
- }
-
- boolean checkBlock(Block block, int meta) {
- return block == BlockListAB.blockLebethron && meta == 0;
- }
-
- private void spawnLeaves() {
- for(int x = -1; x <= 1; x++)
- for(int z = -1; z <= 1; z++)
- for(int y = 0; y < 5; y++)
- this.setBlock(worldObj, this.xCoord + x, this.yCoord + y + 2, this.zCoord + z);
- this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 1, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 1, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord + 1);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord - 1);
- this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 7, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 7, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord + 1);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord - 1);
- for(int i = 0; i <= 3; i++)
- this.setBlock(worldObj, this.xCoord, this.yCoord + 6 + i, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord - 2);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord - 2);
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord - 2);
- }
- this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord - 2);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord + 2);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord + 2);
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord + 2);
- }
- this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord + 2);
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 2, this.zCoord);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 3, this.zCoord + i);
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 4, this.zCoord + i);
- }
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 5, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 2, this.zCoord);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 3, this.zCoord + i);
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 4, this.zCoord + i);
- }
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 5, this.zCoord);
- }
-
- private void setBlock(World world, int x, int y, int z) {
- EntityPlayer player = worldObj.getPlayerEntityByName(playerName);
- if(player != null) {
- if(world.rand.nextInt(10) <= 8)
- return;
- else
- CommonHelper.setBlock(world, block, meta, x, y, z, (EntityPlayerMP)player, true);
- }
- }
-
- public void renderHud(Minecraft mc, ScaledResolution res) {
- if(!validTree)
- return;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- ItemStack stack = getBlock() != null ? new ItemStack(block, 1, meta) : new ItemStack(Blocks.leaves);
- int x = res.getScaledWidth() / 2 - 7;
- int y = res.getScaledHeight() / 2 + 12;
- Gui.drawRect(x - 2, y - 2, x + 18, y + 18, 1140850688);
- Gui.drawRect(x, y, x + 16, y + 16, 1140850688);
- RenderHelper.enableGUIStandardItemLighting();
- GL11.glEnable(32826);
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, stack, x, y);
- RenderHelper.disableStandardItemLighting();
- GL11.glDisable(2929);
- boolean unicode = mc.fontRenderer.getUnicodeFlag();
- mc.fontRenderer.setUnicodeFlag(true);
- if(getBlock() != null) {
- mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 9, 19456);
- mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 8, 774669);
- } else {
- mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 9, 4980736);
- mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 8, 13764621);
- }
- mc.fontRenderer.setUnicodeFlag(unicode);
- GL11.glEnable(2929);
- GL11.glDisable(3042);
- }
-}
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 2 2022-04-01 16:24:35.980
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.ui 4 0 2022-04-01 16:24:35.980
-!MESSAGE Error in JDT Core during reconcile
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
- at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
- at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
- at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
- at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
- at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
- at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
- at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
- at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
- at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
- at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
- at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
- at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
-
-!ENTRY org.eclipse.jdt.core 4 4 2022-04-01 16:24:35.987
-!MESSAGE Exception occurred during compilation unit conversion:
------------------------------------ SOURCE BEGIN -------------------------------------
-package ab.common.block.tile;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.api.IRenderHud;
-import ab.common.core.CommonHelper;
-import ab.common.lib.register.BlockListAB;
-import net.minecraft.block.Block;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.gui.Gui;
-import net.minecraft.client.gui.ScaledResolution;
-import net.minecraft.client.renderer.RenderHelper;
-import net.minecraft.client.renderer.entity.RenderItem;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.ItemBlock;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.world.World;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.api.lexicon.multiblock.Multiblock;
-import vazkii.botania.api.lexicon.multiblock.MultiblockSet;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.block.ModBlocks;
-import vazkii.botania.common.block.ModFluffBlocks;
-import vazkii.botania.common.block.tile.TileMod;
-import vazkii.botania.common.core.handler.ConfigHandler;
-
-public class TileLebethronCore extends TileMod implements IRenderHud {
-
- protected int tick;
- protected Block block;
- protected int meta;
- protected boolean validTree;
- private String playerName = "";
-
- public static MultiblockSet makeMultiblockSet() {
- Multiblock mb = new Multiblock();
- mb.addComponent(0, 1, 0, BlockListAB.blockLebethron, 4);
- mb.addComponent(0, 0, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 2, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 3, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 4, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 5, 0, BlockListAB.blockLebethron, 0);
- mb.setRenderOffset(0, 1, 0);
- return mb.makeSet();
- }
-
- public void updateEntity() {
- if(!worldObj.isRemote) {
- if(tick <= 0) {
- updateStructure();
- if(validTree && getBlock() != null) {
- spawnLeaves();
- tick = 40;
- }
- } else
- tick--;
- }
- else(worldObj.isRemote && worldObj.rand.nextBoolean() && this.worldObj.isRemote)
- Botania.proxy.sparkleFX(this.worldObj, this.xCoord + Math.random(), this.yCoord + Math.random(), this.zCoord + Math.random(), 0.5F, 1.0F, 0.5F, (float)Math.random() * 2, 2);
- }
-
- public boolean getValidTree() {
- return this.validTree;
- }
-
- public void updateStructure() {
- boolean oldValidTree = validTree;
- validTree = hasValidTree();
- if(oldValidTree != validTree)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- }
-
- public void setPlayerName(String name) {
- if(playerName.isEmpty())
- playerName = name;
- }
-
- public void writeToNBT(NBTTagCompound nbtt) {
- super.writeToNBT(nbtt);
- nbtt.setString("playerName", playerName);
- }
-
- public void readFromNBT(NBTTagCompound nbtt) {
- super.readFromNBT(nbtt);
- playerName = nbtt.getString("playerName");
- }
-
- public void writeCustomNBT(NBTTagCompound nbtt) {
- nbtt.setInteger("blockID", Block.getIdFromBlock(block));
- nbtt.setInteger("blockMeta", this.meta);
- nbtt.setInteger("tick", this.tick);
- nbtt.setBoolean("validTree", validTree);
- }
-
- public void readCustomNBT(NBTTagCompound nbtt) {
- this.block = Block.getBlockById(nbtt.getInteger("blockID"));
- this.meta = nbtt.getInteger("blockMeta");
- this.tick = nbtt.getInteger("tick");
- this.validTree = nbtt.getBoolean("validTree");
- }
-
- public boolean setBlock(Block block, int meta) {
- if(this.block == null) {
- this.block = block;
- this.meta = meta;
- return true;
- } else {
- if(Block.isEqualTo(this.block, block) && this.meta == meta) {
- return false;
- }
- if(!this.worldObj.isRemote) {
- EntityItem entity = new EntityItem(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- entity.setEntityItemStack(new ItemStack(this.block, 1, this.meta));
- this.worldObj.spawnEntityInWorld(entity);
- }
- this.block = block;
- this.meta = meta;
- return true;
- }
- }
-
- public Block getBlock() {
- if(!Block.isEqualTo(block, Blocks.air) && block != null)
- return this.block;
- return null;
- }
-
- public int getMeta() {
- return this.meta;
- }
-
- public boolean hasValidTree() {
- if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord - 1, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord - 1, this.zCoord))) {
- return false;
- }
- for(int i = 1; i <= 4; i++) {
- if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord + i, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord + i, this.zCoord))) {
- return false;
- }
- }
- return true;
- }
-
- boolean checkBlock(Block block, int meta) {
- return block == BlockListAB.blockLebethron && meta == 0;
- }
-
- private void spawnLeaves() {
- for(int x = -1; x <= 1; x++)
- for(int z = -1; z <= 1; z++)
- for(int y = 0; y < 5; y++)
- this.setBlock(worldObj, this.xCoord + x, this.yCoord + y + 2, this.zCoord + z);
- this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 1, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 1, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord + 1);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord - 1);
- this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 7, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 7, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord + 1);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord - 1);
- for(int i = 0; i <= 3; i++)
- this.setBlock(worldObj, this.xCoord, this.yCoord + 6 + i, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord - 2);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord - 2);
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord - 2);
- }
- this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord - 2);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord + 2);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord + 2);
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord + 2);
- }
- this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord + 2);
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 2, this.zCoord);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 3, this.zCoord + i);
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 4, this.zCoord + i);
- }
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 5, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 2, this.zCoord);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 3, this.zCoord + i);
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 4, this.zCoord + i);
- }
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 5, this.zCoord);
- }
-
- private void setBlock(World world, int x, int y, int z) {
- EntityPlayer player = worldObj.getPlayerEntityByName(playerName);
- if(player != null) {
- if(world.rand.nextInt(10) <= 8)
- return;
- else
- CommonHelper.setBlock(world, block, meta, x, y, z, (EntityPlayerMP)player, true);
- }
- }
-
- public void renderHud(Minecraft mc, ScaledResolution res) {
- if(!validTree)
- return;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- ItemStack stack = getBlock() != null ? new ItemStack(block, 1, meta) : new ItemStack(Blocks.leaves);
- int x = res.getScaledWidth() / 2 - 7;
- int y = res.getScaledHeight() / 2 + 12;
- Gui.drawRect(x - 2, y - 2, x + 18, y + 18, 1140850688);
- Gui.drawRect(x, y, x + 16, y + 16, 1140850688);
- RenderHelper.enableGUIStandardItemLighting();
- GL11.glEnable(32826);
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, stack, x, y);
- RenderHelper.disableStandardItemLighting();
- GL11.glDisable(2929);
- boolean unicode = mc.fontRenderer.getUnicodeFlag();
- mc.fontRenderer.setUnicodeFlag(true);
- if(getBlock() != null) {
- mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 9, 19456);
- mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 8, 774669);
- } else {
- mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 9, 4980736);
- mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 8, 13764621);
- }
- mc.fontRenderer.setUnicodeFlag(unicode);
- GL11.glEnable(2929);
- GL11.glDisable(3042);
- }
-}
------------------------------------ SOURCE END -------------------------------------
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-01 16:24:35.987
-!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-01 16:24:35.988
-!MESSAGE Error in JDT Core during AST creation
-!STACK 0
-java.lang.IllegalArgumentException
- at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
- at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2248)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
- at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
- at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
- at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
- at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
- at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
- at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
- at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
- at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
- at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 16:24:56.679
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 16:27:45.817
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 16:32:59.039
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 16:37:48.833
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 17:00:46.066
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 17:05:47.697
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 17:26:23.560
-!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-
-!ENTRY org.eclipse.core.resources 2 10035 2022-04-01 17:47:05.564
-!MESSAGE The workspace will exit with unsaved changes in this session.
-!SESSION 2022-04-01 17:47:08.750 -----------------------------------------------
+!SESSION 2022-04-15 14:29:38.844 -----------------------------------------------
eclipse.buildId=4.22.0.I20211124-1800
java.version=17.0.1
java.vendor=Eclipse Adoptium
@@ -11457,18 +677,15 @@ BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=ru_RU
Framework arguments: -product org.eclipse.epp.package.java.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
-!ENTRY org.eclipse.core.resources 2 10035 2022-04-01 17:47:18.288
-!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.
-
-!ENTRY org.eclipse.jface 2 0 2022-04-01 17:47:24.279
+!ENTRY org.eclipse.jface 2 0 2022-04-15 14:29:52.792
!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
-!SUBENTRY 1 org.eclipse.jface 2 0 2022-04-01 17:47:24.279
+!SUBENTRY 1 org.eclipse.jface 2 0 2022-04-15 14:29:52.793
!MESSAGE A conflict occurred for CTRL+SHIFT+T:
Binding(CTRL+SHIFT+T,
ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type,
Open a type in a Java editor,
Category(org.eclipse.ui.category.navigate,Navigate,null,true),
- org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@452ec287,
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@6a552721,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
@@ -11476,17 +693,17 @@ Binding(CTRL+SHIFT+T,
ParameterizedCommand(Command(org.eclipse.lsp4e.symbolinworkspace,Go to Symbol in Workspace,
,
Category(org.eclipse.lsp4e.category,Language Servers,null,true),
- org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@41404aa2,
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@3815a7d1,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
-!SUBENTRY 1 org.eclipse.jface 2 0 2022-04-01 17:47:24.279
+!SUBENTRY 1 org.eclipse.jface 2 0 2022-04-15 14:29:52.793
!MESSAGE A conflict occurred for ALT+SHIFT+R:
Binding(ALT+SHIFT+R,
ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.rename.element,Rename - Refactoring ,
Rename the selected element,
Category(org.eclipse.jdt.ui.category.refactoring,Refactor - Java,Java Refactoring Actions,true),
- org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@b267745,
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@24dc150c,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
@@ -11494,27 +711,1722 @@ Binding(ALT+SHIFT+R,
ParameterizedCommand(Command(org.eclipse.ui.edit.rename,Rename,
Rename the selected item,
Category(org.eclipse.ui.category.file,File,null,true),
- org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@31e22365,
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@1d2d4d7a,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
-!ENTRY org.eclipse.egit.ui 2 0 2022-04-01 17:47:28.495
+!ENTRY org.eclipse.egit.ui 2 0 2022-04-15 14:29:57.308
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Users\Pulxes'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 17:47:36.023
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 14:30:02.492
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.ui 4 4 2022-04-01 18:07:26.873
-!MESSAGE To avoid deadlock while executing Display.syncExec() with argument: org.eclipse.debug.internal.ui.sourcelookup.Prompter$$Lambda$992/0x0000000100c64f28@1573bb54, thread Worker-0: Launching Client will interrupt UI thread.
-!SUBENTRY 1 org.eclipse.ui 4 4 2022-04-01 18:07:26.873
-!MESSAGE Worker-0: Launching Client thread is an instance of Worker or owns an ILock
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 14:52:25.825
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 14:53:22.330
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-15 15:10:39.145
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.client.render.tile;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Random;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.client.model.ModelNidavellirForge;
+import ab.common.block.tile.TileNidavellirForge;
+import net.minecraft.client.Minecraft;
+import net.minecraft.client.renderer.OpenGlHelper;
+import net.minecraft.client.renderer.Tessellator;
+import net.minecraft.client.renderer.entity.Render;
+import net.minecraft.client.renderer.entity.RenderManager;
+import net.minecraft.client.renderer.texture.TextureMap;
+import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.ResourceLocation;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.client.core.helper.ShaderHelper;
+import vazkii.botania.common.block.mana.BlockTerraPlate;
+
+public class RenderTileNidavellirForge extends TileEntitySpecialRenderer {
+
+ private List entityList = null;
+ private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/nidavellirForge.png");
+ private static final ModelNidavellirForge model = new ModelNidavellirForge();
+
+ public void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float f) {
+ TileNidavellirForge tile = (TileNidavellirForge)tileentity;
+ double worldTime = 0.0D;
+ int meta = 0;
+ if(tileentity != null && tileentity.getWorldObj() != null) {
+ (ClientTickHandler.ticksInGame + f)
+ worldTime += (new Random((tileentity.xCoord ^ tileentity.yCoord ^ tileentity.zCoord))).nextInt(360);
+ meta = tileentity.getWorldObj().getBlockMetadata(tileentity.xCoord, tileentity.yCoord, tileentity.zCoord);
+ }
+ float indetY = (float)(Math.sin(worldTime / 18.0D) / 24.0D);
+ GL11.glPushMatrix();
+ GL11.glEnable(32826);
+ GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
+ GL11.glTranslated(x, y, z);
+ GL11.glTranslatef(0.5f, 1.5f, 0.5f);
+ GL11.glRotatef(180, 1.0f, 0.0f, 1.0f);
+ Minecraft.getMinecraft().renderEngine.bindTexture(texture);
+ model.renderBottom();
+ GL11.glTranslatef(0.0f, indetY, 0.0f);
+ model.renderTop();
+ GL11.glEnable(32826);
+ GL11.glPopMatrix();
+ if(entityList == null) {
+ List list = new ArrayList();
+ for(int i = 0; i < tile.getSizeInventory(); i++) {
+ list.add(new EntityItem(tile.getWorldObj(), tile.xCoord, tile.yCoord, tile.zCoord));
+ }
+ entityList = list;
+ }
+ GL11.glPushMatrix();
+ GL11.glTranslated(x + 0.5f, y + 0.675f - indetY, z + 0.5f);
+ GL11.glScalef(0.2F, 0.225F, 0.225F);
+ for(int i = 1; i < entityList.size(); i++) {
+ GL11.glPushMatrix();
+ ItemStack stack = tile.getStackInSlot(i);
+ if(stack != null) {
+ switch(i) {
+ case 1:
+ GL11.glTranslated(0.15f, 0.0f, 0.0f);
+ break;
+ case 2:
+ GL11.glTranslated(-0.15f, 0.0f, -0.15f);
+ break;
+ case 3:
+ GL11.glTranslated(-0.15f, 0.0f, 0.15f);
+ break;
+ }
+ entityList.get(i).setEntityItemStack(stack);
+ entityList.get(i).age = ClientTickHandler.ticksInGame;
+ ((Render)RenderManager.instance.entityRenderMap.get(EntityItem.class)).doRender((Entity)entityList.get(i), 0.0D, 0.0D, 0.0D, 1.0F, f);
+ }
+ GL11.glPopMatrix();
+ }
+ GL11.glPopMatrix();
+ if(tile.getStackInSlot(0) != null) {
+ GL11.glPushMatrix();
+ GL11.glTranslated(x + 0.5, y + 0.915f - indetY, z + 0.5);
+ GL11.glScalef(0.45f, 0.45f, 0.45f);
+ entityList.get(0).setEntityItemStack(tile.getStackInSlot(0));
+ entityList.get(0).age = ClientTickHandler.ticksInGame;
+ ((Render)RenderManager.instance.entityRenderMap.get(EntityItem.class)).doRender((Entity)entityList.get(0), 0.0D, 0.0D, 0.0D, 1.0F, f);
+ GL11.glPopMatrix();
+ }
+ }
+}
+----------------------------------- SOURCE END -------------------------------------
!STACK 0
-java.lang.IllegalStateException: Call stack for thread Worker-0: Launching Client
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 2 2022-04-15 15:10:39.146
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 0 2022-04-15 15:10:39.147
+!MESSAGE Error in JDT Core during reconcile
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-15 15:10:39.163
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.client.render.tile;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Random;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.client.model.ModelNidavellirForge;
+import ab.common.block.tile.TileNidavellirForge;
+import net.minecraft.client.Minecraft;
+import net.minecraft.client.renderer.OpenGlHelper;
+import net.minecraft.client.renderer.Tessellator;
+import net.minecraft.client.renderer.entity.Render;
+import net.minecraft.client.renderer.entity.RenderManager;
+import net.minecraft.client.renderer.texture.TextureMap;
+import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.ResourceLocation;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.client.core.helper.ShaderHelper;
+import vazkii.botania.common.block.mana.BlockTerraPlate;
+
+public class RenderTileNidavellirForge extends TileEntitySpecialRenderer {
+
+ private List entityList = null;
+ private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/nidavellirForge.png");
+ private static final ModelNidavellirForge model = new ModelNidavellirForge();
+
+ public void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float f) {
+ TileNidavellirForge tile = (TileNidavellirForge)tileentity;
+ double worldTime = 0.0D;
+ int meta = 0;
+ if(tileentity != null && tileentity.getWorldObj() != null) {
+ (ClientTickHandler.ticksInGame + f)
+ worldTime += (new Random((tileentity.xCoord ^ tileentity.yCoord ^ tileentity.zCoord))).nextInt(360);
+ meta = tileentity.getWorldObj().getBlockMetadata(tileentity.xCoord, tileentity.yCoord, tileentity.zCoord);
+ }
+ float indetY = (float)(Math.sin(worldTime / 18.0D) / 24.0D);
+ GL11.glPushMatrix();
+ GL11.glEnable(32826);
+ GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
+ GL11.glTranslated(x, y, z);
+ GL11.glTranslatef(0.5f, 1.5f, 0.5f);
+ GL11.glRotatef(180, 1.0f, 0.0f, 1.0f);
+ Minecraft.getMinecraft().renderEngine.bindTexture(texture);
+ model.renderBottom();
+ GL11.glTranslatef(0.0f, indetY, 0.0f);
+ model.renderTop();
+ GL11.glEnable(32826);
+ GL11.glPopMatrix();
+ if(entityList == null) {
+ List list = new ArrayList();
+ for(int i = 0; i < tile.getSizeInventory(); i++) {
+ list.add(new EntityItem(tile.getWorldObj(), tile.xCoord, tile.yCoord, tile.zCoord));
+ }
+ entityList = list;
+ }
+ GL11.glPushMatrix();
+ GL11.glTranslated(x + 0.5f, y + 0.675f - indetY, z + 0.5f);
+ GL11.glScalef(0.2F, 0.225F, 0.225F);
+ for(int i = 1; i < entityList.size(); i++) {
+ GL11.glPushMatrix();
+ ItemStack stack = tile.getStackInSlot(i);
+ if(stack != null) {
+ switch(i) {
+ case 1:
+ GL11.glTranslated(0.15f, 0.0f, 0.0f);
+ break;
+ case 2:
+ GL11.glTranslated(-0.15f, 0.0f, -0.15f);
+ break;
+ case 3:
+ GL11.glTranslated(-0.15f, 0.0f, 0.15f);
+ break;
+ }
+ entityList.get(i).setEntityItemStack(stack);
+ entityList.get(i).age = ClientTickHandler.ticksInGame;
+ ((Render)RenderManager.instance.entityRenderMap.get(EntityItem.class)).doRender((Entity)entityList.get(i), 0.0D, 0.0D, 0.0D, 1.0F, f);
+ }
+ GL11.glPopMatrix();
+ }
+ GL11.glPopMatrix();
+ if(tile.getStackInSlot(0) != null) {
+ GL11.glPushMatrix();
+ GL11.glTranslated(x + 0.5, y + 0.915f - indetY, z + 0.5);
+ GL11.glScalef(0.45f, 0.45f, 0.45f);
+ entityList.get(0).setEntityItemStack(tile.getStackInSlot(0));
+ entityList.get(0).age = ClientTickHandler.ticksInGame;
+ ((Render)RenderManager.instance.entityRenderMap.get(EntityItem.class)).doRender((Entity)entityList.get(0), 0.0D, 0.0D, 0.0D, 1.0F, f);
+ GL11.glPopMatrix();
+ }
+ }
+}
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-15 15:10:39.164
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-15 15:10:39.165
+!MESSAGE Error in JDT Core during AST creation
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-15 15:10:40.158
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.client.render.tile;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Random;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.client.model.ModelNidavellirForge;
+import ab.common.block.tile.TileNidavellirForge;
+import net.minecraft.client.Minecraft;
+import net.minecraft.client.renderer.OpenGlHelper;
+import net.minecraft.client.renderer.Tessellator;
+import net.minecraft.client.renderer.entity.Render;
+import net.minecraft.client.renderer.entity.RenderManager;
+import net.minecraft.client.renderer.texture.TextureMap;
+import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.ResourceLocation;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.client.core.helper.ShaderHelper;
+import vazkii.botania.common.block.mana.BlockTerraPlate;
+
+public class RenderTileNidavellirForge extends TileEntitySpecialRenderer {
+
+ private List entityList = null;
+ private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/nidavellirForge.png");
+ private static final ModelNidavellirForge model = new ModelNidavellirForge();
+
+ public void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float f) {
+ TileNidavellirForge tile = (TileNidavellirForge)tileentity;
+ double worldTime = 0.0D;
+ int meta = 0;
+ if(tileentity != null && tileentity.getWorldObj() != null) {
+ (ClientTickHandler.ticksInGame + f
+ worldTime += (new Random((tileentity.xCoord ^ tileentity.yCoord ^ tileentity.zCoord))).nextInt(360);
+ meta = tileentity.getWorldObj().getBlockMetadata(tileentity.xCoord, tileentity.yCoord, tileentity.zCoord);
+ }
+ float indetY = (float)(Math.sin(worldTime / 18.0D) / 24.0D);
+ GL11.glPushMatrix();
+ GL11.glEnable(32826);
+ GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
+ GL11.glTranslated(x, y, z);
+ GL11.glTranslatef(0.5f, 1.5f, 0.5f);
+ GL11.glRotatef(180, 1.0f, 0.0f, 1.0f);
+ Minecraft.getMinecraft().renderEngine.bindTexture(texture);
+ model.renderBottom();
+ GL11.glTranslatef(0.0f, indetY, 0.0f);
+ model.renderTop();
+ GL11.glEnable(32826);
+ GL11.glPopMatrix();
+ if(entityList == null) {
+ List list = new ArrayList();
+ for(int i = 0; i < tile.getSizeInventory(); i++) {
+ list.add(new EntityItem(tile.getWorldObj(), tile.xCoord, tile.yCoord, tile.zCoord));
+ }
+ entityList = list;
+ }
+ GL11.glPushMatrix();
+ GL11.glTranslated(x + 0.5f, y + 0.675f - indetY, z + 0.5f);
+ GL11.glScalef(0.2F, 0.225F, 0.225F);
+ for(int i = 1; i < entityList.size(); i++) {
+ GL11.glPushMatrix();
+ ItemStack stack = tile.getStackInSlot(i);
+ if(stack != null) {
+ switch(i) {
+ case 1:
+ GL11.glTranslated(0.15f, 0.0f, 0.0f);
+ break;
+ case 2:
+ GL11.glTranslated(-0.15f, 0.0f, -0.15f);
+ break;
+ case 3:
+ GL11.glTranslated(-0.15f, 0.0f, 0.15f);
+ break;
+ }
+ entityList.get(i).setEntityItemStack(stack);
+ entityList.get(i).age = ClientTickHandler.ticksInGame;
+ ((Render)RenderManager.instance.entityRenderMap.get(EntityItem.class)).doRender((Entity)entityList.get(i), 0.0D, 0.0D, 0.0D, 1.0F, f);
+ }
+ GL11.glPopMatrix();
+ }
+ GL11.glPopMatrix();
+ if(tile.getStackInSlot(0) != null) {
+ GL11.glPushMatrix();
+ GL11.glTranslated(x + 0.5, y + 0.915f - indetY, z + 0.5);
+ GL11.glScalef(0.45f, 0.45f, 0.45f);
+ entityList.get(0).setEntityItemStack(tile.getStackInSlot(0));
+ entityList.get(0).age = ClientTickHandler.ticksInGame;
+ ((Render)RenderManager.instance.entityRenderMap.get(EntityItem.class)).doRender((Entity)entityList.get(0), 0.0D, 0.0D, 0.0D, 1.0F, f);
+ GL11.glPopMatrix();
+ }
+ }
+}
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 2 2022-04-15 15:10:40.159
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 0 2022-04-15 15:10:40.160
+!MESSAGE Error in JDT Core during reconcile
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-15 15:10:41.171
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.client.render.tile;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Random;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.client.model.ModelNidavellirForge;
+import ab.common.block.tile.TileNidavellirForge;
+import net.minecraft.client.Minecraft;
+import net.minecraft.client.renderer.OpenGlHelper;
+import net.minecraft.client.renderer.Tessellator;
+import net.minecraft.client.renderer.entity.Render;
+import net.minecraft.client.renderer.entity.RenderManager;
+import net.minecraft.client.renderer.texture.TextureMap;
+import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.ResourceLocation;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.client.core.helper.ShaderHelper;
+import vazkii.botania.common.block.mana.BlockTerraPlate;
+
+public class RenderTileNidavellirForge extends TileEntitySpecialRenderer {
+
+ private List entityList = null;
+ private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/nidavellirForge.png");
+ private static final ModelNidavellirForge model = new ModelNidavellirForge();
+
+ public void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float f) {
+ TileNidavellirForge tile = (TileNidavellirForge)tileentity;
+ double worldTime = 0.0D;
+ int meta = 0;
+ if(tileentity != null && tileentity.getWorldObj() != null) {
+ (ClientTickHandler.ticksInGame + f
+ worldTime += (new Random((tileentity.xCoord ^ tileentity.yCoord ^ tileentity.zCoord))).nextInt(360);
+ meta = tileentity.getWorldObj().getBlockMetadata(tileentity.xCoord, tileentity.yCoord, tileentity.zCoord);
+ }
+ float indetY = (float)(Math.sin(worldTime / 18.0D) / 24.0D);
+ GL11.glPushMatrix();
+ GL11.glEnable(32826);
+ GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
+ GL11.glTranslated(x, y, z);
+ GL11.glTranslatef(0.5f, 1.5f, 0.5f);
+ GL11.glRotatef(180, 1.0f, 0.0f, 1.0f);
+ Minecraft.getMinecraft().renderEngine.bindTexture(texture);
+ model.renderBottom();
+ GL11.glTranslatef(0.0f, indetY, 0.0f);
+ model.renderTop();
+ GL11.glEnable(32826);
+ GL11.glPopMatrix();
+ if(entityList == null) {
+ List list = new ArrayList();
+ for(int i = 0; i < tile.getSizeInventory(); i++) {
+ list.add(new EntityItem(tile.getWorldObj(), tile.xCoord, tile.yCoord, tile.zCoord));
+ }
+ entityList = list;
+ }
+ GL11.glPushMatrix();
+ GL11.glTranslated(x + 0.5f, y + 0.675f - indetY, z + 0.5f);
+ GL11.glScalef(0.2F, 0.225F, 0.225F);
+ for(int i = 1; i < entityList.size(); i++) {
+ GL11.glPushMatrix();
+ ItemStack stack = tile.getStackInSlot(i);
+ if(stack != null) {
+ switch(i) {
+ case 1:
+ GL11.glTranslated(0.15f, 0.0f, 0.0f);
+ break;
+ case 2:
+ GL11.glTranslated(-0.15f, 0.0f, -0.15f);
+ break;
+ case 3:
+ GL11.glTranslated(-0.15f, 0.0f, 0.15f);
+ break;
+ }
+ entityList.get(i).setEntityItemStack(stack);
+ entityList.get(i).age = ClientTickHandler.ticksInGame;
+ ((Render)RenderManager.instance.entityRenderMap.get(EntityItem.class)).doRender((Entity)entityList.get(i), 0.0D, 0.0D, 0.0D, 1.0F, f);
+ }
+ GL11.glPopMatrix();
+ }
+ GL11.glPopMatrix();
+ if(tile.getStackInSlot(0) != null) {
+ GL11.glPushMatrix();
+ GL11.glTranslated(x + 0.5, y + 0.915f - indetY, z + 0.5);
+ GL11.glScalef(0.45f, 0.45f, 0.45f);
+ entityList.get(0).setEntityItemStack(tile.getStackInSlot(0));
+ entityList.get(0).age = ClientTickHandler.ticksInGame;
+ ((Render)RenderManager.instance.entityRenderMap.get(EntityItem.class)).doRender((Entity)entityList.get(0), 0.0D, 0.0D, 0.0D, 1.0F, f);
+ GL11.glPopMatrix();
+ }
+ }
+}
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 2 2022-04-15 15:10:41.172
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 0 2022-04-15 15:10:41.173
+!MESSAGE Error in JDT Core during reconcile
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-15 15:10:41.184
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.client.render.tile;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Random;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.client.model.ModelNidavellirForge;
+import ab.common.block.tile.TileNidavellirForge;
+import net.minecraft.client.Minecraft;
+import net.minecraft.client.renderer.OpenGlHelper;
+import net.minecraft.client.renderer.Tessellator;
+import net.minecraft.client.renderer.entity.Render;
+import net.minecraft.client.renderer.entity.RenderManager;
+import net.minecraft.client.renderer.texture.TextureMap;
+import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.ResourceLocation;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.client.core.helper.ShaderHelper;
+import vazkii.botania.common.block.mana.BlockTerraPlate;
+
+public class RenderTileNidavellirForge extends TileEntitySpecialRenderer {
+
+ private List entityList = null;
+ private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/nidavellirForge.png");
+ private static final ModelNidavellirForge model = new ModelNidavellirForge();
+
+ public void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float f) {
+ TileNidavellirForge tile = (TileNidavellirForge)tileentity;
+ double worldTime = 0.0D;
+ int meta = 0;
+ if(tileentity != null && tileentity.getWorldObj() != null) {
+ (ClientTickHandler.ticksInGame + f
+ worldTime += (new Random((tileentity.xCoord ^ tileentity.yCoord ^ tileentity.zCoord))).nextInt(360);
+ meta = tileentity.getWorldObj().getBlockMetadata(tileentity.xCoord, tileentity.yCoord, tileentity.zCoord);
+ }
+ float indetY = (float)(Math.sin(worldTime / 18.0D) / 24.0D);
+ GL11.glPushMatrix();
+ GL11.glEnable(32826);
+ GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
+ GL11.glTranslated(x, y, z);
+ GL11.glTranslatef(0.5f, 1.5f, 0.5f);
+ GL11.glRotatef(180, 1.0f, 0.0f, 1.0f);
+ Minecraft.getMinecraft().renderEngine.bindTexture(texture);
+ model.renderBottom();
+ GL11.glTranslatef(0.0f, indetY, 0.0f);
+ model.renderTop();
+ GL11.glEnable(32826);
+ GL11.glPopMatrix();
+ if(entityList == null) {
+ List list = new ArrayList();
+ for(int i = 0; i < tile.getSizeInventory(); i++) {
+ list.add(new EntityItem(tile.getWorldObj(), tile.xCoord, tile.yCoord, tile.zCoord));
+ }
+ entityList = list;
+ }
+ GL11.glPushMatrix();
+ GL11.glTranslated(x + 0.5f, y + 0.675f - indetY, z + 0.5f);
+ GL11.glScalef(0.2F, 0.225F, 0.225F);
+ for(int i = 1; i < entityList.size(); i++) {
+ GL11.glPushMatrix();
+ ItemStack stack = tile.getStackInSlot(i);
+ if(stack != null) {
+ switch(i) {
+ case 1:
+ GL11.glTranslated(0.15f, 0.0f, 0.0f);
+ break;
+ case 2:
+ GL11.glTranslated(-0.15f, 0.0f, -0.15f);
+ break;
+ case 3:
+ GL11.glTranslated(-0.15f, 0.0f, 0.15f);
+ break;
+ }
+ entityList.get(i).setEntityItemStack(stack);
+ entityList.get(i).age = ClientTickHandler.ticksInGame;
+ ((Render)RenderManager.instance.entityRenderMap.get(EntityItem.class)).doRender((Entity)entityList.get(i), 0.0D, 0.0D, 0.0D, 1.0F, f);
+ }
+ GL11.glPopMatrix();
+ }
+ GL11.glPopMatrix();
+ if(tile.getStackInSlot(0) != null) {
+ GL11.glPushMatrix();
+ GL11.glTranslated(x + 0.5, y + 0.915f - indetY, z + 0.5);
+ GL11.glScalef(0.45f, 0.45f, 0.45f);
+ entityList.get(0).setEntityItemStack(tile.getStackInSlot(0));
+ entityList.get(0).age = ClientTickHandler.ticksInGame;
+ ((Render)RenderManager.instance.entityRenderMap.get(EntityItem.class)).doRender((Entity)entityList.get(0), 0.0D, 0.0D, 0.0D, 1.0F, f);
+ GL11.glPopMatrix();
+ }
+ }
+}
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-15 15:10:41.185
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-15 15:10:41.186
+!MESSAGE Error in JDT Core during AST creation
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-15 15:10:41.496
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.client.render.tile;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Random;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.client.model.ModelNidavellirForge;
+import ab.common.block.tile.TileNidavellirForge;
+import net.minecraft.client.Minecraft;
+import net.minecraft.client.renderer.OpenGlHelper;
+import net.minecraft.client.renderer.Tessellator;
+import net.minecraft.client.renderer.entity.Render;
+import net.minecraft.client.renderer.entity.RenderManager;
+import net.minecraft.client.renderer.texture.TextureMap;
+import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.ResourceLocation;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.client.core.helper.ShaderHelper;
+import vazkii.botania.common.block.mana.BlockTerraPlate;
+
+public class RenderTileNidavellirForge extends TileEntitySpecialRenderer {
+
+ private List entityList = null;
+ private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/nidavellirForge.png");
+ private static final ModelNidavellirForge model = new ModelNidavellirForge();
+
+ public void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float f) {
+ TileNidavellirForge tile = (TileNidavellirForge)tileentity;
+ double worldTime = 0.0D;
+ int meta = 0;
+ if(tileentity != null && tileentity.getWorldObj() != null) {
+ (ClientTickHandler.ticksInGame + f
+ worldTime += (new Random((tileentity.xCoord ^ tileentity.yCoord ^ tileentity.zCoord))).nextInt(360);
+ meta = tileentity.getWorldObj().getBlockMetadata(tileentity.xCoord, tileentity.yCoord, tileentity.zCoord);
+ }
+ float indetY = (float)(Math.sin(worldTime / 18.0D) / 24.0D);
+ GL11.glPushMatrix();
+ GL11.glEnable(32826);
+ GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
+ GL11.glTranslated(x, y, z);
+ GL11.glTranslatef(0.5f, 1.5f, 0.5f);
+ GL11.glRotatef(180, 1.0f, 0.0f, 1.0f);
+ Minecraft.getMinecraft().renderEngine.bindTexture(texture);
+ model.renderBottom();
+ GL11.glTranslatef(0.0f, indetY, 0.0f);
+ model.renderTop();
+ GL11.glEnable(32826);
+ GL11.glPopMatrix();
+ if(entityList == null) {
+ List list = new ArrayList();
+ for(int i = 0; i < tile.getSizeInventory(); i++) {
+ list.add(new EntityItem(tile.getWorldObj(), tile.xCoord, tile.yCoord, tile.zCoord));
+ }
+ entityList = list;
+ }
+ GL11.glPushMatrix();
+ GL11.glTranslated(x + 0.5f, y + 0.675f - indetY, z + 0.5f);
+ GL11.glScalef(0.2F, 0.225F, 0.225F);
+ for(int i = 1; i < entityList.size(); i++) {
+ GL11.glPushMatrix();
+ ItemStack stack = tile.getStackInSlot(i);
+ if(stack != null) {
+ switch(i) {
+ case 1:
+ GL11.glTranslated(0.15f, 0.0f, 0.0f);
+ break;
+ case 2:
+ GL11.glTranslated(-0.15f, 0.0f, -0.15f);
+ break;
+ case 3:
+ GL11.glTranslated(-0.15f, 0.0f, 0.15f);
+ break;
+ }
+ entityList.get(i).setEntityItemStack(stack);
+ entityList.get(i).age = ClientTickHandler.ticksInGame;
+ ((Render)RenderManager.instance.entityRenderMap.get(EntityItem.class)).doRender((Entity)entityList.get(i), 0.0D, 0.0D, 0.0D, 1.0F, f);
+ }
+ GL11.glPopMatrix();
+ }
+ GL11.glPopMatrix();
+ if(tile.getStackInSlot(0) != null) {
+ GL11.glPushMatrix();
+ GL11.glTranslated(x + 0.5, y + 0.915f - indetY, z + 0.5);
+ GL11.glScalef(0.45f, 0.45f, 0.45f);
+ entityList.get(0).setEntityItemStack(tile.getStackInSlot(0));
+ entityList.get(0).age = ClientTickHandler.ticksInGame;
+ ((Render)RenderManager.instance.entityRenderMap.get(EntityItem.class)).doRender((Entity)entityList.get(0), 0.0D, 0.0D, 0.0D, 1.0F, f);
+ GL11.glPopMatrix();
+ }
+ }
+}
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.internalGetHoverInfo(NLSStringHover.java:139)
+ at org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.getHoverInfo2(NLSStringHover.java:118)
+ at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:163)
+ at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:130)
+ at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:89)
+ at org.eclipse.jface.text.TextViewerHoverManager$1.run(TextViewerHoverManager.java:155)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-15 15:10:41.497
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.internalGetHoverInfo(NLSStringHover.java:139)
+ at org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.getHoverInfo2(NLSStringHover.java:118)
+ at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:163)
+ at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:130)
+ at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:89)
+ at org.eclipse.jface.text.TextViewerHoverManager$1.run(TextViewerHoverManager.java:155)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-15 15:10:41.498
+!MESSAGE Error in JDT Core during AST creation
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.internalGetHoverInfo(NLSStringHover.java:139)
+ at org.eclipse.jdt.internal.ui.text.java.hover.NLSStringHover.getHoverInfo2(NLSStringHover.java:118)
+ at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:163)
+ at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:130)
+ at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:89)
+ at org.eclipse.jface.text.TextViewerHoverManager$1.run(TextViewerHoverManager.java:155)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-15 15:10:41.673
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.client.render.tile;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Random;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.client.model.ModelNidavellirForge;
+import ab.common.block.tile.TileNidavellirForge;
+import net.minecraft.client.Minecraft;
+import net.minecraft.client.renderer.OpenGlHelper;
+import net.minecraft.client.renderer.Tessellator;
+import net.minecraft.client.renderer.entity.Render;
+import net.minecraft.client.renderer.entity.RenderManager;
+import net.minecraft.client.renderer.texture.TextureMap;
+import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.ResourceLocation;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.client.core.helper.ShaderHelper;
+import vazkii.botania.common.block.mana.BlockTerraPlate;
+
+public class RenderTileNidavellirForge extends TileEntitySpecialRenderer {
+
+ private List entityList = null;
+ private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/nidavellirForge.png");
+ private static final ModelNidavellirForge model = new ModelNidavellirForge();
+
+ public void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float f) {
+ TileNidavellirForge tile = (TileNidavellirForge)tileentity;
+ double worldTime = 0.0D;
+ int meta = 0;
+ if(tileentity != null && tileentity.getWorldObj() != null) {
+ (ClientTickHandler.ticksInGame + f
+ worldTime += (new Random((tileentity.xCoord ^ tileentity.yCoord ^ tileentity.zCoord))).nextInt(360);
+ meta = tileentity.getWorldObj().getBlockMetadata(tileentity.xCoord, tileentity.yCoord, tileentity.zCoord);
+ }
+ float indetY = (float)(Math.sin(worldTime / 18.0D) / 24.0D);
+ GL11.glPushMatrix();
+ GL11.glEnable(32826);
+ GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
+ GL11.glTranslated(x, y, z);
+ GL11.glTranslatef(0.5f, 1.5f, 0.5f);
+ GL11.glRotatef(180, 1.0f, 0.0f, 1.0f);
+ Minecraft.getMinecraft().renderEngine.bindTexture(texture);
+ model.renderBottom();
+ GL11.glTranslatef(0.0f, indetY, 0.0f);
+ model.renderTop();
+ GL11.glEnable(32826);
+ GL11.glPopMatrix();
+ if(entityList == null) {
+ List list = new ArrayList();
+ for(int i = 0; i < tile.getSizeInventory(); i++) {
+ list.add(new EntityItem(tile.getWorldObj(), tile.xCoord, tile.yCoord, tile.zCoord));
+ }
+ entityList = list;
+ }
+ GL11.glPushMatrix();
+ GL11.glTranslated(x + 0.5f, y + 0.675f - indetY, z + 0.5f);
+ GL11.glScalef(0.2F, 0.225F, 0.225F);
+ for(int i = 1; i < entityList.size(); i++) {
+ GL11.glPushMatrix();
+ ItemStack stack = tile.getStackInSlot(i);
+ if(stack != null) {
+ switch(i) {
+ case 1:
+ GL11.glTranslated(0.15f, 0.0f, 0.0f);
+ break;
+ case 2:
+ GL11.glTranslated(-0.15f, 0.0f, -0.15f);
+ break;
+ case 3:
+ GL11.glTranslated(-0.15f, 0.0f, 0.15f);
+ break;
+ }
+ entityList.get(i).setEntityItemStack(stack);
+ entityList.get(i).age = ClientTickHandler.ticksInGame;
+ ((Render)RenderManager.instance.entityRenderMap.get(EntityItem.class)).doRender((Entity)entityList.get(i), 0.0D, 0.0D, 0.0D, 1.0F, f);
+ }
+ GL11.glPopMatrix();
+ }
+ GL11.glPopMatrix();
+ if(tile.getStackInSlot(0) != null) {
+ GL11.glPushMatrix();
+ GL11.glTranslated(x + 0.5, y + 0.915f - indetY, z + 0.5);
+ GL11.glScalef(0.45f, 0.45f, 0.45f);
+ entityList.get(0).setEntityItemStack(tile.getStackInSlot(0));
+ entityList.get(0).age = ClientTickHandler.ticksInGame;
+ ((Render)RenderManager.instance.entityRenderMap.get(EntityItem.class)).doRender((Entity)entityList.get(0), 0.0D, 0.0D, 0.0D, 1.0F, f);
+ GL11.glPopMatrix();
+ }
+ }
+}
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-15 15:10:41.674
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-15 15:10:41.675
+!MESSAGE Error in JDT Core during AST creation
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 15:13:52.841
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 15:15:22.079
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 15:16:22.778
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 15:17:48.148
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 15:21:49.974
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 15:23:00.452
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 15:25:19.426
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 15:28:02.926
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 15:28:49.311
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 15:29:13.880
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 15:29:30.320
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 15:29:45.911
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 15:35:28.709
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 15:38:59.861
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 15:41:10.425
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.debug.core 4 125 2022-04-15 15:41:13.296
+!MESSAGE Error logged from Debug Core:
+!STACK 1
+org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.throwDebugException(JDIDebugElement.java:263)
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.requestFailed(JDIDebugElement.java:202)
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.targetRequestFailed(JDIDebugElement.java:182)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1585)
+ at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
+ at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
+ at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
+ at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
+ at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
+ ... 9 more
+!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-04-15 15:41:13.296
+!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
+!STACK 0
+com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
+ at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
+ at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
+ at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
+ at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
+ at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 15:42:53.282
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 15:45:25.467
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 15:46:53.748
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 15:48:32.822
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.debug.core 4 125 2022-04-15 15:48:33.418
+!MESSAGE Error logged from Debug Core:
+!STACK 1
+org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.throwDebugException(JDIDebugElement.java:263)
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.requestFailed(JDIDebugElement.java:202)
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.targetRequestFailed(JDIDebugElement.java:182)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1585)
+ at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
+ at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
+ at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
+ at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
+ at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
+ ... 9 more
+!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-04-15 15:48:33.418
+!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
+!STACK 0
+com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
+ at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
+ at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
+ at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
+ at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
+ at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 15:50:41.120
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 15:51:53.188
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 15:53:08.162
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 15:54:31.693
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 15:55:56.315
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 16:04:05.190
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 16:05:23.513
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 16:06:29.925
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 16:06:39.584
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 16:06:52.381
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 16:07:04.573
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 16:07:45.787
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 16:08:32.377
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 16:08:53.019
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 16:09:16.448
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 16:10:08.464
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 16:10:31.022
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 16:10:56.891
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 16:27:08.051
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 16:38:14.441
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 16:38:21.151
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.ui 4 4 2022-04-15 16:38:33.574
+!MESSAGE To avoid deadlock while executing Display.syncExec() with argument: org.eclipse.debug.internal.ui.sourcelookup.Prompter$$Lambda$961/0x0000000100bb4240@4b945187, thread Worker-52: Launching Client will interrupt UI thread.
+!SUBENTRY 1 org.eclipse.ui 4 4 2022-04-15 16:38:33.574
+!MESSAGE Worker-52: Launching Client thread is an instance of Worker or owns an ILock
+!STACK 0
+java.lang.IllegalStateException: Call stack for thread Worker-52: Launching Client
at java.management@17.0.1/sun.management.ThreadImpl.dumpThreads0(Native Method)
at java.management@17.0.1/sun.management.ThreadImpl.getThreadInfo(ThreadImpl.java:485)
at org.eclipse.ui.internal.UILockListener.reportInterruption(UILockListener.java:209)
@@ -11531,64 +2443,13 @@ java.lang.IllegalStateException: Call stack for thread Worker-0: Launching Clien
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1021)
at org.eclipse.debug.internal.ui.DebugUIPlugin$2.run(DebugUIPlugin.java:1224)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
-!SUBENTRY 1 org.eclipse.ui 4 4 2022-04-01 18:07:26.873
+!SUBENTRY 1 org.eclipse.ui 4 4 2022-04-15 16:38:33.574
!MESSAGE UI thread waiting on a job or lock.
!STACK 0
java.lang.IllegalStateException: Call stack for thread main
- at java.base@17.0.1/java.lang.Object.wait(Native Method)
- at org.eclipse.core.internal.jobs.Semaphore.acquire(Semaphore.java:45)
- at org.eclipse.core.internal.jobs.OrderedLock.doAcquire(OrderedLock.java:173)
- at org.eclipse.core.internal.jobs.OrderedLock.acquire(OrderedLock.java:109)
- at org.eclipse.core.internal.jobs.OrderedLock.acquire(OrderedLock.java:85)
- at org.eclipse.core.internal.resources.WorkManager.checkIn(WorkManager.java:125)
- at org.eclipse.core.internal.resources.Workspace.prepareOperation(Workspace.java:2263)
- at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2308)
- at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2338)
- at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:811)
- at org.eclipse.jdt.internal.core.CompilationUnit.commitWorkingCopy(CompilationUnit.java:405)
- at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocumentProvider.commitWorkingCopy(CompilationUnitDocumentProvider.java:1418)
- at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocumentProvider$3.execute(CompilationUnitDocumentProvider.java:1495)
- at org.eclipse.ui.editors.text.TextFileDocumentProvider$DocumentProviderOperation.run(TextFileDocumentProvider.java:133)
- at org.eclipse.ui.actions.WorkspaceModifyDelegatingOperation.execute(WorkspaceModifyDelegatingOperation.java:71)
- at org.eclipse.ui.actions.WorkspaceModifyOperation.lambda$0(WorkspaceModifyOperation.java:110)
- at org.eclipse.ui.actions.WorkspaceModifyOperation$$Lambda$1091/0x0000000100d7ea78.run(Unknown Source)
- at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2313)
- at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2338)
- at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:131)
- at org.eclipse.ui.internal.editors.text.WorkspaceOperationRunner.run(WorkspaceOperationRunner.java:76)
- at org.eclipse.ui.internal.editors.text.WorkspaceOperationRunner.run(WorkspaceOperationRunner.java:66)
- at org.eclipse.ui.editors.text.TextFileDocumentProvider.executeOperation(TextFileDocumentProvider.java:461)
- at org.eclipse.ui.editors.text.TextFileDocumentProvider.saveDocument(TextFileDocumentProvider.java:764)
- at org.eclipse.ui.texteditor.AbstractTextEditor.performSave(AbstractTextEditor.java:5003)
- at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.performSave(CompilationUnitEditor.java:1262)
- at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.doSave(CompilationUnitEditor.java:1316)
- at org.eclipse.ui.texteditor.AbstractTextEditor$TextEditorSavable.doSave(AbstractTextEditor.java:7147)
- at org.eclipse.ui.Saveable.doSave(Saveable.java:213)
- at org.eclipse.ui.internal.SaveableHelper.doSaveModel(SaveableHelper.java:333)
- at org.eclipse.ui.internal.SaveablesList.lambda$2(SaveablesList.java:840)
- at org.eclipse.ui.internal.SaveablesList$$Lambda$1200/0x0000000100d9f960.run(Unknown Source)
- at org.eclipse.ui.internal.SaveableHelper.lambda$3(SaveableHelper.java:271)
- at org.eclipse.ui.internal.SaveableHelper$$Lambda$1201/0x0000000100d9fb80.run(Unknown Source)
- at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:434)
- at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:352)
- at org.eclipse.ui.internal.WorkbenchWindow.lambda$7(WorkbenchWindow.java:2345)
- at org.eclipse.ui.internal.WorkbenchWindow$$Lambda$1066/0x0000000100ade8f0.run(Unknown Source)
- at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:74)
- at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2343)
- at org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOperation(SaveableHelper.java:278)
- at org.eclipse.ui.internal.SaveablesList.saveModels(SaveablesList.java:848)
- at org.eclipse.ui.internal.SaveablesList.saveModels(SaveablesList.java:812)
- at org.eclipse.ui.internal.Workbench.saveAll(Workbench.java:3426)
- at org.eclipse.ui.ide.IDE$1.run(IDE.java:1494)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
- at org.eclipse.ui.ide.IDE.saveAllEditors(IDE.java:1482)
- at org.eclipse.debug.internal.ui.launchConfigurations.SaveScopeResourcesHandler.doSave(SaveScopeResourcesHandler.java:228)
- at org.eclipse.debug.internal.ui.launchConfigurations.SaveScopeResourcesHandler.handleStatus(SaveScopeResourcesHandler.java:182)
- at org.eclipse.debug.internal.ui.sourcelookup.Prompter.lambda$0(Prompter.java:73)
- at org.eclipse.debug.internal.ui.sourcelookup.Prompter$$Lambda$992/0x0000000100c64f28.run(Unknown Source)
- at org.eclipse.ui.internal.PendingSyncExec.run(PendingSyncExec.java:68)
+ at org.eclipse.ui.internal.PendingSyncExec.run(PendingSyncExec.java:75)
at org.eclipse.ui.internal.UILockListener.doPendingWork(UILockListener.java:171)
- at org.eclipse.ui.internal.UISynchronizer$$Lambda$876/0x000000010091a100.run(Unknown Source)
+ at org.eclipse.ui.internal.UISynchronizer$$Lambda$874/0x0000000100918fa0.run(Unknown Source)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:40)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:185)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4035)
@@ -11598,7 +2459,7 @@ java.lang.IllegalStateException: Call stack for thread main
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1045)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644)
- at org.eclipse.ui.internal.Workbench$$Lambda$284/0x0000000100273a08.run(Unknown Source)
+ at org.eclipse.ui.internal.Workbench$$Lambda$284/0x0000000100273d38.run(Unknown Source)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:551)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:156)
@@ -11616,8 +2477,2562 @@ java.lang.IllegalStateException: Call stack for thread main
at app//org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
at app//org.eclipse.equinox.launcher.Main.run(Main.java:1467)
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 18:07:27.472
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 16:38:34.291
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
-!ENTRY org.eclipse.jdt.debug 2 0 2022-04-01 18:14:53.312
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 16:38:48.682
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 16:59:30.471
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 17:06:09.420
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.debug.core 4 125 2022-04-15 17:08:00.867
+!MESSAGE Error logged from Debug Core:
+!STACK 1
+org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.throwDebugException(JDIDebugElement.java:263)
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.requestFailed(JDIDebugElement.java:202)
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.targetRequestFailed(JDIDebugElement.java:182)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1585)
+ at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.clearSourceElements(AbstractSourceLookupDirector.java:652)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.updateDebugElement(AdvancedSourceLookupParticipant.java:215)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.cacheContainer(AdvancedSourceLookupParticipant.java:162)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.getSourceContainer(AdvancedSourceLookupParticipant.java:146)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:72)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
+ at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
+ at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
+ at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
+ at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
+ ... 17 more
+!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-04-15 17:08:00.867
+!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
+!STACK 0
+com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
+ at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
+ at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
+ at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
+ at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
+ at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.clearSourceElements(AbstractSourceLookupDirector.java:652)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.updateDebugElement(AdvancedSourceLookupParticipant.java:215)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.cacheContainer(AdvancedSourceLookupParticipant.java:162)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.getSourceContainer(AdvancedSourceLookupParticipant.java:146)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:72)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.debug.core 4 125 2022-04-15 17:08:00.868
+!MESSAGE Error logged from Debug Core:
+!STACK 1
+org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.throwDebugException(JDIDebugElement.java:263)
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.requestFailed(JDIDebugElement.java:202)
+ at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.targetRequestFailed(JDIDebugElement.java:182)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1585)
+ at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
+ at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
+ at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
+ at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
+ at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
+ ... 9 more
+!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-04-15 17:08:00.868
+!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
+!STACK 0
+com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
+ at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
+ at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
+ at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
+ at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
+ at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
+ at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 17:08:02.768
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 17:09:15.682
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 17:11:09.394
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 17:13:29.575
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 21:10:08.096
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 21:10:16.530
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 21:10:27.437
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 21:10:36.011
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 21:10:53.948
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-15 21:12:55.339
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.core.resources 4 566 2022-04-16 13:11:14.901
+!MESSAGE Workspace was not properly initialized or has already shutdown.
+
+!ENTRY org.eclipse.core.jobs 4 1 2022-04-16 13:11:14.902
+!MESSAGE Worker thread ended job: Refreshing workspace(11), but still holds rule: ThreadJob(Refreshing workspace(11),[F/Minecraft/eclipse/saves/NEI])
+!SESSION 2022-04-16 15:20:56.882 -----------------------------------------------
+eclipse.buildId=4.22.0.I20211124-1800
+java.version=17.0.1
+java.vendor=Eclipse Adoptium
+BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=ru_RU
+Framework arguments: -product org.eclipse.epp.package.java.product
+Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
+
+!ENTRY org.eclipse.jface 2 0 2022-04-16 15:22:03.212
+!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
+!SUBENTRY 1 org.eclipse.jface 2 0 2022-04-16 15:22:03.212
+!MESSAGE A conflict occurred for CTRL+SHIFT+T:
+Binding(CTRL+SHIFT+T,
+ ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type,
+ Open a type in a Java editor,
+ Category(org.eclipse.ui.category.navigate,Navigate,null,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@6a552721,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+Binding(CTRL+SHIFT+T,
+ ParameterizedCommand(Command(org.eclipse.lsp4e.symbolinworkspace,Go to Symbol in Workspace,
+ ,
+ Category(org.eclipse.lsp4e.category,Language Servers,null,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@3815a7d1,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+!SUBENTRY 1 org.eclipse.jface 2 0 2022-04-16 15:22:03.212
+!MESSAGE A conflict occurred for ALT+SHIFT+R:
+Binding(ALT+SHIFT+R,
+ ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.rename.element,Rename - Refactoring ,
+ Rename the selected element,
+ Category(org.eclipse.jdt.ui.category.refactoring,Refactor - Java,Java Refactoring Actions,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@24dc150c,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+Binding(ALT+SHIFT+R,
+ ParameterizedCommand(Command(org.eclipse.ui.edit.rename,Rename,
+ Rename the selected item,
+ Category(org.eclipse.ui.category.file,File,null,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@1d2d4d7a,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+
+!ENTRY org.eclipse.egit.ui 2 0 2022-04-16 15:22:07.678
+!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
+user global configuration and to define the default location to store repositories: 'C:\Users\Pulxes'. If this is
+not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
+EGit might behave differently since they see different configuration options.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 15:22:12.586
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 17:15:46.495
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 17:18:17.903
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 17:20:58.773
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 17:21:48.201
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 17:22:18.638
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 17:23:35.747
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 17:25:16.780
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 17:25:41.874
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 17:26:52.079
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 17:28:59.344
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 17:30:39.501
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 17:32:34.579
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 17:32:58.796
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 17:34:07.429
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 17:36:39.815
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 17:36:50.699
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 17:37:02.812
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 17:37:42.276
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 17:39:46.782
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 17:40:34.957
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 17:40:53.064
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 17:42:19.080
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 17:43:18.896
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 17:44:22.176
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 17:51:34.147
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 17:52:33.749
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 17:54:05.030
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 17:54:54.317
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 17:59:40.158
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 18:03:10.842
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 18:06:43.245
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 18:11:48.734
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 18:12:59.131
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.core.resources 2 10035 2022-04-16 18:27:52.290
+!MESSAGE The workspace will exit with unsaved changes in this session.
+!SESSION 2022-04-16 21:27:00.488 -----------------------------------------------
+eclipse.buildId=4.22.0.I20211124-1800
+java.version=17.0.1
+java.vendor=Eclipse Adoptium
+BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=ru_RU
+Framework arguments: -product org.eclipse.epp.package.java.product
+Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
+
+!ENTRY org.eclipse.core.resources 2 10035 2022-04-16 21:27:05.548
+!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.
+
+!ENTRY org.eclipse.jface 2 0 2022-04-16 21:27:07.434
+!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
+!SUBENTRY 1 org.eclipse.jface 2 0 2022-04-16 21:27:07.434
+!MESSAGE A conflict occurred for CTRL+SHIFT+T:
+Binding(CTRL+SHIFT+T,
+ ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type,
+ Open a type in a Java editor,
+ Category(org.eclipse.ui.category.navigate,Navigate,null,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@b267745,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+Binding(CTRL+SHIFT+T,
+ ParameterizedCommand(Command(org.eclipse.lsp4e.symbolinworkspace,Go to Symbol in Workspace,
+ ,
+ Category(org.eclipse.lsp4e.category,Language Servers,null,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@31e22365,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+!SUBENTRY 1 org.eclipse.jface 2 0 2022-04-16 21:27:07.434
+!MESSAGE A conflict occurred for ALT+SHIFT+R:
+Binding(ALT+SHIFT+R,
+ ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.rename.element,Rename - Refactoring ,
+ Rename the selected element,
+ Category(org.eclipse.jdt.ui.category.refactoring,Refactor - Java,Java Refactoring Actions,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@2ebf524,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+Binding(ALT+SHIFT+R,
+ ParameterizedCommand(Command(org.eclipse.ui.edit.rename,Rename,
+ Rename the selected item,
+ Category(org.eclipse.ui.category.file,File,null,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@41bdaa81,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+
+!ENTRY org.eclipse.egit.ui 2 0 2022-04-16 21:27:10.460
+!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
+user global configuration and to define the default location to store repositories: 'C:\Users\Pulxes'. If this is
+not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
+EGit might behave differently since they see different configuration options.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 21:27:14.666
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 21:30:57.635
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 21:32:33.198
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 21:36:20.541
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 21:36:43.575
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 21:39:01.408
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 21:39:47.265
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 21:40:23.907
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 21:42:27.221
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 21:43:10.413
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 21:43:51.081
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 21:44:42.738
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 21:45:42.036
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 21:47:05.363
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 21:49:32.318
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 21:50:26.844
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 21:52:54.606
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 21:54:57.162
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 21:55:23.953
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 21:55:43.379
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 21:57:08.015
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 21:58:28.829
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 22:01:50.133
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 22:03:40.675
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 22:06:36.352
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 22:06:59.390
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 22:07:12.488
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 22:07:37.259
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 22:07:51.062
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 22:11:23.714
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 22:11:46.951
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 22:12:12.328
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 22:12:45.591
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 22:13:27.987
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 22:14:45.336
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 22:17:55.451
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 22:19:21.538
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 22:19:57.858
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 22:20:35.686
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 22:21:05.654
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 22:21:56.386
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-16 22:23:30.610
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.item.relic;
+
+import java.awt.Color;
+
+import net.minecraft.block.Block;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.MathHelper;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class ItemSphereNavigation extends ItemModRelic {
+
+ public static final int rangeSearch = 16;
+
+ public ItemSphereNavigation() {
+ super("sphereNavigation");
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int pos, boolean equipped) {
+ super.onUpdate(stack, world, entity, pos, equipped);
+ if(world.isRemote && world.getTotalWorldTime() % 30 == 0 && getFindBlock(stack) != null && entity instanceof EntityPlayer) {
+ int findedBlocks = 0;
+ label1703:
+ for(int x = -rangeSearch; x < rangeSearch; x++) {
+// if(world.rand.nextBoolean())
+// continue;
+ for(int y = -rangeSearch * 4; y < rangeSearch; y++) {
+ if(world.rand.nextBoolean())
+ continue;
+ for(int z = -rangeSearch; z < rangeSearch; z++) {
+ if(world.rand.nextBoolean())
+ continue;
+ if(findedBlocks > 48)
+ break label1703;
+ int posX = MathHelper.floor_double(entity.posX) + x;
+ int posY = MathHelper.floor_double(entity.posY) + y;
+ int posZ = MathHelper.floor_double(entity.posZ) + z;
+ Block block = world.getBlock(posX, posY, posZ);
+ int meta = world.getBlockMetadata(posX, posY, posZ);
+ if(Block.isEqualTo(block, getFindBlock(stack)) && meta == getFindMeta(stack)) {
+ findedBlocks++;
+ float maxAge = 2.7f + (0.5f * (float)(Math.random()));
+ Botania.proxy.setWispFXDepthTest(false);
+ float far = 120.0f ((Math.abs(x) + Math.min(rangeSearch * 2, Math.abs(y)) + Math.abs(z)) / 64.0f) * 120.0f;
+ Color color = new Color(Color.HSBtoRGB(far / 360.0f, 1.0F, 1.0f));
+ for(int i = 0; i < 11; i++)
+ Botania.proxy.wispFX(world, posX + 0.5f + (Math.random() - 0.5f), posY + 0.5f + (Math.random() - 0.5f), posZ + 0.5f + (Math.random() - 0.5f), color.getRed() / 100.0f, color.getGreen() / 100.0f, color.getBlue() / 100.0f, 0.3f + (float)(Math.random() * 0.25f), 0.0f, maxAge);
+ Botania.proxy.setWispFXDepthTest(true);
+ }
+ }
+ }
+ }
+ }
+ }
+
+ public boolean onItemUse(ItemStack stack, EntityPlayer p, World world, int x, int y, int z, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
+ setFindBlock(stack, world.getBlock(x, y, z), world.getBlockMetadata(x, y, z));
+ return true;
+ }
+
+ public void setFindBlock(ItemStack stack, Block block, int meta) {
+ ItemNBTHelper.setInt(stack, "findBlockID", Block.getIdFromBlock(block));
+ ItemNBTHelper.setInt(stack, "findBlockMeta", meta);
+ }
+
+ public Block getFindBlock(ItemStack stack) {
+ int blockID = ItemNBTHelper.getInt(stack, "findBlockID", 0);
+ if(blockID == 0)
+ return null;
+ else
+ return Block.getBlockById(blockID);
+ }
+
+ public int getFindMeta(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "findBlockMeta", -1);
+ }
+}
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2366)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3040)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 2 2022-04-16 22:23:30.613
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2366)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3040)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 0 2022-04-16 22:23:30.614
+!MESSAGE Error in JDT Core during reconcile
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2366)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3040)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-16 22:23:30.623
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.item.relic;
+
+import java.awt.Color;
+
+import net.minecraft.block.Block;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.MathHelper;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class ItemSphereNavigation extends ItemModRelic {
+
+ public static final int rangeSearch = 16;
+
+ public ItemSphereNavigation() {
+ super("sphereNavigation");
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int pos, boolean equipped) {
+ super.onUpdate(stack, world, entity, pos, equipped);
+ if(world.isRemote && world.getTotalWorldTime() % 30 == 0 && getFindBlock(stack) != null && entity instanceof EntityPlayer) {
+ int findedBlocks = 0;
+ label1703:
+ for(int x = -rangeSearch; x < rangeSearch; x++) {
+// if(world.rand.nextBoolean())
+// continue;
+ for(int y = -rangeSearch * 4; y < rangeSearch; y++) {
+ if(world.rand.nextBoolean())
+ continue;
+ for(int z = -rangeSearch; z < rangeSearch; z++) {
+ if(world.rand.nextBoolean())
+ continue;
+ if(findedBlocks > 48)
+ break label1703;
+ int posX = MathHelper.floor_double(entity.posX) + x;
+ int posY = MathHelper.floor_double(entity.posY) + y;
+ int posZ = MathHelper.floor_double(entity.posZ) + z;
+ Block block = world.getBlock(posX, posY, posZ);
+ int meta = world.getBlockMetadata(posX, posY, posZ);
+ if(Block.isEqualTo(block, getFindBlock(stack)) && meta == getFindMeta(stack)) {
+ findedBlocks++;
+ float maxAge = 2.7f + (0.5f * (float)(Math.random()));
+ Botania.proxy.setWispFXDepthTest(false);
+ float far = 120.0f ((Math.abs(x) + Math.min(rangeSearch * 2, Math.abs(y)) + Math.abs(z)) / 64.0f) * 120.0f;
+ Color color = new Color(Color.HSBtoRGB(far / 360.0f, 1.0F, 1.0f));
+ for(int i = 0; i < 11; i++)
+ Botania.proxy.wispFX(world, posX + 0.5f + (Math.random() - 0.5f), posY + 0.5f + (Math.random() - 0.5f), posZ + 0.5f + (Math.random() - 0.5f), color.getRed() / 100.0f, color.getGreen() / 100.0f, color.getBlue() / 100.0f, 0.3f + (float)(Math.random() * 0.25f), 0.0f, maxAge);
+ Botania.proxy.setWispFXDepthTest(true);
+ }
+ }
+ }
+ }
+ }
+ }
+
+ public boolean onItemUse(ItemStack stack, EntityPlayer p, World world, int x, int y, int z, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
+ setFindBlock(stack, world.getBlock(x, y, z), world.getBlockMetadata(x, y, z));
+ return true;
+ }
+
+ public void setFindBlock(ItemStack stack, Block block, int meta) {
+ ItemNBTHelper.setInt(stack, "findBlockID", Block.getIdFromBlock(block));
+ ItemNBTHelper.setInt(stack, "findBlockMeta", meta);
+ }
+
+ public Block getFindBlock(ItemStack stack) {
+ int blockID = ItemNBTHelper.getInt(stack, "findBlockID", 0);
+ if(blockID == 0)
+ return null;
+ else
+ return Block.getBlockById(blockID);
+ }
+
+ public int getFindMeta(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "findBlockMeta", -1);
+ }
+}
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2366)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3040)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-16 22:23:30.625
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2366)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3040)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-16 22:23:30.627
+!MESSAGE Error in JDT Core during AST creation
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1287)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2047)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3095)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2220)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2366)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3040)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3013)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2243)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3037)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 22:24:06.936
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 22:25:04.218
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 22:30:54.314
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.ui 4 4 2022-04-16 22:32:15.984
+!MESSAGE To avoid deadlock while executing Display.syncExec() with argument: org.eclipse.debug.internal.ui.sourcelookup.Prompter$$Lambda$939/0x0000000100b35c70@4078cb0b, thread Worker-20: Launching Client will interrupt UI thread.
+!SUBENTRY 1 org.eclipse.ui 4 4 2022-04-16 22:32:15.984
+!MESSAGE Worker-20: Launching Client thread is an instance of Worker or owns an ILock
+!STACK 0
+java.lang.IllegalStateException: Call stack for thread Worker-20: Launching Client
+ at java.management@17.0.1/sun.management.ThreadImpl.dumpThreads0(Native Method)
+ at java.management@17.0.1/sun.management.ThreadImpl.getThreadInfo(ThreadImpl.java:485)
+ at org.eclipse.ui.internal.UILockListener.reportInterruption(UILockListener.java:209)
+ at org.eclipse.ui.internal.UILockListener.interruptUI(UILockListener.java:179)
+ at org.eclipse.ui.internal.PendingSyncExec.waitUntilExecuted(PendingSyncExec.java:92)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:142)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4779)
+ at org.eclipse.debug.internal.ui.sourcelookup.Prompter.handleStatus(Prompter.java:81)
+ at org.eclipse.debug.core.model.LaunchConfigurationDelegate.saveBeforeLaunch(LaunchConfigurationDelegate.java:245)
+ at org.eclipse.debug.core.model.LaunchConfigurationDelegate.preLaunchCheck(LaunchConfigurationDelegate.java:197)
+ at org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate.preLaunchCheck(AbstractJavaLaunchConfigurationDelegate.java:1026)
+ at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:766)
+ at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:716)
+ at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1021)
+ at org.eclipse.debug.internal.ui.DebugUIPlugin$2.run(DebugUIPlugin.java:1224)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+!SUBENTRY 1 org.eclipse.ui 4 4 2022-04-16 22:32:15.985
+!MESSAGE UI thread waiting on a job or lock.
+!STACK 0
+java.lang.IllegalStateException: Call stack for thread main
+ at org.eclipse.ui.internal.PendingSyncExec.run(PendingSyncExec.java:75)
+ at org.eclipse.ui.internal.UILockListener.doPendingWork(UILockListener.java:171)
+ at org.eclipse.ui.internal.UISynchronizer$$Lambda$868/0x0000000100907860.run(Unknown Source)
+ at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:40)
+ at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:185)
+ at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4035)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3635)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1154)
+ at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1045)
+ at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
+ at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644)
+ at org.eclipse.ui.internal.Workbench$$Lambda$284/0x00000001002731b8.run(Unknown Source)
+ at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
+ at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:551)
+ at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:156)
+ at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152)
+ at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
+ at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
+ at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
+ at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
+ at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
+ at java.base@17.0.1/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at java.base@17.0.1/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
+ at java.base@17.0.1/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
+ at java.base@17.0.1/java.lang.reflect.Method.invoke(Method.java:568)
+ at app//org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
+ at app//org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
+ at app//org.eclipse.equinox.launcher.Main.run(Main.java:1467)
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 22:32:16.270
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 22:37:02.227
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 22:37:32.112
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 22:38:17.654
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 22:40:34.935
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 22:43:36.980
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 22:58:17.864
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 22:59:47.248
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 23:03:05.385
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 23:04:13.289
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 23:08:05.480
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 23:10:23.135
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 23:10:49.326
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 23:13:39.012
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 23:16:27.334
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 23:20:56.655
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 23:22:33.287
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 23:23:22.723
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 23:23:32.845
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 23:24:20.360
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 23:29:56.412
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 23:31:32.194
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 23:40:31.518
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 23:41:05.968
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 23:41:30.672
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-16 23:42:01.120
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-17 00:15:48.664
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-17 00:23:21.499
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-17 00:24:50.576
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-17 00:27:07.062
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-17 00:29:18.976
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-17 00:31:44.770
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-17 00:33:44.298
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-17 00:37:23.554
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.core.resources 4 566 2022-04-17 00:40:44.982
+!MESSAGE Workspace was not properly initialized or has already shutdown.
+
+!ENTRY org.eclipse.core.jobs 4 1 2022-04-17 00:40:44.984
+!MESSAGE Worker thread ended job: Refreshing workspace(11), but still holds rule: ThreadJob(Refreshing workspace(11),[F/Minecraft/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history])
+!SESSION 2022-04-17 09:07:22.810 -----------------------------------------------
+eclipse.buildId=4.22.0.I20211124-1800
+java.version=17.0.1
+java.vendor=Eclipse Adoptium
+BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=ru_RU
+Framework arguments: -product org.eclipse.epp.package.java.product
+Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
+
+!ENTRY org.eclipse.jface 2 0 2022-04-17 09:07:41.474
+!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
+!SUBENTRY 1 org.eclipse.jface 2 0 2022-04-17 09:07:41.474
+!MESSAGE A conflict occurred for CTRL+SHIFT+T:
+Binding(CTRL+SHIFT+T,
+ ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type,
+ Open a type in a Java editor,
+ Category(org.eclipse.ui.category.navigate,Navigate,null,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@24dc150c,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+Binding(CTRL+SHIFT+T,
+ ParameterizedCommand(Command(org.eclipse.lsp4e.symbolinworkspace,Go to Symbol in Workspace,
+ ,
+ Category(org.eclipse.lsp4e.category,Language Servers,null,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@1d2d4d7a,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+!SUBENTRY 1 org.eclipse.jface 2 0 2022-04-17 09:07:41.474
+!MESSAGE A conflict occurred for ALT+SHIFT+R:
+Binding(ALT+SHIFT+R,
+ ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.rename.element,Rename - Refactoring ,
+ Rename the selected element,
+ Category(org.eclipse.jdt.ui.category.refactoring,Refactor - Java,Java Refactoring Actions,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@5e020dd1,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+Binding(ALT+SHIFT+R,
+ ParameterizedCommand(Command(org.eclipse.ui.edit.rename,Rename,
+ Rename the selected item,
+ Category(org.eclipse.ui.category.file,File,null,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@4bbc02ef,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+
+!ENTRY org.eclipse.egit.ui 2 0 2022-04-17 09:07:45.125
+!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
+user global configuration and to define the default location to store repositories: 'C:\Users\Pulxes'. If this is
+not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
+EGit might behave differently since they see different configuration options.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-17 09:08:19.770
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-17 09:08:56.677
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-17 09:11:13.023
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-17 09:19:57.580
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-17 09:26:36.434
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-17 09:28:43.911
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-17 09:31:25.855
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-17 10:34:18.531
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-17 10:38:49.784
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-17 10:39:29.251
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-17 12:15:41.554
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-17 12:20:31.688
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-17 12:20:47.253
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-17 12:21:02.650
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-17 20:12:37.970
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-17 20:14:58.052
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-17 20:58:52.193
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-19 18:28:01.277
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-19 19:52:36.560
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-19 19:57:57.002
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-19 20:00:40.483
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-19 20:00:59.880
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-19 20:04:32.225
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-19 20:05:40.505
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-19 20:06:35.888
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-19 20:07:46.930
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-19 20:08:14.869
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-19 20:09:20.640
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-19 20:10:42.156
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-19 20:11:19.734
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-19 20:22:44.326
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-19 20:24:47.181
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-19 20:26:14.908
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-19 20:30:36.252
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-19 20:31:30.775
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-19 20:32:34.194
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.core.resources 2 10035 2022-04-19 20:33:43.207
+!MESSAGE The workspace will exit with unsaved changes in this session.
+!SESSION 2022-04-21 13:09:43.786 -----------------------------------------------
+eclipse.buildId=4.22.0.I20211124-1800
+java.version=17.0.1
+java.vendor=Eclipse Adoptium
+BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=ru_RU
+Framework arguments: -product org.eclipse.epp.package.java.product
+Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
+
+!ENTRY org.eclipse.core.resources 2 10035 2022-04-21 13:09:56.973
+!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.
+
+!ENTRY org.eclipse.jface 2 0 2022-04-21 13:10:03.244
+!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
+!SUBENTRY 1 org.eclipse.jface 2 0 2022-04-21 13:10:03.244
+!MESSAGE A conflict occurred for CTRL+SHIFT+T:
+Binding(CTRL+SHIFT+T,
+ ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type,
+ Open a type in a Java editor,
+ Category(org.eclipse.ui.category.navigate,Navigate,null,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@31e22365,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+Binding(CTRL+SHIFT+T,
+ ParameterizedCommand(Command(org.eclipse.lsp4e.symbolinworkspace,Go to Symbol in Workspace,
+ ,
+ Category(org.eclipse.lsp4e.category,Language Servers,null,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@2ebf524,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+!SUBENTRY 1 org.eclipse.jface 2 0 2022-04-21 13:10:03.244
+!MESSAGE A conflict occurred for ALT+SHIFT+R:
+Binding(ALT+SHIFT+R,
+ ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.rename.element,Rename - Refactoring ,
+ Rename the selected element,
+ Category(org.eclipse.jdt.ui.category.refactoring,Refactor - Java,Java Refactoring Actions,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@41bdaa81,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+Binding(ALT+SHIFT+R,
+ ParameterizedCommand(Command(org.eclipse.ui.edit.rename,Rename,
+ Rename the selected item,
+ Category(org.eclipse.ui.category.file,File,null,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@799971ac,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+
+!ENTRY org.eclipse.egit.ui 2 0 2022-04-21 13:10:07.110
+!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
+user global configuration and to define the default location to store repositories: 'C:\Users\Pulxes'. If this is
+not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
+EGit might behave differently since they see different configuration options.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 13:10:26.055
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 13:28:12.994
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 13:31:55.853
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 13:33:03.311
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 13:39:38.914
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 13:44:37.588
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 13:45:15.696
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 13:48:34.866
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 13:49:52.166
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 13:50:02.852
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 13:50:22.435
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 13:52:05.863
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 13:52:37.921
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 13:59:11.960
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 14:07:07.456
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 14:10:01.334
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 14:11:11.078
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 14:12:08.073
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 14:15:06.526
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 14:17:05.838
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 15:14:25.612
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 15:44:28.579
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 15:53:00.700
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 16:09:19.866
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 16:14:02.319
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 16:27:13.031
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 16:28:38.833
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 16:32:11.108
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 16:52:29.187
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 17:08:43.537
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 17:23:57.589
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 17:29:47.200
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 17:31:32.255
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 19:02:22.052
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 19:06:39.805
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 19:07:23.337
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-21 19:22:52.292
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.block.tile;
+
+import java.awt.Color;
+import java.util.List;
+import java.util.Random;
+
+import ab.api.AdvancedBotanyAPI;
+import ab.api.recipe.RecipeAdvancedPlate;
+import ab.common.lib.register.BlockListAB;
+import net.minecraft.block.Block;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.init.Blocks;
+import net.minecraft.inventory.IInventory;
+import net.minecraft.inventory.ISidedInventory;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.util.AxisAlignedBB;
+import scala.reflect.internal.Trees.This;
+import vazkii.botania.api.internal.VanillaPacketDispatcher;
+import vazkii.botania.api.lexicon.multiblock.Multiblock;
+import vazkii.botania.api.lexicon.multiblock.MultiblockSet;
+import vazkii.botania.api.mana.IManaPool;
+import vazkii.botania.api.mana.IManaReceiver;
+import vazkii.botania.api.mana.spark.ISparkAttachable;
+import vazkii.botania.api.mana.spark.ISparkEntity;
+import vazkii.botania.api.mana.spark.SparkHelper;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.block.ModBlocks;
+import vazkii.botania.common.block.ModFluffBlocks;
+import vazkii.botania.common.block.tile.TileMod;
+import vazkii.botania.common.block.tile.TileSimpleInventory;
+import vazkii.botania.common.item.ModItems;
+
+public class TileNidavellirForge extends TileInventory implements ISparkAttachable, ISidedInventory {
+
+ private int mana;
+ public int manaToGet;
+ private RecipeAdvancedPlate currentRecipe;
+ private int recipeID;
+ public boolean requestUpdate;
+
+ public void updateEntity() {
+ if(!this.worldObj.isRemote)
+ updateServer();
+ else
+ updateClient();
+ ISparkEntity spark = getAttachedSpark();
+ if (spark != null) {
+ List sparkEntities = SparkHelper.getSparksAround(this.worldObj, this.xCoord + 0.5D, this.yCoord + 0.5D, this.zCoord + 0.5D);
+ for (ISparkEntity otherSpark : sparkEntities) {
+ if(spark == otherSpark)
+ continue;
+ else if(otherSpark.getAttachedTile() != null && otherSpark.getAttachedTile() instanceof IManaPool)
+ otherSpark.registerTransfer(spark);
+ }
+ }
+ }
+
+ private void updateServer() {
+ if(requestUpdate)
+ VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
+ boolean hasUpdate = false;
+ List items = this.worldObj.getEntitiesWithinAABB(EntityItem.class, AxisAlignedBB.getBoundingBox(this.xCoord, this.yCoord, this.zCoord, (this.xCoord + 1), (this.yCoord + 1), (this.zCoord + 1)));
+ for(EntityItem item : items) {
+ if(item.getEntityItem() != null && !item.isDead) {
+ ItemStack stack = item.getEntityItem();
+ int splitCount = addItemStack(stack);
+ stack.stackSize -= splitCount;
+ if(stack.stackSize <= 0)
+ item.setDead();
+ if(splitCount > 0)
+ hasUpdate = true;
+ break;
+ }
+ }
+ int wasManaToGet = this.manaToGet;
+ boolean hasCraft = false;
+ int recipeID = 0;
+ for(RecipeAdvancedPlate recipe : AdvancedBotanyAPI.advancedPlateRecipes) {
+ if(recipe.matches(this)) {
+ this.recipeID = recipeID;
+ if(this.mana > 0 && this.isFull()) {
+ ItemStack output = recipe.getOutput().copy();
+ this.recieveMana(-recipe.getManaUsage());
+ this.manaToGet = 0;
+ for(int i = 1; i < this.getSizeInventory(); i++) {
+ if(this.getStackInSlot(i).stackSize > 1)
+ --this.getStackInSlot(i).stackSize;
+ else
+ this.setInventorySlotContents(i, null);
+ }
+ if(this.getStackInSlot(0) != null)
+ ++this.getStackInSlot(0).stackSize;
+ else
+ this.setInventorySlotContents(0, output);
+ hasUpdate = true;
+ worldObj.playSoundEffect(xCoord, yCoord, zCoord, "botania:terrasteelCraft", 1.0F, 2.0F);
+ break;
+ } else {
+ if(this.getStackInSlot(0) == null) {
+ this.manaToGet = recipe.getManaUsage();
+ currentRecipe = recipe;
+ hasCraft = true;
+ break;
+ } else if(isItemEqual(recipe.getOutput(), getStackInSlot(0)) && getStackInSlot(0).stackSize < recipe.getOutput().getMaxStackSize()) {
+ this.manaToGet = recipe.getManaUsage();
+ currentRecipe = recipe;
+ hasCraft = true;
+ break;
+ }
+ }
+ }
+ recipeID++;
+ }
+ if(!hasCraft) {
+ currentRecipe = null;
+ this.mana = 0;
+ this.manaToGet = 0;
+ }
+ if(this.manaToGet != wasManaToGet)
+ hasUpdate = true;
+ requestUpdate = hasUpdate;
+ }
+
+ private void updateClient() {
+ if(this.mana > 0) {
+ double worldTime = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
+ worldTime += (new Random((this.xCoord ^ this.yCoord ^ this.zCoord))).nextInt(360);
+ float indetY = (float)(Math.sin(worldTime / 18.0D) / 24.0D);
+ float ticks = 100.0F * getCurrentMana() / this.manaToGet;
+ int totalSpiritCount = 3;
+ double tickIncrement = 360.0D / totalSpiritCount;
+ int speed = 5;
+ double wticks = (ticks * speed) - tickIncrement;
+ double r = Math.sin((ticks - 100) / 10.0D) * 0.5D;
+ double g = Math.sin(wticks * Math.PI / 180.0D * 0.55D);
+ float size = 0.4f;
+ for(int i = 0; i < totalSpiritCount; i++) {
+ double x = this.xCoord + Math.sin(wticks * Math.PI / 180.0D) * r + 0.5D;
+ double y = this.yCoord - indetY + 0.85D + Math.abs(r) * 0.7D;
+ double z = this.zCoord + Math.cos(wticks * Math.PI / 180.0D) * r + 0.5D;
+ wticks += tickIncrement;
+ int color = 0x24cce0;
+ if(currentRecipe != null)
+ color = currentRecipe.getColor();
+ float hsb[] = Color.RGBtoHSB(color & 255, color >> 8 & 255, color >> 16 & 255, null);
+ int color1 = Color.HSBtoRGB(hsb[0], hsb[1], ticks / 100.0F);
+ float[] colorsfx = { (color1 & 255) / 255.0f, (color1 >> 8 & 255) / 255.0f, (color1 >> 16 & 255) / 255.0f };
+ Botania.proxy.wispFX(this.worldObj, x, y, z, colorsfx[0], colorsfx[1], colorsfx[2], 0.85F * size, (float)g * 0.05F, 0.25F);
+ Botania.proxy.wispFX(this.worldObj, x, y, z, colorsfx[0], colorsfx[1], colorsfx[2], (float)Math.random() * 0.1F + 0.1F * size, (float)(Math.random() - 0.5D) * 0.05F, (float)(Math.random() - 0.5D) * 0.05F, (float)(Math.random() - 0.5D) * 0.05F, 0.9F);
+ if(ticks == 100)
+ for(int j = 0; j < 12; j++)
+ Botania.proxy.wispFX(this.worldObj, this.xCoord + 0.5D, this.yCoord + 1.1D - indetY, this.zCoord + 0.5D, colorsfx[0], colorsfx[1], colorsfx[2], (float)Math.random() * 0.15F + 0.15F * size, (float)(Math.random() - 0.5D) * 0.125F * size, (float)(Math.random() - 0.5D) * 0.125F * size, (float)(Math.random() - 0.5D) * 0.125F * size, 0.8f);
+ }
+ }
+ }
+
+ public static boolean isItemEqual(ItemStack stack, ItemStack stack1) {
+ return stack.isItemEqual(stack1) && ItemStack.areItemStackTagsEqual(stack, stack1);
+ }
+
+ private int addItemStack(ItemStack stack) {
+ for (int i = 1; i < getSizeInventory(); i++) {
+ if(getStackInSlot(i) == null) {
+ ItemStack stackToAdd = stack.copy();
+ setInventorySlotContents(i, stackToAdd);
+ return stack.stackSize;
+ } else if(isItemEqual(stack, getStackInSlot(i))) {
+ if(getStackInSlot(i).stackSize < stack.getMaxStackSize()) {
+ int count = Math.min(stack.stackSize, stack.getMaxStackSize() - getStackInSlot(i).stackSize);
+ getStackInSlot(i).stackSize += count;
+ return count;
+ }
+ }
+ }
+ return 0;
+ }
+
+ public void writeCustomNBT(NBTTagCompound cmp) {
+ super.writeCustomNBT(cmp);
+ cmp.setInteger("mana", mana);
+ cmp.setInteger("manaToGet", manaToGet);
+ cmp.setBoolean("requestUpdate", requestUpdate);
+ cmp.setInteger("recipeID", currentRecipe == null ? -1 : recipeID);
+ }
+
+ public void readCustomNBT(NBTTagCompound cmp) {
+ super.readCustomNBT(cmp);
+ this.mana = cmp.getInteger("mana");
+ this.manaToGet = cmp.getInteger("manaToGet");
+ this.requestUpdate = cmp.getBoolean("requestUpdate");
+ int recipeID = cmp.getInteger("recipeID");
+ if(recipeID == -1)
+ this.currentRecipe = null;
+ else
+ this.currentRecipe = AdvancedBotanyAPI.advancedPlateRecipes.get(recipeID);
+ }
+
+ public int getSizeInventory() {
+ return 4;
+ }
+
+ public String getInventoryName() {
+ return "tileAdvancedPlate";
+ }
+
+ public int getCurrentMana() {
+ return this.mana;
+ }
+
+ public boolean isFull() {
+ return this.mana >= this.manaToGet;
+ }
+
+ public void recieveMana(final int mana) {
+ this.mana = Math.min(this.mana + mana, this.manaToGet);
+ }
+
+ public boolean canRecieveManaFromBursts() {
+ return !this.isFull();
+ }
+
+ public boolean canAttachSpark(ItemStack stack) {
+ return true;
+ }
+
+ public void attachSpark(ISparkEntity entity) {}
+
+ public ISparkEntity getAttachedSpark() {
+ List sparks = this.worldObj.getEntitiesWithinAABB(ISparkEntity.class, AxisAlignedBB.getBoundingBox(this.xCoord, (this.yCoord + 1), this.zCoord, (this.xCoord + 1), (this.yCoord + 2), (this.zCoord + 1)));
+ if (sparks.size() == 1) {
+ Entity e = (Entity)sparks.get(0);
+ return (ISparkEntity)e;
+ }
+ return null;
+ }
+
+ public boolean areIncomingTranfersDone() {
+ return this.isFull();
+ }
+
+ public int getAvailableSpaceForMana() {
+ return Math.max(0, this.manaToGet - getCurrentMana());
+ }
+
+ public int[] getAccessibleSlotsFromSide(int side) {
+ return new int[]{0, 1, 2, 3};
+ }
+
+ public boolean canInsertItem(int slot, ItemStack stack, int side) {
+ boolean isSingleStack = false;
+ for(this.)
+ return side == 1 && slot != 0;
+ }
+
+ public boolean canExtractItem(int slot, ItemStack stack, int side) {
+ return (side == 0 && slot == 0) || (side != 0 && side != 1 && slot != 0);
+ }
+}
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToExpression(ASTConverter.java:3705)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2201)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 2 2022-04-21 19:22:52.294
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToExpression(ASTConverter.java:3705)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2201)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.ui 4 0 2022-04-21 19:22:52.296
+!MESSAGE Error in JDT Core during reconcile
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToExpression(ASTConverter.java:3705)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2201)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.AST.convertCompilationUnit(AST.java:521)
+ at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:201)
+ at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
+ at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
+ at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1142)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
+ at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:740)
+ at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:806)
+ at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
+ at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
+ at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
+ at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
+ at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
+ at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
+
+!ENTRY org.eclipse.jdt.core 4 4 2022-04-21 19:22:52.312
+!MESSAGE Exception occurred during compilation unit conversion:
+----------------------------------- SOURCE BEGIN -------------------------------------
+package ab.common.block.tile;
+
+import java.awt.Color;
+import java.util.List;
+import java.util.Random;
+
+import ab.api.AdvancedBotanyAPI;
+import ab.api.recipe.RecipeAdvancedPlate;
+import ab.common.lib.register.BlockListAB;
+import net.minecraft.block.Block;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.init.Blocks;
+import net.minecraft.inventory.IInventory;
+import net.minecraft.inventory.ISidedInventory;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.util.AxisAlignedBB;
+import scala.reflect.internal.Trees.This;
+import vazkii.botania.api.internal.VanillaPacketDispatcher;
+import vazkii.botania.api.lexicon.multiblock.Multiblock;
+import vazkii.botania.api.lexicon.multiblock.MultiblockSet;
+import vazkii.botania.api.mana.IManaPool;
+import vazkii.botania.api.mana.IManaReceiver;
+import vazkii.botania.api.mana.spark.ISparkAttachable;
+import vazkii.botania.api.mana.spark.ISparkEntity;
+import vazkii.botania.api.mana.spark.SparkHelper;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.block.ModBlocks;
+import vazkii.botania.common.block.ModFluffBlocks;
+import vazkii.botania.common.block.tile.TileMod;
+import vazkii.botania.common.block.tile.TileSimpleInventory;
+import vazkii.botania.common.item.ModItems;
+
+public class TileNidavellirForge extends TileInventory implements ISparkAttachable, ISidedInventory {
+
+ private int mana;
+ public int manaToGet;
+ private RecipeAdvancedPlate currentRecipe;
+ private int recipeID;
+ public boolean requestUpdate;
+
+ public void updateEntity() {
+ if(!this.worldObj.isRemote)
+ updateServer();
+ else
+ updateClient();
+ ISparkEntity spark = getAttachedSpark();
+ if (spark != null) {
+ List sparkEntities = SparkHelper.getSparksAround(this.worldObj, this.xCoord + 0.5D, this.yCoord + 0.5D, this.zCoord + 0.5D);
+ for (ISparkEntity otherSpark : sparkEntities) {
+ if(spark == otherSpark)
+ continue;
+ else if(otherSpark.getAttachedTile() != null && otherSpark.getAttachedTile() instanceof IManaPool)
+ otherSpark.registerTransfer(spark);
+ }
+ }
+ }
+
+ private void updateServer() {
+ if(requestUpdate)
+ VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
+ boolean hasUpdate = false;
+ List items = this.worldObj.getEntitiesWithinAABB(EntityItem.class, AxisAlignedBB.getBoundingBox(this.xCoord, this.yCoord, this.zCoord, (this.xCoord + 1), (this.yCoord + 1), (this.zCoord + 1)));
+ for(EntityItem item : items) {
+ if(item.getEntityItem() != null && !item.isDead) {
+ ItemStack stack = item.getEntityItem();
+ int splitCount = addItemStack(stack);
+ stack.stackSize -= splitCount;
+ if(stack.stackSize <= 0)
+ item.setDead();
+ if(splitCount > 0)
+ hasUpdate = true;
+ break;
+ }
+ }
+ int wasManaToGet = this.manaToGet;
+ boolean hasCraft = false;
+ int recipeID = 0;
+ for(RecipeAdvancedPlate recipe : AdvancedBotanyAPI.advancedPlateRecipes) {
+ if(recipe.matches(this)) {
+ this.recipeID = recipeID;
+ if(this.mana > 0 && this.isFull()) {
+ ItemStack output = recipe.getOutput().copy();
+ this.recieveMana(-recipe.getManaUsage());
+ this.manaToGet = 0;
+ for(int i = 1; i < this.getSizeInventory(); i++) {
+ if(this.getStackInSlot(i).stackSize > 1)
+ --this.getStackInSlot(i).stackSize;
+ else
+ this.setInventorySlotContents(i, null);
+ }
+ if(this.getStackInSlot(0) != null)
+ ++this.getStackInSlot(0).stackSize;
+ else
+ this.setInventorySlotContents(0, output);
+ hasUpdate = true;
+ worldObj.playSoundEffect(xCoord, yCoord, zCoord, "botania:terrasteelCraft", 1.0F, 2.0F);
+ break;
+ } else {
+ if(this.getStackInSlot(0) == null) {
+ this.manaToGet = recipe.getManaUsage();
+ currentRecipe = recipe;
+ hasCraft = true;
+ break;
+ } else if(isItemEqual(recipe.getOutput(), getStackInSlot(0)) && getStackInSlot(0).stackSize < recipe.getOutput().getMaxStackSize()) {
+ this.manaToGet = recipe.getManaUsage();
+ currentRecipe = recipe;
+ hasCraft = true;
+ break;
+ }
+ }
+ }
+ recipeID++;
+ }
+ if(!hasCraft) {
+ currentRecipe = null;
+ this.mana = 0;
+ this.manaToGet = 0;
+ }
+ if(this.manaToGet != wasManaToGet)
+ hasUpdate = true;
+ requestUpdate = hasUpdate;
+ }
+
+ private void updateClient() {
+ if(this.mana > 0) {
+ double worldTime = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
+ worldTime += (new Random((this.xCoord ^ this.yCoord ^ this.zCoord))).nextInt(360);
+ float indetY = (float)(Math.sin(worldTime / 18.0D) / 24.0D);
+ float ticks = 100.0F * getCurrentMana() / this.manaToGet;
+ int totalSpiritCount = 3;
+ double tickIncrement = 360.0D / totalSpiritCount;
+ int speed = 5;
+ double wticks = (ticks * speed) - tickIncrement;
+ double r = Math.sin((ticks - 100) / 10.0D) * 0.5D;
+ double g = Math.sin(wticks * Math.PI / 180.0D * 0.55D);
+ float size = 0.4f;
+ for(int i = 0; i < totalSpiritCount; i++) {
+ double x = this.xCoord + Math.sin(wticks * Math.PI / 180.0D) * r + 0.5D;
+ double y = this.yCoord - indetY + 0.85D + Math.abs(r) * 0.7D;
+ double z = this.zCoord + Math.cos(wticks * Math.PI / 180.0D) * r + 0.5D;
+ wticks += tickIncrement;
+ int color = 0x24cce0;
+ if(currentRecipe != null)
+ color = currentRecipe.getColor();
+ float hsb[] = Color.RGBtoHSB(color & 255, color >> 8 & 255, color >> 16 & 255, null);
+ int color1 = Color.HSBtoRGB(hsb[0], hsb[1], ticks / 100.0F);
+ float[] colorsfx = { (color1 & 255) / 255.0f, (color1 >> 8 & 255) / 255.0f, (color1 >> 16 & 255) / 255.0f };
+ Botania.proxy.wispFX(this.worldObj, x, y, z, colorsfx[0], colorsfx[1], colorsfx[2], 0.85F * size, (float)g * 0.05F, 0.25F);
+ Botania.proxy.wispFX(this.worldObj, x, y, z, colorsfx[0], colorsfx[1], colorsfx[2], (float)Math.random() * 0.1F + 0.1F * size, (float)(Math.random() - 0.5D) * 0.05F, (float)(Math.random() - 0.5D) * 0.05F, (float)(Math.random() - 0.5D) * 0.05F, 0.9F);
+ if(ticks == 100)
+ for(int j = 0; j < 12; j++)
+ Botania.proxy.wispFX(this.worldObj, this.xCoord + 0.5D, this.yCoord + 1.1D - indetY, this.zCoord + 0.5D, colorsfx[0], colorsfx[1], colorsfx[2], (float)Math.random() * 0.15F + 0.15F * size, (float)(Math.random() - 0.5D) * 0.125F * size, (float)(Math.random() - 0.5D) * 0.125F * size, (float)(Math.random() - 0.5D) * 0.125F * size, 0.8f);
+ }
+ }
+ }
+
+ public static boolean isItemEqual(ItemStack stack, ItemStack stack1) {
+ return stack.isItemEqual(stack1) && ItemStack.areItemStackTagsEqual(stack, stack1);
+ }
+
+ private int addItemStack(ItemStack stack) {
+ for (int i = 1; i < getSizeInventory(); i++) {
+ if(getStackInSlot(i) == null) {
+ ItemStack stackToAdd = stack.copy();
+ setInventorySlotContents(i, stackToAdd);
+ return stack.stackSize;
+ } else if(isItemEqual(stack, getStackInSlot(i))) {
+ if(getStackInSlot(i).stackSize < stack.getMaxStackSize()) {
+ int count = Math.min(stack.stackSize, stack.getMaxStackSize() - getStackInSlot(i).stackSize);
+ getStackInSlot(i).stackSize += count;
+ return count;
+ }
+ }
+ }
+ return 0;
+ }
+
+ public void writeCustomNBT(NBTTagCompound cmp) {
+ super.writeCustomNBT(cmp);
+ cmp.setInteger("mana", mana);
+ cmp.setInteger("manaToGet", manaToGet);
+ cmp.setBoolean("requestUpdate", requestUpdate);
+ cmp.setInteger("recipeID", currentRecipe == null ? -1 : recipeID);
+ }
+
+ public void readCustomNBT(NBTTagCompound cmp) {
+ super.readCustomNBT(cmp);
+ this.mana = cmp.getInteger("mana");
+ this.manaToGet = cmp.getInteger("manaToGet");
+ this.requestUpdate = cmp.getBoolean("requestUpdate");
+ int recipeID = cmp.getInteger("recipeID");
+ if(recipeID == -1)
+ this.currentRecipe = null;
+ else
+ this.currentRecipe = AdvancedBotanyAPI.advancedPlateRecipes.get(recipeID);
+ }
+
+ public int getSizeInventory() {
+ return 4;
+ }
+
+ public String getInventoryName() {
+ return "tileAdvancedPlate";
+ }
+
+ public int getCurrentMana() {
+ return this.mana;
+ }
+
+ public boolean isFull() {
+ return this.mana >= this.manaToGet;
+ }
+
+ public void recieveMana(final int mana) {
+ this.mana = Math.min(this.mana + mana, this.manaToGet);
+ }
+
+ public boolean canRecieveManaFromBursts() {
+ return !this.isFull();
+ }
+
+ public boolean canAttachSpark(ItemStack stack) {
+ return true;
+ }
+
+ public void attachSpark(ISparkEntity entity) {}
+
+ public ISparkEntity getAttachedSpark() {
+ List sparks = this.worldObj.getEntitiesWithinAABB(ISparkEntity.class, AxisAlignedBB.getBoundingBox(this.xCoord, (this.yCoord + 1), this.zCoord, (this.xCoord + 1), (this.yCoord + 2), (this.zCoord + 1)));
+ if (sparks.size() == 1) {
+ Entity e = (Entity)sparks.get(0);
+ return (ISparkEntity)e;
+ }
+ return null;
+ }
+
+ public boolean areIncomingTranfersDone() {
+ return this.isFull();
+ }
+
+ public int getAvailableSpaceForMana() {
+ return Math.max(0, this.manaToGet - getCurrentMana());
+ }
+
+ public int[] getAccessibleSlotsFromSide(int side) {
+ return new int[]{0, 1, 2, 3};
+ }
+
+ public boolean canInsertItem(int slot, ItemStack stack, int side) {
+ boolean isSingleStack = false;
+ for(this.)
+ return side == 1 && slot != 0;
+ }
+
+ public boolean canExtractItem(int slot, ItemStack stack, int side) {
+ return (side == 0 && slot == 0) || (side != 0 && side != 1 && slot != 0);
+ }
+}
+----------------------------------- SOURCE END -------------------------------------
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToExpression(ASTConverter.java:3705)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2201)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 2 2022-04-21 19:22:52.313
+!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToExpression(ASTConverter.java:3705)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2201)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.core.manipulation 4 0 2022-04-21 19:22:52.314
+!MESSAGE Error in JDT Core during AST creation
+!STACK 0
+java.lang.IllegalArgumentException
+ at org.eclipse.jdt.core.dom.InfixExpression.setOperator(InfixExpression.java:383)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:880)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2038)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToParenthesizedExpression(ASTConverter.java:3853)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1953)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1204)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1990)
+ at org.eclipse.jdt.core.dom.ASTConverter.convertToExpression(ASTConverter.java:3705)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2201)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3034)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:751)
+ at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:208)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3390)
+ at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1534)
+ at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
+ at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1271)
+ at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
+ at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:187)
+ at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
+ at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 19:26:38.132
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 19:49:01.284
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 19:49:37.688
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 19:50:42.448
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 19:51:59.410
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 19:53:42.188
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 19:58:01.330
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 20:10:49.412
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 20:17:53.455
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 20:21:23.518
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 20:23:56.871
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 20:55:09.465
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 20:56:19.005
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+!SESSION 2022-04-21 20:59:39.534 -----------------------------------------------
+eclipse.buildId=4.22.0.I20211124-1800
+java.version=17.0.1
+java.vendor=Eclipse Adoptium
+BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=ru_RU
+Framework arguments: -product org.eclipse.epp.package.java.product
+Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
+
+!ENTRY org.eclipse.jface 2 0 2022-04-21 20:59:51.095
+!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
+!SUBENTRY 1 org.eclipse.jface 2 0 2022-04-21 20:59:51.095
+!MESSAGE A conflict occurred for CTRL+SHIFT+T:
+Binding(CTRL+SHIFT+T,
+ ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type,
+ Open a type in a Java editor,
+ Category(org.eclipse.ui.category.navigate,Navigate,null,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@24dc150c,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+Binding(CTRL+SHIFT+T,
+ ParameterizedCommand(Command(org.eclipse.lsp4e.symbolinworkspace,Go to Symbol in Workspace,
+ ,
+ Category(org.eclipse.lsp4e.category,Language Servers,null,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@1d2d4d7a,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+!SUBENTRY 1 org.eclipse.jface 2 0 2022-04-21 20:59:51.095
+!MESSAGE A conflict occurred for ALT+SHIFT+R:
+Binding(ALT+SHIFT+R,
+ ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.rename.element,Rename - Refactoring ,
+ Rename the selected element,
+ Category(org.eclipse.jdt.ui.category.refactoring,Refactor - Java,Java Refactoring Actions,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@5e020dd1,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+Binding(ALT+SHIFT+R,
+ ParameterizedCommand(Command(org.eclipse.ui.edit.rename,Rename,
+ Rename the selected item,
+ Category(org.eclipse.ui.category.file,File,null,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@4bbc02ef,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+
+!ENTRY org.eclipse.egit.ui 2 0 2022-04-21 20:59:55.691
+!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
+user global configuration and to define the default location to store repositories: 'C:\Users\Pulxes'. If this is
+not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
+EGit might behave differently since they see different configuration options.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 21:00:26.463
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 21:00:59.735
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.debug.core 4 125 2022-04-21 21:02:31.385
+!MESSAGE Error logged from Debug Core:
+!STACK 1
+org.eclipse.debug.core.DebugException: Error retrieving source debug attribute
+ at org.eclipse.jdt.internal.debug.core.model.JDIType.throwDebugException(JDIType.java:79)
+ at org.eclipse.jdt.internal.debug.core.model.JDIType.requestFailed(JDIType.java:69)
+ at org.eclipse.jdt.internal.debug.core.model.JDIReferenceType.getSourceNames(JDIReferenceType.java:252)
+ at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getClassesLocation(JDIHelpers.java:64)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.getSourceContainer(AdvancedSourceLookupParticipant.java:88)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:72)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
+ at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:262)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.getSourceDebugExtension(ReferenceTypeImpl.java:1745)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.isSourceDebugExtensionAvailable(ReferenceTypeImpl.java:1819)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.getStratum(ReferenceTypeImpl.java:1726)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.sourceNames(ReferenceTypeImpl.java:1533)
+ at org.eclipse.jdt.internal.debug.core.model.JDIReferenceType.getSourceNames(JDIReferenceType.java:247)
+ ... 10 more
+!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-04-21 21:02:31.386
+!MESSAGE Error retrieving source debug attribute
+!STACK 0
+com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
+ at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
+ at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:262)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.getSourceDebugExtension(ReferenceTypeImpl.java:1745)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.isSourceDebugExtensionAvailable(ReferenceTypeImpl.java:1819)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.getStratum(ReferenceTypeImpl.java:1726)
+ at org.eclipse.jdi.internal.ReferenceTypeImpl.sourceNames(ReferenceTypeImpl.java:1533)
+ at org.eclipse.jdt.internal.debug.core.model.JDIReferenceType.getSourceNames(JDIReferenceType.java:247)
+ at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getClassesLocation(JDIHelpers.java:64)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.getSourceContainer(AdvancedSourceLookupParticipant.java:88)
+ at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:72)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
+ at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
+ at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
+!SESSION 2022-04-21 21:04:11.402 -----------------------------------------------
+eclipse.buildId=4.22.0.I20211124-1800
+java.version=17.0.1
+java.vendor=Eclipse Adoptium
+BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=ru_RU
+Framework arguments: -product org.eclipse.epp.package.java.product
+Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
+
+!ENTRY org.eclipse.jface 2 0 2022-04-21 21:04:18.577
+!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
+!SUBENTRY 1 org.eclipse.jface 2 0 2022-04-21 21:04:18.577
+!MESSAGE A conflict occurred for CTRL+SHIFT+T:
+Binding(CTRL+SHIFT+T,
+ ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type,
+ Open a type in a Java editor,
+ Category(org.eclipse.ui.category.navigate,Navigate,null,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@6a552721,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+Binding(CTRL+SHIFT+T,
+ ParameterizedCommand(Command(org.eclipse.lsp4e.symbolinworkspace,Go to Symbol in Workspace,
+ ,
+ Category(org.eclipse.lsp4e.category,Language Servers,null,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@3815a7d1,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+!SUBENTRY 1 org.eclipse.jface 2 0 2022-04-21 21:04:18.577
+!MESSAGE A conflict occurred for ALT+SHIFT+R:
+Binding(ALT+SHIFT+R,
+ ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.rename.element,Rename - Refactoring ,
+ Rename the selected element,
+ Category(org.eclipse.jdt.ui.category.refactoring,Refactor - Java,Java Refactoring Actions,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@24dc150c,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+Binding(ALT+SHIFT+R,
+ ParameterizedCommand(Command(org.eclipse.ui.edit.rename,Rename,
+ Rename the selected item,
+ Category(org.eclipse.ui.category.file,File,null,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@1d2d4d7a,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+
+!ENTRY org.eclipse.egit.ui 2 0 2022-04-21 21:04:23.158
+!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
+user global configuration and to define the default location to store repositories: 'C:\Users\Pulxes'. If this is
+not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
+EGit might behave differently since they see different configuration options.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 21:07:54.667
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+!SESSION 2022-04-21 21:21:41.549 -----------------------------------------------
+eclipse.buildId=4.22.0.I20211124-1800
+java.version=17.0.1
+java.vendor=Eclipse Adoptium
+BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=ru_RU
+Framework arguments: -product org.eclipse.epp.package.java.product
+Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
+
+!ENTRY org.eclipse.jface 2 0 2022-04-21 21:21:53.685
+!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
+!SUBENTRY 1 org.eclipse.jface 2 0 2022-04-21 21:21:53.685
+!MESSAGE A conflict occurred for CTRL+SHIFT+T:
+Binding(CTRL+SHIFT+T,
+ ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type,
+ Open a type in a Java editor,
+ Category(org.eclipse.ui.category.navigate,Navigate,null,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@6a552721,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+Binding(CTRL+SHIFT+T,
+ ParameterizedCommand(Command(org.eclipse.lsp4e.symbolinworkspace,Go to Symbol in Workspace,
+ ,
+ Category(org.eclipse.lsp4e.category,Language Servers,null,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@3815a7d1,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+!SUBENTRY 1 org.eclipse.jface 2 0 2022-04-21 21:21:53.685
+!MESSAGE A conflict occurred for ALT+SHIFT+R:
+Binding(ALT+SHIFT+R,
+ ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.rename.element,Rename - Refactoring ,
+ Rename the selected element,
+ Category(org.eclipse.jdt.ui.category.refactoring,Refactor - Java,Java Refactoring Actions,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@24dc150c,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+Binding(ALT+SHIFT+R,
+ ParameterizedCommand(Command(org.eclipse.ui.edit.rename,Rename,
+ Rename the selected item,
+ Category(org.eclipse.ui.category.file,File,null,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@1d2d4d7a,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+
+!ENTRY org.eclipse.egit.ui 2 0 2022-04-21 21:21:58.986
+!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
+user global configuration and to define the default location to store repositories: 'C:\Users\Pulxes'. If this is
+not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
+EGit might behave differently since they see different configuration options.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 21:22:13.495
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 21:32:30.512
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 21:35:08.980
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+
+!ENTRY org.eclipse.jdt.debug 2 0 2022-04-21 21:36:30.102
+!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
+!SESSION 2022-04-22 13:20:00.684 -----------------------------------------------
+eclipse.buildId=4.22.0.I20211124-1800
+java.version=17.0.1
+java.vendor=Eclipse Adoptium
+BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=ru_RU
+Framework arguments: -product org.eclipse.epp.package.java.product
+Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
+
+!ENTRY org.eclipse.jface 2 0 2022-04-22 13:20:16.593
+!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
+!SUBENTRY 1 org.eclipse.jface 2 0 2022-04-22 13:20:16.593
+!MESSAGE A conflict occurred for CTRL+SHIFT+T:
+Binding(CTRL+SHIFT+T,
+ ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type,
+ Open a type in a Java editor,
+ Category(org.eclipse.ui.category.navigate,Navigate,null,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@3815a7d1,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+Binding(CTRL+SHIFT+T,
+ ParameterizedCommand(Command(org.eclipse.lsp4e.symbolinworkspace,Go to Symbol in Workspace,
+ ,
+ Category(org.eclipse.lsp4e.category,Language Servers,null,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@24dc150c,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+!SUBENTRY 1 org.eclipse.jface 2 0 2022-04-22 13:20:16.593
+!MESSAGE A conflict occurred for ALT+SHIFT+R:
+Binding(ALT+SHIFT+R,
+ ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.rename.element,Rename - Refactoring ,
+ Rename the selected element,
+ Category(org.eclipse.jdt.ui.category.refactoring,Refactor - Java,Java Refactoring Actions,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@1d2d4d7a,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+Binding(ALT+SHIFT+R,
+ ParameterizedCommand(Command(org.eclipse.ui.edit.rename,Rename,
+ Rename the selected item,
+ Category(org.eclipse.ui.category.file,File,null,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@5e020dd1,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+
+!ENTRY org.eclipse.egit.ui 2 0 2022-04-22 13:20:20.484
+!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
+user global configuration and to define the default location to store repositories: 'C:\Users\Pulxes'. If this is
+not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
+EGit might behave differently since they see different configuration options.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/0/60cf0cd2cab0001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/0/60cf0cd2cab0001c19bf8a91ac37238b
deleted file mode 100644
index fc48dc0..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/0/60cf0cd2cab0001c19bf8a91ac37238b
+++ /dev/null
@@ -1,126 +0,0 @@
-package ab.common.item.equipment;
-
-import java.awt.Color;
-
-import ab.client.core.ClientHelper;
-import ab.common.core.handler.ConfigABHandler;
-import ab.common.item.ItemMod;
-import net.minecraft.block.Block;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.Minecraft;
-import net.minecraft.entity.Entity;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.EnumAction;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.ChunkCoordinates;
-import net.minecraft.util.MathHelper;
-import net.minecraft.util.Vec3;
-import net.minecraft.world.World;
-import net.minecraft.world.chunk.Chunk;
-import vazkii.botania.api.mana.IManaUsingItem;
-import vazkii.botania.api.mana.ManaItemHandler;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.core.helper.Vector3;
-
-public class ItemNebulaRod extends ItemMod implements IManaUsingItem {
-
- public ItemNebulaRod() {
- super("nebulaRod");
- this.setMaxStackSize(1);
- this.setNoRepair();
- this.setMaxDamage(100);
- }
-
- public boolean usesMana(ItemStack stack) {
- return true;
- }
-
- public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
- if(stack.getItemDamage() == 0)
- player.setItemInUse(stack, getMaxItemUseDuration(stack));
- return stack;
- }
-
- public EnumAction getItemUseAction(ItemStack par1ItemStack) {
- return EnumAction.bow;
- }
-
- public void onUpdate(ItemStack stack, World world, Entity player, int par4, boolean par5) {
- if(!world.isRemote && player instanceof EntityPlayer && player.ticksExisted % ConfigABHandler.nebulaWandCooldownTick == 0 && stack.getItemDamage() > 0 && ManaItemHandler.requestManaExactForTool(stack, (EntityPlayer)player, 140, true))
- stack.setItemDamage(stack.getItemDamage() - 1);
- }
-
- public void onUsingTick(ItemStack stack, EntityPlayer p, int time) {
- time = this.getMaxItemUseDuration(stack) - time;
- boolean isFinish = time > 80;
- if(time > 110 && !p.isSneaking()) {
- if(!p.capabilities.isCreativeMode)
- stack.setItemDamage(100);
- p.stopUsingItem();
- if(!p.worldObj.isRemote) {
- Vec3 vec3 = p.getLook(1.0F).normalize();
- MathHelper.floor_double(time);
- int limitXZ = ConfigABHandler.limitXZCoords;
- int posX = MathHelper.floor_double(p.posX + vec3.xCoord * 256);
- int posY = MathHelper.floor_double(p.posY);
- int posZ = MathHelper.floor_double(p.posZ + vec3.zCoord * 256);
- ChunkCoordinates chunkcoordinates = new ChunkCoordinates(Math.min(Math.max(posX, -(limitXZ - 1)), limitXZ - 1), posY, Math.min(Math.max(posZ, -(limitXZ - 1)), limitXZ - 1));
- int topY = getTopBlock(p.worldObj, posX, posZ);
- chunkcoordinates.posY = topY == -1 ? posY : topY;
- ((EntityPlayerMP)p).playerNetServerHandler.setPlayerLocation(chunkcoordinates.posX + 0.5D, chunkcoordinates.posY + 1.6D, chunkcoordinates.posZ + 0.5D, p.rotationYaw, p.rotationPitch);
- }
- }
- if(p.worldObj.isRemote) {
- int ticks = Math.min(100, time);
- int totalSpiritCount = (int)Math.max(3, ticks / 100.0f * 18);
- double tickIncrement = 360.0D / totalSpiritCount;
- int speed = 8;
- double wticks = (ticks * speed) - tickIncrement;
- double r = Math.sin((ticks) / 100.0D) * Math.max(0.75f, 1.4D * ticks / 100.0f);
- Vec3 look = p.getLookVec();
- float yawOffset = Minecraft.getMinecraft().thePlayer.getDisplayName() == p.getDisplayName() ? 0.0f : 1.62f;
- Vector3 l = new Vector3(look.xCoord, look.yCoord + yawOffset, look.zCoord);
- Vector3 player = Vector3.fromEntity(p).add(0.0f, 0.0f, 0.0f);
- Vector3 v3 = new Vector3();
- for(int i = 0; i < totalSpiritCount; i++) {
- float size = Math.max(0.215f, ticks / 100.0f);
- v3.set(Math.sin(wticks * Math.PI / 180.0D) / 1.825f * r, Math.cos(wticks * Math.PI / 180.0D) * r, 0.8f);
- ClientHelper.setRotation(p.rotationPitch, 1.0f, 0.0f, 0.0f, v3);
- ClientHelper.setRotation(-p.rotationYaw, 0.0f, 1.0f, 0.0f, v3);
- v3.add(l.multiply(1.0f)).add(player);
- wticks += tickIncrement;
- int color = p.worldObj.rand.nextBoolean() ? 0x931fec : 0x4b1682;
- float hsb[] = Color.RGBtoHSB(color & 255, color >> 8 & 255, color >> 16 & 255, null);
- int color1 = Color.HSBtoRGB(hsb[0], hsb[1], ticks / 100.0f);
- float[] colorsfx = { (color1 & 255) / 255.0f, (color1 >> 8 & 255) / 255.0f, (color1 >> 16 & 255) / 255.0f };
- float motionSpeed = 0.25f * Math.min(1.0f, (time - 80) / 30.0f);
- Botania.proxy.wispFX(p.worldObj, v3.x, v3.y, v3.z, colorsfx[0], colorsfx[1], colorsfx[2], 0.3F * size, isFinish ? (float)(look.xCoord * -1) * motionSpeed : 0.0f, isFinish ? (float)(look.yCoord * -1) * motionSpeed : 0.0f, isFinish ? (float)(look.zCoord * -1) * motionSpeed : 0.0f, 0.3F);
- Botania.proxy.wispFX(p.worldObj, v3.x, v3.y, v3.z, colorsfx[0], colorsfx[1], colorsfx[2], (float)(Math.random() * 0.1F + 0.05F) * size, (float)(Math.random() - 0.5D) * 0.05F, (float)(Math.random() - 0.5D) * 0.05F, (float)(Math.random() - 0.5D) * 0.05F, 0.4F);
- }
- }
- }
-
- public int getMaxItemUseDuration(ItemStack par1ItemStack) {
- return 72000;
- }
-
- public boolean isFull3D() {
- return true;
- }
-
- public int getTopBlock(World world, int posX, int posZ) {
- Chunk chunk = world.getChunkFromBlockCoords(posX, posZ);
- int x = posX;
- int z = posZ;
- int k = chunk.getTopFilledSegment();
- posX &= 15;
- for(posZ &= 15; k > 0; --k) {
- Block block = chunk.getBlock(posX, k, posZ);
- if(!block.isAir(world, x, k, z) && block != Blocks.bedrock && block.isAir(world, x, k + 1, z) && block.isAir(world, x, k + 2, z))
- return k + 1;
- }
- return -1;
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/1/b003f7d49eb1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/1/b003f7d49eb1001c19bf8a91ac37238b
deleted file mode 100644
index 45cc4da..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/1/b003f7d49eb1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,243 +0,0 @@
-package ab.client.core;
-
-import java.awt.Color;
-import java.nio.FloatBuffer;
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.gui.ScaledResolution;
-import net.minecraft.client.renderer.ActiveRenderInfo;
-import net.minecraft.client.renderer.GLAllocation;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.RenderHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.entity.RenderItem;
-import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.IIcon;
-import net.minecraft.util.ResourceLocation;
-import net.minecraft.util.StatCollector;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-import vazkii.botania.client.core.handler.HUDHandler;
-import vazkii.botania.common.block.ModBlocks;
-import vazkii.botania.common.core.helper.Vector3;
-
-public class ClientHelper {
-
- public static final ResourceLocation miscHuds = new ResourceLocation("ab:textures/misc/miscHuds.png");
- private static final ResourceLocation field_147529_c = new ResourceLocation("textures/environment/end_sky.png");
- private static final ResourceLocation field_147526_d = new ResourceLocation("textures/entity/end_portal.png");
- private static final Random field_147527_e = new Random(31100L);
- public static Minecraft mc = Minecraft.getMinecraft();
- private static FloatBuffer field_147528_b = GLAllocation.createDirectFloatBuffer(16);
-
- public static void renderCosmicBackground() {
-// GL11.glDisable(GL11.GL_LIGHTING);
- field_147527_e.setSeed(31100L);
- float f4 = 0.24F;
- for (int i = 0; i < 16; i++) {
- GL11.glPushMatrix();
- float f5 = (16 - i);
- float f6 = 0.0625F;
- float f7 = 1.0F / (f5 + 1.0F);
- if (i == 0) {
- mc.renderEngine.bindTexture(field_147529_c);
- f7 = 0.1F;
- f5 = 65.0F;
- f6 = 0.125F;
- GL11.glEnable(GL11.GL_BLEND);
- GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
- }
- if (i == 1) {
- mc.renderEngine.bindTexture(field_147526_d);
- GL11.glEnable(GL11.GL_BLEND);
- GL11.glBlendFunc(GL11.GL_ONE, GL11.GL_ONE);
- f6 = 0.5F;
- }
- GL11.glTranslatef(0.0f, 1.5f, 0.0f);
- GL11.glTexGeni(GL11.GL_S, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_OBJECT_LINEAR);
- GL11.glTexGeni(GL11.GL_T, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_OBJECT_LINEAR);
- GL11.glTexGeni(GL11.GL_R, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_OBJECT_LINEAR);
- GL11.glTexGeni(GL11.GL_Q, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_EYE_LINEAR);
- GL11.glTexGen(GL11.GL_S, GL11.GL_OBJECT_PLANE, func_147525_a(1.0F, 0.0F, 0.0F, 0.0F));
- GL11.glTexGen(GL11.GL_T, GL11.GL_OBJECT_PLANE, func_147525_a(0.0F, 0.0F, 1.0F, 0.0F));
- GL11.glTexGen(GL11.GL_R, GL11.GL_OBJECT_PLANE, func_147525_a(0.0F, 0.0F, 0.0F, 1.0F));
- GL11.glTexGen(GL11.GL_Q, GL11.GL_EYE_PLANE, func_147525_a(0.0F, 1.0F, 0.0F, 0.0F));
- GL11.glEnable(GL11.GL_TEXTURE_GEN_S);
- GL11.glEnable(GL11.GL_TEXTURE_GEN_T);
- GL11.glEnable(GL11.GL_TEXTURE_GEN_R);
- GL11.glEnable(GL11.GL_TEXTURE_GEN_Q);
- GL11.glPopMatrix();
- GL11.glMatrixMode(GL11.GL_TEXTURE);
- GL11.glPushMatrix();
- GL11.glLoadIdentity();
- GL11.glTranslatef(0.0F, (float)(Minecraft.getSystemTime() % 20000L) / 20000.0F, 0.0F);
- GL11.glScalef(f6, f6, f6);
- GL11.glTranslatef(0.5F, 0.5F, 0.0F);
- GL11.glRotatef((i * i * 4321 + i * 9) * 2.0F, 0.0F, 0.0F, 1.0F);
- GL11.glTranslatef(-0.5F, -0.5F, 0.0F);
- Tessellator tessellator = Tessellator.instance;
- tessellator.startDrawingQuads();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float f11 = color.getRed() / 255.0F;
- float f12 = color.getGreen() / 255.0F;
- float f13 = color.getBlue() / 255.0F;
- tessellator.setBrightness(180);
- tessellator.setColorRGBA_F(f11 * f7, f12 * f7, f13 * f7, 1.0F);
- tessellator.addVertex(0.0D, f4, 0.0D);
- tessellator.addVertex(0.0D, f4, 1.0D);
- tessellator.addVertex(1.0D, f4, 1.0D);
- tessellator.addVertex(1.0D, f4, 0.0D);
- tessellator.draw();
- GL11.glPopMatrix();
- GL11.glMatrixMode(GL11.GL_MODELVIEW);
- }
- GL11.glDisable(GL11.GL_BLEND);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_S);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_T);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_R);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_Q);
- }
-
- private static FloatBuffer func_147525_a(float p_147525_1_, float p_147525_2_, float p_147525_3_, float p_147525_4_) {
- field_147528_b.clear();
- field_147528_b.put(p_147525_1_).put(p_147525_2_).put(p_147525_3_).put(p_147525_4_);
- field_147528_b.flip();
- return field_147528_b;
- }
-
- public static void drawArrow(int x, int y, boolean side) {
- mc.renderEngine.bindTexture(miscHuds);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0f);
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x, y, 0.0F, 0, 10, side ? 0 : 22, 38);
- }
-
- public static void drawChanceBar(int x, int y, int chance) {
- mc.renderEngine.bindTexture(miscHuds);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0f);
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x, y, 0.0F, 0, 0, 57, 6);
- int chancePercentage = Math.max(0, (int)((chance / 100.f) * 55.0D));
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x + 1, y + 1, 0.0F, 0, 6, 55, 4);
- Color color = new Color(Color.HSBtoRGB((chance) / 360.0f, ((float)Math.sin((ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks) * 0.2D) + 1.0F) * 0.3F + 0.4F, 1.0f));
- GL11.glColor4ub((byte)color.getRed(), (byte)color.getGreen(), (byte)color.getBlue(), (byte)255);
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x + 1, y + 1, 0.0F, 0, 6, Math.min(55, chancePercentage), 4);
- }
-
- public static void renderPoolManaBar(int x, int y, int color, float alpha, int mana) {
- Minecraft mc = Minecraft.getMinecraft();
- int poolCount = (int)Math.floor(mana / 1000000.0D);
- if(poolCount < 0)
- poolCount = 0;
- int onePoolMana = mana - (poolCount * 1000000);
- String strPool = poolCount + "x";
- int xc = x - mc.fontRenderer.getStringWidth(strPool) / 2;
- int yc = y;
- GL11.glPushMatrix();
- GL11.glTranslatef(xc + 42.0f, yc + 5.0f, 0.0f);
- RenderHelper.enableGUIStandardItemLighting();
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, new ItemStack(ModBlocks.pool), 0, 0);
- RenderHelper.disableStandardItemLighting();
- GL11.glTranslatef(18.0f, 5.0f, 300.0f);
- mc.fontRenderer.drawString(strPool, 0, 0, color);
- GL11.glPopMatrix();
- if((poolCount * 1000000) == mana)
- onePoolMana = poolCount * 1000000;
- HUDHandler.renderManaBar(x, y, color, alpha, onePoolMana, 1000000);
- }
-
- public static void drawPoolManaHUD(ScaledResolution res, String name, int mana, int maxMana, int color) {
- Minecraft mc = Minecraft.getMinecraft();
- int poolCount = (int)Math.floor(mana / 1000000.0D);
- int maxPoolCount = (int)Math.floor(maxMana / 1000000.0D);
- if(poolCount < 0)
- poolCount = 0;
- if(maxPoolCount < 0)
- maxPoolCount = 0;
- int onePoolMana = mana - (poolCount * 1000000);
- String strPool = poolCount + "x / " + maxPoolCount + "x";
- int xc = res.getScaledWidth() / 2 - mc.fontRenderer.getStringWidth(strPool) / 2 - 3;
- int yc = res.getScaledHeight() / 2;
- GL11.glPushMatrix();
- GL11.glTranslatef(xc - 6.0f, yc + 30.0f, 0.0f);
- RenderHelper.enableGUIStandardItemLighting();
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, new ItemStack(ModBlocks.pool), 0, 0);
- RenderHelper.disableStandardItemLighting();
- GL11.glTranslatef(18.0f, 4.5f, 300.0f);
- mc.fontRenderer.drawStringWithShadow(strPool, 0, 0, color);
- GL11.glPopMatrix();
- if((poolCount * 1000000) == mana)
- onePoolMana = poolCount * 1000000;
- HUDHandler.drawSimpleManaHUD(color, onePoolMana, 1000000, name, res);
- }
-
- public static void setLightmapTextureCoords() {
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- }
-
- public static Vector3 setRotation(float angel, float vX, float vY, float vZ, Vector3 v3) {
- Vector3 rVec = new Vector3(vX, vY, vZ);
- Vector3 rVec1 = v3.copy().normalize();
- double rAngel = Math.toRadians(angel) * 0.5f;
- double sin = Math.sin(rAngel);
- double x = rVec.x * sin;
- double y = rVec.y * sin;
- double z = rVec.z * sin;
- rAngel = Math.cos(rAngel);
- double d = -x * rVec1.x - y * rVec1.y - z * rVec1.z;
- double d1 = rAngel * rVec1.x + y * rVec1.z - z * rVec1.y;
- double d2 = rAngel * rVec1.y - x * rVec1.z + z * rVec1.x;
- double d3 = rAngel * rVec1.z + x * rVec1.y - y * rVec1.x;
- v3.x = d1 * rAngel - d * x - d2 * z + d3 * y;
- v3.y = d2 * rAngel - d * y + d1 * z - d3 * x;
- v3.z = d3 * rAngel - d * z - d1 * y + d2 * x;
- return v3;
- }
-
- public static Color getCorporeaRuneColor(int posX, int posY, int posZ, int meta) {
- double time = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- time += (new Random((posX ^ posY ^ posZ))).nextInt(360);
- float sin = (float)(Math.sin(time / 20.0f) * 0.15f) - 0.15f;
- int color = 0;
- switch(meta) {
- case 0:
- color = Color.HSBtoRGB(0.0f, 0.0f, 0.54f + (sin / 1.2f));
- break;
- case 1:
- color = Color.HSBtoRGB(0.688f, 0.93f, 0.96f + sin - 0.15f);
- break;
- case 2:
- color = Color.HSBtoRGB(0.983f, 0.99f, 1.0f + sin - 0.15f);
- break;
- case 3:
- color = Color.HSBtoRGB(0.319f, 0.92f, 0.95f + sin - 0.15f);
- break;
- case 4:
- color = Color.HSBtoRGB(0.536f, 0.53f, 0.92f + sin - 0.15f);
- break;
- }
- return new Color(color);
- }
-
- public static void renderIcon(IIcon icon, int light) {
- Tessellator tessellator = Tessellator.instance;
- float f = icon.getMinU();
- float f1 = icon.getMaxU();
- float f2 = icon.getMinV();
- float f3 = icon.getMaxV();
- float f4 = 1.0F;
- float f5 = 0.5F;
- float f6 = 0.25F;
- tessellator.startDrawingQuads();
- tessellator.setNormal(0.0F, 1.0F, 0.0F);
- tessellator.addVertexWithUV((0.0F - f5), (0.0F - f6), 0.0D, f, f3);
- tessellator.addVertexWithUV((f4 - f5), (0.0F - f6), 0.0D, f1, f3);
- tessellator.addVertexWithUV((f4 - f5), (f4 - f6), 0.0D, f1, f2);
- tessellator.addVertexWithUV((0.0F - f5), (f4 - f6), 0.0D, f, f2);
- tessellator.draw();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/bb/3040858b82ae001c1bd4eaa9a9be6b81 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/10/00d416bd7fc1001c11e398ea97007cb4
similarity index 87%
rename from 1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/bb/3040858b82ae001c1bd4eaa9a9be6b81
rename to 1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/10/00d416bd7fc1001c11e398ea97007cb4
index 87d98d4..08af815 100644
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/bb/3040858b82ae001c1bd4eaa9a9be6b81
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/10/00d416bd7fc1001c11e398ea97007cb4
@@ -10,7 +10,7 @@ import ab.api.recipe.RecipeAdvancedPlate;
import ab.api.recipe.RecipeAncientAlphirine;
import ab.api.recipe.lexicon.AdvancedPlateCraftPage;
import ab.api.recipe.lexicon.AlphirineCraftPage;
-import ab.common.block.tile.TileAgglomerationPlate;
+import ab.common.block.tile.TileNidavellirForge;
import ab.common.block.tile.TileLebethronCore;
import ab.common.block.tile.TileMagicCraftCrate;
import ab.common.core.handler.ConfigABHandler;
@@ -35,11 +35,13 @@ import vazkii.botania.api.recipe.RecipePetals;
import vazkii.botania.common.Botania;
import vazkii.botania.common.block.ModBlocks;
import vazkii.botania.common.block.ModFluffBlocks;
+import vazkii.botania.common.core.handler.ConfigHandler;
import vazkii.botania.common.item.ModItems;
import vazkii.botania.common.item.block.ItemBlockSpecialFlower;
import vazkii.botania.common.lexicon.BLexiconCategory;
import vazkii.botania.common.lexicon.BLexiconEntry;
import vazkii.botania.common.lexicon.RLexiconEntry;
+import vazkii.botania.common.lexicon.page.PageImage;
import vazkii.botania.common.lexicon.page.PageText;
public class RecipeListAB {
@@ -62,6 +64,7 @@ public class RecipeListAB {
public static RecipePetals dictariusRecipe;
public static RecipePetals aspecolusRecipe;
public static RecipePetals pureGladRecipe;
+ public static RecipePetals azartFlowerRecipe;
public static LexiconEntry advandedAgglomerationPlate;
public static LexiconEntry ancientAlphirine;
@@ -92,6 +95,7 @@ public class RecipeListAB {
public static LexiconEntry richesKey;
public static LexiconEntry cubeWardrobe;
public static LexiconEntry sprawlRod;
+ public static LexiconEntry azartFlower;
public static KnowledgeType forgotten;
@@ -114,12 +118,12 @@ public class RecipeListAB {
ancientAlphirine = new BLexiconEntry("ancientAlphirine", categoryForgotten);
alphirineRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("ancientAlphirine"), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.rune, 1, 8), new ItemStack(ModItems.rune, 1, 4), new ItemStack(ModItems.rune, 1, 5), new ItemStack(ModItems.rune, 1, 6), new ItemStack(ModItems.rune, 1, 7), new ItemStack(ModItems.petal, 1, 1), new ItemStack(ModItems.petal, 1, 4));
- ancientAlphirine.setPriority().setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), new PageText("1"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", alphirineRecipe), new AlphirineCraftPage(ancientAlphirine, forgottenLandRecipe.getOutput(), ".alphirineCraft") }).setIcon(ItemBlockSpecialFlower.ofType("ancientAlphirine"));
+ ancientAlphirine.setPriority().setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), new PageText("1"), new PageImage("2", "ab:textures/misc/ancientAlphirine.png"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", alphirineRecipe), new AlphirineCraftPage(ancientAlphirine, forgottenLandRecipe.getOutput(), ".alphirineCraft") }).setIcon(ItemBlockSpecialFlower.ofType("ancientAlphirine"));
if(ConfigABHandler.hasAbPlate) {
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockABPlate), new Object[] { " ", "MPM", "BRB", Character.valueOf('M'), new ItemStack(ModBlocks.storage), Character.valueOf('P'), new ItemStack(ModBlocks.terraPlate), Character.valueOf('B'), new ItemStack(ItemListAB.itemABResource, 1, 3), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 3)});
+ GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockABPlate), new Object[] { " P ", "MFM", "BRB", Character.valueOf('F'), new ItemStack(Blocks.anvil), Character.valueOf('M'), new ItemStack(ModBlocks.storage), Character.valueOf('P'), new ItemStack(ModBlocks.terraPlate), Character.valueOf('B'), new ItemStack(ItemListAB.itemABResource, 1, 3), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 3)});
advandedAgglomerationPlate = new BLexiconEntry("advancedPlate", categoryForgotten);
- advandedAgglomerationPlate.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] {new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()), BotaniaAPI.internalHandler.multiblockPage(".structure", TileAgglomerationPlate.makeMultiblockSet()), new AdvancedPlateCraftPage(advandedAgglomerationPlate, terrasteelRecipe.getOutput(), ".abCraft0"), new AdvancedPlateCraftPage(advandedAgglomerationPlate, manaStarRecipe.getOutput(), ".abCraft1") }).setIcon(new ItemStack(BlockListAB.blockABPlate));
+ advandedAgglomerationPlate.setPriority().setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] {new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()), new AdvancedPlateCraftPage(advandedAgglomerationPlate, terrasteelRecipe.getOutput(), ".abCraft0"), new AdvancedPlateCraftPage(advandedAgglomerationPlate, manaStarRecipe.getOutput(), ".abCraft1") }).setIcon(new ItemStack(BlockListAB.blockABPlate));
}
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockABSpreader), new Object[] { "WMW", "PSP", "WMW", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource, 1, 2), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('S'), new ItemStack(ModBlocks.spreader, 1, 3), Character.valueOf('W'), new ItemStack(BlockListAB.blockLebethron, 1, 4)});
@@ -227,20 +231,24 @@ public class RecipeListAB {
fateBoard = new BLexiconEntry("fateBoard", categoryForgotten);
fateBoard.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AlphirineCraftPage(fateBoard, fateBoardRecipe.getOutput(), ".alphirineCraft")});
-
+
freyrSlingshot = new RLexiconEntry("freyrSlingshot", BotaniaAPI.categoryAlfhomancy, AchievementRegister.relicSlingshot);
freyrSlingshot.setLexiconPages(new LexiconPage[] { new PageText("0"), new PageText("1")});
-
+
richesKey = new RLexiconEntry("richesKey", BotaniaAPI.categoryAlfhomancy, AchievementRegister.relicItemChest);
richesKey.setLexiconPages(new LexiconPage[] { new PageText("0")});
-
+
cubeWardrobe = new RLexiconEntry("cubeWardrobe", BotaniaAPI.categoryAlfhomancy, AchievementRegister.relicPocketArmor);
cubeWardrobe.setLexiconPages(new LexiconPage[] { new PageText("0")});
-
+
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemSprawlRod), new Object[] { " SC", " WS", "W ", Character.valueOf('S'), new ItemStack(ModItems.grassSeeds, 1, 32767), Character.valueOf('C'), new ItemStack(BlockListAB.blockLebethron, 1, 4), Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 3)});
sprawlRod = new BLexiconEntry("sprawlRod", categoryForgotten);
sprawlRod.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
+ azartFlowerRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("ardentAzarcissus"), new ItemStack(ItemListAB.itemABResource, 1, 4), new ItemStack(ModItems.petal, 1, 11), new ItemStack(ModItems.petal, 1, 11), new ItemStack(ModItems.petal, 1, 14), new ItemStack(ModItems.petal, 1, 14), new ItemStack(ModItems.petal, 1, 13), new ItemStack(ModItems.manaResource, 1, 5));
+ azartFlower = new BLexiconEntry("azartFlower", BotaniaAPI.categoryGenerationFlowers);
+ azartFlower.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", azartFlowerRecipe)});
+
if(Botania.thaumcraftLoaded)
thaumcraft();
@@ -256,23 +264,27 @@ public class RecipeListAB {
aspecolusRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("aspecolus"), new ItemStack(ModItems.manaResource, 1, 6), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.rune, 1, 1), new ItemStack(ModItems.rune), new ItemStack(ItemListAB.itemABResource, 1, 2), new ItemStack(ModItems.petal, 1, 10), new ItemStack(ModItems.petal, 1, 13));
aspecolus.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", aspecolusRecipe) }).setIcon(ItemBlockSpecialFlower.ofType("aspecolus"));
addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemNebulaHelmReveal), new Object[] { new ItemStack(ItemListAB.itemNebulaHelm), new ItemStack(ConfigItems.itemGoggles)});
- List recipes = new ArrayList();
- for(int i = 1; i < 10; i++) {
- boolean[][] patterns = ItemCraftingPattern.getPattern(i);
- List str = new ArrayList();
- for(int j = 0; j < patterns.length; j++) {
- String str1 = "";
- for(int k = 0; k < patterns[j].length; k++)
- str1 += patterns[j][k] ? "T" : "H";
- str.add(str1);
- }
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemCraftingPattern, 1, i), new Object[] { str.get(0), str.get(1), str.get(2), Character.valueOf('T'), new ItemStack(ItemListAB.itemCraftingPattern), Character.valueOf('H'), new ItemStack(ConfigItems.itemNugget, 1, 6)});
- recipes.add(getLastRecipe());
+
+ if(ConfigABHandler.hasAutoThaum) {
+ List recipes = new ArrayList();
+ for(int i = 1; i < 10; i++) {
+ boolean[][] patterns = ItemCraftingPattern.getPattern(i);
+ List str = new ArrayList();
+ for(int j = 0; j < patterns.length; j++) {
+ String str1 = "";
+ for(int k = 0; k < patterns[j].length; k++)
+ str1 += patterns[j][k] ? "T" : "H";
+ str.add(str1);
+ }
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemCraftingPattern, 1, i), new Object[] { str.get(0), str.get(1), str.get(2), Character.valueOf('T'), new ItemStack(ItemListAB.itemCraftingPattern), Character.valueOf('H'), new ItemStack(ConfigItems.itemNugget, 1, 6)});
+ recipes.add(getLastRecipe());
+ }
+ IRecipe crate = GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockMagicCraftCrate), new Object[] { "TST", "WCW", "W W", Character.valueOf('W'), new ItemStack(ConfigBlocks.blockMagicalLog), Character.valueOf('S'), new ItemStack(ConfigItems.itemResource, 1, 14), Character.valueOf('T'), new ItemStack(ConfigItems.itemResource, 1, 7), Character.valueOf('C'), new ItemStack(ModBlocks.openCrate, 1, 1)});
+ addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemCraftingPattern, 48), new Object[] { new ItemStack(Blocks.crafting_table), new ItemStack(ModBlocks.livingrock), new ItemStack(ConfigItems.itemResource, 1, 14)});
+ thaumAutoCraft = new BLexiconEntry("thaumAutoCraft", BotaniaAPI.categoryDevices);
+ thaumAutoCraft.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", crate) , BotaniaAPI.internalHandler.craftingRecipePage(".craft0", getLastRecipe()), BotaniaAPI.internalHandler.craftingRecipesPage(".craft1", recipes)});
+
}
- IRecipe crate = GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockMagicCraftCrate), new Object[] { "TST", "WCW", "W W", Character.valueOf('W'), new ItemStack(ConfigBlocks.blockMagicalLog), Character.valueOf('S'), new ItemStack(ConfigItems.itemResource, 1, 14), Character.valueOf('T'), new ItemStack(ConfigItems.itemResource, 1, 7), Character.valueOf('C'), new ItemStack(ModBlocks.openCrate, 1, 1)});
- addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemCraftingPattern, 48), new Object[] { new ItemStack(Blocks.crafting_table), new ItemStack(ModBlocks.livingrock), new ItemStack(ConfigItems.itemResource, 1, 14)});
- thaumAutoCraft = new BLexiconEntry("thaumAutoCraft", BotaniaAPI.categoryDevices);
- thaumAutoCraft.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", crate) , BotaniaAPI.internalHandler.craftingRecipePage(".craft0", getLastRecipe()), BotaniaAPI.internalHandler.craftingRecipesPage(".craft1", recipes)});
pureGladRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("pureGladiolus"), new ItemStack(ItemListAB.itemABResource, 1, 4), new ItemStack(ModItems.rune, 1, 8), new ItemStack(ModItems.petal, 1, 8), new ItemStack(ModItems.petal, 1, 4), new ItemStack(ModItems.petal, 1, 14), new ItemStack(ModItems.petal, 1, 5), new ItemStack(ModItems.petal, 1, 13), new ItemStack(ModItems.petal, 1, 11));
gladious = new BLexiconEntry("gladious", BotaniaAPI.categoryFunctionalFlowers);
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/11/10d1f403c3b0001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/11/10d1f403c3b0001c19bf8a91ac37238b
deleted file mode 100644
index 6b1d432..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/11/10d1f403c3b0001c19bf8a91ac37238b
+++ /dev/null
@@ -1,95 +0,0 @@
-package ab.common.core.handler;
-
-import java.io.File;
-
-import ab.AdvancedBotany;
-import cpw.mods.fml.client.event.ConfigChangedEvent;
-import cpw.mods.fml.common.FMLCommonHandler;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraft.entity.passive.EntitySheep;
-import net.minecraftforge.common.config.Configuration;
-import net.minecraftforge.common.config.Property;
-
-public class ConfigABHandler {
-
- public static Configuration config;
- public static boolean useManaChargerAnimation = true;
- public static int maxContainerMana = 64000000;
- public static double protectionFactorNebula = 1.0f;
- public static double damageFactorSpaceSword = 1.0f;
- public static int nebulaWandCooldownTick = 18;
- public static boolean hasManaCharger = true;
- public static boolean hasAbPlate = true;
- public static int spreaderMaxMana = 128000;
- public static int spreaderBurstMana = 32000;
- public static String[] lockEntityListToHide = new String[] {};
-
- public static void loadConfig(File configFile) {
- config = new Configuration(configFile);
- config.load();
- load();
- FMLCommonHandler.instance().bus().register(new ChangeListener());
- }
-
- public static void load() {
- String desc = "Maximum mana capacity for Mana Container (Diluted Mana Container will receive an eighth of the set value)";
- maxContainerMana = loadPropInt("Mana Container capacity", desc, maxContainerMana);
- desc = "Activating the charging animation for the Mana Charger";
- useManaChargerAnimation = loadPropBool("Mana Charger lighting", desc, useManaChargerAnimation);
- desc = "Protection factor for nebula armour";
- protectionFactorNebula = loadPropDouble("Nebula Armor Protection Factor", desc, protectionFactorNebula);
- desc = "Damage factor for Space Blade";
- damageFactorSpaceSword = loadPropDouble("Space Sword Damage Factor", desc, damageFactorSpaceSword);
- desc = "The number of ticks needed to restore 1 unit of the Rod of Nebula strength.";
- nebulaWandCooldownTick = loadPropInt("Rod of Nebula Cooldown", desc, nebulaWandCooldownTick);
- desc = "Switching the Mana Charger on or off in the game";
- hasManaCharger = loadPropBool("Enable Mana Charger", desc, hasManaCharger);
- desc = "Enables or disables Advanced Agglomeration Plate in the game. When switched off, you need to set up recipes, for resources";
- hasAbPlate = loadPropBool("Enable Adv. Agg. Plate", desc, hasAbPlate);
- desc = "Maximum amount of mana held in a mana spreader";
- spreaderMaxMana = loadPropInt("Spreader Max Mana", desc, spreaderMaxMana);
- desc = "Amount of Mana in a Mana Burst";
- spreaderBurstMana = loadPropInt("Spreader Burst Mana", desc, spreaderBurstMana);
- desc = "To block a creature, type it's class name";
- lockEntityListToHide = loadPropString("Blocked creatures for double drop", desc, lockEntityListToHide);
- if(config.hasChanged())
- config.save();
- }
-
- public static void loadPostInit() {
- if(config.hasChanged())
- config.save();
- }
-
- public static String[] loadPropString(String propName, String desc, String[] default_) {
- Property prop = config.get("general", propName, default_);
- prop.comment = desc;
- return prop.getStringList();
- }
-
- public static boolean loadPropBool(String propName, String desc, boolean default_) {
- Property prop = config.get("general", propName, default_);
- prop.comment = desc;
- return prop.getBoolean(default_);
- }
-
- public static int loadPropInt(String propName, String desc, int default_) {
- Property prop = config.get("general", propName, default_);
- prop.comment = desc;
- return prop.getInt(default_);
- }
-
- public static double loadPropDouble(String propName, String desc, double default_) {
- Property prop = config.get("general", propName, default_);
- prop.comment = desc;
- return prop.getDouble(default_);
- }
-
- public static class ChangeListener {
- @SubscribeEvent
- public void onConfigChanged(ConfigChangedEvent.OnConfigChangedEvent eventArgs) {
- if(eventArgs.modID.equals(AdvancedBotany.modid))
- ConfigABHandler.load();
- }
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/11/40c54b6db9ad001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/11/40c54b6db9ad001c1d59e42be7477558
deleted file mode 100644
index d0e4a92..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/11/40c54b6db9ad001c1d59e42be7477558
+++ /dev/null
@@ -1,96 +0,0 @@
-package ab.client.render.tile;
-
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.model.ModelDiceFate;
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.entity.RenderManager;
-import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.ResourceLocation;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class RenderTileGameBoard extends TileEntitySpecialRenderer {
-
- private static final ModelDiceFate model = new ModelDiceFate();
- private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/gameDice.png");
- private static final ResourceLocation textureEnemy = new ResourceLocation("ab:textures/model/gameDice_enemy.png");
-
- public void renderTileEntityAt(TileEntity tile, double x, double y, double z, float ticks) {
- double time = (tile.getWorldObj() == null) ? 0.0D : (ClientTickHandler.ticksInGame + ticks);
- if(tile != null)
- time += (new Random((tile.xCoord ^ tile.yCoord ^ tile.zCoord))).nextInt(360);
- TileGameBoard board = (TileGameBoard)tile;
- GL11.glEnable(3042);
- GL11.glEnable(32826);
- GL11.glBlendFunc(770, 771);
- GL11.glPushMatrix();
- GL11.glTranslated(x + 0.5f, y, z + 0.5f);
- GL11.glRotatef(90.0f - RenderManager.instance.playerViewY, 0.0f, 1.0f, 0.0f);
- for(int i = 0; i < board.slotChance.length; i++) {
- if(board.slotChance[i] == 0)
- continue;
- time += i * 83.256f;
- GL11.glPushMatrix();
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- float posX = 0.0f;
- float posZ = 0.0f;
- float dropAnim = (1.0f - (Math.min(100.0f, (board.clientTick[i] * board.clientTick[i] * 1.25f) + ticks) / 100.0f));
- dropAnim = Math.min(1.0f, Math.max(dropAnim, 0));
- float alpha = (float)Math.cos(dropAnim);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, alpha);
- switch(i) {
- case 0:
- posX = 0.16f + 0.08f * dropAnim;
- posZ = 0.16f + 0.08f * dropAnim;
- break;
- case 1:
- posX = -0.16f - 0.08f * dropAnim;
- posZ = 0.16f + 0.08f * dropAnim;
- break;
- case 2:
- posX = 0.16f + 0.08f * dropAnim;
- posZ = -0.16f - 0.08f * dropAnim;
- break;
- case 3:
- posX = -0.16f - 0.08f * dropAnim;
- posZ = -0.16f - 0.08f * dropAnim;
- break;
- }
- GL11.glTranslated(posX, 0.02f + Math.sin(time / 12.0D) / 48.0D + (0.28f * dropAnim), posZ);
- GL11.glScalef(0.25f, 0.25f, 0.25f);
- Minecraft.getMinecraft().renderEngine.bindTexture(i > 1 ? textureEnemy : texture);
- float dropAngel = 70.0f * dropAnim;
- switch(board.slotChance[i]) {
- case 1:
- model.render(180.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 2:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 3:
- model.render(90.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 4:
- model.render(270.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 5:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 270.0f);
- break;
- case 6:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 90.0f);
- break;
- default:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- }
- GL11.glPopMatrix();
- }
- GL11.glPopMatrix();
- GL11.glEnable(32826);
- GL11.glDisable(3042);
- }
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/ef/40015371cdb1001c1b57fe2130d5cb2c b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/11/60b77fe3c5bc001c1a9f99005529f322
similarity index 84%
rename from 1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/ef/40015371cdb1001c1b57fe2130d5cb2c
rename to 1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/11/60b77fe3c5bc001c1a9f99005529f322
index e1da7ac..26863a6 100644
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/ef/40015371cdb1001c1b57fe2130d5cb2c
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/11/60b77fe3c5bc001c1a9f99005529f322
@@ -1,14 +1,19 @@
package ab.common.block.subtile;
import ab.common.block.tile.TileGameBoard;
+import ab.common.lib.register.RecipeListAB;
+import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
+import vazkii.botania.api.lexicon.LexiconEntry;
import vazkii.botania.api.subtile.SubTileGenerating;
+import vazkii.botania.common.item.block.ItemBlockSpecialFlower;
public class SubTileArdentAzarcissus extends SubTileGenerating {
public static final String playerName = "ArdentAzarcissus#21sda2gaj91*21df#111sfq3jrns@#";
+ public static final ItemStack flowerStack = ItemBlockSpecialFlower.ofType("ardentAzarcissus");
int cooldown;
int workMana = 320;
@@ -35,6 +40,7 @@ public class SubTileArdentAzarcissus extends SubTileGenerating {
if(tile != null && tile instanceof TileGameBoard) {
TileGameBoard board = (TileGameBoard)tile;
if(board.isSingleGame) {
+ board.changeCustomStack(flowerStack);
if(!board.hasGame()) {
board.setPlayer(playerName, true);
cooldown = 120;
@@ -69,6 +75,10 @@ public class SubTileArdentAzarcissus extends SubTileGenerating {
return 0xdf3596;
}
+ public LexiconEntry getEntry() {
+ return RecipeListAB.azartFlower;
+ }
+
public void writeToPacketNBT(NBTTagCompound cmp) {
super.writeToPacketNBT(cmp);
cmp.setInteger("cooldown", this.cooldown);
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/11/70735ab914b0001c18a5eba32f24fffa b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/11/70735ab914b0001c18a5eba32f24fffa
deleted file mode 100644
index aae4206..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/11/70735ab914b0001c18a5eba32f24fffa
+++ /dev/null
@@ -1,68 +0,0 @@
-package ab.common.block.subtile;
-
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.world.World;
-import vazkii.botania.api.subtile.SubTileGenerating;
-
-public class SubTileArdentAzarcissus extends SubTileGenerating {
-
- public static final String playerName = "ArdentAzarcissus#21sda2gaj91*21df#111sfq3jrns@#";
- int cooldown;
- int workMana = 400;
-
- public void onUpdate() {
- super.onUpdate();
- World world = this.supertile.getWorldObj();
- int posX = this.supertile.xCoord;
- int posY = this.supertile.yCoord;
- int posZ = this.supertile.zCoord;
- if(world.isRemote)
- return;
- if(cooldown > 0) {
- cooldown--;
- return;
- }
- for(int i = -1; i <= 1; i++)
- for(int f = 0; f < 2; f++)
- for(int j = -1; j <= 1; j++) {
- int x = posX + i;
- int y = posY + f;
- int z = posZ + j;
- TileEntity tile = world.getTileEntity(x, y, z);
- if(tile != null && tile instanceof TileGameBoard) {
- TileGameBoard board = (TileGameBoard)tile;
- if(board.isSingleGame) {
- if(!board.hasGame()) {
- board.setPlayer(playerName, true);
- cooldown = 100;
- } else {
- if(!board.playersName[0].equals(playerName))
- board.playersName[0] = playerName;
- board.dropDice(playerName);
- cooldown = 100;
- }
- }
- }
- }
- }
-
- public int getMaxMana() {
- return 15000;
- }
-
- public int getColor() {
- return 0xd2cdb2;
- }
-
- public void writeToPacketNBT(NBTTagCompound cmp) {
- super.writeToPacketNBT(cmp);
- cmp.setInteger("cooldown", this.cooldown);
- }
-
- public void readFromPacketNBT(NBTTagCompound cmp) {
- super.readFromPacketNBT(cmp);
- this.cooldown = cmp.getInteger("cooldown");
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/12/003dd2f09bb1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/12/003dd2f09bb1001c19bf8a91ac37238b
deleted file mode 100644
index cb5d4a0..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/12/003dd2f09bb1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,84 +0,0 @@
-package ab.client.core.handler;
-
-import java.awt.Color;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.armor.ItemNebulaArmor;
-import ab.common.item.equipment.armor.ItemNebulaHelm;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.ItemRenderer;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.texture.TextureMap;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraftforge.client.event.RenderPlayerEvent;
-import vazkii.botania.api.item.IPhantomInkable;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class PlayerRendererHandler {
-
- @SubscribeEvent
- public void onPlayerRender(RenderPlayerEvent.Specials.Pre event) {
- EntityPlayer player = event.entityPlayer;
- ItemStack item = player.getCurrentArmor(3);
- if(item != null && item.getItem() instanceof ItemNebulaHelm) {
- Item helm = player.getCurrentArmor(3).getItem();
- boolean hasPhantomInk = helm instanceof IPhantomInkable && ((IPhantomInkable)helm).hasPhantomInk(item);
- if(!hasPhantomInk && ((ItemNebulaHelm)helm).enableCosmicFace(item)) {
- float angelX = event.renderer.modelBipedMain.bipedHead.rotateAngleX * 180.0F / (float)Math.PI;
- float angelY = event.renderer.modelBipedMain.bipedHead.rotateAngleY * 180.0F / (float)Math.PI;
- GL11.glPushMatrix();
- if(player.isSneaking())
- GL11.glTranslatef(event.renderer.modelBipedMain.bipedHead.rotationPointX * 0.0625f, event.renderer.modelBipedMain.bipedHead.rotationPointY * 0.0625f, 0.0f);
- GL11.glRotatef(angelY, 0.0F, 1.0F, 0.0F);
- GL11.glRotatef(angelX, 1.0F, 0.0F, 0.0F);
- renderCosmicFace();
- GL11.glPopMatrix();
- }
- }
- }
-
- private void renderCosmicFace() {
- double worldTime = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- GL11.glPushMatrix();
- GL11.glEnable(GL11.GL_TEXTURE_2D);
- GL11.glDisable(2884);
-
- GL11.glPushMatrix();
- GL11.glScalef(0.5f, 0.4f, 0.4f);
- GL11.glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
- GL11.glTranslatef(-0.5f, -0.8675f, 0.0f);
- GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
- ClientHelper.renderCosmicBackground();
- GL11.glPopMatrix();
-
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
-// OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- (Minecraft.getMinecraft()).renderEngine.bindTexture(TextureMap.locationItemsTexture);
- GL11.glTranslatef(-0.2F, -0.35F, -0.25F);
- GL11.glScalef(0.4f, 0.4f, 0.4f);
- float f = ItemNebulaArmor.nebulaEyes.getMinU();
- float f1 = ItemNebulaArmor.nebulaEyes.getMaxU();
- float f2 = ItemNebulaArmor.nebulaEyes.getMinV();
- float f3 = ItemNebulaArmor.nebulaEyes.getMaxV();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float r = color.getRed() / 510.0F;
- float g = color.getGreen() / 510.0F;
- float b = color.getBlue() / 510.0F;
- GL11.glColor4f(0.5f + r, 0.5f + g, 0.5f + b, 0.685f + (float)Math.sin(worldTime / 50.0D) * 0.175F);
- ItemRenderer.renderItemIn2D(Tessellator.instance, f1, f2, f, f3, ItemNebulaArmor.nebulaEyes.getIconWidth(), ItemNebulaArmor.nebulaEyes.getIconHeight(), 0.03125F);
- GL11.glDisable(3042);
- GL11.glEnable(2884);
- GL11.glEnable(32826);
- GL11.glPopMatrix();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/14/b0b43cceb3b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/14/b0b43cceb3b1001c19bf8a91ac37238b
deleted file mode 100644
index d1bf045..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/14/b0b43cceb3b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,79 +0,0 @@
-package ab.common.item;
-
-import java.util.List;
-
-import ab.common.core.CommonHelper;
-import ab.common.lib.register.BlockListAB;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.renderer.texture.IIconRegister;
-import net.minecraft.entity.Entity;
-import net.minecraft.entity.item.EntityFallingBlock;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.IIcon;
-import net.minecraft.util.MathHelper;
-import net.minecraft.world.World;
-import vazkii.botania.common.core.helper.ItemNBTHelper;
-
-public class ItemAntigravityCharm extends ItemMod {
-
- public static IIcon[] icons;
-
- public ItemAntigravityCharm() {
- super("antigravityCharm");
- this.setMaxStackSize(1);
- this.setNoRepair();
- }
-
- public void registerIcons(IIconRegister ir) {
- icons = new IIcon[2];
- for(int i = 0; i < icons.length; i++) {
- icons[i] = icons[i] = ir.registerIcon("ab:" + "itemAntigravityCharm_" + i);
- }
- }
-
- @SideOnly(Side.CLIENT)
- public IIcon getIcon(ItemStack stack, int pass) {
- int iconID = Math.min(1, pass);
- return this.icons[iconID];
- }
-
- public boolean requiresMultipleRenderPasses() {
- return true;
- }
-
- public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
- if(player.isSneaking())
- ItemNBTHelper.setBoolean(stack, "isActive", !ItemNBTHelper.getBoolean(stack, "isActive", true));
- return stack;
- }
-
- public void onUpdate(ItemStack stack, World world, Entity entity, int par4, boolean inHand) {
- if(entity instanceof EntityPlayer) {
- EntityPlayer player = (EntityPlayer)entity;
- if(ItemNBTHelper.getBoolean(stack, "isActive", true)) {
- double posX = player.posX;
- double posY = player.posY;
- double posZ = player.posZ;
- AxisAlignedBB asis = AxisAlignedBB.getBoundingBox(posX, posY, posZ, posX + 1, posY + 1, posZ + 1).expand(8, 8, 8);
- List listEntity = world.getEntitiesWithinAABB(EntityFallingBlock.class, asis);
- for(EntityFallingBlock fallBlock : listEntity) {
- int x = (int) (fallBlock.posX >= 0 ? fallBlock.posX : fallBlock.posX - 1);
- int y = (int) fallBlock.posY;
- int z = (int) (fallBlock.posZ >= 0 ? fallBlock.posZ : fallBlock.posZ - 1);
- if(!world.isRemote) {
- if(CommonHelper.setBlock(world, BlockListAB.blockAntigravitation, 0, x, y - 1, z, (EntityPlayerMP)player, true));
- CommonHelper.setBlock(world, fallBlock.func_145805_f(), fallBlock.field_145814_a, x, y, z, (EntityPlayerMP)player, true);
- }
- fallBlock.setDead();
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/15/3056d686bcbc001c1a9f99005529f322 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/15/3056d686bcbc001c1a9f99005529f322
new file mode 100644
index 0000000..dbe35eb
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/15/3056d686bcbc001c1a9f99005529f322
@@ -0,0 +1,5 @@
+package ab.client.render.block;
+
+public class RenderBlockNidavellirForge {
+
+}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/16/b078f399b7bc001c1a9f99005529f322 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/16/b078f399b7bc001c1a9f99005529f322
new file mode 100644
index 0000000..514702e
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/16/b078f399b7bc001c1a9f99005529f322
@@ -0,0 +1,136 @@
+package ab.common.block;
+
+import ab.AdvancedBotany;
+import ab.common.block.tile.TileNidavellirForge;
+import ab.common.block.tile.TileInventory;
+import ab.common.lib.register.RecipeListAB;
+import net.minecraft.block.Block;
+import net.minecraft.block.BlockContainer;
+import net.minecraft.block.material.Material;
+import net.minecraft.client.renderer.texture.IIconRegister;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.MathHelper;
+import net.minecraft.util.Vec3;
+import net.minecraft.world.IBlockAccess;
+import net.minecraft.world.World;
+import vazkii.botania.api.BotaniaAPI;
+import vazkii.botania.api.lexicon.ILexiconable;
+import vazkii.botania.api.lexicon.LexiconEntry;
+
+public class BlockNidavellirForge extends BlockContainer implements ILexiconable {
+
+ public BlockNidavellirForge() {
+ super(Material.iron);
+ this.setCreativeTab(AdvancedBotany.tabAB);
+ this.setHardness(3.0F);
+ this.setResistance(10.0F);
+ this.setStepSound(soundTypeMetal);
+ this.setBlockName("ABPlate");
+ }
+
+// public void setBlockBoundsBasedOnState(IBlockAccess world, int x, int y, int z) {
+// float f1 = 1.0F;
+// float f2 = 1.0F;
+// float f3 = 1.0F;
+// float f4 = 0.0F;
+// float f5 = 0.0F;
+// float f6 = 0.0F;
+// this.setBlockBounds(f1, f2, f3, f4, f5, f6);
+// }
+
+ public void onBlockPlacedBy(World world, int x, int y, int z, EntityLivingBase liv, ItemStack stack) {
+ byte b0 = 0;
+ int meta = MathHelper.floor_double((double)(liv.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3;
+ world.setBlockMetadataWithNotify(x, y, z, b0, 3);
+ }
+
+ public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int par6, float par7, float par8, float par9) {
+ TileNidavellirForge tile = (TileNidavellirForge)world.getTileEntity(x, y, z);
+ if(player.isSneaking()) {
+ if(tile.getStackInSlot(0) != null) {
+ ItemStack copy = tile.getStackInSlot(0).copy();
+ if(!world.isRemote) {
+ Vec3 vec3 = player.getLook(1.0F).normalize();
+ EntityItem entityitem = new EntityItem(world, player.posX + vec3.xCoord, player.posY + 1.2f, player.posZ + vec3.zCoord, copy);
+ world.spawnEntityInWorld(entityitem);
+ tile.requestUpdate = true;
+ }
+ tile.setInventorySlotContents(0, null);
+ world.func_147453_f(x, y, z, (Block)this);
+ return true;
+ }
+ for(int i = tile.getSizeInventory() - 1; i > 0; i--) {
+ ItemStack stack = tile.getStackInSlot(i);
+ if(stack != null) {
+ ItemStack copy = stack.copy();
+ if(!world.isRemote) {
+ Vec3 vec3 = player.getLook(1.0F).normalize();
+ EntityItem entityitem = new EntityItem(world, player.posX + vec3.xCoord, player.posY + 1.2f, player.posZ + vec3.zCoord, copy);
+ world.spawnEntityInWorld(entityitem);
+ tile.requestUpdate = true;
+ }
+ tile.setInventorySlotContents(i, null);
+ world.func_147453_f(x, y, z, (Block)this);
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public void breakBlock(World world, int x, int y, int z, Block block, int meta) {
+ if(!world.isRemote) {
+ TileInventory inv = (TileInventory)world.getTileEntity(x, y, z);
+ if (inv != null) {
+ for (int i = 0; i < inv.getSizeInventory(); i++) {
+ ItemStack stack = inv.getStackInSlot(i);
+ if (stack != null) {
+ float f = world.rand.nextFloat() * 0.8F + 0.1F;
+ float f1 = world.rand.nextFloat() * 0.8F + 0.1F;
+ float f2 = world.rand.nextFloat() * 0.8F + 0.1F;
+ EntityItem entityitem = new EntityItem(world, (x + f), (y + f1), (z + f2), stack.copy());
+ float f3 = 0.05F;
+ entityitem.motionX = ((float)world.rand.nextGaussian() * f3);
+ entityitem.motionY = ((float)world.rand.nextGaussian() * f3 + 0.2F);
+ entityitem.motionZ = ((float)world.rand.nextGaussian() * f3);
+ if (stack.hasTagCompound())
+ entityitem.getEntityItem().setTagCompound((NBTTagCompound)stack.getTagCompound().copy());
+ world.spawnEntityInWorld(entityitem);
+ }
+ }
+ }
+ }
+ super.breakBlock(world, x, y, z, block, meta);
+ }
+
+ public int getRenderType() {
+ return -1;
+ }
+
+ public boolean renderAsNormalBlock() {
+ return false;
+ }
+
+ public boolean isOpaqueCube() {
+ return false;
+ }
+
+ public boolean getBlocksMovement(IBlockAccess p_149655_1_, int p_149655_2_, int p_149655_3_, int p_149655_4_) {
+ return false;
+ }
+
+ public TileEntity createNewTileEntity(World world, int meta) {
+ return new TileNidavellirForge();
+ }
+
+ public LexiconEntry getEntry(World arg0, int arg1, int arg2, int arg3, EntityPlayer arg4, ItemStack arg5) {
+ return RecipeListAB.advandedAgglomerationPlate;
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/src/main/java/ab/common/block/tile/TileAgglomerationPlate.java b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/17/d0b808ae7ec1001c11e398ea97007cb4
similarity index 66%
rename from 1.7.10/src/main/java/ab/common/block/tile/TileAgglomerationPlate.java
rename to 1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/17/d0b808ae7ec1001c11e398ea97007cb4
index 1ce5c41..0523a28 100644
--- a/1.7.10/src/main/java/ab/common/block/tile/TileAgglomerationPlate.java
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/17/d0b808ae7ec1001c11e398ea97007cb4
@@ -2,6 +2,7 @@ package ab.common.block.tile;
import java.awt.Color;
import java.util.List;
+import java.util.Random;
import ab.api.AdvancedBotanyAPI;
import ab.api.recipe.RecipeAdvancedPlate;
@@ -24,6 +25,7 @@ import vazkii.botania.api.mana.IManaReceiver;
import vazkii.botania.api.mana.spark.ISparkAttachable;
import vazkii.botania.api.mana.spark.ISparkEntity;
import vazkii.botania.api.mana.spark.SparkHelper;
+import vazkii.botania.client.core.handler.ClientTickHandler;
import vazkii.botania.common.Botania;
import vazkii.botania.common.block.ModBlocks;
import vazkii.botania.common.block.ModFluffBlocks;
@@ -31,28 +33,14 @@ import vazkii.botania.common.block.tile.TileMod;
import vazkii.botania.common.block.tile.TileSimpleInventory;
import vazkii.botania.common.item.ModItems;
-public class TileAgglomerationPlate extends TileInventory implements ISparkAttachable, ISidedInventory {
-
- private static final int[][] MANA_STEEL_BLOCKS = new int[][] { { 1, 0 }, { -1, 0 }, { 0, 1 }, { 0, -1 } };
- private static final int[][] MANA_QUARZ_BLOCKS = new int[][] { { 1, 1 }, { 1, -1 }, { -1, 1 }, { -1, -1 } };
-
+public class TileNidavellirForge extends TileInventory implements ISparkAttachable, ISidedInventory {
+
private int mana;
public int manaToGet;
private RecipeAdvancedPlate currentRecipe;
private int recipeID;
public boolean requestUpdate;
- public static MultiblockSet makeMultiblockSet() {
- Multiblock mb = new Multiblock();
- for (int[] l : MANA_STEEL_BLOCKS)
- mb.addComponent(l[0], 0, l[1], ModBlocks.storage, 0);
- for (int[] l : MANA_QUARZ_BLOCKS)
- mb.addComponent(l[0], 0, l[1], ModFluffBlocks.manaQuartz, 0);
- mb.addComponent(0, 1, 0, BlockListAB.blockABPlate, 0);
- mb.setRenderOffset(0, 1, 0);
- return mb.makeSet();
- }
-
public void updateEntity() {
if(!this.worldObj.isRemote)
updateServer();
@@ -88,50 +76,45 @@ public class TileAgglomerationPlate extends TileInventory implements ISparkAttac
}
}
int wasManaToGet = this.manaToGet;
- if(hasValidPlatform()) {
- boolean hasCraft = false;
- int recipeID = 0;
- for(RecipeAdvancedPlate recipe : AdvancedBotanyAPI.advancedPlateRecipes) {
- if(recipe.matches(this)) {
- this.recipeID = recipeID;
- if(this.mana > 0 && this.isFull()) {
- ItemStack output = recipe.getOutput().copy();
- this.recieveMana(-recipe.getManaUsage());
- this.manaToGet = 0;
- for(int i = 1; i < this.getSizeInventory(); i++) {
- if(this.getStackInSlot(i).stackSize > 1)
- --this.getStackInSlot(i).stackSize;
- else
- this.setInventorySlotContents(i, null);
- }
- if(this.getStackInSlot(0) != null)
- ++this.getStackInSlot(0).stackSize;
+ boolean hasCraft = false;
+ int recipeID = 0;
+ for(RecipeAdvancedPlate recipe : AdvancedBotanyAPI.advancedPlateRecipes) {
+ if(recipe.matches(this)) {
+ this.recipeID = recipeID;
+ if(this.mana > 0 && this.isFull()) {
+ ItemStack output = recipe.getOutput().copy();
+ this.recieveMana(-recipe.getManaUsage());
+ this.manaToGet = 0;
+ for(int i = 1; i < this.getSizeInventory(); i++) {
+ if(this.getStackInSlot(i).stackSize > 1)
+ --this.getStackInSlot(i).stackSize;
else
- this.setInventorySlotContents(0, output);
- hasUpdate = true;
+ this.setInventorySlotContents(i, null);
+ }
+ if(this.getStackInSlot(0) != null)
+ ++this.getStackInSlot(0).stackSize;
+ else
+ this.setInventorySlotContents(0, output);
+ hasUpdate = true;
+ worldObj.playSoundEffect(xCoord, yCoord, zCoord, "botania:terrasteelCraft", 1.0F, 1.0F);
+ break;
+ } else {
+ if(this.getStackInSlot(0) == null) {
+ this.manaToGet = recipe.getManaUsage();
+ currentRecipe = recipe;
+ hasCraft = true;
+ break;
+ } else if(isItemEqual(recipe.getOutput(), getStackInSlot(0)) && getStackInSlot(0).stackSize < recipe.getOutput().getMaxStackSize()) {
+ this.manaToGet = recipe.getManaUsage();
+ currentRecipe = recipe;
+ hasCraft = true;
break;
- } else {
- if(this.getStackInSlot(0) == null) {
- this.manaToGet = recipe.getManaUsage();
- currentRecipe = recipe;
- hasCraft = true;
- break;
- } else if(isItemEqual(recipe.getOutput(), getStackInSlot(0)) && getStackInSlot(0).stackSize < recipe.getOutput().getMaxStackSize()) {
- this.manaToGet = recipe.getManaUsage();
- currentRecipe = recipe;
- hasCraft = true;
- break;
- }
}
}
- recipeID++;
}
- if(!hasCraft) {
- currentRecipe = null;
- this.mana = 0;
- this.manaToGet = 0;
- }
- } else {
+ recipeID++;
+ }
+ if(!hasCraft) {
currentRecipe = null;
this.mana = 0;
this.manaToGet = 0;
@@ -143,16 +126,20 @@ public class TileAgglomerationPlate extends TileInventory implements ISparkAttac
private void updateClient() {
if(this.mana > 0) {
+ double worldTime = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
+ worldTime += (new Random((this.xCoord ^ this.yCoord ^ this.zCoord))).nextInt(360);
+ float indetY = (float)(Math.sin(worldTime / 18.0D) / 24.0D);
float ticks = 100.0F * getCurrentMana() / this.manaToGet;
int totalSpiritCount = 3;
double tickIncrement = 360.0D / totalSpiritCount;
int speed = 5;
double wticks = (ticks * speed) - tickIncrement;
- double r = Math.sin((ticks - 100) / 10.0D) * 2.0D;
+ double r = Math.sin((ticks - 100) / 10.0D) * 0.5D;
double g = Math.sin(wticks * Math.PI / 180.0D * 0.55D);
- for (int i = 0; i < totalSpiritCount; i++) {
+ float size = 0.4f;
+ for(int i = 0; i < totalSpiritCount; i++) {
double x = this.xCoord + Math.sin(wticks * Math.PI / 180.0D) * r + 0.5D;
- double y = this.yCoord + 0.25D + Math.abs(r) * 0.7D;
+ double y = this.yCoord - indetY + 0.85D + Math.abs(r) * 0.7D;
double z = this.zCoord + Math.cos(wticks * Math.PI / 180.0D) * r + 0.5D;
wticks += tickIncrement;
int color = 0x24cce0;
@@ -161,11 +148,11 @@ public class TileAgglomerationPlate extends TileInventory implements ISparkAttac
float hsb[] = Color.RGBtoHSB(color & 255, color >> 8 & 255, color >> 16 & 255, null);
int color1 = Color.HSBtoRGB(hsb[0], hsb[1], ticks / 100.0F);
float[] colorsfx = { (color1 & 255) / 255.0f, (color1 >> 8 & 255) / 255.0f, (color1 >> 16 & 255) / 255.0f };
- Botania.proxy.wispFX(this.worldObj, x, y, z, colorsfx[0], colorsfx[1], colorsfx[2], 0.85F, (float)g * 0.05F, 0.25F);
- Botania.proxy.wispFX(this.worldObj, x, y, z, colorsfx[0], colorsfx[1], colorsfx[2], (float)Math.random() * 0.1F + 0.1F, (float)(Math.random() - 0.5D) * 0.05F, (float)(Math.random() - 0.5D) * 0.05F, (float)(Math.random() - 0.5D) * 0.05F, 0.9F);
+ Botania.proxy.wispFX(this.worldObj, x, y, z, colorsfx[0], colorsfx[1], colorsfx[2], 0.85F * size, (float)g * 0.05F, 0.25F);
+ Botania.proxy.wispFX(this.worldObj, x, y, z, colorsfx[0], colorsfx[1], colorsfx[2], (float)Math.random() * 0.1F + 0.1F * size, (float)(Math.random() - 0.5D) * 0.05F, (float)(Math.random() - 0.5D) * 0.05F, (float)(Math.random() - 0.5D) * 0.05F, 0.9F);
if(ticks == 100)
- for (int j = 0; j < 15; j++)
- Botania.proxy.wispFX(this.worldObj, this.xCoord + 0.5D, this.yCoord + 0.5D, this.zCoord + 0.5D, colorsfx[0], colorsfx[1], colorsfx[2], (float)Math.random() * 0.15F + 0.15F, (float)(Math.random() - 0.5D) * 0.125F, (float)(Math.random() - 0.5D) * 0.125F, (float)(Math.random() - 0.5D) * 0.125F);
+ for(int j = 0; j < 12; j++)
+ Botania.proxy.wispFX(this.worldObj, this.xCoord + 0.5D, this.yCoord + 1.1D - indetY, this.zCoord + 0.5D, colorsfx[0], colorsfx[1], colorsfx[2], (float)Math.random() * 0.15F + 0.15F * size, (float)(Math.random() - 0.5D) * 0.125F * size, (float)(Math.random() - 0.5D) * 0.125F * size, (float)(Math.random() - 0.5D) * 0.125F * size, 0.8f);
}
}
}
@@ -191,24 +178,6 @@ public class TileAgglomerationPlate extends TileInventory implements ISparkAttac
return 0;
}
- boolean hasValidPlatform() {
- return (checkAll(MANA_STEEL_BLOCKS, ModBlocks.storage, 0, -1) && checkAll(MANA_QUARZ_BLOCKS, ModFluffBlocks.manaQuartz, 0, -1));
- }
-
- boolean checkAll(int[][] positions, Block block, int meta, int yOff) {
- for (int[] position : positions) {
- int[] positions_ = position;
- if (!checkPlatform(positions_[0], yOff, positions_[1], block, meta))
- return false;
- }
- return true;
- }
-
- boolean checkPlatform(int xOff, int yOff, int zOff, Block block, int meta) {
- Block checkBlock = this.worldObj.getBlock(this.xCoord + xOff, this.yCoord + yOff, zOff + this.zCoord);
- return checkBlock == block && this.worldObj.getBlockMetadata(this.xCoord + xOff, this.yCoord + yOff, zOff + this.zCoord) == meta;
- }
-
public void writeCustomNBT(NBTTagCompound cmp) {
super.writeCustomNBT(cmp);
cmp.setInteger("mana", mana);
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/18/703a975fbdbc001c1a9f99005529f322 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/18/703a975fbdbc001c1a9f99005529f322
new file mode 100644
index 0000000..8ee9c65
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/18/703a975fbdbc001c1a9f99005529f322
@@ -0,0 +1,38 @@
+package ab.client.render.block;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.client.render.tile.RenderTileManaContainer;
+import ab.common.block.tile.TileNidavellirForge;
+import ab.common.lib.register.BlockListAB;
+import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
+import net.minecraft.block.Block;
+import net.minecraft.client.renderer.RenderBlocks;
+import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.world.IBlockAccess;
+
+public class RenderBlockNidavellirForge implements ISimpleBlockRenderingHandler {
+
+ public void renderInventoryBlock(Block block, int metadata, int modelID, RenderBlocks renderer) {
+ GL11.glPushMatrix();
+ GL11.glTranslatef(-0.5F, -0.3125F, -0.5F);
+ GL11.glScalef(1.3f, 1.3f, 1.3f);
+ TileNidavellirForge forge = new TileNidavellirForge();
+ RenderTileManaContainer.metadata = metadata;
+ TileEntityRendererDispatcher.instance.renderTileEntityAt((TileEntity)forge, 0.0D, 0.0D, 0.0D, 0.0F);
+ GL11.glPopMatrix();
+ }
+
+ public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId, RenderBlocks renderer) {
+ return false;
+ }
+
+ public int getRenderId() {
+ return BlockListAB.blockABPlateRI;
+ }
+
+ public boolean shouldRender3DInInventory(int modelId) {
+ return true;
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/1a/50d8db2a9fb1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/1a/50d8db2a9fb1001c19bf8a91ac37238b
deleted file mode 100644
index 69a5bd4..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/1a/50d8db2a9fb1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,245 +0,0 @@
-package ab.client.core;
-
-import java.awt.Color;
-import java.nio.FloatBuffer;
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.gui.ScaledResolution;
-import net.minecraft.client.renderer.ActiveRenderInfo;
-import net.minecraft.client.renderer.GLAllocation;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.RenderHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.entity.RenderItem;
-import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.IIcon;
-import net.minecraft.util.ResourceLocation;
-import net.minecraft.util.StatCollector;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-import vazkii.botania.client.core.handler.HUDHandler;
-import vazkii.botania.common.block.ModBlocks;
-import vazkii.botania.common.core.helper.Vector3;
-
-public class ClientHelper {
-
- public static final ResourceLocation miscHuds = new ResourceLocation("ab:textures/misc/miscHuds.png");
- private static final ResourceLocation field_147529_c = new ResourceLocation("textures/environment/end_sky.png");
- private static final ResourceLocation field_147526_d = new ResourceLocation("textures/entity/end_portal.png");
- private static final Random field_147527_e = new Random(31100L);
- public static Minecraft mc = Minecraft.getMinecraft();
- private static FloatBuffer field_147528_b = GLAllocation.createDirectFloatBuffer(16);
-
- public static void renderCosmicBackground() {
- GL11.glDisable(GL11.GL_LIGHTING);
- GL11.glDepthMask(false);
- field_147527_e.setSeed(31100L);
- float f4 = 0.24F;
- for (int i = 0; i < 16; i++) {
- GL11.glPushMatrix();
- float f5 = (16 - i);
- float f6 = 0.0625F;
- float f7 = 1.0F / (f5 + 1.0F);
- if (i == 0) {
- mc.renderEngine.bindTexture(field_147529_c);
- f7 = 0.1F;
- f5 = 65.0F;
- f6 = 0.125F;
- GL11.glEnable(GL11.GL_BLEND);
- GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
- }
- if (i == 1) {
- mc.renderEngine.bindTexture(field_147526_d);
- GL11.glEnable(GL11.GL_BLEND);
- GL11.glBlendFunc(GL11.GL_ONE, GL11.GL_ONE);
- f6 = 0.5F;
- }
- GL11.glTranslatef(0.0f, 1.5f, 0.0f);
- GL11.glTexGeni(GL11.GL_S, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_OBJECT_LINEAR);
- GL11.glTexGeni(GL11.GL_T, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_OBJECT_LINEAR);
- GL11.glTexGeni(GL11.GL_R, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_OBJECT_LINEAR);
- GL11.glTexGeni(GL11.GL_Q, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_EYE_LINEAR);
- GL11.glTexGen(GL11.GL_S, GL11.GL_OBJECT_PLANE, func_147525_a(1.0F, 0.0F, 0.0F, 0.0F));
- GL11.glTexGen(GL11.GL_T, GL11.GL_OBJECT_PLANE, func_147525_a(0.0F, 0.0F, 1.0F, 0.0F));
- GL11.glTexGen(GL11.GL_R, GL11.GL_OBJECT_PLANE, func_147525_a(0.0F, 0.0F, 0.0F, 1.0F));
- GL11.glTexGen(GL11.GL_Q, GL11.GL_EYE_PLANE, func_147525_a(0.0F, 1.0F, 0.0F, 0.0F));
- GL11.glEnable(GL11.GL_TEXTURE_GEN_S);
- GL11.glEnable(GL11.GL_TEXTURE_GEN_T);
- GL11.glEnable(GL11.GL_TEXTURE_GEN_R);
- GL11.glEnable(GL11.GL_TEXTURE_GEN_Q);
- GL11.glPopMatrix();
- GL11.glMatrixMode(GL11.GL_TEXTURE);
- GL11.glPushMatrix();
- GL11.glLoadIdentity();
- GL11.glTranslatef(0.0F, (float)(Minecraft.getSystemTime() % 20000L) / 20000.0F, 0.0F);
- GL11.glScalef(f6, f6, f6);
- GL11.glTranslatef(0.5F, 0.5F, 0.0F);
- GL11.glRotatef((i * i * 4321 + i * 9) * 2.0F, 0.0F, 0.0F, 1.0F);
- GL11.glTranslatef(-0.5F, -0.5F, 0.0F);
- Tessellator tessellator = Tessellator.instance;
- tessellator.startDrawingQuads();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float f11 = color.getRed() / 255.0F;
- float f12 = color.getGreen() / 255.0F;
- float f13 = color.getBlue() / 255.0F;
- tessellator.setBrightness(180);
- tessellator.setColorRGBA_F(f11 * f7, f12 * f7, f13 * f7, 1.0F);
- tessellator.addVertex(0.0D, f4, 0.0D);
- tessellator.addVertex(0.0D, f4, 1.0D);
- tessellator.addVertex(1.0D, f4, 1.0D);
- tessellator.addVertex(1.0D, f4, 0.0D);
- tessellator.draw();
- GL11.glPopMatrix();
- GL11.glMatrixMode(GL11.GL_MODELVIEW);
- }
- GL11.glDisable(GL11.GL_BLEND);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_S);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_T);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_R);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_Q);
- GL11.glDepthMask(true);
- }
-
- private static FloatBuffer func_147525_a(float p_147525_1_, float p_147525_2_, float p_147525_3_, float p_147525_4_) {
- field_147528_b.clear();
- field_147528_b.put(p_147525_1_).put(p_147525_2_).put(p_147525_3_).put(p_147525_4_);
- field_147528_b.flip();
- return field_147528_b;
- }
-
- public static void drawArrow(int x, int y, boolean side) {
- mc.renderEngine.bindTexture(miscHuds);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0f);
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x, y, 0.0F, 0, 10, side ? 0 : 22, 38);
- }
-
- public static void drawChanceBar(int x, int y, int chance) {
- mc.renderEngine.bindTexture(miscHuds);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0f);
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x, y, 0.0F, 0, 0, 57, 6);
- int chancePercentage = Math.max(0, (int)((chance / 100.f) * 55.0D));
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x + 1, y + 1, 0.0F, 0, 6, 55, 4);
- Color color = new Color(Color.HSBtoRGB((chance) / 360.0f, ((float)Math.sin((ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks) * 0.2D) + 1.0F) * 0.3F + 0.4F, 1.0f));
- GL11.glColor4ub((byte)color.getRed(), (byte)color.getGreen(), (byte)color.getBlue(), (byte)255);
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x + 1, y + 1, 0.0F, 0, 6, Math.min(55, chancePercentage), 4);
- }
-
- public static void renderPoolManaBar(int x, int y, int color, float alpha, int mana) {
- Minecraft mc = Minecraft.getMinecraft();
- int poolCount = (int)Math.floor(mana / 1000000.0D);
- if(poolCount < 0)
- poolCount = 0;
- int onePoolMana = mana - (poolCount * 1000000);
- String strPool = poolCount + "x";
- int xc = x - mc.fontRenderer.getStringWidth(strPool) / 2;
- int yc = y;
- GL11.glPushMatrix();
- GL11.glTranslatef(xc + 42.0f, yc + 5.0f, 0.0f);
- RenderHelper.enableGUIStandardItemLighting();
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, new ItemStack(ModBlocks.pool), 0, 0);
- RenderHelper.disableStandardItemLighting();
- GL11.glTranslatef(18.0f, 5.0f, 300.0f);
- mc.fontRenderer.drawString(strPool, 0, 0, color);
- GL11.glPopMatrix();
- if((poolCount * 1000000) == mana)
- onePoolMana = poolCount * 1000000;
- HUDHandler.renderManaBar(x, y, color, alpha, onePoolMana, 1000000);
- }
-
- public static void drawPoolManaHUD(ScaledResolution res, String name, int mana, int maxMana, int color) {
- Minecraft mc = Minecraft.getMinecraft();
- int poolCount = (int)Math.floor(mana / 1000000.0D);
- int maxPoolCount = (int)Math.floor(maxMana / 1000000.0D);
- if(poolCount < 0)
- poolCount = 0;
- if(maxPoolCount < 0)
- maxPoolCount = 0;
- int onePoolMana = mana - (poolCount * 1000000);
- String strPool = poolCount + "x / " + maxPoolCount + "x";
- int xc = res.getScaledWidth() / 2 - mc.fontRenderer.getStringWidth(strPool) / 2 - 3;
- int yc = res.getScaledHeight() / 2;
- GL11.glPushMatrix();
- GL11.glTranslatef(xc - 6.0f, yc + 30.0f, 0.0f);
- RenderHelper.enableGUIStandardItemLighting();
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, new ItemStack(ModBlocks.pool), 0, 0);
- RenderHelper.disableStandardItemLighting();
- GL11.glTranslatef(18.0f, 4.5f, 300.0f);
- mc.fontRenderer.drawStringWithShadow(strPool, 0, 0, color);
- GL11.glPopMatrix();
- if((poolCount * 1000000) == mana)
- onePoolMana = poolCount * 1000000;
- HUDHandler.drawSimpleManaHUD(color, onePoolMana, 1000000, name, res);
- }
-
- public static void setLightmapTextureCoords() {
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- }
-
- public static Vector3 setRotation(float angel, float vX, float vY, float vZ, Vector3 v3) {
- Vector3 rVec = new Vector3(vX, vY, vZ);
- Vector3 rVec1 = v3.copy().normalize();
- double rAngel = Math.toRadians(angel) * 0.5f;
- double sin = Math.sin(rAngel);
- double x = rVec.x * sin;
- double y = rVec.y * sin;
- double z = rVec.z * sin;
- rAngel = Math.cos(rAngel);
- double d = -x * rVec1.x - y * rVec1.y - z * rVec1.z;
- double d1 = rAngel * rVec1.x + y * rVec1.z - z * rVec1.y;
- double d2 = rAngel * rVec1.y - x * rVec1.z + z * rVec1.x;
- double d3 = rAngel * rVec1.z + x * rVec1.y - y * rVec1.x;
- v3.x = d1 * rAngel - d * x - d2 * z + d3 * y;
- v3.y = d2 * rAngel - d * y + d1 * z - d3 * x;
- v3.z = d3 * rAngel - d * z - d1 * y + d2 * x;
- return v3;
- }
-
- public static Color getCorporeaRuneColor(int posX, int posY, int posZ, int meta) {
- double time = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- time += (new Random((posX ^ posY ^ posZ))).nextInt(360);
- float sin = (float)(Math.sin(time / 20.0f) * 0.15f) - 0.15f;
- int color = 0;
- switch(meta) {
- case 0:
- color = Color.HSBtoRGB(0.0f, 0.0f, 0.54f + (sin / 1.2f));
- break;
- case 1:
- color = Color.HSBtoRGB(0.688f, 0.93f, 0.96f + sin - 0.15f);
- break;
- case 2:
- color = Color.HSBtoRGB(0.983f, 0.99f, 1.0f + sin - 0.15f);
- break;
- case 3:
- color = Color.HSBtoRGB(0.319f, 0.92f, 0.95f + sin - 0.15f);
- break;
- case 4:
- color = Color.HSBtoRGB(0.536f, 0.53f, 0.92f + sin - 0.15f);
- break;
- }
- return new Color(color);
- }
-
- public static void renderIcon(IIcon icon, int light) {
- Tessellator tessellator = Tessellator.instance;
- float f = icon.getMinU();
- float f1 = icon.getMaxU();
- float f2 = icon.getMinV();
- float f3 = icon.getMaxV();
- float f4 = 1.0F;
- float f5 = 0.5F;
- float f6 = 0.25F;
- tessellator.startDrawingQuads();
- tessellator.setNormal(0.0F, 1.0F, 0.0F);
- tessellator.addVertexWithUV((0.0F - f5), (0.0F - f6), 0.0D, f, f3);
- tessellator.addVertexWithUV((f4 - f5), (0.0F - f6), 0.0D, f1, f3);
- tessellator.addVertexWithUV((f4 - f5), (f4 - f6), 0.0D, f1, f2);
- tessellator.addVertexWithUV((0.0F - f5), (f4 - f6), 0.0D, f, f2);
- tessellator.draw();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/1b/001aba2cf6b0001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/1b/001aba2cf6b0001c19bf8a91ac37238b
deleted file mode 100644
index b9609a3..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/1b/001aba2cf6b0001c19bf8a91ac37238b
+++ /dev/null
@@ -1,86 +0,0 @@
-package ab.client.core.handler;
-
-import java.awt.Color;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.armor.ItemNebulaArmor;
-import ab.common.item.equipment.armor.ItemNebulaHelm;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.ItemRenderer;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.texture.TextureMap;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraftforge.client.event.RenderPlayerEvent;
-import vazkii.botania.api.item.IPhantomInkable;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class PlayerRendererHandler {
-
- @SubscribeEvent
- public void onPlayerRender(RenderPlayerEvent.Specials.Post event) {
- EntityPlayer player = event.entityPlayer;
- ItemStack item = player.getCurrentArmor(3);
- if(item != null && item.getItem() instanceof ItemNebulaHelm) {
- Item helm = player.getCurrentArmor(3).getItem();
- boolean hasPhantomInk = helm instanceof IPhantomInkable && ((IPhantomInkable)helm).hasPhantomInk(item);
- if(!hasPhantomInk && ((ItemNebulaHelm)helm).enableCosmicFace(item)) {
- float angelX = event.renderer.modelBipedMain.bipedHead.rotateAngleX * 180.0F / (float)Math.PI;
- float angelY = event.renderer.modelBipedMain.bipedHead.rotateAngleY * 180.0F / (float)Math.PI;
- GL11.glPushMatrix();
- if(player.isSneaking())
- GL11.glTranslatef(event.renderer.modelBipedMain.bipedHead.rotationPointX * 0.0625f, event.renderer.modelBipedMain.bipedHead.rotationPointY * 0.0625f, 0.0f);
- GL11.glRotatef(angelY, 0.0F, 1.0F, 0.0F);
- GL11.glRotatef(angelX, 1.0F, 0.0F, 0.0F);
- renderCosmicFace();
- GL11.glPopMatrix();
- }
- }
- }
-
- private void renderCosmicFace() {
- double worldTime = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- GL11.glPushMatrix();
- GL11.glEnable(GL11.GL_TEXTURE_2D);
- GL11.glDisable(2912);
- GL11.glDisable(2884);
-
- GL11.glPushMatrix();
- GL11.glScalef(0.5f, 0.4f, 0.4f);
- GL11.glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
- GL11.glTranslatef(-0.5f, -0.8675f, 0.0f);
- GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
- ClientHelper.renderCosmicBackground();
- GL11.glPopMatrix();
-
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- (Minecraft.getMinecraft()).renderEngine.bindTexture(TextureMap.locationItemsTexture);
- GL11.glTranslatef(-0.2F, -0.35F, -0.25F);
- GL11.glScalef(0.4f, 0.4f, 0.4f);
- float f = ItemNebulaArmor.nebulaEyes.getMinU();
- float f1 = ItemNebulaArmor.nebulaEyes.getMaxU();
- float f2 = ItemNebulaArmor.nebulaEyes.getMinV();
- float f3 = ItemNebulaArmor.nebulaEyes.getMaxV();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float r = color.getRed() / 510.0F;
- float g = color.getGreen() / 510.0F;
- float b = color.getBlue() / 510.0F;
- GL11.glColor4f(0.5f + r, 0.5f + g, 0.5f + b, 0.685f + (float)Math.sin(worldTime / 50.0D) * 0.175F);
- ItemRenderer.renderItemIn2D(Tessellator.instance, f1, f2, f, f3, ItemNebulaArmor.nebulaEyes.getIconWidth(), ItemNebulaArmor.nebulaEyes.getIconHeight(), 0.03125F);
- GL11.glDisable(3042);
- GL11.glEnable(2884);
- GL11.glEnable(2912);
- GL11.glEnable(32826);
- GL11.glPopMatrix();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/1b/00895d9993c1001c11e398ea97007cb4 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/1b/00895d9993c1001c11e398ea97007cb4
new file mode 100644
index 0000000..1a284c6
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/1b/00895d9993c1001c11e398ea97007cb4
@@ -0,0 +1,200 @@
+package ab.common.item.relic;
+
+import java.awt.Color;
+import java.util.List;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.common.core.handler.NetworkHandler;
+import ab.common.lib.register.ItemListAB;
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
+import net.minecraft.block.Block;
+import net.minecraft.client.renderer.texture.IIconRegister;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.util.EnumChatFormatting;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.MathHelper;
+import net.minecraft.util.StatCollector;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.api.mana.ManaItemHandler;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class ItemSphereNavigation extends ItemModRelic {
+
+ public static IIcon[] icons;
+ public static final int rangeSearch = 16;
+ public static final int maxCooldown = 158;
+ public static final int manaCost = 1750;
+
+ public ItemSphereNavigation() {
+ super("sphereNavigation");
+ }
+
+ public void registerIcons(IIconRegister ir) {
+ icons = new IIcon[5];
+ icons[0] = ir.registerIcon("ab:sphereNavigation");
+ icons[1] = ir.registerIcon("ab:sphereNavigation_hasblock");
+ icons[2] = ir.registerIcon("ab:sphereNavigation_nonBlock");
+ icons[3] = ir.registerIcon("ab:sphereNavigation_off");
+ icons[4] = ir.registerIcon("ab:sphereNavigation_on");
+ }
+
+ public String getItemStackDisplayName(ItemStack stack) {
+ Block block = getFindBlock(stack);
+ int meta = getFindMeta(stack);
+ ItemStack rStack = new ItemStack(block, 1, meta);
+ return super.getItemStackDisplayName(stack) + ((rStack == null || rStack.getItem() == null) ? "" : (EnumChatFormatting.RESET + " (" + EnumChatFormatting.GREEN + rStack.getDisplayName() + EnumChatFormatting.RESET + ")"));
+ }
+
+ @SideOnly(Side.CLIENT)
+ public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean par4) {
+ addStringToTooltip(StatCollector.translateToLocal(stack.getItemDamage() == 0 ? "botaniamisc.active" : "botaniamisc.inactive"), list);
+ }
+
+ void addStringToTooltip(String s, List tooltip) {
+ tooltip.add(s.replaceAll("&", "\u00A7"));
+ }
+
+ public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
+ if(getFindBlock(stack) != null && player.isSneaking()) {
+ int dmg = stack.getItemDamage();
+ stack.setItemDamage((dmg ^ 0xFFFFFFFF) & 0x1);
+ world.playSoundAtEntity(player, "random.orb", 0.3F, 0.1F);
+ }
+ return stack;
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int pos, boolean equipped) {
+ super.onUpdate(stack, world, entity, pos, equipped);
+ if(entity instanceof EntityPlayer) {
+ EntityPlayer player = (EntityPlayer)entity;
+ if(!world.isRemote && stack.getItemDamage() == 0 && getFindBlock(stack) != null && canWork(stack) && ManaItemHandler.requestManaExactForTool(stack, player, manaCost, true)) {
+ setMaxTick(stack);
+ NetworkHandler.sendPacketToFindBlocks((EntityPlayerMP)player, getFindBlock(stack), getFindMeta(stack));
+ }
+ }
+ }
+
+ public static void findBlocks(World world, Block findBlock, int findMeta, EntityPlayer player) {
+ if(world.isRemote) {
+ ItemStack renderStack = null;
+ int maxFindedBlocks = 32;
+ int findedBlocks = 0;
+ label1703:
+ for(int y = -rangeSearch * 2; y < rangeSearch; y++) {
+ for(int x = -rangeSearch; x < rangeSearch; x++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks)) || world.rand.nextBoolean())
+ continue;
+ for(int z = -rangeSearch; z < rangeSearch; z++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks)) || world.rand.nextBoolean())
+ continue;
+ else if(findedBlocks >= maxFindedBlocks)
+ break label1703;
+ int posX = MathHelper.floor_double(player.posX) + x;
+ int posY = MathHelper.floor_double(player.posY) + y;
+ int posZ = MathHelper.floor_double(player.posZ) + z;
+ if(posY < 0)
+ continue;
+ Block block = world.getBlock(posX, posY, posZ);
+ if(!Block.isEqualTo(block, findBlock))
+ continue;
+ int meta = world.getBlockMetadata(posX, posY, posZ);
+ if(meta == findMeta) {
+ if(renderStack == null)
+ renderStack = getRenderStackForBlock(world, block, meta, posX, posY, posZ);
+ findedBlocks++;
+ float maxAge = 2.7f + (0.5f * (float)(Math.random()));
+ Botania.proxy.setWispFXDepthTest(false);
+ Botania.proxy.setWispFXDistanceLimit(false);
+ float far = 120.0f - (((Math.abs(x) + Math.min(rangeSearch, Math.abs(y)) + Math.abs(z)) / (rangeSearch * 4.0f)) * 120.0f);
+ if(far <= 70)
+ far *= 0.1f;
+ Color color = new Color(Color.HSBtoRGB(far / 360.0f, 0.9f + (float)(Math.random() * 0.1f), 1.0f));
+ for(int i = 0; i < 11; i++)
+ Botania.proxy.wispFX(world, posX + 0.5f + (Math.random() - 0.5f), posY + 0.5f + (Math.random() - 0.5f), posZ + 0.5f + (Math.random() - 0.5f), color.getRed() / 100.0f, color.getGreen() / 100.0f, color.getBlue() / 100.0f, 0.3f + (float)(Math.random() * 0.25f), 0.0f, maxAge);
+ Botania.proxy.setWispFXDistanceLimit(true);
+ Botania.proxy.setWispFXDepthTest(true);
+ }
+ }
+ }
+ }
+ if(renderStack != null)
+ ItemsRemainingRender.set(renderStack, "íàéäåíî: " + findedBlocks);
+ }
+ }
+
+ public static ItemStack getRenderStackForBlock(World world, Block block, int meta, int x, int y, int z) {
+ if(block != null) {
+ Item item = Item.getItemFromBlock(block);
+ if(item != null) {
+ ItemStack findStack = new ItemStack(block, 1, meta);
+ if(findStack != null)
+ return findStack;
+ } else {
+ Item item1 = block.getItem(world, x, y, z);
+ if(item1 != null) {
+ ItemStack findStack = new ItemStack(item1, 1, meta);
+ if(findStack != null)
+ return findStack;
+ }
+ }
+ }
+ return null;
+ }
+
+ public boolean onItemUse(ItemStack stack, EntityPlayer p, World world, int x, int y, int z, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
+ if(p.isSneaking()) {
+ Block block = world.getBlock(x, y, z);
+ if(block != null) {
+ int meta = world.getBlockMetadata(x, y, z);
+ ItemStack findStack = getRenderStackForBlock(world, block, meta, x, y, z);
+ if(findStack != null) {
+ setFindBlock(stack, block, meta);
+ if(world.isRemote)
+ ItemsRemainingRender.set(findStack, findStack.getDisplayName());
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public boolean canWork(ItemStack stack) {
+ int tick = ItemNBTHelper.getInt(stack, "cooldown", 0);
+ if(tick == 0)
+ return true;
+ else if(tick > 0)
+ ItemNBTHelper.setInt(stack, "cooldown", tick - 1);
+ return false;
+ }
+
+ public void setMaxTick(ItemStack stack) {
+ ItemNBTHelper.setInt(stack, "cooldown", maxCooldown);
+ }
+
+ public static void setFindBlock(ItemStack stack, Block block, int meta) {
+ ItemNBTHelper.setInt(stack, "findBlockID", Block.getIdFromBlock(block));
+ ItemNBTHelper.setInt(stack, "findBlockMeta", meta);
+ }
+
+ public static Block getFindBlock(ItemStack stack) {
+ int blockID = ItemNBTHelper.getInt(stack, "findBlockID", 0);
+ if(blockID == 0)
+ return null;
+ else
+ return Block.getBlockById(blockID);
+ }
+
+ public static int getFindMeta(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "findBlockMeta", -1);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/1b/805f6fa403c0001c1965b122d2f8f403 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/1b/805f6fa403c0001c1965b122d2f8f403
new file mode 100644
index 0000000..ab22dbf
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/1b/805f6fa403c0001c1965b122d2f8f403
@@ -0,0 +1,158 @@
+package ab.common.item.relic;
+
+import java.awt.Color;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.common.core.handler.NetworkHandler;
+import ab.common.lib.register.ItemListAB;
+import net.minecraft.block.Block;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.util.MathHelper;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.api.mana.ManaItemHandler;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class ItemSphereNavigation extends ItemModRelic {
+
+ public static final int rangeSearch = 16;
+ public static final int maxCooldown = 112;
+ public static final int manaCost = 1750;
+
+ public ItemSphereNavigation() {
+ super("sphereNavigation");
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int pos, boolean equipped) {
+ super.onUpdate(stack, world, entity, pos, equipped);
+ if(entity instanceof EntityPlayer) {
+ EntityPlayer player = (EntityPlayer)entity;
+ if(!world.isRemote && getFindBlock(stack) != null && canWork(stack) && ManaItemHandler.requestManaExactForTool(stack, player, manaCost, true)) {
+ setMaxTick(stack);
+ NetworkHandler.sendPacketToFindBlocks((EntityPlayerMP)player, getFindBlock(stack), getFindMeta(stack));
+ }
+ }
+ }
+
+ public static void findBlocks(World world, Block findBlock, int findMeta, EntityPlayer player) {
+ if(world.isRemote) {
+ ItemStack renderStack = null;
+ int maxFindedBlocks = 32;
+ int findedBlocks = 0;
+ label1703:
+ for(int y = -rangeSearch * 2; y < rangeSearch; y++) {
+ for(int x = -rangeSearch; x < rangeSearch; x++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks + 4)) || world.rand.nextBoolean())
+ continue;
+ for(int z = -rangeSearch; z < rangeSearch; z++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks + 4)) || world.rand.nextBoolean())
+ continue;
+ else if(findedBlocks >= maxFindedBlocks)
+ break label1703;
+ int posX = MathHelper.floor_double(player.posX) + x;
+ int posY = MathHelper.floor_double(player.posY) + y;
+ int posZ = MathHelper.floor_double(player.posZ) + z;
+ if(posY < 0)
+ continue;
+ Block block = world.getBlock(posX, posY, posZ);
+ if(!Block.isEqualTo(block, findBlock))
+ continue;
+ int meta = world.getBlockMetadata(posX, posY, posZ);
+ if(meta == findMeta) {
+ if(renderStack == null)
+ renderStack = getRenderStackForBlock(world, block, meta, posX, posY, posZ);
+ findedBlocks++;
+ float maxAge = 2.7f + (0.5f * (float)(Math.random()));
+ Botania.proxy.setWispFXDepthTest(false);
+ Botania.proxy.setWispFXDistanceLimit(false);
+ float far = 120.0f - (((Math.abs(x) + Math.min(rangeSearch, Math.abs(y)) + Math.abs(z)) / (rangeSearch * 4.0f)) * 120.0f);
+ if(far <= 60)
+ far *= 0.15f;
+ Color color = new Color(Color.HSBtoRGB(far / 360.0f, 0.9f + (float)(Math.random() * 0.1f), 1.0f));
+ for(int i = 0; i < 11; i++)
+ Botania.proxy.wispFX(world, posX + 0.5f + (Math.random() - 0.5f), posY + 0.5f + (Math.random() - 0.5f), posZ + 0.5f + (Math.random() - 0.5f), color.getRed() / 100.0f, color.getGreen() / 100.0f, color.getBlue() / 100.0f, 0.3f + (float)(Math.random() * 0.25f), 0.0f, maxAge);
+ Botania.proxy.setWispFXDistanceLimit(true);
+ Botania.proxy.setWispFXDepthTest(true);
+ }
+ }
+ }
+ }
+ if(renderStack != null)
+ ItemsRemainingRender.set(renderStack, "íàéäåíî: " + findedBlocks);
+ }
+ }
+
+ public static ItemStack getRenderStackForBlock(World world, Block block, int meta, int x, int y, int z) {
+ if(block != null) {
+ Item item = Item.getItemFromBlock(block);
+ if(item != null) {
+ ItemStack findStack = new ItemStack(block, 1, meta);
+ if(findStack != null)
+ return findStack;
+ } else {
+ Item item1 = block.getItem(world, x, y, z);
+ if(item1 != null) {
+ ItemStack findStack = new ItemStack(item1, 1, meta);
+ if(findStack != null)
+ return findStack;
+ }
+ }
+ }
+ return null;
+ }
+
+ public boolean onItemUse(ItemStack stack, EntityPlayer p, World world, int x, int y, int z, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
+ if(p.isSneaking()) {
+ Block block = world.getBlock(x, y, z);
+ if(block != null) {
+ int meta = world.getBlockMetadata(x, y, z);
+ ItemStack findStack = getRenderStackForBlock(world, block, meta, x, y, z);
+ if(findStack != null) {
+ setFindBlock(stack, block, meta);
+ if(world.isRemote)
+ ItemsRemainingRender.set(findStack, findStack.getDisplayName());
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public boolean canWork(ItemStack stack) {
+ int tick = ItemNBTHelper.getInt(stack, "cooldown", 0);
+ if(tick == 0)
+ return true;
+ else if(tick > 0)
+ ItemNBTHelper.setInt(stack, "cooldown", tick - 1);
+ return false;
+ }
+
+ public void setMaxTick(ItemStack stack) {
+ ItemNBTHelper.setInt(stack, "cooldown", maxCooldown);
+ }
+
+ public static void setFindBlock(ItemStack stack, Block block, int meta) {
+ ItemNBTHelper.setInt(stack, "findBlockID", Block.getIdFromBlock(block));
+ ItemNBTHelper.setInt(stack, "findBlockMeta", meta);
+ }
+
+ public static Block getFindBlock(ItemStack stack) {
+ int blockID = ItemNBTHelper.getInt(stack, "findBlockID", 0);
+ if(blockID == 0)
+ return null;
+ else
+ return Block.getBlockById(blockID);
+ }
+
+ public static int getFindMeta(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "findBlockMeta", -1);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/1c/406e5ff7cbbd001c1664fb18d0506bc0 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/1c/406e5ff7cbbd001c1664fb18d0506bc0
new file mode 100644
index 0000000..c8c5c70
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/1c/406e5ff7cbbd001c1664fb18d0506bc0
@@ -0,0 +1,49 @@
+package ab.common.core.proxy.packet;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.common.item.relic.ItemSphereNavigation;
+import cpw.mods.fml.common.network.ByteBufUtils;
+import cpw.mods.fml.common.network.simpleimpl.IMessage;
+import cpw.mods.fml.common.network.simpleimpl.IMessageHandler;
+import cpw.mods.fml.common.network.simpleimpl.MessageContext;
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
+import io.netty.buffer.ByteBuf;
+import net.minecraft.block.Block;
+import net.minecraft.client.Minecraft;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.world.WorldServer;
+import net.minecraftforge.common.DimensionManager;
+
+public class S01PacketFindNearBlocks implements IMessage, IMessageHandler {
+
+ private String username;
+ private int blockID;
+ private int meta;
+
+ public S01PacketFindNearBlocks() {};
+
+ public S01PacketFindNearBlocks(EntityPlayer player, Block block, int meta) {
+ this.username = player.getCommandSenderName();
+ this.blockID = Block.getIdFromBlock(block);
+ this.meta = meta;
+ }
+
+ public void toBytes(ByteBuf buf) {
+ ByteBufUtils.writeUTF8String(buf, this.username);
+ buf.writeInt(this.blockID);
+ buf.writeInt(this.meta);
+ }
+
+ public void fromBytes(ByteBuf buf) {
+ this.username = ByteBufUtils.readUTF8String(buf);
+ this.blockID = buf.readByte();
+ this.meta = buf.readByte();
+ }
+
+ @SideOnly(Side.CLIENT)
+ public IMessage onMessage(S01PacketFindNearBlocks message, MessageContext ctx) {
+ ItemSphereNavigation.findBlocks(Minecraft.getMinecraft().theWorld, Block.getBlockById(message.blockID), message.meta, Minecraft.getMinecraft().theWorld.getPlayerEntityByName(message.username));
+ return null;
+ }
+}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/1c/8028a5149eb1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/1c/8028a5149eb1001c19bf8a91ac37238b
deleted file mode 100644
index d90d372..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/1c/8028a5149eb1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,84 +0,0 @@
-package ab.client.core.handler;
-
-import java.awt.Color;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.armor.ItemNebulaArmor;
-import ab.common.item.equipment.armor.ItemNebulaHelm;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.ItemRenderer;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.texture.TextureMap;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraftforge.client.event.RenderPlayerEvent;
-import vazkii.botania.api.item.IPhantomInkable;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class PlayerRendererHandler {
-
- @SubscribeEvent
- public void onPlayerRender(RenderPlayerEvent.Specials.Post event) {
- EntityPlayer player = event.entityPlayer;
- ItemStack item = player.getCurrentArmor(3);
- if(item != null && item.getItem() instanceof ItemNebulaHelm) {
- Item helm = player.getCurrentArmor(3).getItem();
- boolean hasPhantomInk = helm instanceof IPhantomInkable && ((IPhantomInkable)helm).hasPhantomInk(item);
- if(!hasPhantomInk && ((ItemNebulaHelm)helm).enableCosmicFace(item)) {
- float angelX = event.renderer.modelBipedMain.bipedHead.rotateAngleX * 180.0F / (float)Math.PI;
- float angelY = event.renderer.modelBipedMain.bipedHead.rotateAngleY * 180.0F / (float)Math.PI;
- GL11.glPushMatrix();
- if(player.isSneaking())
- GL11.glTranslatef(event.renderer.modelBipedMain.bipedHead.rotationPointX * 0.0625f, event.renderer.modelBipedMain.bipedHead.rotationPointY * 0.0625f, 0.0f);
- GL11.glRotatef(angelY, 0.0F, 1.0F, 0.0F);
- GL11.glRotatef(angelX, 1.0F, 0.0F, 0.0F);
- renderCosmicFace();
- GL11.glPopMatrix();
- }
- }
- }
-
- private void renderCosmicFace() {
- double worldTime = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- GL11.glPushMatrix();
- GL11.glEnable(GL11.GL_TEXTURE_2D);
- GL11.glDisable(2884);
-
- GL11.glPushMatrix();
- GL11.glScalef(0.5f, 0.4f, 0.4f);
- GL11.glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
- GL11.glTranslatef(-0.5f, -0.8675f, 0.0f);
- GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
- ClientHelper.renderCosmicBackground();
- GL11.glPopMatrix();
-
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- (Minecraft.getMinecraft()).renderEngine.bindTexture(TextureMap.locationItemsTexture);
- GL11.glTranslatef(-0.2F, -0.35F, -0.25F);
- GL11.glScalef(0.4f, 0.4f, 0.4f);
- float f = ItemNebulaArmor.nebulaEyes.getMinU();
- float f1 = ItemNebulaArmor.nebulaEyes.getMaxU();
- float f2 = ItemNebulaArmor.nebulaEyes.getMinV();
- float f3 = ItemNebulaArmor.nebulaEyes.getMaxV();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float r = color.getRed() / 510.0F;
- float g = color.getGreen() / 510.0F;
- float b = color.getBlue() / 510.0F;
- GL11.glColor4f(0.5f + r, 0.5f + g, 0.5f + b, 0.685f + (float)Math.sin(worldTime / 50.0D) * 0.175F);
- ItemRenderer.renderItemIn2D(Tessellator.instance, f1, f2, f, f3, ItemNebulaArmor.nebulaEyes.getIconWidth(), ItemNebulaArmor.nebulaEyes.getIconHeight(), 0.03125F);
- GL11.glDisable(3042);
- GL11.glEnable(2884);
- GL11.glEnable(32826);
- GL11.glPopMatrix();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/1c/807c8f38b4b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/1c/807c8f38b4b1001c19bf8a91ac37238b
deleted file mode 100644
index 0b468db..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/1c/807c8f38b4b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,88 +0,0 @@
-package ab.common.item;
-
-import java.util.List;
-
-import ab.common.core.CommonHelper;
-import ab.common.lib.register.BlockListAB;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.renderer.texture.IIconRegister;
-import net.minecraft.entity.Entity;
-import net.minecraft.entity.item.EntityFallingBlock;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.IIcon;
-import net.minecraft.world.World;
-import vazkii.botania.common.core.helper.ItemNBTHelper;
-
-public class ItemAntigravityCharm extends ItemMod {
-
- public static IIcon[] icons;
-
- public ItemAntigravityCharm() {
- super("antigravityCharm");
- this.setMaxStackSize(1);
- this.setNoRepair();
- }
-
- public void registerIcons(IIconRegister ir) {
- icons = new IIcon[2];
- for(int i = 0; i < icons.length; i++) {
- icons[i] = icons[i] = ir.registerIcon("ab:" + "itemAntigravityCharm_" + i);
- }
- }
-
- @SideOnly(Side.CLIENT)
- public IIcon getIcon(ItemStack stack, int pass) {
- int iconID = Math.min(1, pass);
- return this.icons[iconID];
- }
-
- public boolean requiresMultipleRenderPasses() {
- return true;
- }
-
- public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
- if(player.isSneaking())
- ItemNBTHelper.setBoolean(stack, "isActive", !ItemNBTHelper.getBoolean(stack, "isActive", true));
- return stack;
- }
-
- public void onUpdate(ItemStack stack, World world, Entity entity, int par4, boolean inHand) {
- if(entity instanceof EntityPlayer) {
- EntityPlayer player = (EntityPlayer)entity;
- if(ItemNBTHelper.getBoolean(stack, "isActive", true)) {
- double posX = player.posX;
- double posY = player.posY;
- double posZ = player.posZ;
- final AxisAlignedBB asis = AxisAlignedBB.getBoundingBox(posX, posY, posZ, posX + 1, posY + 1, posZ + 1).expand(8, 8, 8);
- final List listEntity = world.getEntitiesWithinAABB(EntityFallingBlock.class, asis);
- for(EntityFallingBlock fallBlock : listEntity) {
- int x = (int) (fallBlock.posX >= 0 ? fallBlock.posX : fallBlock.posX - 1);
- int y = (int) fallBlock.posY;
- int z = (int) (fallBlock.posZ >= 0 ? fallBlock.posZ : fallBlock.posZ - 1);
- Block block = fallBlock.func_145805_f();
- fallBlock.setInvisible(true);
- if(!world.isRemote) {
-// CommonHelper.setBlock(world, block, fallBlock.field_145814_a, x, y, z, (EntityPlayerMP)player, true);
-// CommonHelper.setBlock(world, BlockListAB.blockAntigravitation, 0, x, y - 1, z, (EntityPlayerMP)player, true);
- setBlock(world, x, y, z, block, fallBlock.field_145814_a);
- setBlock(world, x, y - 1, z, BlockListAB.blockAntigravitation, 0);
- }
- fallBlock.setDead();
- }
- }
- }
- }
-
- private void setBlock(World world, int x, int y, int z, Block block, int meta) {
- if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256) {
- world.setBlock(x, y, z, block, meta, 3);
- }
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/1d/20d466ddbcbc001c1a9f99005529f322 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/1d/20d466ddbcbc001c1a9f99005529f322
new file mode 100644
index 0000000..1b21c55
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/1d/20d466ddbcbc001c1a9f99005529f322
@@ -0,0 +1,38 @@
+package ab.client.render.block;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.client.render.tile.RenderTileManaContainer;
+import ab.common.block.tile.TileNidavellirForge;
+import ab.common.lib.register.BlockListAB;
+import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
+import net.minecraft.block.Block;
+import net.minecraft.client.renderer.RenderBlocks;
+import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.world.IBlockAccess;
+
+public class RenderBlockNidavellirForge implements ISimpleBlockRenderingHandler {
+
+ public void renderInventoryBlock(Block block, int metadata, int modelID, RenderBlocks renderer) {
+ GL11.glPushMatrix();
+ GL11.glTranslatef(-0.5F, -0.5F, -0.5F);
+ // GL11.glScalef(1.4f, 1.4f, 1.4f);
+ TileNidavellirForge forge = new TileNidavellirForge();
+ RenderTileManaContainer.metadata = metadata;
+ TileEntityRendererDispatcher.instance.renderTileEntityAt((TileEntity)forge, 0.0D, 0.0D, 0.0D, 0.0F);
+ GL11.glPopMatrix();
+ }
+
+ public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId, RenderBlocks renderer) {
+ return false;
+ }
+
+ public int getRenderId() {
+ return BlockListAB.blockABPlateRI;
+ }
+
+ public boolean shouldRender3DInInventory(int modelId) {
+ return true;
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/1f/401bc90609b0001c18a5eba32f24fffa b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/1f/401bc90609b0001c18a5eba32f24fffa
deleted file mode 100644
index f38a4e3..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/1f/401bc90609b0001c18a5eba32f24fffa
+++ /dev/null
@@ -1,67 +0,0 @@
-package ab.common.block.subtile;
-
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.world.World;
-import vazkii.botania.api.subtile.SubTileGenerating;
-
-public class SubTileArdentAzarcissus extends SubTileGenerating {
-
- public static final String playerName = "ArdentAzarcissus#21sda2gaj91*21df#111sfq3jrns@#";
- int cooldown;
- int workMana = 400;
-
- public void onUpdate() {
- super.onUpdate();
- int posX = this.supertile.xCoord;
- int posY = this.supertile.yCoord;
- int posZ = this.supertile.zCoord;
- World world = this.supertile.getWorldObj();
- if(cooldown > 0) {
- cooldown--;
- return;
- }
- label666:
- for(int i = -1; i <= 1; i++)
- for(int j = -1; j <= 1; j++) {
-// if(i == 0 || j == 0)
-// continue;
- int x = posX + i;
- int z = posZ + j;
- TileEntity tile = world.getTileEntity(x, posY, z);
- if(tile != null && tile instanceof TileGameBoard) {
- TileGameBoard board = (TileGameBoard)tile;
- if(board.isSingleGame) {
- if(!board.hasGame()) {
- board.setPlayer(playerName);
- cooldown = 20;
- }
- else {
- board.dropDice(playerName);
- cooldown = 20;
- break label666;
- }
- }
- }
- }
- }
-
- public int getMaxMana() {
- return 15000;
- }
-
- public int getColor() {
- return 0xd2cdb2;
- }
-
- public void writeToPacketNBT(NBTTagCompound cmp) {
- super.writeToPacketNBT(cmp);
- cmp.setInteger("cooldown", this.cooldown);
- }
-
- public void readFromPacketNBT(NBTTagCompound cmp) {
- super.readFromPacketNBT(cmp);
- this.cooldown = cmp.getInteger("cooldown");
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/1f/f01af8f485b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/1f/f01af8f485b1001c19bf8a91ac37238b
deleted file mode 100644
index 6e5a79e..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/1f/f01af8f485b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,165 +0,0 @@
-package ab.common.item.equipment.armor;
-
-import java.util.List;
-
-import ab.AdvancedBotany;
-import ab.api.AdvancedBotanyAPI;
-import ab.client.model.armor.ModelArmorNebula;
-import ab.common.core.handler.ConfigABHandler;
-import ab.common.lib.register.ItemListAB;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.client.model.ModelBiped;
-import net.minecraft.client.renderer.texture.IIconRegister;
-import net.minecraft.entity.EntityLivingBase;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.ItemStack;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.DamageSource;
-import net.minecraft.util.IIcon;
-import net.minecraft.util.StatCollector;
-import net.minecraft.world.World;
-import net.minecraftforge.common.ISpecialArmor;
-import vazkii.botania.api.BotaniaAPI;
-import vazkii.botania.api.mana.IManaItem;
-import vazkii.botania.api.mana.IManaTooltipDisplay;
-import vazkii.botania.api.mana.ManaItemHandler;
-import vazkii.botania.common.core.helper.ItemNBTHelper;
-import vazkii.botania.common.item.equipment.armor.manasteel.ItemManasteelArmor;
-
-public class ItemNebulaArmor extends ItemManasteelArmor implements IManaItem, IManaTooltipDisplay {
-
- protected static final int MAX_MANA = 250000;
- private static final String TAG_MANA = "mana";
-
- static ItemStack[] armorset;
- public static IIcon nebulaEyes;
-
- public ItemNebulaArmor(int type, String name) {
- super(type, name, AdvancedBotanyAPI.nebulaArmorMaterial);
- this.setCreativeTab(AdvancedBotany.tabAB);
- this.setMaxDamage(1000);
- this.setNoRepair();
- }
-
- public ISpecialArmor.ArmorProperties getProperties(EntityLivingBase player, ItemStack armor, DamageSource source, double damage, int slot) {
- return new ISpecialArmor.ArmorProperties(0, getArmorMaterial().getDamageReductionAmount(slot) * (0.03f + (0.0725D * (1.0f - (this.getDamage(armor) / 1000.0f)))), 2147483647);
- }
-
- @SideOnly(Side.CLIENT)
- public ModelBiped provideArmorModelForSlot(ItemStack stack, int slot) {
- this.models[slot] = new ModelArmorNebula(slot);
- return this.models[slot];
- }
-
- @SideOnly(Side.CLIENT)
- public void registerIcons(IIconRegister ir) {
- this.itemIcon = ir.registerIcon("ab:" + this.getUnlocalizedName().replaceAll("item\\.", ""));
- this.nebulaEyes = ir.registerIcon("ab:nebulaEyes");
- }
-
- public String getArmorTextureAfterInk(ItemStack stack, int slot) {
- return "ab:textures/model/nebulaArmor.png";
- }
-
- public ItemStack[] getArmorSetStacks() {
- if (armorset == null)
- armorset = new ItemStack[] { new ItemStack(ItemListAB.itemNebulaHelm), new ItemStack(ItemListAB.itemNebulaChest), new ItemStack(ItemListAB.itemNebulaLegs), new ItemStack(ItemListAB.itemNebulaBoots) };
- return armorset;
- }
-
- public boolean hasArmorSetItem(EntityPlayer player, int i) {
- ItemStack stack = player.inventory.armorInventory[3 - i];
- if (stack == null)
- return false;
- switch (i) {
- case 0:
- return (stack.getItem() == ItemListAB.itemNebulaHelm || stack.getItem() == ItemListAB.itemNebulaHelmReveal);
- case 1:
- return (stack.getItem() == ItemListAB.itemNebulaChest);
- case 2:
- return (stack.getItem() == ItemListAB.itemNebulaLegs);
- case 3:
- return (stack.getItem() == ItemListAB.itemNebulaBoots);
- }
- return false;
- }
-
- public void damageArmor(EntityLivingBase entity, ItemStack stack, DamageSource source, int damage, int slot) {
- int manaVal = Math.min(damage * 15, this.getMana(stack));
- if(entity instanceof EntityPlayer && !entity.worldObj.isRemote)
- if(!ManaItemHandler.requestManaExactForTool(stack, (EntityPlayer)entity, manaVal, true)) {
- this.addMana(stack, -manaVal);
- }
- }
-
- public void onArmorTick(World world, EntityPlayer player, ItemStack stack) {
- if(!world.isRemote && this.getMana(stack) != this.getMaxMana(stack) && ManaItemHandler.requestManaExactForTool(stack, player, 1000, true)) {
- this.addMana(stack, 1000);
- }
- }
-
- public void addArmorSetDescription(ItemStack stack, List list) {
- addStringToTooltip(StatCollector.translateToLocal("ab.armorset.nebula.desc0"), list);
- addStringToTooltip(StatCollector.translateToLocal("botania.armorset.terrasteel.desc1"), list);
- addStringToTooltip(StatCollector.translateToLocal("botania.armorset.terrasteel.desc2"), list);
- }
-
- public int getDamage(ItemStack stack) {
- float mana = getMana(stack);
- return 1000 - (int)(mana / getMaxMana(stack) * 1000.0F);
- }
-
- public int getDisplayDamage(ItemStack stack) {
- return getDamage(stack);
- }
-
- public static String playerStr(EntityPlayer player) {
- return player.getGameProfile().getName() + ":" + player.worldObj.isRemote;
- }
-
- public String getArmorSetName() {
- return StatCollector.translateToLocal("ab.armorset.nebula.name");
- }
-
- public float getManaFractionForDisplay(ItemStack stack) {
- return (float) getMana(stack) / (float) getMaxMana(stack);
- }
-
- public static void setMana(ItemStack stack, int mana) {
- ItemNBTHelper.setInt(stack, TAG_MANA, mana);
- }
-
- public void addMana(ItemStack stack, int mana) {
- setMana(stack, Math.min(getMana(stack) + mana, getMaxMana(stack)));
- stack.setItemDamage(getDamage(stack));
- }
-
- public boolean canExportManaToItem(ItemStack arg0, ItemStack arg1) {
- return true;
- }
-
- public boolean canExportManaToPool(ItemStack arg0, TileEntity arg1) {
- return false;
- }
-
- public boolean canReceiveManaFromItem(ItemStack arg0, ItemStack arg1) {
- return true;
- }
-
- public boolean canReceiveManaFromPool(ItemStack arg0, TileEntity arg1) {
- return true;
- }
-
- public int getMana(ItemStack stack) {
- return ItemNBTHelper.getInt(stack, TAG_MANA, 0);
- }
-
- public int getMaxMana(ItemStack arg0) {
- return MAX_MANA;
- }
-
- public boolean isNoExport(ItemStack arg0) {
- return true;
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/2/00c09243e2ac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/2/00c09243e2ac001c1d59e42be7477558
deleted file mode 100644
index 01bdfa9..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/2/00c09243e2ac001c1d59e42be7477558
+++ /dev/null
@@ -1,165 +0,0 @@
-package ab.common.block.tile;
-
-import java.util.List;
-
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.ChatComponentTranslation;
-import net.minecraft.util.ChatStyle;
-import net.minecraft.util.EnumChatFormatting;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-
-public class TileGameBoard extends TileInventory {
-
- protected String[] playersName = new String[] { "", "" };
- public byte[] slotChance = new byte[] { 0, 0, 0, 0 };
- protected int botTick = -1;
- public int endGameTick = -1;
- protected boolean requestUpdate;
- public boolean isSingleGame = true;
- public int clientTick[] = new int[] { 0, 0, 0, 0};
-
- public void updateEntity() {
- if(botTick > 0)
- botTick--;
- if(endGameTick > 0)
- endGameTick--;
- if(!worldObj.isRemote)
- updateServer();
- else
- updateClient();
- }
-
- protected void updateClient() {
- for(int i = 0; i < slotChance.length; i++)
- if(slotChance[i] > 0)
- clientTick[i]++;
- else
- clientTick[i] = 0;
- }
-
- protected void updateServer() {
- if(requestUpdate)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- boolean hasUpdate = false;
- if(isSingleGame && botTick == 0 && hasGame()) {
- for(int i = 2; i < 4; i++) {
- if(slotChance[i] == 0) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = -1;
- hasUpdate = true;
- break;
- }
- }
- }
- if(hasGame() && endGameTick == 0)
- finishGame();
- requestUpdate = hasUpdate;
- }
-
- public void setPlayer(EntityPlayer player) {
- if(isSingleGame) {
- playersName[0] = player.getCommandSenderName();
- playersName[1] = "";
- requestUpdate = true;
- botTick = 8;
- }
- }
-
- public boolean dropDice(EntityPlayer player) {
- if(isSingleGame) {
- // System.out.println(player.getCommandSenderName().equalsIgnoreCase(playersName[0]) && botTick <= 0);
- if(player.getCommandSenderName().equals(playersName[0]) && botTick <= 0) {
- boolean isLastDice = false;
- for(int i = 0; i < 2; i++) {
- if(slotChance[i] == 0 && !worldObj.isRemote) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = 18;
- requestUpdate = true;
- if(i == 1)
- isLastDice = true;
- break;
- }
- }
- if(isLastDice)
- endGameTick = 28;
- return true;
- }
- }
- return false;
- }
-
- public boolean hasGame() {
- if(isSingleGame)
- return !playersName[0].isEmpty();
- return !playersName[0].isEmpty() && !playersName[1].isEmpty();
- }
-
- public void finishGame() {
- if(worldObj.isRemote)
- return;
- if(isSingleGame) {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won");
- else
- sendNearMessage(playersName[0] + " you Lose!");
- resetGame();
- requestUpdate = true;
- }
- }
-
- public void sendNearMessage(String text) {
- List players = this.worldObj.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(this.xCoord, this.yCoord, this.zCoord, (this.xCoord + 1), (this.yCoord + 1), (this.zCoord + 1)).expand(3.5f, 3.5f, 3.5f));
- for(EntityPlayer player : players) {
- if(player != null)
- player.addChatMessage((new ChatComponentTranslation(text, new Object[] {})).setChatStyle((new ChatStyle()).setColor(EnumChatFormatting.DARK_GREEN)));
- }
- }
-
- public void resetGame() {
- playersName[0] = "";
- playersName[1] = "";
- for(int i = 0; i < slotChance.length; i++)
- slotChance[i] = 0;
- requestUpdate = true;
- botTick = -1;
- endGameTick = -1;
- }
-
- public void writeCustomNBT(NBTTagCompound cmp) {
- super.writeCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- cmp.setString("playerName" + i, playersName[i]);
- cmp.setByteArray("slotChance", slotChance);
- cmp.setInteger("botTick", botTick);
- cmp.setInteger("endGameTick", endGameTick);
- cmp.setBoolean("requestUpdate", requestUpdate);
- cmp.setBoolean("isSingleGame", isSingleGame);
- }
-
- public void readCustomNBT(NBTTagCompound cmp) {
- super.readCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- playersName[i] = cmp.getString("playerName" + i);
- botTick = cmp.getInteger("botTick");
- endGameTick = cmp.getInteger("endGameTick");
- slotChance = cmp.getByteArray("slotChance");
- requestUpdate = cmp.getBoolean("requestUpdate");
- isSingleGame = cmp.getBoolean("isSingleGame");
- }
-
- public int getInventoryStackLimit() {
- return 1;
- }
-
- public int getSizeInventory() {
- return 4;
- }
-
- public String getInventoryName() {
- return "inv.gameBoard";
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/2/50e7f860cab0001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/2/50e7f860cab0001c19bf8a91ac37238b
deleted file mode 100644
index 30663ff..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/2/50e7f860cab0001c19bf8a91ac37238b
+++ /dev/null
@@ -1,126 +0,0 @@
-package ab.common.item.equipment;
-
-import java.awt.Color;
-
-import ab.client.core.ClientHelper;
-import ab.common.core.handler.ConfigABHandler;
-import ab.common.item.ItemMod;
-import net.minecraft.block.Block;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.Minecraft;
-import net.minecraft.entity.Entity;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.item.EnumAction;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.ChunkCoordinates;
-import net.minecraft.util.MathHelper;
-import net.minecraft.util.Vec3;
-import net.minecraft.world.World;
-import net.minecraft.world.chunk.Chunk;
-import vazkii.botania.api.mana.IManaUsingItem;
-import vazkii.botania.api.mana.ManaItemHandler;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.core.helper.Vector3;
-
-public class ItemNebulaRod extends ItemMod implements IManaUsingItem {
-
- public ItemNebulaRod() {
- super("nebulaRod");
- this.setMaxStackSize(1);
- this.setNoRepair();
- this.setMaxDamage(100);
- }
-
- public boolean usesMana(ItemStack stack) {
- return true;
- }
-
- public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
- if(stack.getItemDamage() == 0)
- player.setItemInUse(stack, getMaxItemUseDuration(stack));
- return stack;
- }
-
- public EnumAction getItemUseAction(ItemStack par1ItemStack) {
- return EnumAction.bow;
- }
-
- public void onUpdate(ItemStack stack, World world, Entity player, int par4, boolean par5) {
- if(!world.isRemote && player instanceof EntityPlayer && player.ticksExisted % ConfigABHandler.nebulaWandCooldownTick == 0 && stack.getItemDamage() > 0 && ManaItemHandler.requestManaExactForTool(stack, (EntityPlayer)player, 140, true))
- stack.setItemDamage(stack.getItemDamage() - 1);
- }
-
- public void onUsingTick(ItemStack stack, EntityPlayer p, int time) {
- time = this.getMaxItemUseDuration(stack) - time;
- boolean isFinish = time > 80;
- if(time > 110 && !p.isSneaking()) {
- if(!p.capabilities.isCreativeMode)
- stack.setItemDamage(100);
- p.stopUsingItem();
- if(!p.worldObj.isRemote) {
- Vec3 vec3 = p.getLook(1.0F).normalize();
- MathHelper.floor_double(time);
- int limitXZ = ConfigABHandler.limitXZCoords;
- int posX = MathHelper.floor_double(p.posX + vec3.xCoord * 256);
- int posY = MathHelper.floor_double(p.posY);
- int posZ = MathHelper.floor_double(p.posZ + vec3.zCoord * 256);
- ChunkCoordinates chunkcoordinates = new ChunkCoordinates(Math.min(Math.max(posX, -(limitXZ - 1)), limitXZ - 1), posY, Math.min(Math.max(posZ, -(limitXZ - 1)), limitXZ - 1));
- int topY = getTopBlock(p.worldObj, posX, posZ);
- chunkcoordinates.posY = topY == -1 ? posY : topY;
- ((EntityPlayerMP)p).playerNetServerHandler.setPlayerLocation(chunkcoordinates.posX + 0.5D, chunkcoordinates.posY + 1.6D, chunkcoordinates.posZ + 0.5D, p.rotationYaw, p.rotationPitch);
- }
- }
- if(p.worldObj.isRemote) {
- int ticks = Math.min(100, time);
- int totalSpiritCount = (int)Math.max(3, ticks / 100.0f * 18);
- double tickIncrement = 360.0D / totalSpiritCount;
- int speed = 8;
- double wticks = (ticks * speed) - tickIncrement;
- double r = Math.sin((ticks) / 100.0D) * Math.max(0.75f, 1.4D * ticks / 100.0f);
- Vec3 look = p.getLookVec();
- float yawOffset = Minecraft.getMinecraft().thePlayer.getDisplayName() == p.getDisplayName() ? 0.0f : 1.62f;
- Vector3 l = new Vector3(look.xCoord, look.yCoord + yawOffset, look.zCoord);
- Vector3 player = Vector3.fromEntity(p).add(0.0f, 0.0f, 0.0f);
- Vector3 v3 = new Vector3();
- for(int i = 0; i < totalSpiritCount; i++) {
- float size = Math.max(0.215f, ticks / 100.0f);
- v3.set(Math.sin(wticks * Math.PI / 180.0D) / 1.825f * r, Math.cos(wticks * Math.PI / 180.0D) * r, 0.8f);
- ClientHelper.setRotation(p.rotationPitch, 1.0f, 0.0f, 0.0f, v3);
- ClientHelper.setRotation(-p.rotationYaw, 0.0f, 1.0f, 0.0f, v3);
- v3.add(l.multiply(1.0f)).add(player);
- wticks += tickIncrement;
- int color = p.worldObj.rand.nextBoolean() ? 0x931fec : 0x4b1682;
- float hsb[] = Color.RGBtoHSB(color & 255, color >> 8 & 255, color >> 16 & 255, null);
- int color1 = Color.HSBtoRGB(hsb[0], hsb[1], ticks / 100.0f);
- float[] colorsfx = { (color1 & 255) / 255.0f, (color1 >> 8 & 255) / 255.0f, (color1 >> 16 & 255) / 255.0f };
- float motionSpeed = 0.25f * Math.min(1.0f, (time - 80) / 30.0f);
- Botania.proxy.wispFX(p.worldObj, v3.x, v3.y, v3.z, colorsfx[0], colorsfx[1], colorsfx[2], 0.3F * size, isFinish ? (float)(look.xCoord * -1) * motionSpeed : 0.0f, isFinish ? (float)(look.yCoord * -1) * motionSpeed : 0.0f, isFinish ? (float)(look.zCoord * -1) * motionSpeed : 0.0f, 0.3F);
- Botania.proxy.wispFX(p.worldObj, v3.x, v3.y, v3.z, colorsfx[0], colorsfx[1], colorsfx[2], (float)(Math.random() * 0.1F + 0.05F) * size, (float)(Math.random() - 0.5D) * 0.05F, (float)(Math.random() - 0.5D) * 0.05F, (float)(Math.random() - 0.5D) * 0.05F, 0.4F);
- }
- }
- }
-
- public int getMaxItemUseDuration(ItemStack par1ItemStack) {
- return 72000;
- }
-
- public boolean isFull3D() {
- return true;
- }
-
- public int getTopBlock(World world, int posX, int posZ) {
- Chunk chunk = world.getChunkFromBlockCoords(posX, posZ);
- int x = posX;
- int z = posZ;
- int k = chunk.getTopFilledSegment() + 15;
- System.out.println(chunk.getTopFilledSegment());
- posX &= 15;
- for(posZ &= 15; k > 0; --k) {
- Block block = chunk.getBlock(posX, k, posZ);
- if(!block.isAir(world, x, k, z))
- return k + 1;
- }
- return -1;
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/2/e09667f429b0001c18a5eba32f24fffa b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/2/e09667f429b0001c18a5eba32f24fffa
deleted file mode 100644
index 1a08af0..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/2/e09667f429b0001c18a5eba32f24fffa
+++ /dev/null
@@ -1,25 +0,0 @@
-package ab.common.item.relic;
-
-import java.util.List;
-
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraftforge.common.MinecraftForge;
-import net.minecraftforge.event.entity.living.LivingDropsEvent;
-
-public class ItemSehrimnirHide extends ItemModRelic {
-
- public ItemSehrimnirHide() {
- super("sehrimnirHide");
- MinecraftForge.EVENT_BUS.register(this);
- }
-
- @SubscribeEvent
- public void onPlayerAttack(LivingDropsEvent event) {
- List items = event.drops;
- for(EntityItem entity : items) {
- if(!event.entityLiving.worldObj.isRemote)
- event.entityLiving.worldObj.spawnEntityInWorld(entity);
- }
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/2/e098bf5d07b0001c18a5eba32f24fffa b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/2/e098bf5d07b0001c18a5eba32f24fffa
deleted file mode 100644
index d7311a5..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/2/e098bf5d07b0001c18a5eba32f24fffa
+++ /dev/null
@@ -1,57 +0,0 @@
-package ab.common.block.subtile;
-
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.world.World;
-import vazkii.botania.api.subtile.SubTileGenerating;
-
-public class SubTileArdentAzarcissus extends SubTileGenerating {
-
- public static final String playerName = "ArdentAzarcissus#21sda2gaj91*21df#111sfq3jrns@#";
- int cooldown;
- int workMana = 400;
-
- public void onUpdate() {
- super.onUpdate();
- int posX = this.supertile.xCoord;
- int posY = this.supertile.yCoord;
- int posZ = this.supertile.zCoord;
- World world = this.supertile.getWorldObj();
- for(int i = -1; i <= 1; i++)
- for(int j = -1; i <= 1; j++) {
-// if(i == 0 || j == 0)
-// continue;
- int x = posX + i;
- int z = posZ + j;
- TileEntity tile = world.getTileEntity(x, posY, z);
- if(tile != null && tile instanceof TileGameBoard) {
- TileGameBoard board = (TileGameBoard)tile;
- if(board.isSingleGame) {
- if(!board.hasGame())
- board.setPlayer(playerName);
- else
- board.dropDice(playerName);
- }
- }
- }
- }
-
- public int getMaxMana() {
- return 15000;
- }
-
- public int getColor() {
- return 0xd2cdb2;
- }
-
- public void writeToPacketNBT(NBTTagCompound cmp) {
- super.writeToPacketNBT(cmp);
- cmp.setInteger("cooldown", this.cooldown);
- }
-
- public void readFromPacketNBT(NBTTagCompound cmp) {
- super.readFromPacketNBT(cmp);
- this.cooldown = cmp.getInteger("cooldown");
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/2/e0e3023c03c0001c1965b122d2f8f403 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/2/e0e3023c03c0001c1965b122d2f8f403
new file mode 100644
index 0000000..8af2ec3
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/2/e0e3023c03c0001c1965b122d2f8f403
@@ -0,0 +1,158 @@
+package ab.common.item.relic;
+
+import java.awt.Color;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.common.core.handler.NetworkHandler;
+import ab.common.lib.register.ItemListAB;
+import net.minecraft.block.Block;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.util.MathHelper;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.api.mana.ManaItemHandler;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class ItemSphereNavigation extends ItemModRelic {
+
+ public static final int rangeSearch = 16;
+ public static final int maxCooldown = 112;
+ public static final int manaCost = 1750;
+
+ public ItemSphereNavigation() {
+ super("sphereNavigation");
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int pos, boolean equipped) {
+ super.onUpdate(stack, world, entity, pos, equipped);
+ if(entity instanceof EntityPlayer) {
+ EntityPlayer player = (EntityPlayer)entity;
+ if(!world.isRemote && getFindBlock(stack) != null && canWork(stack) && ManaItemHandler.requestManaExactForTool(stack, player, manaCost, true)) {
+ setMaxTick(stack);
+ NetworkHandler.sendPacketToFindBlocks((EntityPlayerMP)player, getFindBlock(stack), getFindMeta(stack));
+ }
+ }
+ }
+
+ public static void findBlocks(World world, Block findBlock, int findMeta, EntityPlayer player) {
+ if(world.isRemote) {
+ ItemStack renderStack = null;
+ int maxFindedBlocks = 25;
+ int findedBlocks = 0;
+ label1703:
+ for(int y = -rangeSearch * 2; y < rangeSearch; y++) {
+ for(int x = -rangeSearch; x < rangeSearch; x++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks + 4)))
+ continue;
+ for(int z = -rangeSearch; z < rangeSearch; z++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks + 4)))
+ continue;
+ else if(findedBlocks >= maxFindedBlocks)
+ break label1703;
+ int posX = MathHelper.floor_double(player.posX) + x;
+ int posY = MathHelper.floor_double(player.posY) + y;
+ int posZ = MathHelper.floor_double(player.posZ) + z;
+ if(posY < 0)
+ continue;
+ Block block = world.getBlock(posX, posY, posZ);
+ if(!Block.isEqualTo(block, findBlock))
+ continue;
+ int meta = world.getBlockMetadata(posX, posY, posZ);
+ if(meta == findMeta) {
+ if(renderStack == null)
+ renderStack = getRenderStackForBlock(world, block, meta, posX, posY, posZ);
+ findedBlocks++;
+ float maxAge = 2.7f + (0.5f * (float)(Math.random()));
+ Botania.proxy.setWispFXDepthTest(false);
+ Botania.proxy.setWispFXDistanceLimit(false);
+ float far = 120.0f - (((Math.abs(x) + Math.min(rangeSearch, Math.abs(y)) + Math.abs(z)) / (rangeSearch * 4.0f)) * 120.0f);
+ if(far <= 60)
+ far *= 0.15f;
+ Color color = new Color(Color.HSBtoRGB(far / 360.0f, 0.9f + (float)(Math.random() * 0.1f), 1.0f));
+ for(int i = 0; i < 11; i++)
+ Botania.proxy.wispFX(world, posX + 0.5f + (Math.random() - 0.5f), posY + 0.5f + (Math.random() - 0.5f), posZ + 0.5f + (Math.random() - 0.5f), color.getRed() / 100.0f, color.getGreen() / 100.0f, color.getBlue() / 100.0f, 0.3f + (float)(Math.random() * 0.25f), 0.0f, maxAge);
+ Botania.proxy.setWispFXDistanceLimit(true);
+ Botania.proxy.setWispFXDepthTest(true);
+ }
+ }
+ }
+ }
+ if(renderStack != null)
+ ItemsRemainingRender.set(renderStack, "íàéäåíî: " + findedBlocks);
+ }
+ }
+
+ public static ItemStack getRenderStackForBlock(World world, Block block, int meta, int x, int y, int z) {
+ if(block != null) {
+ Item item = Item.getItemFromBlock(block);
+ if(item != null) {
+ ItemStack findStack = new ItemStack(block, 1, meta);
+ if(findStack != null)
+ return findStack;
+ } else {
+ Item item1 = block.getItem(world, x, y, z);
+ if(item1 != null) {
+ ItemStack findStack = new ItemStack(item1, 1, meta);
+ if(findStack != null)
+ return findStack;
+ }
+ }
+ }
+ return null;
+ }
+
+ public boolean onItemUse(ItemStack stack, EntityPlayer p, World world, int x, int y, int z, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
+ if(p.isSneaking()) {
+ Block block = world.getBlock(x, y, z);
+ if(block != null) {
+ int meta = world.getBlockMetadata(x, y, z);
+ ItemStack findStack = getRenderStackForBlock(world, block, meta, x, y, z);
+ if(findStack != null) {
+ setFindBlock(stack, block, meta);
+ if(world.isRemote)
+ ItemsRemainingRender.set(findStack, findStack.getDisplayName());
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public boolean canWork(ItemStack stack) {
+ int tick = ItemNBTHelper.getInt(stack, "cooldown", 0);
+ if(tick == 0)
+ return true;
+ else if(tick > 0)
+ ItemNBTHelper.setInt(stack, "cooldown", tick - 1);
+ return false;
+ }
+
+ public void setMaxTick(ItemStack stack) {
+ ItemNBTHelper.setInt(stack, "cooldown", maxCooldown);
+ }
+
+ public static void setFindBlock(ItemStack stack, Block block, int meta) {
+ ItemNBTHelper.setInt(stack, "findBlockID", Block.getIdFromBlock(block));
+ ItemNBTHelper.setInt(stack, "findBlockMeta", meta);
+ }
+
+ public static Block getFindBlock(ItemStack stack) {
+ int blockID = ItemNBTHelper.getInt(stack, "findBlockID", 0);
+ if(blockID == 0)
+ return null;
+ else
+ return Block.getBlockById(blockID);
+ }
+
+ public static int getFindMeta(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "findBlockMeta", -1);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/20/304ff7f3f5b0001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/20/304ff7f3f5b0001c19bf8a91ac37238b
deleted file mode 100644
index 09a9406..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/20/304ff7f3f5b0001c19bf8a91ac37238b
+++ /dev/null
@@ -1,85 +0,0 @@
-package ab.client.core.handler;
-
-import java.awt.Color;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.armor.ItemNebulaArmor;
-import ab.common.item.equipment.armor.ItemNebulaHelm;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.ItemRenderer;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.texture.TextureMap;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraftforge.client.event.RenderPlayerEvent;
-import vazkii.botania.api.item.IPhantomInkable;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class PlayerRendererHandler {
-
- @SubscribeEvent
- public void onPlayerRender(RenderPlayerEvent.Specials.Post event) {
- EntityPlayer player = event.entityPlayer;
- ItemStack item = player.getCurrentArmor(3);
- if(item != null && item.getItem() instanceof ItemNebulaHelm) {
- Item helm = player.getCurrentArmor(3).getItem();
- boolean hasPhantomInk = helm instanceof IPhantomInkable && ((IPhantomInkable)helm).hasPhantomInk(item);
- if(!hasPhantomInk && ((ItemNebulaHelm)helm).enableCosmicFace(item)) {
- float angelX = event.renderer.modelBipedMain.bipedHead.rotateAngleX * 180.0F / (float)Math.PI;
- float angelY = event.renderer.modelBipedMain.bipedHead.rotateAngleY * 180.0F / (float)Math.PI;
- GL11.glPushMatrix();
- if(player.isSneaking())
- GL11.glTranslatef(event.renderer.modelBipedMain.bipedHead.rotationPointX * 0.0625f, event.renderer.modelBipedMain.bipedHead.rotationPointY * 0.0625f, 0.0f);
- GL11.glRotatef(angelY, 0.0F, 1.0F, 0.0F);
- GL11.glRotatef(angelX, 1.0F, 0.0F, 0.0F);
- renderCosmicFace();
- GL11.glPopMatrix();
- }
- }
- }
-
- private void renderCosmicFace() {
- double worldTime = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- GL11.glPushMatrix();
- GL11.glEnable(GL11.GL_TEXTURE_2D);
- GL11.glDisable(2912);
- // GL11.glDisable(2884);
-
- GL11.glPushMatrix();
- GL11.glScalef(0.5f, 0.4f, 0.4f);
- GL11.glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
- GL11.glTranslatef(-0.5f, -0.8675f, 0.0f);
- GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
- ClientHelper.renderCosmicBackground();
- GL11.glPopMatrix();
-
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- (Minecraft.getMinecraft()).renderEngine.bindTexture(TextureMap.locationItemsTexture);
- GL11.glTranslatef(-0.2F, -0.35F, -0.25F);
- GL11.glScalef(0.4f, 0.4f, 0.4f);
- float f = ItemNebulaArmor.nebulaEyes.getMinU();
- float f1 = ItemNebulaArmor.nebulaEyes.getMaxU();
- float f2 = ItemNebulaArmor.nebulaEyes.getMinV();
- float f3 = ItemNebulaArmor.nebulaEyes.getMaxV();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float r = color.getRed() / 510.0F;
- float g = color.getGreen() / 510.0F;
- float b = color.getBlue() / 510.0F;
- GL11.glColor4f(0.5f + r, 0.5f + g, 0.5f + b, 0.685f + (float)Math.sin(worldTime / 50.0D) * 0.175F);
- ItemRenderer.renderItemIn2D(Tessellator.instance, f1, f2, f, f3, ItemNebulaArmor.nebulaEyes.getIconWidth(), ItemNebulaArmor.nebulaEyes.getIconHeight(), 0.03125F);
- GL11.glDisable(3042);
- GL11.glEnable(2884);
- GL11.glEnable(32826);
- GL11.glPopMatrix();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/20/408d071c01c0001c1965b122d2f8f403 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/20/408d071c01c0001c1965b122d2f8f403
new file mode 100644
index 0000000..3dcb0ca
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/20/408d071c01c0001c1965b122d2f8f403
@@ -0,0 +1,157 @@
+package ab.common.item.relic;
+
+import java.awt.Color;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.common.core.handler.NetworkHandler;
+import ab.common.lib.register.ItemListAB;
+import net.minecraft.block.Block;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.util.MathHelper;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.api.mana.ManaItemHandler;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class ItemSphereNavigation extends ItemModRelic {
+
+ public static final int rangeSearch = 16;
+ public static final int maxCooldown = 112;
+ public static final int manaCost = 1750;
+
+ public ItemSphereNavigation() {
+ super("sphereNavigation");
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int pos, boolean equipped) {
+ super.onUpdate(stack, world, entity, pos, equipped);
+ if(entity instanceof EntityPlayer) {
+ EntityPlayer player = (EntityPlayer)entity;
+ if(!world.isRemote && getFindBlock(stack) != null && canWork(stack) && ManaItemHandler.requestManaExactForTool(stack, player, manaCost, true)) {
+ setMaxTick(stack);
+ NetworkHandler.sendPacketToFindBlocks((EntityPlayerMP)player, getFindBlock(stack), getFindMeta(stack));
+ }
+ }
+ }
+
+ public static void findBlocks(World world, Block findBlock, int findMeta, EntityPlayer player) {
+ if(world.isRemote) {
+ ItemStack renderStack = null;
+ int findedBlocks = 0;
+ label1703:
+ for(int x = -rangeSearch; x < rangeSearch; x++) {
+ if(world.rand.nextBoolean())
+ continue;
+ for(int y = -rangeSearch * 2; y < rangeSearch; y++) {
+ for(int z = -rangeSearch; z < rangeSearch; z++) {
+ if(world.rand.nextBoolean())
+ continue;
+ else if(findedBlocks > 24)
+ break label1703;
+ int posX = MathHelper.floor_double(player.posX) + x;
+ int posY = MathHelper.floor_double(player.posY) + y;
+ int posZ = MathHelper.floor_double(player.posZ) + z;
+ if(posY < 0)
+ continue;
+ Block block = world.getBlock(posX, posY, posZ);
+ if(!Block.isEqualTo(block, findBlock))
+ continue;
+ int meta = world.getBlockMetadata(posX, posY, posZ);
+ if(meta == findMeta) {
+ if(renderStack == null)
+ renderStack = getRenderStackForBlock(world, block, meta, posX, posY, posZ);
+ findedBlocks++;
+ float maxAge = 2.7f + (0.5f * (float)(Math.random()));
+ Botania.proxy.setWispFXDepthTest(false);
+ Botania.proxy.setWispFXDistanceLimit(false);
+ float far = 120.0f - (((Math.abs(x) + Math.min(rangeSearch, Math.abs(y)) + Math.abs(z)) / (rangeSearch * 4.0f)) * 120.0f);
+ if(far <= 60)
+ far *= 0.15f;
+ Color color = new Color(Color.HSBtoRGB(far / 360.0f, 0.9f + (float)(Math.random() * 0.1f), 1.0f));
+ for(int i = 0; i < 11; i++)
+ Botania.proxy.wispFX(world, posX + 0.5f + (Math.random() - 0.5f), posY + 0.5f + (Math.random() - 0.5f), posZ + 0.5f + (Math.random() - 0.5f), color.getRed() / 100.0f, color.getGreen() / 100.0f, color.getBlue() / 100.0f, 0.3f + (float)(Math.random() * 0.25f), 0.0f, maxAge);
+ Botania.proxy.setWispFXDistanceLimit(true);
+ Botania.proxy.setWispFXDepthTest(true);
+ }
+ }
+ }
+ }
+ if(renderStack != null)
+ ItemsRemainingRender.set(renderStack, "íàéäåíî: " + findedBlocks);
+ }
+ }
+
+ public static ItemStack getRenderStackForBlock(World world, Block block, int meta, int x, int y, int z) {
+ if(block != null) {
+ Item item = Item.getItemFromBlock(block);
+ if(item != null) {
+ ItemStack findStack = new ItemStack(block, 1, meta);
+ if(findStack != null)
+ return findStack;
+ } else {
+ Item item1 = block.getItem(world, x, y, z);
+ if(item1 != null) {
+ ItemStack findStack = new ItemStack(item1, 1, meta);
+ if(findStack != null)
+ return findStack;
+ }
+ }
+ }
+ return null;
+ }
+
+ public boolean onItemUse(ItemStack stack, EntityPlayer p, World world, int x, int y, int z, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
+ if(p.isSneaking()) {
+ Block block = world.getBlock(x, y, z);
+ if(block != null) {
+ int meta = world.getBlockMetadata(x, y, z);
+ ItemStack findStack = getRenderStackForBlock(world, block, meta, x, y, z);
+ if(findStack != null) {
+ setFindBlock(stack, block, meta);
+ if(world.isRemote)
+ ItemsRemainingRender.set(findStack, findStack.getDisplayName());
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public boolean canWork(ItemStack stack) {
+ int tick = ItemNBTHelper.getInt(stack, "cooldown", 0);
+ if(tick == 0)
+ return true;
+ else if(tick > 0)
+ ItemNBTHelper.setInt(stack, "cooldown", tick - 1);
+ return false;
+ }
+
+ public void setMaxTick(ItemStack stack) {
+ ItemNBTHelper.setInt(stack, "cooldown", maxCooldown);
+ }
+
+ public static void setFindBlock(ItemStack stack, Block block, int meta) {
+ ItemNBTHelper.setInt(stack, "findBlockID", Block.getIdFromBlock(block));
+ ItemNBTHelper.setInt(stack, "findBlockMeta", meta);
+ }
+
+ public static Block getFindBlock(ItemStack stack) {
+ int blockID = ItemNBTHelper.getInt(stack, "findBlockID", 0);
+ if(blockID == 0)
+ return null;
+ else
+ return Block.getBlockById(blockID);
+ }
+
+ public static int getFindMeta(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "findBlockMeta", -1);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/20/807d6c8e36b0001c1746c57a5fe46fd3 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/20/807d6c8e36b0001c1746c57a5fe46fd3
deleted file mode 100644
index 736809f..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/20/807d6c8e36b0001c1746c57a5fe46fd3
+++ /dev/null
@@ -1,53 +0,0 @@
-package ab.common.item.relic;
-
-import java.lang.reflect.InvocationTargetException;
-import java.util.List;
-
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import cpw.mods.fml.relauncher.ReflectionHelper;
-import net.minecraft.entity.EntityLivingBase;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.item.ItemStack;
-import net.minecraft.world.World;
-import net.minecraftforge.common.MinecraftForge;
-import net.minecraftforge.event.entity.living.LivingDropsEvent;
-
-public class ItemSehrimnirHide extends ItemModRelic {
-
- public static final String[] dropFewItems = new String[] { "dropFewItems", "func_70628_a" };
-
- public ItemSehrimnirHide() {
- super("sehrimnirHide");
- MinecraftForge.EVENT_BUS.register(this);
- }
-
- @SubscribeEvent
- public void onPlayerAttack(LivingDropsEvent event) {
-
-// .invoke(event.entityLiving, new Object[] {true, 5});
-
-
-
- EntityLivingBase liv = event.entityLiving;
- try {
- ReflectionHelper.findMethod(EntityLivingBase.class, liv, dropFewItems, new Class[0]).invoke(liv, new Object[] {true, 5});
- } catch (Exception e) {
- e.printStackTrace();
- }
-
-
-// List items = event.drops;
-// World world = event.entityLiving.worldObj;
-// double posX = event.entityLiving.posX;
-// double posY = event.entityLiving.posY;
-// double posZ = event.entityLiving.posZ;
-// for(EntityItem entity : items) {
-// if(!world.isRemote) {
-// ItemStack loot = entity.getEntityItem().copy();
-// loot.stackSize = Math.max(1, (int)(loot.stackSize / 1.5f));
-// EntityItem item = new EntityItem(world, posX, posY, posZ, loot);
-// world.spawnEntityInWorld(item);
-// }
-// }
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/22/10a93ff0fdac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/22/10a93ff0fdac001c1d59e42be7477558
deleted file mode 100644
index e129ea9..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/22/10a93ff0fdac001c1d59e42be7477558
+++ /dev/null
@@ -1,205 +0,0 @@
-package ab.common.block.tile;
-
-import java.util.List;
-
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.ChatComponentTranslation;
-import net.minecraft.util.ChatStyle;
-import net.minecraft.util.EnumChatFormatting;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.common.block.tile.TileMod;
-
-public class TileGameBoard extends TileMod {
-
- public String[] playersName = new String[] { "", "" };
- public byte[] slotChance = new byte[] { 0, 0, 0, 0 };
- protected int botTick = -1;
- public int endGameTick = -1;
- protected boolean requestUpdate;
- public boolean isSingleGame = true;
- public int clientTick[] = new int[] { 0, 0, 0, 0 };
-
- public void updateEntity() {
- if(botTick > 0)
- botTick--;
- if(endGameTick > 0)
- endGameTick--;
- if(!worldObj.isRemote)
- updateServer();
- else
- updateAnimationTicks();
- }
-
- public void updateAnimationTicks() {
- for(int i = 0; i < slotChance.length; i++)
- if(slotChance[i] > 0)
- clientTick[i]++;
- else
- clientTick[i] = 0;
- }
-
- protected void updateServer() {
- if(hasGame() && endGameTick == 0)
- finishGame();
- if(requestUpdate)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- boolean hasUpdate = false;
- if(isSingleGame && botTick == 0 && hasGame()) {
- for(int i = 2; i < 4; i++) {
- if(slotChance[i] == 0) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = -1;
- hasUpdate = true;
- break;
- }
- }
- }
- requestUpdate = hasUpdate;
- }
-
- public void setPlayer(EntityPlayer player) {
- if(isSingleGame) {
- playersName[0] = player.getCommandSenderName();
- playersName[1] = "";
- requestUpdate = true;
- botTick = 8;
- } else {
- if(playersName[0].isEmpty())
- playersName[0] = player.getCommandSenderName();
- else if(!playersName[0].equals(player.getCommandSenderName()))
- playersName[1] = player.getCommandSenderName();
- requestUpdate = true;
- }
- }
-
- public boolean dropDice(EntityPlayer player) {
- if(isSingleGame) {
- if(player.getCommandSenderName().equals(playersName[0]) && botTick == -1) {
- boolean isLastDice = false;
- boolean hasDrop = false;
- for(int i = 0; i < 2; i++) {
- if(slotChance[i] == 0) {
- hasDrop = true;
- if(!worldObj.isRemote) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = 18;
- requestUpdate = true;
- if(i == 1)
- isLastDice = true;
- }
- break;
- }
- }
- if(isLastDice)
- endGameTick = 28;
- return hasDrop;
- }
- } else {
- for(int i = 0; i < playersName.length; i++) {
- if(player.getCommandSenderName().equals(playersName[i])) {
- boolean hasDrop = false;
- for(int j = i * 2; j < (i + 1) * 2; j++) {
- if(slotChance[j] == 0) {
- hasDrop = true;
- if(!worldObj.isRemote) {
- slotChance[j] = (byte)(worldObj.rand.nextInt(6) + 1);
- requestUpdate = true;
- if(hasFullDice())
- endGameTick = 28;
- }
- break;
- }
- }
- return hasDrop;
- }
- }
- }
- return false;
- }
-
- public boolean hasFullDice() {
- boolean hasFull = false;
- for(int i = 0; i < slotChance.length; i++) {
- if(!(slotChance[i] > 0))
- return false;
- hasFull = slotChance[i] > 0;
- }
- return hasFull;
- }
-
- public boolean hasGame() {
- if(isSingleGame)
- return !playersName[0].isEmpty();
- else
- for(int i = 0; i < playersName.length; i++)
- if(!playersName[i].isEmpty())
- return true;
- return false;
- }
-
- public void finishGame() {
- if(worldObj.isRemote)
- return;
- if(isSingleGame) {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won");
- else if((slotChance[0] + slotChance[1]) == (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " not win");
- else
- sendNearMessage(playersName[0] + " you Lose!");
- resetGame();
- } else {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won!");
- else if((slotChance[0] + slotChance[1]) == (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " " + playersName[1] + "we are not win");
- else
- sendNearMessage(playersName[1] + " you Won!");
- resetGame();
- }
- }
-
- public void sendNearMessage(String text) {
- List players = this.worldObj.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(this.xCoord, this.yCoord, this.zCoord, (this.xCoord + 1), (this.yCoord + 1), (this.zCoord + 1)).expand(3.5f, 3.5f, 3.5f));
- for(EntityPlayer player : players) {
- if(player != null)
- player.addChatMessage((new ChatComponentTranslation(text, new Object[] {})).setChatStyle((new ChatStyle()).setColor(EnumChatFormatting.DARK_GREEN)));
- }
- }
-
- public void resetGame() {
- playersName[0] = "";
- playersName[1] = "";
- for(int i = 0; i < slotChance.length; i++)
- slotChance[i] = 0;
- botTick = -1;
- endGameTick = -1;
- requestUpdate = true;
- }
-
- public void writeCustomNBT(NBTTagCompound cmp) {
- super.writeCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- cmp.setString("playerName" + i, playersName[i]);
- cmp.setByteArray("slotChance", slotChance);
- cmp.setInteger("botTick", botTick);
- cmp.setInteger("endGameTick", endGameTick);
- cmp.setBoolean("requestUpdate", requestUpdate);
- cmp.setBoolean("isSingleGame", isSingleGame);
- }
-
- public void readCustomNBT(NBTTagCompound cmp) {
- super.readCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- playersName[i] = cmp.getString("playerName" + i);
- botTick = cmp.getInteger("botTick");
- endGameTick = cmp.getInteger("endGameTick");
- slotChance = cmp.getByteArray("slotChance");
- requestUpdate = cmp.getBoolean("requestUpdate");
- isSingleGame = cmp.getBoolean("isSingleGame");
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/22/90e52cb838b0001c1746c57a5fe46fd3 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/22/90e52cb838b0001c1746c57a5fe46fd3
deleted file mode 100644
index af3bddc..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/22/90e52cb838b0001c1746c57a5fe46fd3
+++ /dev/null
@@ -1,53 +0,0 @@
-package ab.common.item.relic;
-
-import java.lang.reflect.InvocationTargetException;
-import java.util.List;
-
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import cpw.mods.fml.relauncher.ReflectionHelper;
-import net.minecraft.entity.EntityLivingBase;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.item.ItemStack;
-import net.minecraft.world.World;
-import net.minecraftforge.common.MinecraftForge;
-import net.minecraftforge.event.entity.living.LivingDropsEvent;
-
-public class ItemSehrimnirHide extends ItemModRelic {
-
- public static final String[] dropFewItems = new String[] { "dropFewItems", "func_70628_a" };
-
- public ItemSehrimnirHide() {
- super("sehrimnirHide");
- MinecraftForge.EVENT_BUS.register(this);
- }
-
- @SubscribeEvent
- public void onPlayerAttack(LivingDropsEvent event) {
-
-// .invoke(event.entityLiving, new Object[] {true, 5});
-
- System.out.println(event.getClass().getDeclaredMethods());
-
-// EntityLivingBase liv = event.entityLiving;
-// try {
-// ReflectionHelper.findMethod(EntityLivingBase.class, liv, dropFewItems, new Class[] {Boolean.class, Integer.class}).invoke(liv, new Object[] {true, 5});
-// } catch (Exception e) {
-// e.printStackTrace();
-// }
-
-
-// List items = event.drops;
-// World world = event.entityLiving.worldObj;
-// double posX = event.entityLiving.posX;
-// double posY = event.entityLiving.posY;
-// double posZ = event.entityLiving.posZ;
-// for(EntityItem entity : items) {
-// if(!world.isRemote) {
-// ItemStack loot = entity.getEntityItem().copy();
-// loot.stackSize = Math.max(1, (int)(loot.stackSize / 1.5f));
-// EntityItem item = new EntityItem(world, posX, posY, posZ, loot);
-// world.spawnEntityInWorld(item);
-// }
-// }
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/22/c0e1f612b8ad001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/22/c0e1f612b8ad001c1d59e42be7477558
deleted file mode 100644
index ffc8fef..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/22/c0e1f612b8ad001c1d59e42be7477558
+++ /dev/null
@@ -1,96 +0,0 @@
-package ab.client.render.tile;
-
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.model.ModelDiceFate;
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.entity.RenderManager;
-import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.ResourceLocation;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class RenderTileGameBoard extends TileEntitySpecialRenderer {
-
- private static final ModelDiceFate model = new ModelDiceFate();
- private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/gameDice.png");
- private static final ResourceLocation textureEnemy = new ResourceLocation("ab:textures/model/gameDice_enemy.png");
-
- public void renderTileEntityAt(TileEntity tile, double x, double y, double z, float ticks) {
- double time = (tile.getWorldObj() == null) ? 0.0D : (ClientTickHandler.ticksInGame + ticks);
- if(tile != null)
- time += (new Random((tile.xCoord ^ tile.yCoord ^ tile.zCoord))).nextInt(360);
- TileGameBoard board = (TileGameBoard)tile;
- GL11.glEnable(3042);
- GL11.glEnable(32826);
- GL11.glBlendFunc(770, 771);
- GL11.glPushMatrix();
- GL11.glTranslated(x + 0.5f, y, z + 0.5f);
- GL11.glRotatef(90.0f - RenderManager.instance.playerViewY, 0.0f, 1.0f, 0.0f);
- for(int i = 0; i < board.slotChance.length; i++) {
- if(board.slotChance[i] == 0)
- continue;
- time += i * 83.256f;
- GL11.glPushMatrix();
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- float posX = 0.0f;
- float posZ = 0.0f;
- float dropAnim = (1.0f - (Math.min(160.0f, (board.clientTick[i] * board.clientTick[i] * 1.25f) + ticks) / 160.0f));
- dropAnim = Math.min(1.0f, Math.max(dropAnim, 0));
- float alpha = (float)Math.cos(dropAnim);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, alpha);
- switch(i) {
- case 0:
- posX = 0.16f + 0.08f * dropAnim;
- posZ = 0.16f + 0.08f * dropAnim;
- break;
- case 1:
- posX = -0.16f - 0.08f * dropAnim;
- posZ = 0.16f + 0.08f * dropAnim;
- break;
- case 2:
- posX = 0.16f + 0.08f * dropAnim;
- posZ = -0.16f - 0.08f * dropAnim;
- break;
- case 3:
- posX = -0.16f - 0.08f * dropAnim;
- posZ = -0.16f - 0.08f * dropAnim;
- break;
- }
- GL11.glTranslated(posX, 0.02f + Math.sin(time / 12.0D) / 48.0D + (0.28f * dropAnim), posZ);
- GL11.glScalef(0.25f, 0.25f, 0.25f);
- Minecraft.getMinecraft().renderEngine.bindTexture(i > 1 ? textureEnemy : texture);
- float dropAngel = 70.0f * dropAnim;
- switch(board.slotChance[i]) {
- case 1:
- model.render(180.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 2:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 3:
- model.render(90.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 4:
- model.render(270.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 5:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 270.0f);
- break;
- case 6:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 90.0f);
- break;
- default:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- }
- GL11.glPopMatrix();
- }
- GL11.glPopMatrix();
- GL11.glEnable(32826);
- GL11.glDisable(3042);
- }
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/22/e0d7f9a29cb1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/22/e0d7f9a29cb1001c19bf8a91ac37238b
deleted file mode 100644
index 380be0a..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/22/e0d7f9a29cb1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,243 +0,0 @@
-package ab.client.core;
-
-import java.awt.Color;
-import java.nio.FloatBuffer;
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.gui.ScaledResolution;
-import net.minecraft.client.renderer.ActiveRenderInfo;
-import net.minecraft.client.renderer.GLAllocation;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.RenderHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.entity.RenderItem;
-import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.IIcon;
-import net.minecraft.util.ResourceLocation;
-import net.minecraft.util.StatCollector;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-import vazkii.botania.client.core.handler.HUDHandler;
-import vazkii.botania.common.block.ModBlocks;
-import vazkii.botania.common.core.helper.Vector3;
-
-public class ClientHelper {
-
- public static final ResourceLocation miscHuds = new ResourceLocation("ab:textures/misc/miscHuds.png");
- private static final ResourceLocation field_147529_c = new ResourceLocation("textures/environment/end_sky.png");
- private static final ResourceLocation field_147526_d = new ResourceLocation("textures/entity/end_portal.png");
- private static final Random field_147527_e = new Random(31100L);
- public static Minecraft mc = Minecraft.getMinecraft();
- private static FloatBuffer field_147528_b = GLAllocation.createDirectFloatBuffer(16);
-
- public static void renderCosmicBackground() {
- GL11.glDisable(GL11.GL_LIGHTING);
- field_147527_e.setSeed(31100L);
- float f4 = 0.24F;
- for (int i = 0; i < 16; i++) {
- GL11.glPushMatrix();
- float f5 = (16 - i);
- float f6 = 0.0625F;
- float f7 = 1.0F / (f5 + 1.0F);
- if (i == 0) {
- mc.renderEngine.bindTexture(field_147529_c);
- f7 = 0.1F;
- f5 = 65.0F;
- f6 = 0.125F;
- GL11.glEnable(GL11.GL_BLEND);
- GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
- }
- if (i == 1) {
- mc.renderEngine.bindTexture(field_147526_d);
- GL11.glEnable(GL11.GL_BLEND);
- GL11.glBlendFunc(GL11.GL_ONE, GL11.GL_ONE);
- f6 = 0.5F;
- }
- GL11.glTranslatef(0.0f, 1.5f, 0.0f);
- GL11.glTexGeni(GL11.GL_S, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_OBJECT_LINEAR);
- GL11.glTexGeni(GL11.GL_T, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_OBJECT_LINEAR);
- GL11.glTexGeni(GL11.GL_R, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_OBJECT_LINEAR);
- GL11.glTexGeni(GL11.GL_Q, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_EYE_LINEAR);
- GL11.glTexGen(GL11.GL_S, GL11.GL_OBJECT_PLANE, func_147525_a(1.0F, 0.0F, 0.0F, 0.0F));
- GL11.glTexGen(GL11.GL_T, GL11.GL_OBJECT_PLANE, func_147525_a(0.0F, 0.0F, 1.0F, 0.0F));
- GL11.glTexGen(GL11.GL_R, GL11.GL_OBJECT_PLANE, func_147525_a(0.0F, 0.0F, 0.0F, 1.0F));
- GL11.glTexGen(GL11.GL_Q, GL11.GL_EYE_PLANE, func_147525_a(0.0F, 1.0F, 0.0F, 0.0F));
- GL11.glEnable(GL11.GL_TEXTURE_GEN_S);
- GL11.glEnable(GL11.GL_TEXTURE_GEN_T);
- GL11.glEnable(GL11.GL_TEXTURE_GEN_R);
- GL11.glEnable(GL11.GL_TEXTURE_GEN_Q);
- GL11.glPopMatrix();
- GL11.glMatrixMode(GL11.GL_TEXTURE);
- GL11.glPushMatrix();
- GL11.glLoadIdentity();
- GL11.glTranslatef(0.0F, (float)(Minecraft.getSystemTime() % 20000L) / 20000.0F, 0.0F);
- GL11.glScalef(f6, f6, f6);
- GL11.glTranslatef(0.5F, 0.5F, 0.0F);
- GL11.glRotatef((i * i * 4321 + i * 9) * 2.0F, 0.0F, 0.0F, 1.0F);
- GL11.glTranslatef(-0.5F, -0.5F, 0.0F);
- Tessellator tessellator = Tessellator.instance;
- tessellator.startDrawingQuads();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float f11 = color.getRed() / 255.0F;
- float f12 = color.getGreen() / 255.0F;
- float f13 = color.getBlue() / 255.0F;
- tessellator.setBrightness(180);
- tessellator.setColorRGBA_F(f11 * f7, f12 * f7, f13 * f7, 1.0F);
- tessellator.addVertex(0.0D, f4, 0.0D);
- tessellator.addVertex(0.0D, f4, 1.0D);
- tessellator.addVertex(1.0D, f4, 1.0D);
- tessellator.addVertex(1.0D, f4, 0.0D);
- tessellator.draw();
- GL11.glPopMatrix();
- GL11.glMatrixMode(GL11.GL_MODELVIEW);
- }
- GL11.glDisable(GL11.GL_BLEND);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_S);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_T);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_R);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_Q);
- }
-
- private static FloatBuffer func_147525_a(float p_147525_1_, float p_147525_2_, float p_147525_3_, float p_147525_4_) {
- field_147528_b.clear();
- field_147528_b.put(p_147525_1_).put(p_147525_2_).put(p_147525_3_).put(p_147525_4_);
- field_147528_b.flip();
- return field_147528_b;
- }
-
- public static void drawArrow(int x, int y, boolean side) {
- mc.renderEngine.bindTexture(miscHuds);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0f);
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x, y, 0.0F, 0, 10, side ? 0 : 22, 38);
- }
-
- public static void drawChanceBar(int x, int y, int chance) {
- mc.renderEngine.bindTexture(miscHuds);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0f);
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x, y, 0.0F, 0, 0, 57, 6);
- int chancePercentage = Math.max(0, (int)((chance / 100.f) * 55.0D));
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x + 1, y + 1, 0.0F, 0, 6, 55, 4);
- Color color = new Color(Color.HSBtoRGB((chance) / 360.0f, ((float)Math.sin((ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks) * 0.2D) + 1.0F) * 0.3F + 0.4F, 1.0f));
- GL11.glColor4ub((byte)color.getRed(), (byte)color.getGreen(), (byte)color.getBlue(), (byte)255);
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x + 1, y + 1, 0.0F, 0, 6, Math.min(55, chancePercentage), 4);
- }
-
- public static void renderPoolManaBar(int x, int y, int color, float alpha, int mana) {
- Minecraft mc = Minecraft.getMinecraft();
- int poolCount = (int)Math.floor(mana / 1000000.0D);
- if(poolCount < 0)
- poolCount = 0;
- int onePoolMana = mana - (poolCount * 1000000);
- String strPool = poolCount + "x";
- int xc = x - mc.fontRenderer.getStringWidth(strPool) / 2;
- int yc = y;
- GL11.glPushMatrix();
- GL11.glTranslatef(xc + 42.0f, yc + 5.0f, 0.0f);
- RenderHelper.enableGUIStandardItemLighting();
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, new ItemStack(ModBlocks.pool), 0, 0);
- RenderHelper.disableStandardItemLighting();
- GL11.glTranslatef(18.0f, 5.0f, 300.0f);
- mc.fontRenderer.drawString(strPool, 0, 0, color);
- GL11.glPopMatrix();
- if((poolCount * 1000000) == mana)
- onePoolMana = poolCount * 1000000;
- HUDHandler.renderManaBar(x, y, color, alpha, onePoolMana, 1000000);
- }
-
- public static void drawPoolManaHUD(ScaledResolution res, String name, int mana, int maxMana, int color) {
- Minecraft mc = Minecraft.getMinecraft();
- int poolCount = (int)Math.floor(mana / 1000000.0D);
- int maxPoolCount = (int)Math.floor(maxMana / 1000000.0D);
- if(poolCount < 0)
- poolCount = 0;
- if(maxPoolCount < 0)
- maxPoolCount = 0;
- int onePoolMana = mana - (poolCount * 1000000);
- String strPool = poolCount + "x / " + maxPoolCount + "x";
- int xc = res.getScaledWidth() / 2 - mc.fontRenderer.getStringWidth(strPool) / 2 - 3;
- int yc = res.getScaledHeight() / 2;
- GL11.glPushMatrix();
- GL11.glTranslatef(xc - 6.0f, yc + 30.0f, 0.0f);
- RenderHelper.enableGUIStandardItemLighting();
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, new ItemStack(ModBlocks.pool), 0, 0);
- RenderHelper.disableStandardItemLighting();
- GL11.glTranslatef(18.0f, 4.5f, 300.0f);
- mc.fontRenderer.drawStringWithShadow(strPool, 0, 0, color);
- GL11.glPopMatrix();
- if((poolCount * 1000000) == mana)
- onePoolMana = poolCount * 1000000;
- HUDHandler.drawSimpleManaHUD(color, onePoolMana, 1000000, name, res);
- }
-
- public static void setLightmapTextureCoords() {
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- }
-
- public static Vector3 setRotation(float angel, float vX, float vY, float vZ, Vector3 v3) {
- Vector3 rVec = new Vector3(vX, vY, vZ);
- Vector3 rVec1 = v3.copy().normalize();
- double rAngel = Math.toRadians(angel) * 0.5f;
- double sin = Math.sin(rAngel);
- double x = rVec.x * sin;
- double y = rVec.y * sin;
- double z = rVec.z * sin;
- rAngel = Math.cos(rAngel);
- double d = -x * rVec1.x - y * rVec1.y - z * rVec1.z;
- double d1 = rAngel * rVec1.x + y * rVec1.z - z * rVec1.y;
- double d2 = rAngel * rVec1.y - x * rVec1.z + z * rVec1.x;
- double d3 = rAngel * rVec1.z + x * rVec1.y - y * rVec1.x;
- v3.x = d1 * rAngel - d * x - d2 * z + d3 * y;
- v3.y = d2 * rAngel - d * y + d1 * z - d3 * x;
- v3.z = d3 * rAngel - d * z - d1 * y + d2 * x;
- return v3;
- }
-
- public static Color getCorporeaRuneColor(int posX, int posY, int posZ, int meta) {
- double time = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- time += (new Random((posX ^ posY ^ posZ))).nextInt(360);
- float sin = (float)(Math.sin(time / 20.0f) * 0.15f) - 0.15f;
- int color = 0;
- switch(meta) {
- case 0:
- color = Color.HSBtoRGB(0.0f, 0.0f, 0.54f + (sin / 1.2f));
- break;
- case 1:
- color = Color.HSBtoRGB(0.688f, 0.93f, 0.96f + sin - 0.15f);
- break;
- case 2:
- color = Color.HSBtoRGB(0.983f, 0.99f, 1.0f + sin - 0.15f);
- break;
- case 3:
- color = Color.HSBtoRGB(0.319f, 0.92f, 0.95f + sin - 0.15f);
- break;
- case 4:
- color = Color.HSBtoRGB(0.536f, 0.53f, 0.92f + sin - 0.15f);
- break;
- }
- return new Color(color);
- }
-
- public static void renderIcon(IIcon icon, int light) {
- Tessellator tessellator = Tessellator.instance;
- float f = icon.getMinU();
- float f1 = icon.getMaxU();
- float f2 = icon.getMinV();
- float f3 = icon.getMaxV();
- float f4 = 1.0F;
- float f5 = 0.5F;
- float f6 = 0.25F;
- tessellator.startDrawingQuads();
- tessellator.setNormal(0.0F, 1.0F, 0.0F);
- tessellator.addVertexWithUV((0.0F - f5), (0.0F - f6), 0.0D, f, f3);
- tessellator.addVertexWithUV((f4 - f5), (0.0F - f6), 0.0D, f1, f3);
- tessellator.addVertexWithUV((f4 - f5), (f4 - f6), 0.0D, f1, f2);
- tessellator.addVertexWithUV((0.0F - f5), (f4 - f6), 0.0D, f, f2);
- tessellator.draw();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/23/40ef5e5d9cb1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/23/40ef5e5d9cb1001c19bf8a91ac37238b
deleted file mode 100644
index 73e4fe7..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/23/40ef5e5d9cb1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,83 +0,0 @@
-package ab.client.core.handler;
-
-import java.awt.Color;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.armor.ItemNebulaArmor;
-import ab.common.item.equipment.armor.ItemNebulaHelm;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.ItemRenderer;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.texture.TextureMap;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraftforge.client.event.RenderPlayerEvent;
-import vazkii.botania.api.item.IPhantomInkable;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class PlayerRendererHandler {
-
- @SubscribeEvent
- public void onPlayerRender(RenderPlayerEvent.Specials.Pre event) {
- EntityPlayer player = event.entityPlayer;
- ItemStack item = player.getCurrentArmor(3);
- if(item != null && item.getItem() instanceof ItemNebulaHelm) {
- Item helm = player.getCurrentArmor(3).getItem();
- boolean hasPhantomInk = helm instanceof IPhantomInkable && ((IPhantomInkable)helm).hasPhantomInk(item);
- if(!hasPhantomInk && ((ItemNebulaHelm)helm).enableCosmicFace(item)) {
- float angelX = event.renderer.modelBipedMain.bipedHead.rotateAngleX * 180.0F / (float)Math.PI;
- float angelY = event.renderer.modelBipedMain.bipedHead.rotateAngleY * 180.0F / (float)Math.PI;
- GL11.glPushMatrix();
- if(player.isSneaking())
- GL11.glTranslatef(event.renderer.modelBipedMain.bipedHead.rotationPointX * 0.0625f, event.renderer.modelBipedMain.bipedHead.rotationPointY * 0.0625f, 0.0f);
- GL11.glRotatef(angelY, 0.0F, 1.0F, 0.0F);
- GL11.glRotatef(angelX, 1.0F, 0.0F, 0.0F);
- renderCosmicFace();
- GL11.glPopMatrix();
- }
- }
- }
-
- private void renderCosmicFace() {
- double worldTime = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- GL11.glPushMatrix();
-// GL11.glEnable(GL11.GL_TEXTURE_2D);
-// GL11.glDisable(2884);
-
- GL11.glPushMatrix();
- GL11.glScalef(0.5f, 0.4f, 0.4f);
- GL11.glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
- GL11.glTranslatef(-0.5f, -0.8675f, 0.0f);
- GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
- ClientHelper.renderCosmicBackground();
- GL11.glPopMatrix();
-
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
-// OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- (Minecraft.getMinecraft()).renderEngine.bindTexture(TextureMap.locationItemsTexture);
- GL11.glTranslatef(-0.2F, -0.35F, -0.25F);
- GL11.glScalef(0.4f, 0.4f, 0.4f);
- float f = ItemNebulaArmor.nebulaEyes.getMinU();
- float f1 = ItemNebulaArmor.nebulaEyes.getMaxU();
- float f2 = ItemNebulaArmor.nebulaEyes.getMinV();
- float f3 = ItemNebulaArmor.nebulaEyes.getMaxV();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float r = color.getRed() / 510.0F;
- float g = color.getGreen() / 510.0F;
- float b = color.getBlue() / 510.0F;
- GL11.glColor4f(0.5f + r, 0.5f + g, 0.5f + b, 0.685f + (float)Math.sin(worldTime / 50.0D) * 0.175F);
- ItemRenderer.renderItemIn2D(Tessellator.instance, f1, f2, f, f3, ItemNebulaArmor.nebulaEyes.getIconWidth(), ItemNebulaArmor.nebulaEyes.getIconHeight(), 0.03125F);
- GL11.glDisable(3042);
-// GL11.glEnable(32826);
- GL11.glPopMatrix();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/23/d0359c9471be001c1965b122d2f8f403 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/23/d0359c9471be001c1965b122d2f8f403
new file mode 100644
index 0000000..dccdf2e
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/23/d0359c9471be001c1965b122d2f8f403
@@ -0,0 +1,159 @@
+package ab.common.item.relic;
+
+import java.awt.Color;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.common.core.handler.NetworkHandler;
+import ab.common.lib.register.ItemListAB;
+import net.minecraft.block.Block;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.util.MathHelper;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.api.mana.ManaItemHandler;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class ItemSphereNavigation extends ItemModRelic {
+
+ public static final int rangeSearch = 17;
+ public static final int maxCooldown = 112;
+ public static final int manaCost = 1750;
+
+ public ItemSphereNavigation() {
+ super("sphereNavigation");
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int pos, boolean equipped) {
+ super.onUpdate(stack, world, entity, pos, equipped);
+ if(entity instanceof EntityPlayer) {
+ EntityPlayer player = (EntityPlayer)entity;
+ if(!world.isRemote && getFindBlock(stack) != null && canWork(stack) && ManaItemHandler.requestManaExactForTool(stack, player, manaCost, true)) {
+ setMaxTick(stack);
+ NetworkHandler.sendPacketToFindBlocks((EntityPlayerMP)player, getFindBlock(stack), getFindMeta(stack));
+ }
+ }
+ }
+
+ public static void findBlocks(World world, Block findBlock, int findMeta, EntityPlayer player) {
+ if(world.isRemote) {
+ ItemStack renderStack = null;
+ int findedBlocks = 0;
+ label1703:
+ for(int x = -rangeSearch; x < rangeSearch; x++) {
+ if(world.rand.nextBoolean())
+ continue;
+ for(int y = -rangeSearch * 4; y < rangeSearch; y++) {
+ if(world.rand.nextBoolean())
+ continue;
+ for(int z = -rangeSearch; z < rangeSearch; z++) {
+ if(world.rand.nextBoolean())
+ continue;
+ else if(findedBlocks > 24)
+ break label1703;
+ int posX = MathHelper.floor_double(player.posX) + x;
+ int posY = MathHelper.floor_double(player.posY) + y;
+ int posZ = MathHelper.floor_double(player.posZ) + z;
+ if(posY < 0)
+ continue;
+ Block block = world.getBlock(posX, posY, posZ);
+ if(!Block.isEqualTo(block, findBlock))
+ continue;
+ int meta = world.getBlockMetadata(posX, posY, posZ);
+ if(meta == findMeta) {
+ if(renderStack == null)
+ renderStack = getRenderStackForBlock(world, block, meta, posX, posY, posZ);
+ findedBlocks++;
+ float maxAge = 2.7f + (0.5f * (float)(Math.random()));
+ Botania.proxy.setWispFXDepthTest(false);
+ Botania.proxy.setWispFXDistanceLimit(false);
+ float far = 120.0f - (((Math.abs(x) + Math.min(rangeSearch * 2.0f, Math.abs(y)) + Math.abs(z)) / (rangeSearch * 4.0f)) * 120.0f);
+ if(far <= 60)
+ far *= 0.15f;
+ Color color = new Color(Color.HSBtoRGB(far / 360.0f, 0.9f + (float)(Math.random() * 0.1f), 1.0f));
+ for(int i = 0; i < 11; i++)
+ Botania.proxy.wispFX(world, posX + 0.5f + (Math.random() - 0.5f), posY + 0.5f + (Math.random() - 0.5f), posZ + 0.5f + (Math.random() - 0.5f), color.getRed() / 100.0f, color.getGreen() / 100.0f, color.getBlue() / 100.0f, 0.3f + (float)(Math.random() * 0.25f), 0.0f, maxAge);
+ Botania.proxy.setWispFXDistanceLimit(true);
+ Botania.proxy.setWispFXDepthTest(true);
+ }
+ }
+ }
+ }
+ if(renderStack != null)
+ ItemsRemainingRender.set(renderStack, "íàéäåíî: " + findedBlocks);
+ }
+ }
+
+ public static ItemStack getRenderStackForBlock(World world, Block block, int meta, int x, int y, int z) {
+ if(block != null) {
+ Item item = Item.getItemFromBlock(block);
+ if(item != null) {
+ ItemStack findStack = new ItemStack(block, 1, meta);
+ if(findStack != null)
+ return findStack;
+ } else {
+ Item item1 = block.getItem(world, x, y, z);
+ if(item1 != null) {
+ ItemStack findStack = new ItemStack(item1, 1, meta);
+ if(findStack != null)
+ return findStack;
+ }
+ }
+ }
+ return null;
+ }
+
+ public boolean onItemUse(ItemStack stack, EntityPlayer p, World world, int x, int y, int z, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
+ if(p.isSneaking()) {
+ Block block = world.getBlock(x, y, z);
+ if(block != null) {
+ int meta = world.getBlockMetadata(x, y, z);
+ ItemStack findStack = getRenderStackForBlock(world, block, meta, x, y, z);
+ if(findStack != null) {
+ setFindBlock(stack, block, meta);
+ if(world.isRemote)
+ ItemsRemainingRender.set(findStack, findStack.getDisplayName());
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public boolean canWork(ItemStack stack) {
+ int tick = ItemNBTHelper.getInt(stack, "cooldown", 0);
+ if(tick == 0)
+ return true;
+ else if(tick > 0)
+ ItemNBTHelper.setInt(stack, "cooldown", tick - 1);
+ return false;
+ }
+
+ public void setMaxTick(ItemStack stack) {
+ ItemNBTHelper.setInt(stack, "cooldown", maxCooldown);
+ }
+
+ public static void setFindBlock(ItemStack stack, Block block, int meta) {
+ ItemNBTHelper.setInt(stack, "findBlockID", Block.getIdFromBlock(block));
+ ItemNBTHelper.setInt(stack, "findBlockMeta", meta);
+ }
+
+ public static Block getFindBlock(ItemStack stack) {
+ int blockID = ItemNBTHelper.getInt(stack, "findBlockID", 0);
+ if(blockID == 0)
+ return null;
+ else
+ return Block.getBlockById(blockID);
+ }
+
+ public static int getFindMeta(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "findBlockMeta", -1);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/25/5017b70803b0001c1f81c3828fa5b218 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/25/5017b70803b0001c1f81c3828fa5b218
deleted file mode 100644
index 51f6be2..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/25/5017b70803b0001c1f81c3828fa5b218
+++ /dev/null
@@ -1,5 +0,0 @@
-package ab.common.block.subtile;
-
-public class SubTileArdentAzarcissus {
-
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/26/a0171653c7b0001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/26/a0171653c7b0001c19bf8a91ac37238b
deleted file mode 100644
index a4f0703..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/26/a0171653c7b0001c19bf8a91ac37238b
+++ /dev/null
@@ -1,98 +0,0 @@
-package ab.common.core.handler;
-
-import java.io.File;
-
-import ab.AdvancedBotany;
-import cpw.mods.fml.client.event.ConfigChangedEvent;
-import cpw.mods.fml.common.FMLCommonHandler;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraft.entity.passive.EntitySheep;
-import net.minecraftforge.common.config.Configuration;
-import net.minecraftforge.common.config.Property;
-
-public class ConfigABHandler {
-
- public static Configuration config;
- public static boolean useManaChargerAnimation = true;
- public static int maxContainerMana = 64000000;
- public static double protectionFactorNebula = 1.0f;
- public static double damageFactorSpaceSword = 1.0f;
- public static int nebulaWandCooldownTick = 18;
- public static boolean hasManaCharger = true;
- public static boolean hasAbPlate = true;
- public static int spreaderMaxMana = 128000;
- public static int spreaderBurstMana = 32000;
- public static String[] lockEntityListToHide = new String[] {};
- public static int limitXZCoords = 30000000;
-
- public static void loadConfig(File configFile) {
- config = new Configuration(configFile);
- config.load();
- load();
- FMLCommonHandler.instance().bus().register(new ChangeListener());
- }
-
- public static void load() {
- String desc = "Maximum mana capacity for Mana Container (Diluted Mana Container will receive an eighth of the set value)";
- maxContainerMana = loadPropInt("Mana Container capacity", desc, maxContainerMana);
- desc = "Activating the charging animation for the Mana Charger";
- useManaChargerAnimation = loadPropBool("Mana Charger lighting", desc, useManaChargerAnimation);
- desc = "Protection factor for nebula armour";
- protectionFactorNebula = loadPropDouble("Nebula Armor Protection Factor", desc, protectionFactorNebula);
- desc = "Damage factor for Space Blade";
- damageFactorSpaceSword = loadPropDouble("Space Sword Damage Factor", desc, damageFactorSpaceSword);
- desc = "The number of ticks needed to restore 1 unit of the Rod of Nebula strength.";
- nebulaWandCooldownTick = loadPropInt("Rod of Nebula Cooldown", desc, nebulaWandCooldownTick);
- desc = "Switching the Mana Charger on or off in the game";
- hasManaCharger = loadPropBool("Enable Mana Charger", desc, hasManaCharger);
- desc = "Enables or disables Advanced Agglomeration Plate in the game. When switched off, you need to set up recipes, for resources";
- hasAbPlate = loadPropBool("Enable Adv. Agg. Plate", desc, hasAbPlate);
- desc = "Maximum amount of mana held in a mana spreader";
- spreaderMaxMana = loadPropInt("Spreader Max Mana", desc, spreaderMaxMana);
- desc = "Amount of Mana in a Mana Burst";
- spreaderBurstMana = loadPropInt("Spreader Burst Mana", desc, spreaderBurstMana);
- desc = "To block a creature, type it's class name";
- lockEntityListToHide = loadPropString("Blocked creatures for double drop", desc, lockEntityListToHide);
- desc = "Maximum amount of mana held in a mana spreader";
- limitXZCoords = loadPropInt("Restriction on X Z coordinates for Rod of Nebula", desc, limitXZCoords);
- if(config.hasChanged())
- config.save();
- }
-
- public static void loadPostInit() {
- if(config.hasChanged())
- config.save();
- }
-
- public static String[] loadPropString(String propName, String desc, String[] default_) {
- Property prop = config.get("general", propName, default_);
- prop.comment = desc;
- return prop.getStringList();
- }
-
- public static boolean loadPropBool(String propName, String desc, boolean default_) {
- Property prop = config.get("general", propName, default_);
- prop.comment = desc;
- return prop.getBoolean(default_);
- }
-
- public static int loadPropInt(String propName, String desc, int default_) {
- Property prop = config.get("general", propName, default_);
- prop.comment = desc;
- return prop.getInt(default_);
- }
-
- public static double loadPropDouble(String propName, String desc, double default_) {
- Property prop = config.get("general", propName, default_);
- prop.comment = desc;
- return prop.getDouble(default_);
- }
-
- public static class ChangeListener {
- @SubscribeEvent
- public void onConfigChanged(ConfigChangedEvent.OnConfigChangedEvent eventArgs) {
- if(eventArgs.modID.equals(AdvancedBotany.modid))
- ConfigABHandler.load();
- }
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/27/1085c6ba03c0001c1965b122d2f8f403 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/27/1085c6ba03c0001c1965b122d2f8f403
new file mode 100644
index 0000000..726f5f4
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/27/1085c6ba03c0001c1965b122d2f8f403
@@ -0,0 +1,158 @@
+package ab.common.item.relic;
+
+import java.awt.Color;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.common.core.handler.NetworkHandler;
+import ab.common.lib.register.ItemListAB;
+import net.minecraft.block.Block;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.util.MathHelper;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.api.mana.ManaItemHandler;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class ItemSphereNavigation extends ItemModRelic {
+
+ public static final int rangeSearch = 16;
+ public static final int maxCooldown = 112;
+ public static final int manaCost = 1750;
+
+ public ItemSphereNavigation() {
+ super("sphereNavigation");
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int pos, boolean equipped) {
+ super.onUpdate(stack, world, entity, pos, equipped);
+ if(entity instanceof EntityPlayer) {
+ EntityPlayer player = (EntityPlayer)entity;
+ if(!world.isRemote && getFindBlock(stack) != null && canWork(stack) && ManaItemHandler.requestManaExactForTool(stack, player, manaCost, true)) {
+ setMaxTick(stack);
+ NetworkHandler.sendPacketToFindBlocks((EntityPlayerMP)player, getFindBlock(stack), getFindMeta(stack));
+ }
+ }
+ }
+
+ public static void findBlocks(World world, Block findBlock, int findMeta, EntityPlayer player) {
+ if(world.isRemote) {
+ ItemStack renderStack = null;
+ int maxFindedBlocks = 32;
+ int findedBlocks = 0;
+ label1703:
+ for(int y = -rangeSearch * 2; y < rangeSearch; y++) {
+ for(int x = -rangeSearch; x < rangeSearch; x++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks)) || findedBlocks > 2 ? false : world.rand.nextBoolean())
+ continue;
+ for(int z = -rangeSearch; z < rangeSearch; z++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks)) || findedBlocks > 2 ? false : world.rand.nextBoolean())
+ continue;
+ else if(findedBlocks >= maxFindedBlocks)
+ break label1703;
+ int posX = MathHelper.floor_double(player.posX) + x;
+ int posY = MathHelper.floor_double(player.posY) + y;
+ int posZ = MathHelper.floor_double(player.posZ) + z;
+ if(posY < 0)
+ continue;
+ Block block = world.getBlock(posX, posY, posZ);
+ if(!Block.isEqualTo(block, findBlock))
+ continue;
+ int meta = world.getBlockMetadata(posX, posY, posZ);
+ if(meta == findMeta) {
+ if(renderStack == null)
+ renderStack = getRenderStackForBlock(world, block, meta, posX, posY, posZ);
+ findedBlocks++;
+ float maxAge = 2.7f + (0.5f * (float)(Math.random()));
+ Botania.proxy.setWispFXDepthTest(false);
+ Botania.proxy.setWispFXDistanceLimit(false);
+ float far = 120.0f - (((Math.abs(x) + Math.min(rangeSearch, Math.abs(y)) + Math.abs(z)) / (rangeSearch * 4.0f)) * 120.0f);
+ if(far <= 60)
+ far *= 0.15f;
+ Color color = new Color(Color.HSBtoRGB(far / 360.0f, 0.9f + (float)(Math.random() * 0.1f), 1.0f));
+ for(int i = 0; i < 11; i++)
+ Botania.proxy.wispFX(world, posX + 0.5f + (Math.random() - 0.5f), posY + 0.5f + (Math.random() - 0.5f), posZ + 0.5f + (Math.random() - 0.5f), color.getRed() / 100.0f, color.getGreen() / 100.0f, color.getBlue() / 100.0f, 0.3f + (float)(Math.random() * 0.25f), 0.0f, maxAge);
+ Botania.proxy.setWispFXDistanceLimit(true);
+ Botania.proxy.setWispFXDepthTest(true);
+ }
+ }
+ }
+ }
+ if(renderStack != null)
+ ItemsRemainingRender.set(renderStack, "íàéäåíî: " + findedBlocks);
+ }
+ }
+
+ public static ItemStack getRenderStackForBlock(World world, Block block, int meta, int x, int y, int z) {
+ if(block != null) {
+ Item item = Item.getItemFromBlock(block);
+ if(item != null) {
+ ItemStack findStack = new ItemStack(block, 1, meta);
+ if(findStack != null)
+ return findStack;
+ } else {
+ Item item1 = block.getItem(world, x, y, z);
+ if(item1 != null) {
+ ItemStack findStack = new ItemStack(item1, 1, meta);
+ if(findStack != null)
+ return findStack;
+ }
+ }
+ }
+ return null;
+ }
+
+ public boolean onItemUse(ItemStack stack, EntityPlayer p, World world, int x, int y, int z, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
+ if(p.isSneaking()) {
+ Block block = world.getBlock(x, y, z);
+ if(block != null) {
+ int meta = world.getBlockMetadata(x, y, z);
+ ItemStack findStack = getRenderStackForBlock(world, block, meta, x, y, z);
+ if(findStack != null) {
+ setFindBlock(stack, block, meta);
+ if(world.isRemote)
+ ItemsRemainingRender.set(findStack, findStack.getDisplayName());
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public boolean canWork(ItemStack stack) {
+ int tick = ItemNBTHelper.getInt(stack, "cooldown", 0);
+ if(tick == 0)
+ return true;
+ else if(tick > 0)
+ ItemNBTHelper.setInt(stack, "cooldown", tick - 1);
+ return false;
+ }
+
+ public void setMaxTick(ItemStack stack) {
+ ItemNBTHelper.setInt(stack, "cooldown", maxCooldown);
+ }
+
+ public static void setFindBlock(ItemStack stack, Block block, int meta) {
+ ItemNBTHelper.setInt(stack, "findBlockID", Block.getIdFromBlock(block));
+ ItemNBTHelper.setInt(stack, "findBlockMeta", meta);
+ }
+
+ public static Block getFindBlock(ItemStack stack) {
+ int blockID = ItemNBTHelper.getInt(stack, "findBlockID", 0);
+ if(blockID == 0)
+ return null;
+ else
+ return Block.getBlockById(blockID);
+ }
+
+ public static int getFindMeta(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "findBlockMeta", -1);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/27/10b26750f9ac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/27/10b26750f9ac001c1d59e42be7477558
deleted file mode 100644
index 83f69da..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/27/10b26750f9ac001c1d59e42be7477558
+++ /dev/null
@@ -1,205 +0,0 @@
-package ab.common.block.tile;
-
-import java.util.List;
-
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.ChatComponentTranslation;
-import net.minecraft.util.ChatStyle;
-import net.minecraft.util.EnumChatFormatting;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.common.block.tile.TileMod;
-
-public class TileGameBoard extends TileMod {
-
- public String[] playersName = new String[] { "", "" };
- public byte[] slotChance = new byte[] { 0, 0, 0, 0 };
- protected int botTick = -1;
- public int endGameTick = -1;
- protected boolean requestUpdate;
- public boolean isSingleGame = false;
- public int clientTick[] = new int[] { 0, 0, 0, 0 };
-
- public void updateEntity() {
- if(botTick > 0)
- botTick--;
- if(endGameTick > 0)
- endGameTick--;
- if(!worldObj.isRemote)
- updateServer();
- else
- updateAnimationTicks();
- }
-
- public void updateAnimationTicks() {
- for(int i = 0; i < slotChance.length; i++)
- if(slotChance[i] > 0)
- clientTick[i]++;
- else
- clientTick[i] = 0;
- }
-
- protected void updateServer() {
- if(hasGame() && endGameTick == 0)
- finishGame();
- if(requestUpdate)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- boolean hasUpdate = false;
- if(isSingleGame && botTick == 0 && hasGame()) {
- for(int i = 2; i < 4; i++) {
- if(slotChance[i] == 0) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = -1;
- hasUpdate = true;
- break;
- }
- }
- }
- requestUpdate = hasUpdate;
- }
-
- public void setPlayer(EntityPlayer player) {
- if(isSingleGame) {
- playersName[0] = player.getCommandSenderName();
- playersName[1] = "";
- requestUpdate = true;
- botTick = 8;
- } else {
- if(playersName[0].isEmpty())
- playersName[0] = player.getCommandSenderName();
- else if(!playersName[0].equals(player.getCommandSenderName()))
- playersName[1] = player.getCommandSenderName();
- requestUpdate = true;
- }
- }
-
- public boolean dropDice(EntityPlayer player) {
- if(isSingleGame) {
- if(player.getCommandSenderName().equals(playersName[0]) && botTick == -1) {
- boolean isLastDice = false;
- boolean hasDrop = false;
- for(int i = 0; i < 2; i++) {
- if(slotChance[i] == 0) {
- hasDrop = true;
- if(!worldObj.isRemote) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = 18;
- requestUpdate = true;
- if(i == 1)
- isLastDice = true;
- }
- break;
- }
- }
- if(isLastDice)
- endGameTick = 28;
- return hasDrop;
- }
- } else {
- for(int i = 0; i < playersName.length; i++) {
- if(player.getCommandSenderName().equals(playersName[i])) {
- boolean hasDrop = false;
- for(int j = i * 2; j < (i + 1) * 2; j++) {
- if(slotChance[j] == 0) {
- hasDrop = true;
- if(!worldObj.isRemote) {
- slotChance[j] = (byte)(worldObj.rand.nextInt(6) + 1);
- requestUpdate = true;
- if(hasFullDice())
- endGameTick = 28;
- }
- break;
- }
- }
- return true;
- }
- }
- }
- return false;
- }
-
- public boolean hasFullDice() {
- boolean hasFull = false;
- for(int i = 0; i < slotChance.length; i++) {
- if(!(slotChance[i] > 0))
- return false;
- hasFull = slotChance[i] > 0;
- }
- return hasFull;
- }
-
- public boolean hasGame() {
- if(isSingleGame)
- return !playersName[0].isEmpty();
- else
- for(int i = 0; i < playersName.length; i++)
- if(!playersName[i].isEmpty())
- return true;
- return false;
- }
-
- public void finishGame() {
- if(worldObj.isRemote)
- return;
- if(isSingleGame) {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won");
- else if((slotChance[0] + slotChance[1]) == (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " not win");
- else
- sendNearMessage(playersName[0] + " you Lose!");
- resetGame();
- } else {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won!");
- else if((slotChance[0] + slotChance[1]) == (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " " + playersName[1] + "we are not win");
- else
- sendNearMessage(playersName[1] + " you Won!");
- resetGame();
- }
- }
-
- public void sendNearMessage(String text) {
- List players = this.worldObj.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(this.xCoord, this.yCoord, this.zCoord, (this.xCoord + 1), (this.yCoord + 1), (this.zCoord + 1)).expand(3.5f, 3.5f, 3.5f));
- for(EntityPlayer player : players) {
- if(player != null)
- player.addChatMessage((new ChatComponentTranslation(text, new Object[] {})).setChatStyle((new ChatStyle()).setColor(EnumChatFormatting.DARK_GREEN)));
- }
- }
-
- public void resetGame() {
- playersName[0] = "";
- playersName[1] = "";
- for(int i = 0; i < slotChance.length; i++)
- slotChance[i] = 0;
- botTick = -1;
- endGameTick = -1;
- requestUpdate = true;
- }
-
- public void writeCustomNBT(NBTTagCompound cmp) {
- super.writeCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- cmp.setString("playerName" + i, playersName[i]);
- cmp.setByteArray("slotChance", slotChance);
- cmp.setInteger("botTick", botTick);
- cmp.setInteger("endGameTick", endGameTick);
- cmp.setBoolean("requestUpdate", requestUpdate);
- cmp.setBoolean("isSingleGame", isSingleGame);
- }
-
- public void readCustomNBT(NBTTagCompound cmp) {
- super.readCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- playersName[i] = cmp.getString("playerName" + i);
- botTick = cmp.getInteger("botTick");
- endGameTick = cmp.getInteger("endGameTick");
- slotChance = cmp.getByteArray("slotChance");
- requestUpdate = cmp.getBoolean("requestUpdate");
- isSingleGame = cmp.getBoolean("isSingleGame");
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/27/9053c1ebb9bc001c1a9f99005529f322 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/27/9053c1ebb9bc001c1a9f99005529f322
new file mode 100644
index 0000000..3269b9e
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/27/9053c1ebb9bc001c1a9f99005529f322
@@ -0,0 +1,133 @@
+package ab.common.block;
+
+import ab.AdvancedBotany;
+import ab.common.block.tile.TileNidavellirForge;
+import ab.common.block.tile.TileInventory;
+import ab.common.lib.register.RecipeListAB;
+import net.minecraft.block.Block;
+import net.minecraft.block.BlockContainer;
+import net.minecraft.block.material.Material;
+import net.minecraft.client.renderer.texture.IIconRegister;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.MathHelper;
+import net.minecraft.util.Vec3;
+import net.minecraft.world.IBlockAccess;
+import net.minecraft.world.World;
+import vazkii.botania.api.BotaniaAPI;
+import vazkii.botania.api.lexicon.ILexiconable;
+import vazkii.botania.api.lexicon.LexiconEntry;
+
+public class BlockNidavellirForge extends BlockContainer implements ILexiconable {
+
+ public BlockNidavellirForge() {
+ super(Material.iron);
+ this.setCreativeTab(AdvancedBotany.tabAB);
+ this.setHardness(3.0F);
+ this.setResistance(10.0F);
+ this.setStepSound(soundTypeMetal);
+ this.setBlockName("ABPlate");
+ }
+
+ public void setBlockBoundsBasedOnState(IBlockAccess world, int x, int y, int z) {
+ float f = 0.1875F;
+ if(world.getBlockMetadata(x, y, z) % 2 == 0)
+ this.setBlockBounds(f, 0.0F, 0.0F, 1.0F - f, 0.75F, 1.0F);
+ else
+ this.setBlockBounds(0.0F, 0.0F, f, 1.0F, 0.75F, 1.0F - f);
+ }
+
+ public void onBlockPlacedBy(World world, int x, int y, int z, EntityLivingBase liv, ItemStack stack) {
+ int meta = MathHelper.floor_double((double)(liv.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3;
+ world.setBlockMetadataWithNotify(x, y, z, meta, 3);
+ }
+
+ public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int par6, float par7, float par8, float par9) {
+ TileNidavellirForge tile = (TileNidavellirForge)world.getTileEntity(x, y, z);
+ if(player.isSneaking()) {
+ if(tile.getStackInSlot(0) != null) {
+ ItemStack copy = tile.getStackInSlot(0).copy();
+ if(!world.isRemote) {
+ Vec3 vec3 = player.getLook(1.0F).normalize();
+ EntityItem entityitem = new EntityItem(world, player.posX + vec3.xCoord, player.posY + 1.2f, player.posZ + vec3.zCoord, copy);
+ world.spawnEntityInWorld(entityitem);
+ tile.requestUpdate = true;
+ }
+ tile.setInventorySlotContents(0, null);
+ world.func_147453_f(x, y, z, (Block)this);
+ return true;
+ }
+ for(int i = tile.getSizeInventory() - 1; i > 0; i--) {
+ ItemStack stack = tile.getStackInSlot(i);
+ if(stack != null) {
+ ItemStack copy = stack.copy();
+ if(!world.isRemote) {
+ Vec3 vec3 = player.getLook(1.0F).normalize();
+ EntityItem entityitem = new EntityItem(world, player.posX + vec3.xCoord, player.posY + 1.2f, player.posZ + vec3.zCoord, copy);
+ world.spawnEntityInWorld(entityitem);
+ tile.requestUpdate = true;
+ }
+ tile.setInventorySlotContents(i, null);
+ world.func_147453_f(x, y, z, (Block)this);
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public void breakBlock(World world, int x, int y, int z, Block block, int meta) {
+ if(!world.isRemote) {
+ TileInventory inv = (TileInventory)world.getTileEntity(x, y, z);
+ if (inv != null) {
+ for (int i = 0; i < inv.getSizeInventory(); i++) {
+ ItemStack stack = inv.getStackInSlot(i);
+ if (stack != null) {
+ float f = world.rand.nextFloat() * 0.8F + 0.1F;
+ float f1 = world.rand.nextFloat() * 0.8F + 0.1F;
+ float f2 = world.rand.nextFloat() * 0.8F + 0.1F;
+ EntityItem entityitem = new EntityItem(world, (x + f), (y + f1), (z + f2), stack.copy());
+ float f3 = 0.05F;
+ entityitem.motionX = ((float)world.rand.nextGaussian() * f3);
+ entityitem.motionY = ((float)world.rand.nextGaussian() * f3 + 0.2F);
+ entityitem.motionZ = ((float)world.rand.nextGaussian() * f3);
+ if (stack.hasTagCompound())
+ entityitem.getEntityItem().setTagCompound((NBTTagCompound)stack.getTagCompound().copy());
+ world.spawnEntityInWorld(entityitem);
+ }
+ }
+ }
+ }
+ super.breakBlock(world, x, y, z, block, meta);
+ }
+
+ public int getRenderType() {
+ return -1;
+ }
+
+ public boolean renderAsNormalBlock() {
+ return false;
+ }
+
+ public boolean isOpaqueCube() {
+ return false;
+ }
+
+ public boolean getBlocksMovement(IBlockAccess p_149655_1_, int p_149655_2_, int p_149655_3_, int p_149655_4_) {
+ return false;
+ }
+
+ public TileEntity createNewTileEntity(World world, int meta) {
+ return new TileNidavellirForge();
+ }
+
+ public LexiconEntry getEntry(World arg0, int arg1, int arg2, int arg3, EntityPlayer arg4, ItemStack arg5) {
+ return RecipeListAB.advandedAgglomerationPlate;
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/28/8048624ff5b0001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/28/8048624ff5b0001c19bf8a91ac37238b
deleted file mode 100644
index b66ad3b..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/28/8048624ff5b0001c19bf8a91ac37238b
+++ /dev/null
@@ -1,85 +0,0 @@
-package ab.client.core.handler;
-
-import java.awt.Color;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.armor.ItemNebulaArmor;
-import ab.common.item.equipment.armor.ItemNebulaHelm;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.ItemRenderer;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.texture.TextureMap;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraftforge.client.event.RenderPlayerEvent;
-import vazkii.botania.api.item.IPhantomInkable;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class PlayerRendererHandler {
-
- @SubscribeEvent
- public void onPlayerRender(RenderPlayerEvent.Specials.Post event) {
- EntityPlayer player = event.entityPlayer;
- ItemStack item = player.getCurrentArmor(3);
- if(item != null && item.getItem() instanceof ItemNebulaHelm) {
- Item helm = player.getCurrentArmor(3).getItem();
- boolean hasPhantomInk = helm instanceof IPhantomInkable && ((IPhantomInkable)helm).hasPhantomInk(item);
- if(!hasPhantomInk && ((ItemNebulaHelm)helm).enableCosmicFace(item)) {
- float angelX = event.renderer.modelBipedMain.bipedHead.rotateAngleX * 180.0F / (float)Math.PI;
- float angelY = event.renderer.modelBipedMain.bipedHead.rotateAngleY * 180.0F / (float)Math.PI;
- GL11.glPushMatrix();
- if(player.isSneaking())
- GL11.glTranslatef(event.renderer.modelBipedMain.bipedHead.rotationPointX * 0.0625f, event.renderer.modelBipedMain.bipedHead.rotationPointY * 0.0625f, 0.0f);
- GL11.glRotatef(angelY, 0.0F, 1.0F, 0.0F);
- GL11.glRotatef(angelX, 1.0F, 0.0F, 0.0F);
- renderCosmicFace();
- GL11.glPopMatrix();
- }
- }
- }
-
- private void renderCosmicFace() {
- double worldTime = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- GL11.glPushMatrix();
- GL11.glEnable(GL11.GL_TEXTURE_2D);
-// GL11.glDisable(2912);
-// GL11.glDisable(2884);
-
- GL11.glPushMatrix();
- GL11.glScalef(0.5f, 0.4f, 0.4f);
- GL11.glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
- GL11.glTranslatef(-0.5f, -0.8675f, 0.0f);
- GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
- ClientHelper.renderCosmicBackground();
- GL11.glPopMatrix();
-
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- // OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- (Minecraft.getMinecraft()).renderEngine.bindTexture(TextureMap.locationItemsTexture);
- GL11.glTranslatef(-0.2F, -0.35F, -0.25F);
- GL11.glScalef(0.4f, 0.4f, 0.4f);
- float f = ItemNebulaArmor.nebulaEyes.getMinU();
- float f1 = ItemNebulaArmor.nebulaEyes.getMaxU();
- float f2 = ItemNebulaArmor.nebulaEyes.getMinV();
- float f3 = ItemNebulaArmor.nebulaEyes.getMaxV();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float r = color.getRed() / 510.0F;
- float g = color.getGreen() / 510.0F;
- float b = color.getBlue() / 510.0F;
- GL11.glColor4f(0.5f + r, 0.5f + g, 0.5f + b, 0.685f + (float)Math.sin(worldTime / 50.0D) * 0.175F);
- ItemRenderer.renderItemIn2D(Tessellator.instance, f1, f2, f, f3, ItemNebulaArmor.nebulaEyes.getIconWidth(), ItemNebulaArmor.nebulaEyes.getIconHeight(), 0.03125F);
- GL11.glDisable(3042);
- GL11.glEnable(2884);
- GL11.glEnable(32826);
- GL11.glPopMatrix();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/28/a0cb7b64beb1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/28/a0cb7b64beb1001c19bf8a91ac37238b
deleted file mode 100644
index 813c4a4..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/28/a0cb7b64beb1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,236 +0,0 @@
-package ab.common.block.tile;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.api.IRenderHud;
-import ab.common.core.CommonHelper;
-import ab.common.lib.register.BlockListAB;
-import net.minecraft.block.Block;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.gui.Gui;
-import net.minecraft.client.gui.ScaledResolution;
-import net.minecraft.client.renderer.RenderHelper;
-import net.minecraft.client.renderer.entity.RenderItem;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.ItemBlock;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.world.World;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.api.lexicon.multiblock.Multiblock;
-import vazkii.botania.api.lexicon.multiblock.MultiblockSet;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.block.ModBlocks;
-import vazkii.botania.common.block.ModFluffBlocks;
-import vazkii.botania.common.block.tile.TileMod;
-import vazkii.botania.common.core.handler.ConfigHandler;
-
-public class TileLebethronCore extends TileMod implements IRenderHud {
-
- protected int tick;
- protected Block block;
- protected int meta;
- protected boolean validTree;
- private String playerName = "";
-
- public static MultiblockSet makeMultiblockSet() {
- Multiblock mb = new Multiblock();
- mb.addComponent(0, 1, 0, BlockListAB.blockLebethron, 4);
- mb.addComponent(0, 0, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 2, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 3, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 4, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 5, 0, BlockListAB.blockLebethron, 0);
- mb.setRenderOffset(0, 1, 0);
- return mb.makeSet();
- }
-
- public void updateEntity() {
- if(tick <= 0) {
- updateStructure();
- if(validTree && getBlock() != null) {
- spawnLeaves();
- tick = 40;
- }
- } else
- tick--;
- if(worldObj.isRemote && worldObj.rand.nextBoolean() && this.worldObj.isRemote)
- Botania.proxy.sparkleFX(this.worldObj, this.xCoord + Math.random(), this.yCoord + Math.random(), this.zCoord + Math.random(), 0.5F, 1.0F, 0.5F, (float)Math.random() * 2, 2);
- }
-
- public boolean getValidTree() {
- return this.validTree;
- }
-
- public void updateStructure() {
- boolean oldValidTree = validTree;
- validTree = hasValidTree();
- if(oldValidTree != validTree)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- }
-
- public void setPlayerName(String name) {
- if(playerName.isEmpty())
- playerName = name;
- }
-
- public void writeToNBT(NBTTagCompound nbtt) {
- super.writeToNBT(nbtt);
- nbtt.setString("playerName", playerName);
- }
-
- public void readFromNBT(NBTTagCompound nbtt) {
- super.readFromNBT(nbtt);
- playerName = nbtt.getString("playerName");
- }
-
- public void writeCustomNBT(NBTTagCompound nbtt) {
- nbtt.setInteger("blockID", Block.getIdFromBlock(block));
- nbtt.setInteger("blockMeta", this.meta);
- nbtt.setInteger("tick", this.tick);
- nbtt.setBoolean("validTree", validTree);
- }
-
- public void readCustomNBT(NBTTagCompound nbtt) {
- this.block = Block.getBlockById(nbtt.getInteger("blockID"));
- this.meta = nbtt.getInteger("blockMeta");
- this.tick = nbtt.getInteger("tick");
- this.validTree = nbtt.getBoolean("validTree");
- }
-
- public boolean setBlock(Block block, int meta) {
- if(this.block == null) {
- this.block = block;
- this.meta = meta;
- return true;
- } else {
- if(Block.isEqualTo(this.block, block) && this.meta == meta) {
- return false;
- }
- if(!this.worldObj.isRemote) {
- EntityItem entity = new EntityItem(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- entity.setEntityItemStack(new ItemStack(this.block, 1, this.meta));
- this.worldObj.spawnEntityInWorld(entity);
- }
- this.block = block;
- this.meta = meta;
- return true;
- }
- }
-
- public Block getBlock() {
- if(!Block.isEqualTo(block, Blocks.air) && block != null)
- return this.block;
- return null;
- }
-
- public int getMeta() {
- return this.meta;
- }
-
- public boolean hasValidTree() {
- if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord - 1, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord - 1, this.zCoord))) {
- return false;
- }
- for(int i = 1; i <= 4; i++) {
- if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord + i, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord + i, this.zCoord))) {
- return false;
- }
- }
- return true;
- }
-
- boolean checkBlock(Block block, int meta) {
- return block == BlockListAB.blockLebethron && meta == 0;
- }
-
- private void spawnLeaves() {
- for(int x = -1; x <= 1; x++) {
- for(int z = -1; z <= 1; z++) {
- for(int y = 0; y < 5; y++) {
- this.setBlock(worldObj, this.xCoord + x, this.yCoord + y + 2, this.zCoord + z);
- }
- }
- }
- this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 1, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 1, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord + 1);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord - 1);
- this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 7, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 7, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord + 1);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord - 1);
- for(int i = 0; i <= 3; i++)
- this.setBlock(worldObj, this.xCoord, this.yCoord + 6 + i, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord - 2);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord - 2);
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord - 2);
- }
- this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord - 2);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord + 2);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord + 2);
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord + 2);
- }
- this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord + 2);
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 2, this.zCoord);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 3, this.zCoord + i);
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 4, this.zCoord + i);
- }
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 5, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 2, this.zCoord);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 3, this.zCoord + i);
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 4, this.zCoord + i);
- }
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 5, this.zCoord);
- }
-
- private void setBlock(World world, int x, int y, int z) {
- if(!world.isRemote) {
- EntityPlayer player = worldObj.getPlayerEntityByName(playerName);
- if(player != null) {
- if(world.rand.nextInt(10) <= 8)
- return;
- else
- CommonHelper.setBlock(world, block, meta, x, y, z, (EntityPlayerMP)player, true);
- }
- }
- }
-
- public void renderHud(Minecraft mc, ScaledResolution res) {
- if(!validTree)
- return;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- ItemStack stack = getBlock() != null ? new ItemStack(block, 1, meta) : new ItemStack(Blocks.leaves);
- int x = res.getScaledWidth() / 2 - 7;
- int y = res.getScaledHeight() / 2 + 12;
- Gui.drawRect(x - 2, y - 2, x + 18, y + 18, 1140850688);
- Gui.drawRect(x, y, x + 16, y + 16, 1140850688);
- RenderHelper.enableGUIStandardItemLighting();
- GL11.glEnable(32826);
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, stack, x, y);
- RenderHelper.disableStandardItemLighting();
- GL11.glDisable(2929);
- boolean unicode = mc.fontRenderer.getUnicodeFlag();
- mc.fontRenderer.setUnicodeFlag(true);
- if(getBlock() != null) {
- mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 9, 19456);
- mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 8, 774669);
- } else {
- mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 9, 4980736);
- mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 8, 13764621);
- }
- mc.fontRenderer.setUnicodeFlag(unicode);
- GL11.glEnable(2929);
- GL11.glDisable(3042);
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/28/b0cd607431b0001c18a5eba32f24fffa b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/28/b0cd607431b0001c18a5eba32f24fffa
deleted file mode 100644
index ddb9a36..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/28/b0cd607431b0001c18a5eba32f24fffa
+++ /dev/null
@@ -1,43 +0,0 @@
-package ab.common.item.relic;
-
-import java.util.List;
-
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import cpw.mods.fml.relauncher.ReflectionHelper;
-import net.minecraft.entity.EntityLivingBase;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.item.ItemStack;
-import net.minecraft.world.World;
-import net.minecraftforge.common.MinecraftForge;
-import net.minecraftforge.event.entity.living.LivingDropsEvent;
-
-public class ItemSehrimnirHide extends ItemModRelic {
-
- public static final String[] dropFewItems = new String[] { "dropFewItems", "field_75307_b", "a" };
-
- public ItemSehrimnirHide() {
- super("sehrimnirHide");
- MinecraftForge.EVENT_BUS.register(this);
- }
-
- @SubscribeEvent
- public void onPlayerAttack(LivingDropsEvent event) {
-
- ReflectionHelper.findMethod(EntityLivingBase.class, event.entityLiving, dropFewItems, new Class[0]).invoke(Boolean.TRUE, Integer.valueOf(3));
-
-
-// List items = event.drops;
-// World world = event.entityLiving.worldObj;
-// double posX = event.entityLiving.posX;
-// double posY = event.entityLiving.posY;
-// double posZ = event.entityLiving.posZ;
-// for(EntityItem entity : items) {
-// if(!world.isRemote) {
-// ItemStack loot = entity.getEntityItem().copy();
-// loot.stackSize = Math.max(1, (int)(loot.stackSize / 1.5f));
-// EntityItem item = new EntityItem(world, posX, posY, posZ, loot);
-// world.spawnEntityInWorld(item);
-// }
-// }
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/2a/104dfa4749b0001c1746c57a5fe46fd3 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/2a/104dfa4749b0001c1746c57a5fe46fd3
deleted file mode 100644
index e3b0999..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/2a/104dfa4749b0001c1746c57a5fe46fd3
+++ /dev/null
@@ -1,95 +0,0 @@
-package ab.common.core.handler;
-
-import java.io.File;
-
-import ab.AdvancedBotany;
-import cpw.mods.fml.client.event.ConfigChangedEvent;
-import cpw.mods.fml.common.FMLCommonHandler;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraft.entity.passive.EntitySheep;
-import net.minecraftforge.common.config.Configuration;
-import net.minecraftforge.common.config.Property;
-
-public class ConfigABHandler {
-
- public static Configuration config;
- public static boolean useManaChargerAnimation = true;
- public static int maxContainerMana = 64000000;
- public static double protectionFactorNebula = 1.0f;
- public static double damageFactorSpaceSword = 1.0f;
- public static int nebulaWandCooldownTick = 18;
- public static boolean hasManaCharger = true;
- public static boolean hasAbPlate = true;
- public static int spreaderMaxMana = 128000;
- public static int spreaderBurstMana = 32000;
- public static String[] lockEntityListToHide = new String[] { EntitySheep.class.getSimpleName() };
-
- public static void loadConfig(File configFile) {
- config = new Configuration(configFile);
- config.load();
- load();
- FMLCommonHandler.instance().bus().register(new ChangeListener());
- }
-
- public static void load() {
- String desc = "Maximum mana capacity for Mana Container (Diluted Mana Container will receive an eighth of the set value)";
- maxContainerMana = loadPropInt("Mana Container capacity", desc, maxContainerMana);
- desc = "Activating the charging animation for the Mana Charger";
- useManaChargerAnimation = loadPropBool("Mana Charger lighting", desc, useManaChargerAnimation);
- desc = "Protection factor for nebula armour";
- protectionFactorNebula = loadPropDouble("Nebula Armor Protection Factor", desc, protectionFactorNebula);
- desc = "Damage factor for Space Blade";
- damageFactorSpaceSword = loadPropDouble("Space Sword Damage Factor", desc, damageFactorSpaceSword);
- desc = "The number of ticks needed to restore 1 unit of the Rod of Nebula strength.";
- nebulaWandCooldownTick = loadPropInt("Rod of Nebula Cooldown", desc, nebulaWandCooldownTick);
- desc = "Switching the Mana Charger on or off in the game";
- hasManaCharger = loadPropBool("Enable Mana Charger", desc, hasManaCharger);
- desc = "Enables or disables Advanced Agglomeration Plate in the game. When switched off, you need to set up recipes, for resources";
- hasAbPlate = loadPropBool("Enable Adv. Agg. Plate", desc, hasAbPlate);
- desc = "Maximum amount of mana held in a mana spreader";
- spreaderMaxMana = loadPropInt("Spreader Max Mana", desc, spreaderMaxMana);
- desc = "Amount of Mana in a Mana Burst";
- spreaderBurstMana = loadPropInt("Spreader Burst Mana", desc, spreaderBurstMana);
- desc = "sss";
- lockEntityListToHide = loadPropString("SpreSdsader Burst Mana", desc, lockEntityListToHide);
- if(config.hasChanged())
- config.save();
- }
-
- public static void loadPostInit() {
- if(config.hasChanged())
- config.save();
- }
-
- public static String[] loadPropString(String propName, String desc, String[] default_) {
- Property prop = config.get("general", propName, default_);
- prop.comment = desc;
- return prop.getStringList();
- }
-
- public static boolean loadPropBool(String propName, String desc, boolean default_) {
- Property prop = config.get("general", propName, default_);
- prop.comment = desc;
- return prop.getBoolean(default_);
- }
-
- public static int loadPropInt(String propName, String desc, int default_) {
- Property prop = config.get("general", propName, default_);
- prop.comment = desc;
- return prop.getInt(default_);
- }
-
- public static double loadPropDouble(String propName, String desc, double default_) {
- Property prop = config.get("general", propName, default_);
- prop.comment = desc;
- return prop.getDouble(default_);
- }
-
- public static class ChangeListener {
- @SubscribeEvent
- public void onConfigChanged(ConfigChangedEvent.OnConfigChangedEvent eventArgs) {
- if(eventArgs.modID.equals(AdvancedBotany.modid))
- ConfigABHandler.load();
- }
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/2a/e00021af0ab0001c18a5eba32f24fffa b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/2a/e00021af0ab0001c18a5eba32f24fffa
deleted file mode 100644
index a71ffe3..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/2a/e00021af0ab0001c18a5eba32f24fffa
+++ /dev/null
@@ -1,64 +0,0 @@
-package ab.common.block.subtile;
-
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.world.World;
-import vazkii.botania.api.subtile.SubTileGenerating;
-
-public class SubTileArdentAzarcissus extends SubTileGenerating {
-
- public static final String playerName = "ArdentAzarcissus#21sda2gaj91*21df#111sfq3jrns@#";
- int cooldown;
- int workMana = 400;
-
- public void onUpdate() {
- super.onUpdate();
- int posX = this.supertile.xCoord;
- int posY = this.supertile.yCoord;
- int posZ = this.supertile.zCoord;
- World world = this.supertile.getWorldObj();
- if(cooldown > 0) {
- cooldown--;
- return;
- }
- for(int i = -1; i <= 1; i++)
- for(int f = 0; f < 2; f++)
- for(int j = -1; j <= 1; j++) {
- int x = posX + i;
- int y = posY + f;
- int z = posZ + j;
- TileEntity tile = world.getTileEntity(x, y, z);
- if(tile != null && tile instanceof TileGameBoard) {
- TileGameBoard board = (TileGameBoard)tile;
- if(board.isSingleGame) {
- if(!board.hasGame()) {
- board.setPlayer(playerName);
- cooldown = 20;
- } else {
- board.dropDice(playerName);
- cooldown = 20;
- }
- }
- }
- }
- }
-
- public int getMaxMana() {
- return 15000;
- }
-
- public int getColor() {
- return 0xd2cdb2;
- }
-
- public void writeToPacketNBT(NBTTagCompound cmp) {
- super.writeToPacketNBT(cmp);
- cmp.setInteger("cooldown", this.cooldown);
- }
-
- public void readFromPacketNBT(NBTTagCompound cmp) {
- super.readFromPacketNBT(cmp);
- this.cooldown = cmp.getInteger("cooldown");
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/2b/306a5e2eb1b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/2b/306a5e2eb1b1001c19bf8a91ac37238b
deleted file mode 100644
index 4034706..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/2b/306a5e2eb1b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,80 +0,0 @@
-package ab.common.item;
-
-import java.util.List;
-
-import ab.common.core.CommonHelper;
-import ab.common.lib.register.BlockListAB;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.renderer.texture.IIconRegister;
-import net.minecraft.entity.Entity;
-import net.minecraft.entity.item.EntityFallingBlock;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.IIcon;
-import net.minecraft.world.World;
-import vazkii.botania.common.core.helper.ItemNBTHelper;
-
-public class ItemAntigravityCharm extends ItemMod {
-
- public static IIcon[] icons;
-
- public ItemAntigravityCharm() {
- super("antigravityCharm");
- this.setMaxStackSize(1);
- this.setNoRepair();
- }
-
- public void registerIcons(IIconRegister ir) {
- icons = new IIcon[2];
- for(int i = 0; i < icons.length; i++) {
- icons[i] = icons[i] = ir.registerIcon("ab:" + "itemAntigravityCharm_" + i);
- }
- }
-
- @SideOnly(Side.CLIENT)
- public IIcon getIcon(ItemStack stack, int pass) {
- int iconID = Math.min(1, pass);
- return this.icons[iconID];
- }
-
- public boolean requiresMultipleRenderPasses() {
- return true;
- }
-
- public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
- if(player.isSneaking())
- ItemNBTHelper.setBoolean(stack, "isActive", !ItemNBTHelper.getBoolean(stack, "isActive", true));
- return stack;
- }
-
- public void onUpdate(ItemStack stack, World world, Entity entity, int par4, boolean inHand) {
- if(entity instanceof EntityPlayer) {
- EntityPlayer player = (EntityPlayer)entity;
- if(ItemNBTHelper.getBoolean(stack, "isActive", true)) {
- double posX = entity.posX;
- double posY = entity.posY;
- double posZ = entity.posZ;
- final AxisAlignedBB asis = AxisAlignedBB.getBoundingBox(posX, posY, posZ, posX + 1, posY + 1, posZ + 1).expand(8, 8, 8);
- final List listEntity = (List)world.getEntitiesWithinAABB((Class)EntityFallingBlock.class, asis);
- for(EntityFallingBlock fallBlock : listEntity) {
- int x = (int) (fallBlock.posX >= 0 ? fallBlock.posX : fallBlock.posX - 1);
- int y = (int) fallBlock.posY;
- int z = (int) (fallBlock.posZ >= 0 ? fallBlock.posZ : fallBlock.posZ - 1);
- Block block = fallBlock.func_145805_f();
- fallBlock.setInvisible(true);
- if(!world.isRemote) {
- CommonHelper.setBlock(world, block, fallBlock.field_145814_a, x, y, z, (EntityPlayerMP)player, true);
- CommonHelper.setBlock(world, BlockListAB.blockAntigravitation, 0, x, y - 1, z, (EntityPlayerMP)player, true);
- fallBlock.setDead();
- }
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/2b/60ce229efcac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/2b/60ce229efcac001c1d59e42be7477558
deleted file mode 100644
index bf6cae8..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/2b/60ce229efcac001c1d59e42be7477558
+++ /dev/null
@@ -1,96 +0,0 @@
-package ab.client.render.tile;
-
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.model.ModelDiceFate;
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.entity.RenderManager;
-import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.ResourceLocation;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class RenderTileGameBoard extends TileEntitySpecialRenderer {
-
- private static final ModelDiceFate model = new ModelDiceFate();
- private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/gameDice.png");
- private static final ResourceLocation textureEnemy = new ResourceLocation("ab:textures/model/gameDice_enemy.png");
-
- public void renderTileEntityAt(TileEntity tile, double x, double y, double z, float ticks) {
- double time = (tile.getWorldObj() == null) ? 0.0D : (ClientTickHandler.ticksInGame + ticks);
- if(tile != null)
- time += (new Random((tile.xCoord ^ tile.yCoord ^ tile.zCoord))).nextInt(360);
- TileGameBoard board = (TileGameBoard)tile;
- GL11.glEnable(3042);
- GL11.glEnable(32826);
- GL11.glBlendFunc(770, 771);
- GL11.glPushMatrix();
- GL11.glTranslated(x + 0.5f, y, z + 0.5f);
- GL11.glRotatef(90.0f - RenderManager.instance.playerViewY, 0.0f, 1.0f, 0.0f);
- for(int i = 0; i < board.slotChance.length; i++) {
- if(board.slotChance[i] == 0)
- continue;
- time += i * 65;
- GL11.glPushMatrix();
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- float posX = 0.0f;
- float posZ = 0.0f;
- float dropAnim = (1.0f - (Math.min(120.0f, (board.clientTick[i] * board.clientTick[i] * 1.25f) + ticks) / 120.0f));
- dropAnim = Math.min(1.0f, Math.max(dropAnim, 0));
- float alpha = (float)Math.cos(dropAnim);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, alpha);
- switch(i) {
- case 0:
- posX = 0.16f + 0.08f * dropAnim;
- posZ = 0.16f + 0.08f * dropAnim;
- break;
- case 1:
- posX = -0.16f - 0.08f * dropAnim;
- posZ = 0.16f + 0.08f * dropAnim;
- break;
- case 2:
- posX = 0.16f + 0.08f * dropAnim;
- posZ = -0.16f - 0.08f * dropAnim;
- break;
- case 3:
- posX = -0.16f - 0.08f * dropAnim;
- posZ = -0.16f - 0.08f * dropAnim;
- break;
- }
- GL11.glTranslated(posX, 0.02f + Math.sin(time / 12.0D) / 48.0D + (0.28f * dropAnim), posZ);
- GL11.glScalef(0.25f, 0.25f, 0.25f);
- Minecraft.getMinecraft().renderEngine.bindTexture(i > 1 ? textureEnemy : texture);
- float dropAngel = 70.0f * dropAnim;
- switch(board.slotChance[i]) {
- case 1:
- model.render(180.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 2:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 3:
- model.render(90.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 4:
- model.render(270.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 5:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 270.0f);
- break;
- case 6:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 90.0f);
- break;
- default:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- }
- GL11.glPopMatrix();
- }
- GL11.glPopMatrix();
- GL11.glEnable(32826);
- GL11.glDisable(3042);
- }
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/2b/b0288453c7ad001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/2b/b0288453c7ad001c1d59e42be7477558
deleted file mode 100644
index cffe3ae..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/2b/b0288453c7ad001c1d59e42be7477558
+++ /dev/null
@@ -1,73 +0,0 @@
-package ab.common.item.relic;
-
-import java.util.List;
-
-import ab.AdvancedBotany;
-import ab.common.entity.EntityManaVine;
-import ab.common.item.ItemMod;
-import net.minecraft.client.particle.EntityFX;
-import net.minecraft.client.renderer.ActiveRenderInfo;
-import net.minecraft.entity.Entity;
-import net.minecraft.entity.EntityLivingBase;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.EnumAction;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.stats.Achievement;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.world.World;
-import vazkii.botania.api.mana.IManaItem;
-import vazkii.botania.api.mana.IManaTooltipDisplay;
-import vazkii.botania.api.mana.IManaUsingItem;
-import vazkii.botania.api.mana.ManaItemHandler;
-import vazkii.botania.common.achievement.AchievementMod;
-import vazkii.botania.common.core.helper.ItemNBTHelper;
-
-public class ItemFreyrSlingshot extends ItemModRelic implements IManaUsingItem {
-
- protected static final int MAX_MANA = 50000;
-
- private static final String TAG_MANA = "mana";
-
- public ItemFreyrSlingshot() {
- super("freyrSlingshot");
- }
-
- public void onPlayerStoppedUsing(ItemStack stack, World world, EntityPlayer player, int par4) {
- int j = getMaxItemUseDuration(stack) - par4;
- float f = j / 20.0F;
- f = (f * f + f * 2.0F) / 3.0F;
- if(f < 1.0F)
- return;
- if(!world.isRemote && ManaItemHandler.requestManaExactForTool(stack, player, 5000, true)) {
- EntityManaVine ball = new EntityManaVine(player.worldObj, (EntityLivingBase)player);
- ball.motionX *= 0.9D;
- ball.motionY *= 0.9D;
- ball.motionZ *= 0.9D;
- world.spawnEntityInWorld(ball);
- }
- }
-
- public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
- if(ManaItemHandler.requestManaExactForTool(stack, player, 5000, false))
- player.setItemInUse(stack, getMaxItemUseDuration(stack));
- return stack;
- }
-
- public int getMaxItemUseDuration(ItemStack par1ItemStack) {
- return 42000;
- }
-
- public ItemStack onEaten(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer) {
- return par1ItemStack;
- }
-
- public EnumAction getItemUseAction(ItemStack par1ItemStack) {
- return EnumAction.bow;
- }
-
- public boolean usesMana(ItemStack stack) {
- return true;
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/2b/d0db7594bdb1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/2b/d0db7594bdb1001c19bf8a91ac37238b
deleted file mode 100644
index a4afc77..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/2b/d0db7594bdb1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,236 +0,0 @@
-package ab.common.block.tile;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.api.IRenderHud;
-import ab.common.core.CommonHelper;
-import ab.common.lib.register.BlockListAB;
-import net.minecraft.block.Block;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.gui.Gui;
-import net.minecraft.client.gui.ScaledResolution;
-import net.minecraft.client.renderer.RenderHelper;
-import net.minecraft.client.renderer.entity.RenderItem;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.ItemBlock;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.world.World;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.api.lexicon.multiblock.Multiblock;
-import vazkii.botania.api.lexicon.multiblock.MultiblockSet;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.block.ModBlocks;
-import vazkii.botania.common.block.ModFluffBlocks;
-import vazkii.botania.common.block.tile.TileMod;
-import vazkii.botania.common.core.handler.ConfigHandler;
-
-public class TileLebethronCore extends TileMod implements IRenderHud {
-
- protected int tick;
- protected Block block;
- protected int meta;
- protected boolean validTree;
- private String playerName;
-
- public static MultiblockSet makeMultiblockSet() {
- Multiblock mb = new Multiblock();
- mb.addComponent(0, 1, 0, BlockListAB.blockLebethron, 4);
- mb.addComponent(0, 0, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 2, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 3, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 4, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 5, 0, BlockListAB.blockLebethron, 0);
- mb.setRenderOffset(0, 1, 0);
- return mb.makeSet();
- }
-
- public void updateEntity() {
- if(tick <= 0) {
- updateStructure();
- if(validTree && getBlock() != null) {
- spawnLeaves();
- tick = 40;
- }
- } else
- tick--;
- if(worldObj.isRemote && worldObj.rand.nextBoolean() && this.worldObj.isRemote)
- Botania.proxy.sparkleFX(this.worldObj, this.xCoord + Math.random(), this.yCoord + Math.random(), this.zCoord + Math.random(), 0.5F, 1.0F, 0.5F, (float)Math.random() * 2, 2);
- }
-
- public boolean getValidTree() {
- return this.validTree;
- }
-
- public void updateStructure() {
- boolean oldValidTree = validTree;
- validTree = hasValidTree();
- if(oldValidTree != validTree)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- }
-
- public void setPlayerName(String name) {
- if(playerName.isEmpty())
- playerName = name;
- }
-
- public void writeToNBT(NBTTagCompound nbtt) {
- super.writeToNBT(nbtt);
- nbtt.setString("playerName", playerName);
- }
-
- public void readFromNBT(NBTTagCompound nbtt) {
- super.readFromNBT(nbtt);
- playerName = nbtt.getString("playerName");
- }
-
- public void writeCustomNBT(NBTTagCompound nbtt) {
- nbtt.setInteger("blockID", Block.getIdFromBlock(block));
- nbtt.setInteger("blockMeta", this.meta);
- nbtt.setInteger("tick", this.tick);
- nbtt.setBoolean("validTree", validTree);
- }
-
- public void readCustomNBT(NBTTagCompound nbtt) {
- this.block = Block.getBlockById(nbtt.getInteger("blockID"));
- this.meta = nbtt.getInteger("blockMeta");
- this.tick = nbtt.getInteger("tick");
- this.validTree = nbtt.getBoolean("validTree");
- }
-
- public boolean setBlock(Block block, int meta) {
- if(this.block == null) {
- this.block = block;
- this.meta = meta;
- return true;
- } else {
- if(Block.isEqualTo(this.block, block) && this.meta == meta) {
- return false;
- }
- if(!this.worldObj.isRemote) {
- EntityItem entity = new EntityItem(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- entity.setEntityItemStack(new ItemStack(this.block, 1, this.meta));
- this.worldObj.spawnEntityInWorld(entity);
- }
- this.block = block;
- this.meta = meta;
- return true;
- }
- }
-
- public Block getBlock() {
- if(!Block.isEqualTo(block, Blocks.air) && block != null)
- return this.block;
- return null;
- }
-
- public int getMeta() {
- return this.meta;
- }
-
- public boolean hasValidTree() {
- if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord - 1, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord - 1, this.zCoord))) {
- return false;
- }
- for(int i = 1; i <= 4; i++) {
- if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord + i, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord + i, this.zCoord))) {
- return false;
- }
- }
- return true;
- }
-
- boolean checkBlock(Block block, int meta) {
- return block == BlockListAB.blockLebethron && meta == 0;
- }
-
- private void spawnLeaves() {
- for(int x = -1; x <= 1; x++) {
- for(int z = -1; z <= 1; z++) {
- for(int y = 0; y < 5; y++) {
- this.setBlock(worldObj, this.xCoord + x, this.yCoord + y + 2, this.zCoord + z);
- }
- }
- }
- this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 1, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 1, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord + 1);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord - 1);
- this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 7, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 7, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord + 1);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord - 1);
- for(int i = 0; i <= 3; i++)
- this.setBlock(worldObj, this.xCoord, this.yCoord + 6 + i, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord - 2);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord - 2);
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord - 2);
- }
- this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord - 2);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord + 2);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord + 2);
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord + 2);
- }
- this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord + 2);
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 2, this.zCoord);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 3, this.zCoord + i);
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 4, this.zCoord + i);
- }
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 5, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 2, this.zCoord);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 3, this.zCoord + i);
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 4, this.zCoord + i);
- }
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 5, this.zCoord);
- }
-
- private void setBlock(World world, int x, int y, int z) {
- if(!world.isRemote) {
- EntityPlayer player = worldObj.getPlayerEntityByName(playerName);
- if(player != null) {
- if(world.rand.nextInt(10) <= 8)
- return;
- else
- CommonHelper.setBlock(world, block, meta, x, y, z, (EntityPlayerMP)player, true);
- }
- }
- }
-
- public void renderHud(Minecraft mc, ScaledResolution res) {
- if(!validTree)
- return;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- ItemStack stack = getBlock() != null ? new ItemStack(block, 1, meta) : new ItemStack(Blocks.leaves);
- int x = res.getScaledWidth() / 2 - 7;
- int y = res.getScaledHeight() / 2 + 12;
- Gui.drawRect(x - 2, y - 2, x + 18, y + 18, 1140850688);
- Gui.drawRect(x, y, x + 16, y + 16, 1140850688);
- RenderHelper.enableGUIStandardItemLighting();
- GL11.glEnable(32826);
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, stack, x, y);
- RenderHelper.disableStandardItemLighting();
- GL11.glDisable(2929);
- boolean unicode = mc.fontRenderer.getUnicodeFlag();
- mc.fontRenderer.setUnicodeFlag(true);
- if(getBlock() != null) {
- mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 9, 19456);
- mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 8, 774669);
- } else {
- mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 9, 4980736);
- mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 8, 13764621);
- }
- mc.fontRenderer.setUnicodeFlag(unicode);
- GL11.glEnable(2929);
- GL11.glDisable(3042);
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f7/f0ad375e9ab1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/2c/a0fcf7f376c1001c11e398ea97007cb4
similarity index 89%
rename from 1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f7/f0ad375e9ab1001c19bf8a91ac37238b
rename to 1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/2c/a0fcf7f376c1001c11e398ea97007cb4
index 2ddd01c..d8f40fd 100644
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f7/f0ad375e9ab1001c19bf8a91ac37238b
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/2c/a0fcf7f376c1001c11e398ea97007cb4
@@ -10,7 +10,7 @@ import ab.api.recipe.RecipeAdvancedPlate;
import ab.api.recipe.RecipeAncientAlphirine;
import ab.api.recipe.lexicon.AdvancedPlateCraftPage;
import ab.api.recipe.lexicon.AlphirineCraftPage;
-import ab.common.block.tile.TileAgglomerationPlate;
+import ab.common.block.tile.TileNidavellirForge;
import ab.common.block.tile.TileLebethronCore;
import ab.common.block.tile.TileMagicCraftCrate;
import ab.common.core.handler.ConfigABHandler;
@@ -41,6 +41,7 @@ import vazkii.botania.common.item.block.ItemBlockSpecialFlower;
import vazkii.botania.common.lexicon.BLexiconCategory;
import vazkii.botania.common.lexicon.BLexiconEntry;
import vazkii.botania.common.lexicon.RLexiconEntry;
+import vazkii.botania.common.lexicon.page.PageImage;
import vazkii.botania.common.lexicon.page.PageText;
public class RecipeListAB {
@@ -63,6 +64,7 @@ public class RecipeListAB {
public static RecipePetals dictariusRecipe;
public static RecipePetals aspecolusRecipe;
public static RecipePetals pureGladRecipe;
+ public static RecipePetals azartFlowerRecipe;
public static LexiconEntry advandedAgglomerationPlate;
public static LexiconEntry ancientAlphirine;
@@ -93,6 +95,7 @@ public class RecipeListAB {
public static LexiconEntry richesKey;
public static LexiconEntry cubeWardrobe;
public static LexiconEntry sprawlRod;
+ public static LexiconEntry azartFlower;
public static KnowledgeType forgotten;
@@ -115,12 +118,12 @@ public class RecipeListAB {
ancientAlphirine = new BLexiconEntry("ancientAlphirine", categoryForgotten);
alphirineRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("ancientAlphirine"), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.rune, 1, 8), new ItemStack(ModItems.rune, 1, 4), new ItemStack(ModItems.rune, 1, 5), new ItemStack(ModItems.rune, 1, 6), new ItemStack(ModItems.rune, 1, 7), new ItemStack(ModItems.petal, 1, 1), new ItemStack(ModItems.petal, 1, 4));
- ancientAlphirine.setPriority().setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), new PageText("1"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", alphirineRecipe), new AlphirineCraftPage(ancientAlphirine, forgottenLandRecipe.getOutput(), ".alphirineCraft") }).setIcon(ItemBlockSpecialFlower.ofType("ancientAlphirine"));
+ ancientAlphirine.setPriority().setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), new PageText("1"), new PageImage("0", "ab:textures/misc/ancientAlphirine.png"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", alphirineRecipe), new AlphirineCraftPage(ancientAlphirine, forgottenLandRecipe.getOutput(), ".alphirineCraft") }).setIcon(ItemBlockSpecialFlower.ofType("ancientAlphirine"));
if(ConfigABHandler.hasAbPlate) {
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockABPlate), new Object[] { " ", "MPM", "BRB", Character.valueOf('M'), new ItemStack(ModBlocks.storage), Character.valueOf('P'), new ItemStack(ModBlocks.terraPlate), Character.valueOf('B'), new ItemStack(ItemListAB.itemABResource, 1, 3), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 3)});
advandedAgglomerationPlate = new BLexiconEntry("advancedPlate", categoryForgotten);
- advandedAgglomerationPlate.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] {new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()), BotaniaAPI.internalHandler.multiblockPage(".structure", TileAgglomerationPlate.makeMultiblockSet()), new AdvancedPlateCraftPage(advandedAgglomerationPlate, terrasteelRecipe.getOutput(), ".abCraft0"), new AdvancedPlateCraftPage(advandedAgglomerationPlate, manaStarRecipe.getOutput(), ".abCraft1") }).setIcon(new ItemStack(BlockListAB.blockABPlate));
+ advandedAgglomerationPlate.setPriority().setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] {new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()), new AdvancedPlateCraftPage(advandedAgglomerationPlate, terrasteelRecipe.getOutput(), ".abCraft0"), new AdvancedPlateCraftPage(advandedAgglomerationPlate, manaStarRecipe.getOutput(), ".abCraft1") }).setIcon(new ItemStack(BlockListAB.blockABPlate));
}
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockABSpreader), new Object[] { "WMW", "PSP", "WMW", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource, 1, 2), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('S'), new ItemStack(ModBlocks.spreader, 1, 3), Character.valueOf('W'), new ItemStack(BlockListAB.blockLebethron, 1, 4)});
@@ -242,6 +245,10 @@ public class RecipeListAB {
sprawlRod = new BLexiconEntry("sprawlRod", categoryForgotten);
sprawlRod.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
+ azartFlowerRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("ardentAzarcissus"), new ItemStack(ItemListAB.itemABResource, 1, 4), new ItemStack(ModItems.petal, 1, 11), new ItemStack(ModItems.petal, 1, 11), new ItemStack(ModItems.petal, 1, 14), new ItemStack(ModItems.petal, 1, 14), new ItemStack(ModItems.petal, 1, 13), new ItemStack(ModItems.manaResource, 1, 5));
+ azartFlower = new BLexiconEntry("azartFlower", BotaniaAPI.categoryGenerationFlowers);
+ azartFlower.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", azartFlowerRecipe)});
+
if(Botania.thaumcraftLoaded)
thaumcraft();
@@ -257,23 +264,27 @@ public class RecipeListAB {
aspecolusRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("aspecolus"), new ItemStack(ModItems.manaResource, 1, 6), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.rune, 1, 1), new ItemStack(ModItems.rune), new ItemStack(ItemListAB.itemABResource, 1, 2), new ItemStack(ModItems.petal, 1, 10), new ItemStack(ModItems.petal, 1, 13));
aspecolus.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", aspecolusRecipe) }).setIcon(ItemBlockSpecialFlower.ofType("aspecolus"));
addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemNebulaHelmReveal), new Object[] { new ItemStack(ItemListAB.itemNebulaHelm), new ItemStack(ConfigItems.itemGoggles)});
- List recipes = new ArrayList();
- for(int i = 1; i < 10; i++) {
- boolean[][] patterns = ItemCraftingPattern.getPattern(i);
- List str = new ArrayList();
- for(int j = 0; j < patterns.length; j++) {
- String str1 = "";
- for(int k = 0; k < patterns[j].length; k++)
- str1 += patterns[j][k] ? "T" : "H";
- str.add(str1);
- }
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemCraftingPattern, 1, i), new Object[] { str.get(0), str.get(1), str.get(2), Character.valueOf('T'), new ItemStack(ItemListAB.itemCraftingPattern), Character.valueOf('H'), new ItemStack(ConfigItems.itemNugget, 1, 6)});
- recipes.add(getLastRecipe());
+
+ if(ConfigABHandler.hasAutoThaum) {
+ List recipes = new ArrayList();
+ for(int i = 1; i < 10; i++) {
+ boolean[][] patterns = ItemCraftingPattern.getPattern(i);
+ List str = new ArrayList();
+ for(int j = 0; j < patterns.length; j++) {
+ String str1 = "";
+ for(int k = 0; k < patterns[j].length; k++)
+ str1 += patterns[j][k] ? "T" : "H";
+ str.add(str1);
+ }
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemCraftingPattern, 1, i), new Object[] { str.get(0), str.get(1), str.get(2), Character.valueOf('T'), new ItemStack(ItemListAB.itemCraftingPattern), Character.valueOf('H'), new ItemStack(ConfigItems.itemNugget, 1, 6)});
+ recipes.add(getLastRecipe());
+ }
+ IRecipe crate = GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockMagicCraftCrate), new Object[] { "TST", "WCW", "W W", Character.valueOf('W'), new ItemStack(ConfigBlocks.blockMagicalLog), Character.valueOf('S'), new ItemStack(ConfigItems.itemResource, 1, 14), Character.valueOf('T'), new ItemStack(ConfigItems.itemResource, 1, 7), Character.valueOf('C'), new ItemStack(ModBlocks.openCrate, 1, 1)});
+ addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemCraftingPattern, 48), new Object[] { new ItemStack(Blocks.crafting_table), new ItemStack(ModBlocks.livingrock), new ItemStack(ConfigItems.itemResource, 1, 14)});
+ thaumAutoCraft = new BLexiconEntry("thaumAutoCraft", BotaniaAPI.categoryDevices);
+ thaumAutoCraft.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", crate) , BotaniaAPI.internalHandler.craftingRecipePage(".craft0", getLastRecipe()), BotaniaAPI.internalHandler.craftingRecipesPage(".craft1", recipes)});
+
}
- IRecipe crate = GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockMagicCraftCrate), new Object[] { "TST", "WCW", "W W", Character.valueOf('W'), new ItemStack(ConfigBlocks.blockMagicalLog), Character.valueOf('S'), new ItemStack(ConfigItems.itemResource, 1, 14), Character.valueOf('T'), new ItemStack(ConfigItems.itemResource, 1, 7), Character.valueOf('C'), new ItemStack(ModBlocks.openCrate, 1, 1)});
- addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemCraftingPattern, 48), new Object[] { new ItemStack(Blocks.crafting_table), new ItemStack(ModBlocks.livingrock), new ItemStack(ConfigItems.itemResource, 1, 14)});
- thaumAutoCraft = new BLexiconEntry("thaumAutoCraft", BotaniaAPI.categoryDevices);
- thaumAutoCraft.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", crate) , BotaniaAPI.internalHandler.craftingRecipePage(".craft0", getLastRecipe()), BotaniaAPI.internalHandler.craftingRecipesPage(".craft1", recipes)});
pureGladRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("pureGladiolus"), new ItemStack(ItemListAB.itemABResource, 1, 4), new ItemStack(ModItems.rune, 1, 8), new ItemStack(ModItems.petal, 1, 8), new ItemStack(ModItems.petal, 1, 4), new ItemStack(ModItems.petal, 1, 14), new ItemStack(ModItems.petal, 1, 5), new ItemStack(ModItems.petal, 1, 13), new ItemStack(ModItems.petal, 1, 11));
gladious = new BLexiconEntry("gladious", BotaniaAPI.categoryFunctionalFlowers);
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/2e/405cdf1cb7bc001c1a9f99005529f322 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/2e/405cdf1cb7bc001c1a9f99005529f322
new file mode 100644
index 0000000..1d31322
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/2e/405cdf1cb7bc001c1a9f99005529f322
@@ -0,0 +1,155 @@
+package ab.common.block;
+
+import ab.AdvancedBotany;
+import ab.common.block.tile.TileNidavellirForge;
+import ab.common.block.tile.TileInventory;
+import ab.common.lib.register.RecipeListAB;
+import net.minecraft.block.Block;
+import net.minecraft.block.BlockContainer;
+import net.minecraft.block.material.Material;
+import net.minecraft.client.renderer.texture.IIconRegister;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.MathHelper;
+import net.minecraft.util.Vec3;
+import net.minecraft.world.IBlockAccess;
+import net.minecraft.world.World;
+import vazkii.botania.api.BotaniaAPI;
+import vazkii.botania.api.lexicon.ILexiconable;
+import vazkii.botania.api.lexicon.LexiconEntry;
+
+public class BlockNidavellirForge extends BlockContainer implements ILexiconable {
+
+ public BlockNidavellirForge() {
+ super(Material.iron);
+ this.setCreativeTab(AdvancedBotany.tabAB);
+ this.setHardness(3.0F);
+ this.setResistance(10.0F);
+ this.setStepSound(soundTypeMetal);
+ this.setBlockName("ABPlate");
+ }
+
+// public void setBlockBoundsBasedOnState(IBlockAccess world, int x, int y, int z) {
+// float f1 = 1.0F;
+// float f2 = 1.0F;
+// float f3 = 1.0F;
+// float f4 = 0.0F;
+// float f5 = 0.0F;
+// float f6 = 0.0F;
+// this.setBlockBounds(f1, f2, f3, f4, f5, f6);
+// }
+
+// public int onBlockPlaced(World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ, int meta) {
+// byte b0 = 0;
+// switch (side) {
+// case 2:
+// b0 = 1;
+// break;
+// case 3:
+// b0 = 4;
+// break;
+// case 4:
+// b0 = 8;
+// break;
+// case 5:
+// b0 = 2;
+// }
+// System.out.println(b0);
+// return b0 != 0 ? b0 : meta;
+// }
+
+ public void onBlockPlacedBy(World world, int x, int y, int z, EntityLivingBase liv, ItemStack stack) {
+ byte b0 = 0;
+ int meta = MathHelper.floor_double((double)(liv.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3;
+ System.out.println(meta);
+ }
+
+ public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int par6, float par7, float par8, float par9) {
+ TileNidavellirForge tile = (TileNidavellirForge)world.getTileEntity(x, y, z);
+ if(player.isSneaking()) {
+ if(tile.getStackInSlot(0) != null) {
+ ItemStack copy = tile.getStackInSlot(0).copy();
+ if(!world.isRemote) {
+ Vec3 vec3 = player.getLook(1.0F).normalize();
+ EntityItem entityitem = new EntityItem(world, player.posX + vec3.xCoord, player.posY + 1.2f, player.posZ + vec3.zCoord, copy);
+ world.spawnEntityInWorld(entityitem);
+ tile.requestUpdate = true;
+ }
+ tile.setInventorySlotContents(0, null);
+ world.func_147453_f(x, y, z, (Block)this);
+ return true;
+ }
+ for(int i = tile.getSizeInventory() - 1; i > 0; i--) {
+ ItemStack stack = tile.getStackInSlot(i);
+ if(stack != null) {
+ ItemStack copy = stack.copy();
+ if(!world.isRemote) {
+ Vec3 vec3 = player.getLook(1.0F).normalize();
+ EntityItem entityitem = new EntityItem(world, player.posX + vec3.xCoord, player.posY + 1.2f, player.posZ + vec3.zCoord, copy);
+ world.spawnEntityInWorld(entityitem);
+ tile.requestUpdate = true;
+ }
+ tile.setInventorySlotContents(i, null);
+ world.func_147453_f(x, y, z, (Block)this);
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public void breakBlock(World world, int x, int y, int z, Block block, int meta) {
+ if(!world.isRemote) {
+ TileInventory inv = (TileInventory)world.getTileEntity(x, y, z);
+ if (inv != null) {
+ for (int i = 0; i < inv.getSizeInventory(); i++) {
+ ItemStack stack = inv.getStackInSlot(i);
+ if (stack != null) {
+ float f = world.rand.nextFloat() * 0.8F + 0.1F;
+ float f1 = world.rand.nextFloat() * 0.8F + 0.1F;
+ float f2 = world.rand.nextFloat() * 0.8F + 0.1F;
+ EntityItem entityitem = new EntityItem(world, (x + f), (y + f1), (z + f2), stack.copy());
+ float f3 = 0.05F;
+ entityitem.motionX = ((float)world.rand.nextGaussian() * f3);
+ entityitem.motionY = ((float)world.rand.nextGaussian() * f3 + 0.2F);
+ entityitem.motionZ = ((float)world.rand.nextGaussian() * f3);
+ if (stack.hasTagCompound())
+ entityitem.getEntityItem().setTagCompound((NBTTagCompound)stack.getTagCompound().copy());
+ world.spawnEntityInWorld(entityitem);
+ }
+ }
+ }
+ }
+ super.breakBlock(world, x, y, z, block, meta);
+ }
+
+ public int getRenderType() {
+ return -1;
+ }
+
+ public boolean renderAsNormalBlock() {
+ return false;
+ }
+
+ public boolean isOpaqueCube() {
+ return false;
+ }
+
+ public boolean getBlocksMovement(IBlockAccess p_149655_1_, int p_149655_2_, int p_149655_3_, int p_149655_4_) {
+ return false;
+ }
+
+ public TileEntity createNewTileEntity(World world, int meta) {
+ return new TileNidavellirForge();
+ }
+
+ public LexiconEntry getEntry(World arg0, int arg1, int arg2, int arg3, EntityPlayer arg4, ItemStack arg5) {
+ return RecipeListAB.advandedAgglomerationPlate;
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/2f/a097336c06c0001c1965b122d2f8f403 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/2f/a097336c06c0001c1965b122d2f8f403
new file mode 100644
index 0000000..cc43ef6
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/2f/a097336c06c0001c1965b122d2f8f403
@@ -0,0 +1,158 @@
+package ab.common.item.relic;
+
+import java.awt.Color;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.common.core.handler.NetworkHandler;
+import ab.common.lib.register.ItemListAB;
+import net.minecraft.block.Block;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.util.MathHelper;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.api.mana.ManaItemHandler;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class ItemSphereNavigation extends ItemModRelic {
+
+ public static final int rangeSearch = 16;
+ public static final int maxCooldown = 112;
+ public static final int manaCost = 1750;
+
+ public ItemSphereNavigation() {
+ super("sphereNavigation");
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int pos, boolean equipped) {
+ super.onUpdate(stack, world, entity, pos, equipped);
+ if(entity instanceof EntityPlayer) {
+ EntityPlayer player = (EntityPlayer)entity;
+ if(!world.isRemote && getFindBlock(stack) != null && canWork(stack) && ManaItemHandler.requestManaExactForTool(stack, player, manaCost, true)) {
+ setMaxTick(stack);
+ NetworkHandler.sendPacketToFindBlocks((EntityPlayerMP)player, getFindBlock(stack), getFindMeta(stack));
+ }
+ }
+ }
+
+ public static void findBlocks(World world, Block findBlock, int findMeta, EntityPlayer player) {
+ if(world.isRemote) {
+ ItemStack renderStack = null;
+ int maxFindedBlocks = 32;
+ int findedBlocks = 0;
+ label1703:
+ for(int y = -rangeSearch * 2; y < rangeSearch; y++) {
+ for(int x = -rangeSearch; x < rangeSearch; x++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks)) || world.rand.nextBoolean())
+ continue;
+ for(int z = -rangeSearch; z < rangeSearch; z++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks)) || world.rand.nextBoolean())
+ continue;
+ else if(findedBlocks >= maxFindedBlocks)
+ break label1703;
+ int posX = MathHelper.floor_double(player.posX) + x;
+ int posY = MathHelper.floor_double(player.posY) + y;
+ int posZ = MathHelper.floor_double(player.posZ) + z;
+ if(posY < 0)
+ continue;
+ Block block = world.getBlock(posX, posY, posZ);
+ if(!Block.isEqualTo(block, findBlock))
+ continue;
+ int meta = world.getBlockMetadata(posX, posY, posZ);
+ if(meta == findMeta) {
+ if(renderStack == null)
+ renderStack = getRenderStackForBlock(world, block, meta, posX, posY, posZ);
+ findedBlocks++;
+ float maxAge = 2.7f + (0.5f * (float)(Math.random()));
+ Botania.proxy.setWispFXDepthTest(false);
+ Botania.proxy.setWispFXDistanceLimit(false);
+ float far = 120.0f - (((Math.abs(x) + Math.min(rangeSearch, Math.abs(y)) + Math.abs(z)) / (rangeSearch * 4.0f)) * 120.0f);
+ if(far <= 70)
+ far *= 0.25f;
+ Color color = new Color(Color.HSBtoRGB(far / 360.0f, 0.9f + (float)(Math.random() * 0.1f), 1.0f));
+ for(int i = 0; i < 11; i++)
+ Botania.proxy.wispFX(world, posX + 0.5f + (Math.random() - 0.5f), posY + 0.5f + (Math.random() - 0.5f), posZ + 0.5f + (Math.random() - 0.5f), color.getRed() / 100.0f, color.getGreen() / 100.0f, color.getBlue() / 100.0f, 0.3f + (float)(Math.random() * 0.25f), 0.0f, maxAge);
+ Botania.proxy.setWispFXDistanceLimit(true);
+ Botania.proxy.setWispFXDepthTest(true);
+ }
+ }
+ }
+ }
+ if(renderStack != null)
+ ItemsRemainingRender.set(renderStack, "íàéäåíî: " + findedBlocks);
+ }
+ }
+
+ public static ItemStack getRenderStackForBlock(World world, Block block, int meta, int x, int y, int z) {
+ if(block != null) {
+ Item item = Item.getItemFromBlock(block);
+ if(item != null) {
+ ItemStack findStack = new ItemStack(block, 1, meta);
+ if(findStack != null)
+ return findStack;
+ } else {
+ Item item1 = block.getItem(world, x, y, z);
+ if(item1 != null) {
+ ItemStack findStack = new ItemStack(item1, 1, meta);
+ if(findStack != null)
+ return findStack;
+ }
+ }
+ }
+ return null;
+ }
+
+ public boolean onItemUse(ItemStack stack, EntityPlayer p, World world, int x, int y, int z, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
+ if(p.isSneaking()) {
+ Block block = world.getBlock(x, y, z);
+ if(block != null) {
+ int meta = world.getBlockMetadata(x, y, z);
+ ItemStack findStack = getRenderStackForBlock(world, block, meta, x, y, z);
+ if(findStack != null) {
+ setFindBlock(stack, block, meta);
+ if(world.isRemote)
+ ItemsRemainingRender.set(findStack, findStack.getDisplayName());
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public boolean canWork(ItemStack stack) {
+ int tick = ItemNBTHelper.getInt(stack, "cooldown", 0);
+ if(tick == 0)
+ return true;
+ else if(tick > 0)
+ ItemNBTHelper.setInt(stack, "cooldown", tick - 1);
+ return false;
+ }
+
+ public void setMaxTick(ItemStack stack) {
+ ItemNBTHelper.setInt(stack, "cooldown", maxCooldown);
+ }
+
+ public static void setFindBlock(ItemStack stack, Block block, int meta) {
+ ItemNBTHelper.setInt(stack, "findBlockID", Block.getIdFromBlock(block));
+ ItemNBTHelper.setInt(stack, "findBlockMeta", meta);
+ }
+
+ public static Block getFindBlock(ItemStack stack) {
+ int blockID = ItemNBTHelper.getInt(stack, "findBlockID", 0);
+ if(blockID == 0)
+ return null;
+ else
+ return Block.getBlockById(blockID);
+ }
+
+ public static int getFindMeta(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "findBlockMeta", -1);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/3/209883fde9ac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/3/209883fde9ac001c1d59e42be7477558
deleted file mode 100644
index f86082a..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/3/209883fde9ac001c1d59e42be7477558
+++ /dev/null
@@ -1,177 +0,0 @@
-package ab.common.block.tile;
-
-import java.util.List;
-
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.ChatComponentTranslation;
-import net.minecraft.util.ChatStyle;
-import net.minecraft.util.EnumChatFormatting;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.common.block.tile.TileMod;
-
-public class TileGameBoard extends TileMod {
-
- protected String[] playersName = new String[] { "", "" };
- public byte[] slotChance = new byte[] { 0, 0, 0, 0 };
- protected int botTick = -1;
- public int endGameTick = -1;
- protected boolean requestUpdate;
- public boolean isSingleGame = false;
- public int clientTick[] = new int[] { 0, 0, 0, 0};
-
- public void updateEntity() {
- if(botTick > 0)
- botTick--;
- if(endGameTick > 0)
- endGameTick--;
- if(!worldObj.isRemote)
- updateServer();
- else
- updateClient();
- }
-
- protected void updateClient() {
- for(int i = 0; i < slotChance.length; i++)
- if(slotChance[i] > 0)
- clientTick[i]++;
- else
- clientTick[i] = 0;
- }
-
- protected void updateServer() {
- if(requestUpdate)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- boolean hasUpdate = false;
- if(isSingleGame && botTick == 0 && hasGame()) {
- for(int i = 2; i < 4; i++) {
- if(slotChance[i] == 0) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = -1;
- hasUpdate = true;
- break;
- }
- }
- }
- if(hasGame() && endGameTick == 0)
- finishGame();
- requestUpdate = hasUpdate;
- }
-
- public void setPlayer(EntityPlayer player) {
- if(isSingleGame) {
- playersName[0] = player.getCommandSenderName();
- playersName[1] = "";
- requestUpdate = true;
- botTick = 8;
- } else {
- if(playersName[0].isEmpty()) {
- playersName[0] = player.getCommandSenderName();
- requestUpdate = true;
- } else if(!playersName[0].equals(player.getCommandSenderName())) {
- playersName[1] = player.getCommandSenderName();
- requestUpdate = true;
- }
- }
- }
-
- public boolean dropDice(EntityPlayer player) {
- if(isSingleGame) {
- if(player.getCommandSenderName().equals(playersName[0]) && botTick == -1) {
- boolean isLastDice = false;
- for(int i = 0; i < 2; i++) {
- if(slotChance[i] == 0 && !worldObj.isRemote) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = 18;
- requestUpdate = true;
- if(i == 1)
- isLastDice = true;
- break;
- }
- }
- if(isLastDice)
- endGameTick = 28;
- return true;
- }
- } else {
- for(int i = 0; i < playersName.length; i++) {
- if(player.getCommandSenderName().equals(playersName[i])) {
- for(int j = i * 2; j < (i + 1) * 2; j++) {
- System.out.println(j + " " + i);
- if(slotChance[j] == 0 && !worldObj.isRemote) {
- slotChance[j] = (byte)(worldObj.rand.nextInt(6) + 1);
- requestUpdate = true;
- break;
- }
- }
- return true;
- }
- }
- }
- return false;
- }
-
- public boolean hasGame() {
- if(isSingleGame)
- return !playersName[0].isEmpty();
- return !playersName[0].isEmpty() && !playersName[1].isEmpty();
- }
-
- public void finishGame() {
- if(worldObj.isRemote)
- return;
- if(isSingleGame) {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won");
- else if((slotChance[0] + slotChance[1]) == (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " not win");
- else
- sendNearMessage(playersName[0] + " you Lose!");
- resetGame();
- requestUpdate = true;
- }
- }
-
- public void sendNearMessage(String text) {
- List players = this.worldObj.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(this.xCoord, this.yCoord, this.zCoord, (this.xCoord + 1), (this.yCoord + 1), (this.zCoord + 1)).expand(3.5f, 3.5f, 3.5f));
- for(EntityPlayer player : players) {
- if(player != null)
- player.addChatMessage((new ChatComponentTranslation(text, new Object[] {})).setChatStyle((new ChatStyle()).setColor(EnumChatFormatting.DARK_GREEN)));
- }
- }
-
- public void resetGame() {
- playersName[0] = "";
- playersName[1] = "";
- for(int i = 0; i < slotChance.length; i++)
- slotChance[i] = 0;
- requestUpdate = true;
- botTick = -1;
- endGameTick = -1;
- }
-
- public void writeCustomNBT(NBTTagCompound cmp) {
- super.writeCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- cmp.setString("playerName" + i, playersName[i]);
- cmp.setByteArray("slotChance", slotChance);
- cmp.setInteger("botTick", botTick);
- cmp.setInteger("endGameTick", endGameTick);
- cmp.setBoolean("requestUpdate", requestUpdate);
- cmp.setBoolean("isSingleGame", isSingleGame);
- }
-
- public void readCustomNBT(NBTTagCompound cmp) {
- super.readCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- playersName[i] = cmp.getString("playerName" + i);
- botTick = cmp.getInteger("botTick");
- endGameTick = cmp.getInteger("endGameTick");
- slotChance = cmp.getByteArray("slotChance");
- requestUpdate = cmp.getBoolean("requestUpdate");
- isSingleGame = cmp.getBoolean("isSingleGame");
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/3/60d9d13ec0b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/3/60d9d13ec0b1001c19bf8a91ac37238b
deleted file mode 100644
index ab54bdb..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/3/60d9d13ec0b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,45 +0,0 @@
-package ab.common.core;
-
-import net.minecraft.block.Block;
-import net.minecraft.block.IGrowable;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.world.World;
-import net.minecraftforge.common.ForgeHooks;
-import net.minecraftforge.event.world.BlockEvent;
-
-public class CommonHelper {
-
- public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
- if(!(block instanceof IGrowable))
- return;
- IGrowable igrowable = (IGrowable)block;
- if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
- if(!world.isRemote)
- if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
- for(int i = 0; i < count; i++)
- igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
- }
-
- public static boolean setBlock(World world, Block block, int meta, int x, int y, int z, EntityPlayerMP player, boolean checkAir) {
- if(!world.isRemote) {
- BlockEvent.BreakEvent event = ForgeHooks.onBlockBreakEvent(world, player.mcServer.getGameType(), player, x, y, z);
- if(event.isCanceled())
- return false;
- if(checkAir) {
- if(world.getBlock(x, y, z).getMaterial() == Material.air)
- return setBlockWithY(world, block, meta, x, y, z);
- } else
- return setBlockWithY(world, block, meta, x, y, z);
- }
- return false;
- }
-
- private static boolean setBlockWithY(World world, Block block, int meta, int x, int y, int z) {
- if(y < 256 && y > 5)
- world.setBlock(x, y, z, block, meta, 3);
- else
- return false;
- return true;
- }
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/8d/f0c5c3c2c7ad001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/30/10624d026bc1001c11e398ea97007cb4
similarity index 100%
rename from 1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/8d/f0c5c3c2c7ad001c1d59e42be7477558
rename to 1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/30/10624d026bc1001c11e398ea97007cb4
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/30/c057d13d02c0001c1965b122d2f8f403 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/30/c057d13d02c0001c1965b122d2f8f403
new file mode 100644
index 0000000..e9e70da
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/30/c057d13d02c0001c1965b122d2f8f403
@@ -0,0 +1,158 @@
+package ab.common.item.relic;
+
+import java.awt.Color;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.common.core.handler.NetworkHandler;
+import ab.common.lib.register.ItemListAB;
+import net.minecraft.block.Block;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.util.MathHelper;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.api.mana.ManaItemHandler;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class ItemSphereNavigation extends ItemModRelic {
+
+ public static final int rangeSearch = 16;
+ public static final int maxCooldown = 112;
+ public static final int manaCost = 1750;
+
+ public ItemSphereNavigation() {
+ super("sphereNavigation");
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int pos, boolean equipped) {
+ super.onUpdate(stack, world, entity, pos, equipped);
+ if(entity instanceof EntityPlayer) {
+ EntityPlayer player = (EntityPlayer)entity;
+ if(!world.isRemote && getFindBlock(stack) != null && canWork(stack) && ManaItemHandler.requestManaExactForTool(stack, player, manaCost, true)) {
+ setMaxTick(stack);
+ NetworkHandler.sendPacketToFindBlocks((EntityPlayerMP)player, getFindBlock(stack), getFindMeta(stack));
+ }
+ }
+ }
+
+ public static void findBlocks(World world, Block findBlock, int findMeta, EntityPlayer player) {
+ if(world.isRemote) {
+ ItemStack renderStack = null;
+ int maxFindedBlocks = 25;
+ int findedBlocks = 0;
+ label1703:
+ for(int y = -rangeSearch * 2; y < rangeSearch; y++) {
+ for(int x = -rangeSearch; x < rangeSearch; x++) {
+ if(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks))
+ continue;
+ for(int z = -rangeSearch; z < rangeSearch; z++) {
+ if(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks))
+ continue;
+ else if(findedBlocks >= maxFindedBlocks)
+ break label1703;
+ int posX = MathHelper.floor_double(player.posX) + x;
+ int posY = MathHelper.floor_double(player.posY) + y;
+ int posZ = MathHelper.floor_double(player.posZ) + z;
+ if(posY < 0)
+ continue;
+ Block block = world.getBlock(posX, posY, posZ);
+ if(!Block.isEqualTo(block, findBlock))
+ continue;
+ int meta = world.getBlockMetadata(posX, posY, posZ);
+ if(meta == findMeta) {
+ if(renderStack == null)
+ renderStack = getRenderStackForBlock(world, block, meta, posX, posY, posZ);
+ findedBlocks++;
+ float maxAge = 2.7f + (0.5f * (float)(Math.random()));
+ Botania.proxy.setWispFXDepthTest(false);
+ Botania.proxy.setWispFXDistanceLimit(false);
+ float far = 120.0f - (((Math.abs(x) + Math.min(rangeSearch, Math.abs(y)) + Math.abs(z)) / (rangeSearch * 4.0f)) * 120.0f);
+ if(far <= 60)
+ far *= 0.15f;
+ Color color = new Color(Color.HSBtoRGB(far / 360.0f, 0.9f + (float)(Math.random() * 0.1f), 1.0f));
+ for(int i = 0; i < 11; i++)
+ Botania.proxy.wispFX(world, posX + 0.5f + (Math.random() - 0.5f), posY + 0.5f + (Math.random() - 0.5f), posZ + 0.5f + (Math.random() - 0.5f), color.getRed() / 100.0f, color.getGreen() / 100.0f, color.getBlue() / 100.0f, 0.3f + (float)(Math.random() * 0.25f), 0.0f, maxAge);
+ Botania.proxy.setWispFXDistanceLimit(true);
+ Botania.proxy.setWispFXDepthTest(true);
+ }
+ }
+ }
+ }
+ if(renderStack != null)
+ ItemsRemainingRender.set(renderStack, "íàéäåíî: " + findedBlocks);
+ }
+ }
+
+ public static ItemStack getRenderStackForBlock(World world, Block block, int meta, int x, int y, int z) {
+ if(block != null) {
+ Item item = Item.getItemFromBlock(block);
+ if(item != null) {
+ ItemStack findStack = new ItemStack(block, 1, meta);
+ if(findStack != null)
+ return findStack;
+ } else {
+ Item item1 = block.getItem(world, x, y, z);
+ if(item1 != null) {
+ ItemStack findStack = new ItemStack(item1, 1, meta);
+ if(findStack != null)
+ return findStack;
+ }
+ }
+ }
+ return null;
+ }
+
+ public boolean onItemUse(ItemStack stack, EntityPlayer p, World world, int x, int y, int z, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
+ if(p.isSneaking()) {
+ Block block = world.getBlock(x, y, z);
+ if(block != null) {
+ int meta = world.getBlockMetadata(x, y, z);
+ ItemStack findStack = getRenderStackForBlock(world, block, meta, x, y, z);
+ if(findStack != null) {
+ setFindBlock(stack, block, meta);
+ if(world.isRemote)
+ ItemsRemainingRender.set(findStack, findStack.getDisplayName());
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public boolean canWork(ItemStack stack) {
+ int tick = ItemNBTHelper.getInt(stack, "cooldown", 0);
+ if(tick == 0)
+ return true;
+ else if(tick > 0)
+ ItemNBTHelper.setInt(stack, "cooldown", tick - 1);
+ return false;
+ }
+
+ public void setMaxTick(ItemStack stack) {
+ ItemNBTHelper.setInt(stack, "cooldown", maxCooldown);
+ }
+
+ public static void setFindBlock(ItemStack stack, Block block, int meta) {
+ ItemNBTHelper.setInt(stack, "findBlockID", Block.getIdFromBlock(block));
+ ItemNBTHelper.setInt(stack, "findBlockMeta", meta);
+ }
+
+ public static Block getFindBlock(ItemStack stack) {
+ int blockID = ItemNBTHelper.getInt(stack, "findBlockID", 0);
+ if(blockID == 0)
+ return null;
+ else
+ return Block.getBlockById(blockID);
+ }
+
+ public static int getFindMeta(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "findBlockMeta", -1);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/31/70260f5efcac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/31/70260f5efcac001c1d59e42be7477558
deleted file mode 100644
index 502433f..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/31/70260f5efcac001c1d59e42be7477558
+++ /dev/null
@@ -1,96 +0,0 @@
-package ab.client.render.tile;
-
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.model.ModelDiceFate;
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.entity.RenderManager;
-import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.ResourceLocation;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class RenderTileGameBoard extends TileEntitySpecialRenderer {
-
- private static final ModelDiceFate model = new ModelDiceFate();
- private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/gameDice.png");
- private static final ResourceLocation textureEnemy = new ResourceLocation("ab:textures/model/gameDice_enemy.png");
-
- public void renderTileEntityAt(TileEntity tile, double x, double y, double z, float ticks) {
- double time = (tile.getWorldObj() == null) ? 0.0D : (ClientTickHandler.ticksInGame + ticks);
- if(tile != null)
- time += (new Random((tile.xCoord ^ tile.yCoord ^ tile.zCoord))).nextInt(360);
- TileGameBoard board = (TileGameBoard)tile;
- GL11.glEnable(3042);
- GL11.glEnable(32826);
- GL11.glBlendFunc(770, 771);
- GL11.glPushMatrix();
- GL11.glTranslated(x + 0.5f, y, z + 0.5f);
- GL11.glRotatef(180.0f - RenderManager.instance.playerViewY, 0.0f, 1.0f, 0.0f);
- for(int i = 0; i < board.slotChance.length; i++) {
- if(board.slotChance[i] == 0)
- continue;
- time += i * 65;
- GL11.glPushMatrix();
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- float posX = 0.0f;
- float posZ = 0.0f;
- float dropAnim = (1.0f - (Math.min(120.0f, (board.clientTick[i] * board.clientTick[i] * 1.25f) + ticks) / 120.0f));
- dropAnim = Math.min(1.0f, Math.max(dropAnim, 0));
- float alpha = (float)Math.cos(dropAnim);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, alpha);
- switch(i) {
- case 0:
- posX = 0.16f + 0.08f * dropAnim;
- posZ = 0.16f + 0.08f * dropAnim;
- break;
- case 1:
- posX = -0.16f - 0.08f * dropAnim;
- posZ = 0.16f + 0.08f * dropAnim;
- break;
- case 2:
- posX = 0.16f + 0.08f * dropAnim;
- posZ = -0.16f - 0.08f * dropAnim;
- break;
- case 3:
- posX = -0.16f - 0.08f * dropAnim;
- posZ = -0.16f - 0.08f * dropAnim;
- break;
- }
- GL11.glTranslated(posX, 0.02f + Math.sin(time / 12.0D) / 48.0D + (0.28f * dropAnim), posZ);
- GL11.glScalef(0.25f, 0.25f, 0.25f);
- Minecraft.getMinecraft().renderEngine.bindTexture(i > 1 ? textureEnemy : texture);
- float dropAngel = 70.0f * dropAnim;
- switch(board.slotChance[i]) {
- case 1:
- model.render(180.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 2:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 3:
- model.render(90.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 4:
- model.render(270.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 5:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 270.0f);
- break;
- case 6:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 90.0f);
- break;
- default:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- }
- GL11.glPopMatrix();
- }
- GL11.glPopMatrix();
- GL11.glEnable(32826);
- GL11.glDisable(3042);
- }
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/31/f00cea87b8bc001c1a9f99005529f322 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/31/f00cea87b8bc001c1a9f99005529f322
new file mode 100644
index 0000000..19e8e3c
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/31/f00cea87b8bc001c1a9f99005529f322
@@ -0,0 +1,135 @@
+package ab.common.block;
+
+import ab.AdvancedBotany;
+import ab.common.block.tile.TileNidavellirForge;
+import ab.common.block.tile.TileInventory;
+import ab.common.lib.register.RecipeListAB;
+import net.minecraft.block.Block;
+import net.minecraft.block.BlockContainer;
+import net.minecraft.block.material.Material;
+import net.minecraft.client.renderer.texture.IIconRegister;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.MathHelper;
+import net.minecraft.util.Vec3;
+import net.minecraft.world.IBlockAccess;
+import net.minecraft.world.World;
+import vazkii.botania.api.BotaniaAPI;
+import vazkii.botania.api.lexicon.ILexiconable;
+import vazkii.botania.api.lexicon.LexiconEntry;
+
+public class BlockNidavellirForge extends BlockContainer implements ILexiconable {
+
+ public BlockNidavellirForge() {
+ super(Material.iron);
+ this.setCreativeTab(AdvancedBotany.tabAB);
+ this.setHardness(3.0F);
+ this.setResistance(10.0F);
+ this.setStepSound(soundTypeMetal);
+ this.setBlockName("ABPlate");
+ }
+
+// public void setBlockBoundsBasedOnState(IBlockAccess world, int x, int y, int z) {
+// float f1 = 1.0F;
+// float f2 = 1.0F;
+// float f3 = 1.0F;
+// float f4 = 0.0F;
+// float f5 = 0.0F;
+// float f6 = 0.0F;
+// this.setBlockBounds(f1, f2, f3, f4, f5, f6);
+// }
+
+ public void onBlockPlacedBy(World world, int x, int y, int z, EntityLivingBase liv, ItemStack stack) {
+ int meta = MathHelper.floor_double((double)(liv.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3;
+ world.setBlockMetadataWithNotify(x, y, z, meta, 3);
+ }
+
+ public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int par6, float par7, float par8, float par9) {
+ TileNidavellirForge tile = (TileNidavellirForge)world.getTileEntity(x, y, z);
+ if(player.isSneaking()) {
+ if(tile.getStackInSlot(0) != null) {
+ ItemStack copy = tile.getStackInSlot(0).copy();
+ if(!world.isRemote) {
+ Vec3 vec3 = player.getLook(1.0F).normalize();
+ EntityItem entityitem = new EntityItem(world, player.posX + vec3.xCoord, player.posY + 1.2f, player.posZ + vec3.zCoord, copy);
+ world.spawnEntityInWorld(entityitem);
+ tile.requestUpdate = true;
+ }
+ tile.setInventorySlotContents(0, null);
+ world.func_147453_f(x, y, z, (Block)this);
+ return true;
+ }
+ for(int i = tile.getSizeInventory() - 1; i > 0; i--) {
+ ItemStack stack = tile.getStackInSlot(i);
+ if(stack != null) {
+ ItemStack copy = stack.copy();
+ if(!world.isRemote) {
+ Vec3 vec3 = player.getLook(1.0F).normalize();
+ EntityItem entityitem = new EntityItem(world, player.posX + vec3.xCoord, player.posY + 1.2f, player.posZ + vec3.zCoord, copy);
+ world.spawnEntityInWorld(entityitem);
+ tile.requestUpdate = true;
+ }
+ tile.setInventorySlotContents(i, null);
+ world.func_147453_f(x, y, z, (Block)this);
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public void breakBlock(World world, int x, int y, int z, Block block, int meta) {
+ if(!world.isRemote) {
+ TileInventory inv = (TileInventory)world.getTileEntity(x, y, z);
+ if (inv != null) {
+ for (int i = 0; i < inv.getSizeInventory(); i++) {
+ ItemStack stack = inv.getStackInSlot(i);
+ if (stack != null) {
+ float f = world.rand.nextFloat() * 0.8F + 0.1F;
+ float f1 = world.rand.nextFloat() * 0.8F + 0.1F;
+ float f2 = world.rand.nextFloat() * 0.8F + 0.1F;
+ EntityItem entityitem = new EntityItem(world, (x + f), (y + f1), (z + f2), stack.copy());
+ float f3 = 0.05F;
+ entityitem.motionX = ((float)world.rand.nextGaussian() * f3);
+ entityitem.motionY = ((float)world.rand.nextGaussian() * f3 + 0.2F);
+ entityitem.motionZ = ((float)world.rand.nextGaussian() * f3);
+ if (stack.hasTagCompound())
+ entityitem.getEntityItem().setTagCompound((NBTTagCompound)stack.getTagCompound().copy());
+ world.spawnEntityInWorld(entityitem);
+ }
+ }
+ }
+ }
+ super.breakBlock(world, x, y, z, block, meta);
+ }
+
+ public int getRenderType() {
+ return -1;
+ }
+
+ public boolean renderAsNormalBlock() {
+ return false;
+ }
+
+ public boolean isOpaqueCube() {
+ return false;
+ }
+
+ public boolean getBlocksMovement(IBlockAccess p_149655_1_, int p_149655_2_, int p_149655_3_, int p_149655_4_) {
+ return false;
+ }
+
+ public TileEntity createNewTileEntity(World world, int meta) {
+ return new TileNidavellirForge();
+ }
+
+ public LexiconEntry getEntry(World arg0, int arg1, int arg2, int arg3, EntityPlayer arg4, ItemStack arg5) {
+ return RecipeListAB.advandedAgglomerationPlate;
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/31/f03c631fbfb1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/31/f03c631fbfb1001c19bf8a91ac37238b
deleted file mode 100644
index c2cf78c..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/31/f03c631fbfb1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,233 +0,0 @@
-package ab.common.block.tile;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.api.IRenderHud;
-import ab.common.core.CommonHelper;
-import ab.common.lib.register.BlockListAB;
-import net.minecraft.block.Block;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.gui.Gui;
-import net.minecraft.client.gui.ScaledResolution;
-import net.minecraft.client.renderer.RenderHelper;
-import net.minecraft.client.renderer.entity.RenderItem;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.ItemBlock;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.world.World;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.api.lexicon.multiblock.Multiblock;
-import vazkii.botania.api.lexicon.multiblock.MultiblockSet;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.block.ModBlocks;
-import vazkii.botania.common.block.ModFluffBlocks;
-import vazkii.botania.common.block.tile.TileMod;
-import vazkii.botania.common.core.handler.ConfigHandler;
-
-public class TileLebethronCore extends TileMod implements IRenderHud {
-
- protected int tick;
- protected Block block;
- protected int meta;
- protected boolean validTree;
- private String playerName = "";
-
- public static MultiblockSet makeMultiblockSet() {
- Multiblock mb = new Multiblock();
- mb.addComponent(0, 1, 0, BlockListAB.blockLebethron, 4);
- mb.addComponent(0, 0, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 2, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 3, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 4, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 5, 0, BlockListAB.blockLebethron, 0);
- mb.setRenderOffset(0, 1, 0);
- return mb.makeSet();
- }
-
- public void updateEntity() {
- if(tick <= 0) {
- updateStructure();
- if(validTree && getBlock() != null) {
- spawnLeaves();
- tick = 40;
- }
- } else
- tick--;
- if(worldObj.isRemote && worldObj.rand.nextBoolean() && this.worldObj.isRemote)
- Botania.proxy.sparkleFX(this.worldObj, this.xCoord + Math.random(), this.yCoord + Math.random(), this.zCoord + Math.random(), 0.5F, 1.0F, 0.5F, (float)Math.random() * 2, 2);
- }
-
- public boolean getValidTree() {
- return this.validTree;
- }
-
- public void updateStructure() {
- boolean oldValidTree = validTree;
- validTree = hasValidTree();
- if(oldValidTree != validTree)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- }
-
- public void setPlayerName(String name) {
- if(playerName.isEmpty())
- playerName = name;
- }
-
- public void writeToNBT(NBTTagCompound nbtt) {
- super.writeToNBT(nbtt);
- nbtt.setString("playerName", playerName);
- }
-
- public void readFromNBT(NBTTagCompound nbtt) {
- super.readFromNBT(nbtt);
- playerName = nbtt.getString("playerName");
- }
-
- public void writeCustomNBT(NBTTagCompound nbtt) {
- nbtt.setInteger("blockID", Block.getIdFromBlock(block));
- nbtt.setInteger("blockMeta", this.meta);
- nbtt.setInteger("tick", this.tick);
- nbtt.setBoolean("validTree", validTree);
- }
-
- public void readCustomNBT(NBTTagCompound nbtt) {
- this.block = Block.getBlockById(nbtt.getInteger("blockID"));
- this.meta = nbtt.getInteger("blockMeta");
- this.tick = nbtt.getInteger("tick");
- this.validTree = nbtt.getBoolean("validTree");
- }
-
- public boolean setBlock(Block block, int meta) {
- if(this.block == null) {
- this.block = block;
- this.meta = meta;
- return true;
- } else {
- if(Block.isEqualTo(this.block, block) && this.meta == meta) {
- return false;
- }
- if(!this.worldObj.isRemote) {
- EntityItem entity = new EntityItem(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- entity.setEntityItemStack(new ItemStack(this.block, 1, this.meta));
- this.worldObj.spawnEntityInWorld(entity);
- }
- this.block = block;
- this.meta = meta;
- return true;
- }
- }
-
- public Block getBlock() {
- if(!Block.isEqualTo(block, Blocks.air) && block != null)
- return this.block;
- return null;
- }
-
- public int getMeta() {
- return this.meta;
- }
-
- public boolean hasValidTree() {
- if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord - 1, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord - 1, this.zCoord))) {
- return false;
- }
- for(int i = 1; i <= 4; i++) {
- if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord + i, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord + i, this.zCoord))) {
- return false;
- }
- }
- return true;
- }
-
- boolean checkBlock(Block block, int meta) {
- return block == BlockListAB.blockLebethron && meta == 0;
- }
-
- private void spawnLeaves() {
- for(int x = -1; x <= 1; x++)
- for(int z = -1; z <= 1; z++)
- for(int y = 0; y < 5; y++)
- this.setBlock(worldObj, this.xCoord + x, this.yCoord + y + 2, this.zCoord + z);
- this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 1, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 1, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord + 1);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord - 1);
- this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 7, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 7, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord + 1);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord - 1);
- for(int i = 0; i <= 3; i++)
- this.setBlock(worldObj, this.xCoord, this.yCoord + 6 + i, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord - 2);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord - 2);
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord - 2);
- }
- this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord - 2);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord + 2);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord + 2);
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord + 2);
- }
- this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord + 2);
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 2, this.zCoord);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 3, this.zCoord + i);
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 4, this.zCoord + i);
- }
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 5, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 2, this.zCoord);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 3, this.zCoord + i);
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 4, this.zCoord + i);
- }
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 5, this.zCoord);
- }
-
- private void setBlock(World world, int x, int y, int z) {
- if(!world.isRemote) {
- EntityPlayer player = worldObj.getPlayerEntityByName(playerName);
- if(player != null) {
- if(world.rand.nextInt(10) <= 8)
- return;
- else
- CommonHelper.setBlock(world, block, meta, x, y, z, (EntityPlayerMP)player, true);
- }
- }
- }
-
- public void renderHud(Minecraft mc, ScaledResolution res) {
- if(!validTree)
- return;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- ItemStack stack = getBlock() != null ? new ItemStack(block, 1, meta) : new ItemStack(Blocks.leaves);
- int x = res.getScaledWidth() / 2 - 7;
- int y = res.getScaledHeight() / 2 + 12;
- Gui.drawRect(x - 2, y - 2, x + 18, y + 18, 1140850688);
- Gui.drawRect(x, y, x + 16, y + 16, 1140850688);
- RenderHelper.enableGUIStandardItemLighting();
- GL11.glEnable(32826);
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, stack, x, y);
- RenderHelper.disableStandardItemLighting();
- GL11.glDisable(2929);
- boolean unicode = mc.fontRenderer.getUnicodeFlag();
- mc.fontRenderer.setUnicodeFlag(true);
- if(getBlock() != null) {
- mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 9, 19456);
- mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 8, 774669);
- } else {
- mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 9, 4980736);
- mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 8, 13764621);
- }
- mc.fontRenderer.setUnicodeFlag(unicode);
- GL11.glEnable(2929);
- GL11.glDisable(3042);
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/32/70363408b8ad001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/32/70363408b8ad001c1d59e42be7477558
deleted file mode 100644
index 08bb154..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/32/70363408b8ad001c1d59e42be7477558
+++ /dev/null
@@ -1,96 +0,0 @@
-package ab.client.render.tile;
-
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.model.ModelDiceFate;
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.entity.RenderManager;
-import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.ResourceLocation;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class RenderTileGameBoard extends TileEntitySpecialRenderer {
-
- private static final ModelDiceFate model = new ModelDiceFate();
- private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/gameDice.png");
- private static final ResourceLocation textureEnemy = new ResourceLocation("ab:textures/model/gameDice_enemy.png");
-
- public void renderTileEntityAt(TileEntity tile, double x, double y, double z, float ticks) {
- double time = (tile.getWorldObj() == null) ? 0.0D : (ClientTickHandler.ticksInGame + ticks);
- if(tile != null)
- time += (new Random((tile.xCoord ^ tile.yCoord ^ tile.zCoord))).nextInt(360);
- TileGameBoard board = (TileGameBoard)tile;
- GL11.glEnable(3042);
- GL11.glEnable(32826);
- GL11.glBlendFunc(770, 771);
- GL11.glPushMatrix();
- GL11.glTranslated(x + 0.5f, y, z + 0.5f);
- GL11.glRotatef(90.0f - RenderManager.instance.playerViewY, 0.0f, 1.0f, 0.0f);
- for(int i = 0; i < board.slotChance.length; i++) {
- if(board.slotChance[i] == 0)
- continue;
- time += i * 83.256f;
- GL11.glPushMatrix();
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- float posX = 0.0f;
- float posZ = 0.0f;
- float dropAnim = (1.0f - (Math.min(200.0f, (board.clientTick[i] * board.clientTick[i] * 1.25f) + ticks) / 200.0f));
- dropAnim = Math.min(1.0f, Math.max(dropAnim, 0));
- float alpha = (float)Math.cos(dropAnim);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, alpha);
- switch(i) {
- case 0:
- posX = 0.16f + 0.08f * dropAnim;
- posZ = 0.16f + 0.08f * dropAnim;
- break;
- case 1:
- posX = -0.16f - 0.08f * dropAnim;
- posZ = 0.16f + 0.08f * dropAnim;
- break;
- case 2:
- posX = 0.16f + 0.08f * dropAnim;
- posZ = -0.16f - 0.08f * dropAnim;
- break;
- case 3:
- posX = -0.16f - 0.08f * dropAnim;
- posZ = -0.16f - 0.08f * dropAnim;
- break;
- }
- GL11.glTranslated(posX, 0.02f + Math.sin(time / 12.0D) / 48.0D + (0.28f * dropAnim), posZ);
- GL11.glScalef(0.25f, 0.25f, 0.25f);
- Minecraft.getMinecraft().renderEngine.bindTexture(i > 1 ? textureEnemy : texture);
- float dropAngel = 70.0f * dropAnim;
- switch(board.slotChance[i]) {
- case 1:
- model.render(180.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 2:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 3:
- model.render(90.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 4:
- model.render(270.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 5:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 270.0f);
- break;
- case 6:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 90.0f);
- break;
- default:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- }
- GL11.glPopMatrix();
- }
- GL11.glPopMatrix();
- GL11.glEnable(32826);
- GL11.glDisable(3042);
- }
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/34/303ec93394c1001c11e398ea97007cb4 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/34/303ec93394c1001c11e398ea97007cb4
new file mode 100644
index 0000000..0a54e4e
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/34/303ec93394c1001c11e398ea97007cb4
@@ -0,0 +1,89 @@
+package ab.client.core.proxy;
+
+import ab.client.core.handler.BoundRenderHandler;
+import ab.client.core.handler.ClientHandler;
+import ab.client.core.handler.HudRenderHandler;
+import ab.client.core.handler.PlayerRendererHandler;
+import ab.client.render.block.*;
+import ab.client.render.entity.*;
+import ab.client.render.item.RenderItemAntigravityCharm;
+import ab.client.render.item.RenderItemSphereNavigation;
+import ab.client.render.tile.*;
+import ab.common.block.tile.*;
+import ab.common.core.handler.ConfigABHandler;
+import ab.common.core.proxy.CommonProxy;
+import ab.common.entity.*;
+import ab.common.lib.register.BlockListAB;
+import ab.common.lib.register.ItemListAB;
+import cpw.mods.fml.client.registry.ClientRegistry;
+import cpw.mods.fml.client.registry.RenderingRegistry;
+import cpw.mods.fml.common.FMLCommonHandler;
+import cpw.mods.fml.common.event.FMLInitializationEvent;
+import cpw.mods.fml.common.event.FMLPostInitializationEvent;
+import cpw.mods.fml.common.event.FMLPreInitializationEvent;
+import net.minecraft.client.renderer.entity.Render;
+import net.minecraft.client.renderer.entity.RenderSnowball;
+import net.minecraft.item.ItemStack;
+import net.minecraftforge.client.MinecraftForgeClient;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.item.ModItems;
+
+public class ClientProxy extends CommonProxy {
+
+ public void preInit(FMLPreInitializationEvent event) {
+ super.preInit(event);
+ }
+
+ public void init(FMLInitializationEvent event) {
+ super.init(event);
+
+ FMLCommonHandler.instance().bus().register(new ClientHandler());
+ MinecraftForge.EVENT_BUS.register(new HudRenderHandler());
+ MinecraftForge.EVENT_BUS.register(new PlayerRendererHandler());
+ MinecraftForge.EVENT_BUS.register(new BoundRenderHandler());
+
+ if(ConfigABHandler.hasAbPlate)
+ ClientRegistry.bindTileEntitySpecialRenderer(TileNidavellirForge.class, new RenderTileNidavellirForge());
+ ClientRegistry.bindTileEntitySpecialRenderer(TileABSpreader.class, new RenderTileABSpreader());
+ ClientRegistry.bindTileEntitySpecialRenderer(TileManaContainer.class, new RenderTileManaContainer());
+ ClientRegistry.bindTileEntitySpecialRenderer(TileManaCrystalCube.class, new RenderTileManaCrystalCube());
+ if(ConfigABHandler.hasManaCharger)
+ ClientRegistry.bindTileEntitySpecialRenderer(TileManaCharger.class, new RenderTileManaCharger());
+ ClientRegistry.bindTileEntitySpecialRenderer(TileEngineerHopper.class, new RenderTileEngineerHopper());
+ ClientRegistry.bindTileEntitySpecialRenderer(TileBoardFate.class, new RenderTileBoardFate());
+ ClientRegistry.bindTileEntitySpecialRenderer(TileGameBoard.class, new RenderTileGameBoard());
+ if(Botania.thaumcraftLoaded && ConfigABHandler.hasAutoThaum)
+ ClientRegistry.bindTileEntitySpecialRenderer(TileMagicCraftCrate.class, new RenderTileMagicCraftingCrate());
+
+ BlockListAB.blockABSpreaderRI = RenderingRegistry.getNextAvailableRenderId();
+ BlockListAB.blockManaContainerRI = RenderingRegistry.getNextAvailableRenderId();
+ BlockListAB.blockManaCrystalCubeRI = RenderingRegistry.getNextAvailableRenderId();
+ BlockListAB.blockManaChargerRI = RenderingRegistry.getNextAvailableRenderId();
+ BlockListAB.blockEngineerHopperRI = RenderingRegistry.getNextAvailableRenderId();
+ BlockListAB.blockABPlateRI = RenderingRegistry.getNextAvailableRenderId();
+
+ RenderingRegistry.registerBlockHandler(new RenderBlockABSpreader());
+ RenderingRegistry.registerBlockHandler(new RenderBlockManaContainer());
+ RenderingRegistry.registerBlockHandler(new RenderBlockManaCrystalCube());
+ RenderingRegistry.registerBlockHandler(new RenderBlockManaCharger());
+ RenderingRegistry.registerBlockHandler(new RenderBlockEngineerHopper());
+ RenderingRegistry.registerBlockHandler(new RenderBlockNidavellirForge());
+
+ RenderingRegistry.registerEntityRenderingHandler(EntityAdvancedSpark.class, new RenderEntityAdvancedSpark());
+ RenderingRegistry.registerEntityRenderingHandler(EntityNebulaBlaze.class, new EntityNullRender());
+ RenderingRegistry.registerEntityRenderingHandler(EntityManaVine.class, new EntityNullRender());
+ RenderingRegistry.registerEntityRenderingHandler(EntityAlphirinePortal.class, new RenderEntityAlphirinePortal());
+ RenderingRegistry.registerEntityRenderingHandler(EntitySword.class, new EntityNullRender());
+ RenderingRegistry.registerEntityRenderingHandler(EntitySeed.class, new EntityNullRender());
+
+ MinecraftForgeClient.registerItemRenderer(ItemListAB.itemAntigravityCharm, new RenderItemAntigravityCharm());
+ MinecraftForgeClient.registerItemRenderer(ItemListAB.itemSphereNavigation, new RenderItemSphereNavigation());
+ }
+
+ public void postInit(FMLPostInitializationEvent event) {
+ super.postInit(event);
+// ItemStack crashGameForRender = null;
+// System.out.println(crashGameForRender.stackSize);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/35/909aec5205c0001c1965b122d2f8f403 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/35/909aec5205c0001c1965b122d2f8f403
new file mode 100644
index 0000000..c597e66
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/35/909aec5205c0001c1965b122d2f8f403
@@ -0,0 +1,158 @@
+package ab.common.item.relic;
+
+import java.awt.Color;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.common.core.handler.NetworkHandler;
+import ab.common.lib.register.ItemListAB;
+import net.minecraft.block.Block;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.util.MathHelper;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.api.mana.ManaItemHandler;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class ItemSphereNavigation extends ItemModRelic {
+
+ public static final int rangeSearch = 16;
+ public static final int maxCooldown = 112;
+ public static final int manaCost = 1750;
+
+ public ItemSphereNavigation() {
+ super("sphereNavigation");
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int pos, boolean equipped) {
+ super.onUpdate(stack, world, entity, pos, equipped);
+ if(entity instanceof EntityPlayer) {
+ EntityPlayer player = (EntityPlayer)entity;
+ if(!world.isRemote && getFindBlock(stack) != null && canWork(stack) && ManaItemHandler.requestManaExactForTool(stack, player, manaCost, true)) {
+ setMaxTick(stack);
+ NetworkHandler.sendPacketToFindBlocks((EntityPlayerMP)player, getFindBlock(stack), getFindMeta(stack));
+ }
+ }
+ }
+
+ public static void findBlocks(World world, Block findBlock, int findMeta, EntityPlayer player) {
+ if(world.isRemote) {
+ ItemStack renderStack = null;
+ int maxFindedBlocks = 32;
+ int findedBlocks = 0;
+ label1703:
+ for(int y = -rangeSearch * 2; y < rangeSearch; y++) {
+ for(int x = -rangeSearch; x < rangeSearch; x++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks)) || world.rand.nextBoolean())
+ continue;
+ for(int z = -rangeSearch; z < rangeSearch; z++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks)) || world.rand.nextBoolean())
+ continue;
+ else if(findedBlocks >= maxFindedBlocks)
+ break label1703;
+ int posX = MathHelper.floor_double(player.posX) + x;
+ int posY = MathHelper.floor_double(player.posY) + y;
+ int posZ = MathHelper.floor_double(player.posZ) + z;
+ if(posY < 0)
+ continue;
+ Block block = world.getBlock(posX, posY, posZ);
+ if(!Block.isEqualTo(block, findBlock))
+ continue;
+ int meta = world.getBlockMetadata(posX, posY, posZ);
+ if(meta == findMeta) {
+ if(renderStack == null)
+ renderStack = getRenderStackForBlock(world, block, meta, posX, posY, posZ);
+ findedBlocks++;
+ float maxAge = 2.7f + (0.5f * (float)(Math.random()));
+ Botania.proxy.setWispFXDepthTest(false);
+ Botania.proxy.setWispFXDistanceLimit(false);
+ float far = 120.0f - (((Math.abs(x) + Math.min(rangeSearch, Math.abs(y)) + Math.abs(z)) / (rangeSearch * 4.0f)) * 120.0f);
+ if(far <= 60)
+ far *= 0.15f;
+ Color color = new Color(Color.HSBtoRGB(far / 360.0f, 0.9f + (float)(Math.random() * 0.1f), 1.0f));
+ for(int i = 0; i < 11; i++)
+ Botania.proxy.wispFX(world, posX + 0.5f + (Math.random() - 0.5f), posY + 0.5f + (Math.random() - 0.5f), posZ + 0.5f + (Math.random() - 0.5f), color.getRed() / 100.0f, color.getGreen() / 100.0f, color.getBlue() / 100.0f, 0.3f + (float)(Math.random() * 0.25f), 0.0f, maxAge);
+ Botania.proxy.setWispFXDistanceLimit(true);
+ Botania.proxy.setWispFXDepthTest(true);
+ }
+ }
+ }
+ }
+ if(renderStack != null)
+ ItemsRemainingRender.set(renderStack, "íàéäåíî: " + findedBlocks);
+ }
+ }
+
+ public static ItemStack getRenderStackForBlock(World world, Block block, int meta, int x, int y, int z) {
+ if(block != null) {
+ Item item = Item.getItemFromBlock(block);
+ if(item != null) {
+ ItemStack findStack = new ItemStack(block, 1, meta);
+ if(findStack != null)
+ return findStack;
+ } else {
+ Item item1 = block.getItem(world, x, y, z);
+ if(item1 != null) {
+ ItemStack findStack = new ItemStack(item1, 1, meta);
+ if(findStack != null)
+ return findStack;
+ }
+ }
+ }
+ return null;
+ }
+
+ public boolean onItemUse(ItemStack stack, EntityPlayer p, World world, int x, int y, int z, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
+ if(p.isSneaking()) {
+ Block block = world.getBlock(x, y, z);
+ if(block != null) {
+ int meta = world.getBlockMetadata(x, y, z);
+ ItemStack findStack = getRenderStackForBlock(world, block, meta, x, y, z);
+ if(findStack != null) {
+ setFindBlock(stack, block, meta);
+ if(world.isRemote)
+ ItemsRemainingRender.set(findStack, findStack.getDisplayName());
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public boolean canWork(ItemStack stack) {
+ int tick = ItemNBTHelper.getInt(stack, "cooldown", 0);
+ if(tick == 0)
+ return true;
+ else if(tick > 0)
+ ItemNBTHelper.setInt(stack, "cooldown", tick - 1);
+ return false;
+ }
+
+ public void setMaxTick(ItemStack stack) {
+ ItemNBTHelper.setInt(stack, "cooldown", maxCooldown);
+ }
+
+ public static void setFindBlock(ItemStack stack, Block block, int meta) {
+ ItemNBTHelper.setInt(stack, "findBlockID", Block.getIdFromBlock(block));
+ ItemNBTHelper.setInt(stack, "findBlockMeta", meta);
+ }
+
+ public static Block getFindBlock(ItemStack stack) {
+ int blockID = ItemNBTHelper.getInt(stack, "findBlockID", 0);
+ if(blockID == 0)
+ return null;
+ else
+ return Block.getBlockById(blockID);
+ }
+
+ public static int getFindMeta(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "findBlockMeta", -1);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/35/b0576dd638b0001c1746c57a5fe46fd3 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/35/b0576dd638b0001c1746c57a5fe46fd3
deleted file mode 100644
index eebdeb1..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/35/b0576dd638b0001c1746c57a5fe46fd3
+++ /dev/null
@@ -1,53 +0,0 @@
-package ab.common.item.relic;
-
-import java.lang.reflect.InvocationTargetException;
-import java.util.List;
-
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import cpw.mods.fml.relauncher.ReflectionHelper;
-import net.minecraft.entity.EntityLivingBase;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.item.ItemStack;
-import net.minecraft.world.World;
-import net.minecraftforge.common.MinecraftForge;
-import net.minecraftforge.event.entity.living.LivingDropsEvent;
-
-public class ItemSehrimnirHide extends ItemModRelic {
-
- public static final String[] dropFewItems = new String[] { "dropFewItems", "func_70628_a" };
-
- public ItemSehrimnirHide() {
- super("sehrimnirHide");
- MinecraftForge.EVENT_BUS.register(this);
- }
-
- @SubscribeEvent
- public void onPlayerAttack(LivingDropsEvent event) {
-
-// .invoke(event.entityLiving, new Object[] {true, 5});
-
-
-
- EntityLivingBase liv = event.entityLiving;
- try {
- ReflectionHelper.findMethod(EntityLivingBase.class, liv, dropFewItems, new Class[] {Boolean.class, Integer.class} );
- } catch (Exception e) {
- e.printStackTrace();
- }
-
-
-// List items = event.drops;
-// World world = event.entityLiving.worldObj;
-// double posX = event.entityLiving.posX;
-// double posY = event.entityLiving.posY;
-// double posZ = event.entityLiving.posZ;
-// for(EntityItem entity : items) {
-// if(!world.isRemote) {
-// ItemStack loot = entity.getEntityItem().copy();
-// loot.stackSize = Math.max(1, (int)(loot.stackSize / 1.5f));
-// EntityItem item = new EntityItem(world, posX, posY, posZ, loot);
-// world.spawnEntityInWorld(item);
-// }
-// }
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/35/c0ae8e1346b0001c1746c57a5fe46fd3 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/35/c0ae8e1346b0001c1746c57a5fe46fd3
deleted file mode 100644
index 1fc75a9..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/35/c0ae8e1346b0001c1746c57a5fe46fd3
+++ /dev/null
@@ -1,48 +0,0 @@
-package ab.common.item.relic;
-
-import java.lang.reflect.InvocationTargetException;
-import java.util.List;
-
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import cpw.mods.fml.relauncher.ReflectionHelper;
-import net.minecraft.entity.EntityLivingBase;
-import net.minecraft.entity.boss.IBossDisplayData;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.ItemStack;
-import net.minecraft.world.World;
-import net.minecraftforge.common.MinecraftForge;
-import net.minecraftforge.event.entity.living.LivingDropsEvent;
-
-public class ItemSehrimnirHide extends ItemModRelic {
-
- public static final String[] dropFewItems = new String[] { "dropFewItems", "func_70628_a" };
-
- public ItemSehrimnirHide() {
- super("sehrimnirHide");
- MinecraftForge.EVENT_BUS.register(this);
- }
-
- @SubscribeEvent
- public void onPlayerAttack(LivingDropsEvent event) {
- if(event != null && event.source != null && event.source.getSourceOfDamage() instanceof EntityPlayer) {
- EntityPlayer player = (EntityPlayer)event.source.getSourceOfDamage();
- if(player.inventory.hasItem(this)) {
- if(event.entityLiving != null && event.drops != null && !(event.entityLiving instanceof IBossDisplayData)) {
- List items = event.drops;
- World world = event.entityLiving.worldObj;
- double posX = event.entityLiving.posX;
- double posY = event.entityLiving.posY;
- double posZ = event.entityLiving.posZ;
- if(!world.isRemote) {
- for(EntityItem entity : items) {
- ItemStack loot = entity.getEntityItem().copy();
- EntityItem item = new EntityItem(world, posX, posY, posZ, loot);
- world.spawnEntityInWorld(item);
- }
- }
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/36/20f81ec8c8ad001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/36/20f81ec8c8ad001c1d59e42be7477558
deleted file mode 100644
index e4c5e55..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/36/20f81ec8c8ad001c1d59e42be7477558
+++ /dev/null
@@ -1,164 +0,0 @@
-package ab.common.entity;
-
-import java.awt.Color;
-import java.util.List;
-import java.util.Random;
-
-import ab.client.core.ClientHelper;
-import ab.common.core.CommonHelper;
-import ab.common.lib.register.BlockListAB;
-import cpw.mods.fml.relauncher.ReflectionHelper;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockBush;
-import net.minecraft.block.BlockCrops;
-import net.minecraft.block.BlockGrass;
-import net.minecraft.block.BlockSapling;
-import net.minecraft.block.IGrowable;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.EntityLivingBase;
-import net.minecraft.entity.passive.EntityAnimal;
-import net.minecraft.entity.projectile.EntityThrowable;
-import net.minecraft.init.Blocks;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.potion.PotionEffect;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.MathHelper;
-import net.minecraft.util.MovingObjectPosition;
-import net.minecraft.util.Vec3;
-import net.minecraft.world.World;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.core.handler.ConfigHandler;
-import vazkii.botania.common.lib.LibObfuscation;
-
-public class EntityManaVine extends EntityThrowable {
-
- int maxAge = 240;
- int age;
-
- public EntityManaVine(World world) {
- super(world);
- }
-
- public EntityManaVine(World world, EntityLivingBase entity) {
- super(world, entity);
- }
-
- public void onUpdate() {
- super.onUpdate();
- age++;
- if(age >= maxAge)
- setDead();
- if(this.worldObj.isRemote) {
- float m = 0.02F;
- float f1 = 6.0f;
- for(int i = 0; i < 4; i++) {
- double posX = this.posX + (Math.random() / f1 - (0.5f / f1));
- double posY = this.posY + (Math.random() / f1 - (0.5f / f1));
- double posZ = this.posZ + (Math.random() / f1 - (0.5f / f1));
- float mx = (float)(Math.random() - 0.5D) * m;
- float my = (float)(Math.random() - 0.5D) * m;
- float mz = (float)(Math.random() - 0.5D) * m;
- Color color = ClientHelper.getCorporeaRuneColor((int)posX, (int)posY, (int)posZ, 3);
- Botania.proxy.wispFX(worldObj, posX, posY, posZ, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float) (0.15f + (Math.random() * 0.12f)), mx, my, mz, 0.7f);
- }
- }
- }
-
- protected void onImpact(MovingObjectPosition pos) {
- if(pos != null && pos.entityHit == null) {
- World world = this.worldObj;
- int x = pos.blockX;
- int y = pos.blockY;
- int z = pos.blockZ;
- List list = (List) (world.getEntitiesWithinAABB(EntityLivingBase.class, AxisAlignedBB.getBoundingBox(x - 10, y - 10, z - 10, x + 10, y + 10, z + 10)));
- for(EntityLivingBase target : list) {
- if(target instanceof EntityAnimal) {
- EntityAnimal animal = (EntityAnimal) target;
- ReflectionHelper.setPrivateValue(EntityAnimal.class, animal, 1200, LibObfuscation.IN_LOVE);
- animal.setTarget(null);
- this.worldObj.setEntityState(animal, (byte) 18);
- }
- }
- for(int k = 0; k < 7; k++)
- for(int k1 = 0; k1 < 7; k1++)
- for(int k2 = 0; k2 < 7; k2++) {
- int xCoord = x + k - 3;
- int yCoord = y + k1 - 1;
- int zCoord = z + k2 - 3;
- Block block = this.worldObj.getBlock(xCoord, yCoord, zCoord);
- if(world.getBlock(xCoord, yCoord, zCoord) instanceof IGrowable) {
- CommonHelper.fertilizer(world, block, xCoord, yCoord, zCoord, 8);
- if(ConfigHandler.blockBreakParticles)
- this.worldObj.playAuxSFX(2005, xCoord, yCoord, zCoord, 6 + this.worldObj.rand.nextInt(4));
- this.worldObj.playSoundEffect(x, y, z, "botania:agricarnation", 0.01F, 0.5F + (float) Math.random() * 0.5F);
- } else if(block instanceof BlockGrass && world.rand.nextInt(2) == 0) {
- if (!world.isRemote) {
- this.worldObj.playAuxSFX(2005, xCoord, yCoord + 1, zCoord, 6 + this.worldObj.rand.nextInt(4));
- ((BlockGrass)block).func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
- }
- } else if(!world.isRemote && BlockListAB.blockFreyrLiana.canBlockStay(world, xCoord, yCoord - 1, zCoord)) {
- Vec3 vec = Vec3.createVectorHelper(xCoord, yCoord, zCoord);
- int distant = (int)vec.squareDistanceTo(Vec3.createVectorHelper(x, y, z));
- yCoord--;
- if (this.worldObj.rand.nextInt(distant + 1) == 0)
- while (yCoord > 0) {
- block = worldObj.getBlock(xCoord, yCoord, zCoord);
- if(block.isAir(worldObj, xCoord, yCoord, zCoord)) {
- if(world.rand.nextInt(4) < 3)
- worldObj.setBlock(xCoord, yCoord, zCoord, BlockListAB.blockFreyrLiana);
- else
- worldObj.setBlock(xCoord, yCoord, zCoord,BlockListAB.blockLuminousFreyrLiana);
- worldObj.playAuxSFX(2001, xCoord, yCoord, zCoord, Block.getIdFromBlock(BlockListAB.blockFreyrLiana));
- yCoord--;
- } else
- break;
- }
- }
- }
- this.setDead();
- }
- }
-
- boolean isPlant(int x, int y, int z) {
- Block block = this.worldObj.getBlock(x, y, z);
- if(block == Blocks.grass || block == Blocks.leaves || block == Blocks.leaves2 || block instanceof BlockBush && !(block instanceof BlockCrops) && !(block instanceof BlockSapling))
- return false;
- Material mat = block.getMaterial();
- return mat != null && (mat == Material.plants || mat == Material.cactus || mat == Material.grass || mat == Material.leaves || mat == Material.gourd) && block instanceof IGrowable && ((IGrowable) block).func_149851_a(this.worldObj, x, y, z, this.worldObj.isRemote);
- }
-
- @SideOnly(Side.CLIENT)
- public void setPositionAndRotation2(double p_70056_1_, double p_70056_3_, double p_70056_5_, float p_70056_7_, float p_70056_8_, int p_70056_9_) {}
-
- protected float getGravityVelocity() {
- return 0.0f;
- }
-
- public void setDead() {
- if(this.worldObj.isRemote) {
- float m = 0.175F;
- for(int i = 0; i < 32; i++) {
- float mx = (float)(Math.random() - 0.5D) * m;
- float my = (float)(Math.random() - 0.5D) * m;
- float mz = (float)(Math.random() - 0.5D) * m;
- Color color = ClientHelper.getCorporeaRuneColor((int)posX, (int)posY, (int)posZ, 3);
- Botania.proxy.wispFX(worldObj, posX, posY, posZ, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float) (0.2f + (Math.random() * 0.12f)), mx, my, mz, 2.0f);
- }
- }
- super.setDead();
- }
-
- public void readFromNBT(NBTTagCompound nbtt) {
- super.readFromNBT(nbtt);
- maxAge = nbtt.getInteger("maxAge");
- age = nbtt.getInteger("age");
- }
-
- public void writeToNBT(NBTTagCompound nbtt) {
- super.writeToNBT(nbtt);
- nbtt.setInteger("maxAge", maxAge);
- nbtt.setInteger("age", age);
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/36/60230404deac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/36/60230404deac001c1d59e42be7477558
deleted file mode 100644
index 63e9378..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/36/60230404deac001c1d59e42be7477558
+++ /dev/null
@@ -1,91 +0,0 @@
-package ab.client.render.tile;
-
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.model.ModelDiceFate;
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.ResourceLocation;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class RenderTileGameBoard extends TileEntitySpecialRenderer {
-
- private static final ModelDiceFate model = new ModelDiceFate();
-
- private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/gameDice.png");
- private static final ResourceLocation textureEnemy = new ResourceLocation("ab:textures/model/gameDice_enemy.png");
-
- public void renderTileEntityAt(TileEntity tile, double x, double y, double z, float ticks) {
- double time = (tile.getWorldObj() == null) ? 0.0D : (ClientTickHandler.ticksInGame + ticks);
- if(tile != null)
- time += (new Random((tile.xCoord ^ tile.yCoord ^ tile.zCoord))).nextInt(360);
- TileGameBoard board = (TileGameBoard)tile;
- GL11.glEnable(3042);
- GL11.glEnable(32826);
- for(int i = 0; i < board.slotChance.length; i++) {
- if(board.slotChance[i] == 0)
- continue;
- time += i * 65;
- GL11.glPushMatrix();
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- float posX = 0.0f;
- float posY = 0.0f;
- float dropAnim = (1.0f - (Math.min(100.0f, board.clientTick[i] * board.clientTick[i] * ticks) / 100.0f));
- dropAnim = Math.min(1.0f, Math.max(dropAnim, 0));
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0f - dropAnim);
- switch(i) {
- case 0:
- posX = 0.16f + 0.08f * dropAnim;
- posY = 0.16f + 0.08f * dropAnim;
- break;
- case 1:
- posX = -0.16f - 0.08f * dropAnim;
- posY = 0.16f + 0.08f * dropAnim;
- break;
- case 2:
- posX = 0.16f + 0.08f * dropAnim;
- posY = -0.16f - 0.08f * dropAnim;
- break;
- case 3:
- posX = -0.16f - 0.08f * dropAnim;
- posY = -0.16f - 0.08f * dropAnim;
- break;
- }
- GL11.glTranslated(x, y, z);
- GL11.glTranslated(0.5f + posX, 0.02f + Math.sin(time / 12.0D) / 48.0D + (0.28f * dropAnim), 0.5f + posY);
- GL11.glScalef(0.25f, 0.25f, 0.25f);
- Minecraft.getMinecraft().renderEngine.bindTexture(i > 1 ? textureEnemy : texture);
- float dropAngel = 70.0f * dropAnim;
- switch(board.slotChance[i]) {
- case 1:
- model.render(180.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 2:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 3:
- model.render(90.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 4:
- model.render(270.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 5:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 270.0f);
- break;
- case 6:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 90.0f);
- break;
- default:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- }
- GL11.glPopMatrix();
- }
- GL11.glEnable(32826);
- GL11.glDisable(3042);
- }
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/37/304feba109b0001c18a5eba32f24fffa b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/37/304feba109b0001c18a5eba32f24fffa
deleted file mode 100644
index cf16847..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/37/304feba109b0001c18a5eba32f24fffa
+++ /dev/null
@@ -1,65 +0,0 @@
-package ab.common.block.subtile;
-
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.world.World;
-import vazkii.botania.api.subtile.SubTileGenerating;
-
-public class SubTileArdentAzarcissus extends SubTileGenerating {
-
- public static final String playerName = "ArdentAzarcissus#21sda2gaj91*21df#111sfq3jrns@#";
- int cooldown;
- int workMana = 400;
-
- public void onUpdate() {
- super.onUpdate();
- int posX = this.supertile.xCoord;
- int posY = this.supertile.yCoord;
- int posZ = this.supertile.zCoord;
- World world = this.supertile.getWorldObj();
- if(cooldown > 0) {
- cooldown--;
- return;
- }
- for(int i = -1; i <= 1; i++)
- for(int j = -1; j <= 1; j++) {
-// if(i == 0 || j == 0)
-// continue;
- int x = posX + i;
- int z = posZ + j;
- TileEntity tile = world.getTileEntity(x, posY, z);
- if(tile != null && tile instanceof TileGameBoard) {
- TileGameBoard board = (TileGameBoard)tile;
- if(board.isSingleGame) {
- if(!board.hasGame()) {
- board.setPlayer(playerName);
- cooldown = 20;
- }
- else {
- board.dropDice(playerName);
- cooldown = 20;
- }
- }
- }
- }
- }
-
- public int getMaxMana() {
- return 15000;
- }
-
- public int getColor() {
- return 0xd2cdb2;
- }
-
- public void writeToPacketNBT(NBTTagCompound cmp) {
- super.writeToPacketNBT(cmp);
- cmp.setInteger("cooldown", this.cooldown);
- }
-
- public void readFromPacketNBT(NBTTagCompound cmp) {
- super.readFromPacketNBT(cmp);
- this.cooldown = cmp.getInteger("cooldown");
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/37/30a856dd14be001c1965b122d2f8f403 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/37/30a856dd14be001c1965b122d2f8f403
new file mode 100644
index 0000000..4ba8479
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/37/30a856dd14be001c1965b122d2f8f403
@@ -0,0 +1,134 @@
+package ab.common.item.relic;
+
+import java.awt.Color;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.common.core.handler.NetworkHandler;
+import net.minecraft.block.Block;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.MathHelper;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.api.mana.ManaItemHandler;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class ItemSphereNavigation extends ItemModRelic {
+
+ public static final int rangeSearch = 24;
+ public static final int maxCooldown = 112;
+ public static final int manaCost = 3750;
+
+ public ItemSphereNavigation() {
+ super("sphereNavigation");
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int pos, boolean equipped) {
+ super.onUpdate(stack, world, entity, pos, equipped);
+ if(entity instanceof EntityPlayer) {
+ EntityPlayer player = (EntityPlayer)entity;
+ if(!world.isRemote && getFindBlock(stack) != null && canWork(stack) && ManaItemHandler.requestManaExactForTool(stack, player, manaCost, true)) {
+ setMaxTick(stack);
+ NetworkHandler.sendPacketToFindBlocks((EntityPlayerMP)player, getFindBlock(stack), getFindMeta(stack));
+ }
+ }
+ }
+
+ public static void findBlocks(World world, Block findBlock, int findMeta, EntityPlayer player) {
+ if(world.isRemote) {
+ int findedBlocks = 0;
+ label1703:
+ for(int x = -rangeSearch; x < rangeSearch; x++) {
+ if(world.rand.nextBoolean())
+ continue;
+ for(int y = -rangeSearch * 4; y < rangeSearch; y++) {
+ if(world.rand.nextBoolean())
+ continue;
+ for(int z = -rangeSearch; z < rangeSearch; z++) {
+ if(world.rand.nextBoolean())
+ continue;
+ else if(findedBlocks > 16)
+ break label1703;
+ int posX = MathHelper.floor_double(player.posX) + x;
+ int posY = MathHelper.floor_double(player.posY) + y;
+ int posZ = MathHelper.floor_double(player.posZ) + z;
+ if(posY < 0)
+ continue;
+ Block block = world.getBlock(posX, posY, posZ);
+ if(!Block.isEqualTo(block, findBlock))
+ continue;
+ int meta = world.getBlockMetadata(posX, posY, posZ);
+ if(meta == findMeta) {
+ findedBlocks++;
+ float maxAge = 2.7f + (0.5f * (float)(Math.random()));
+ Botania.proxy.setWispFXDepthTest(false);
+ float far = 120.0f - (((Math.abs(x) + Math.min(rangeSearch * 2.0f, Math.abs(y)) + Math.abs(z)) / (rangeSearch * 4.0f)) * 120.0f);
+ if(far <= 60)
+ far *= 0.15f;
+ Color color = new Color(Color.HSBtoRGB(far / 360.0f, 0.9f + (float)(Math.random() * 0.1f), 1.0f));
+ for(int i = 0; i < 11; i++)
+ Botania.proxy.wispFX(world, posX + 0.5f + (Math.random() - 0.5f), posY + 0.5f + (Math.random() - 0.5f), posZ + 0.5f + (Math.random() - 0.5f), color.getRed() / 100.0f, color.getGreen() / 100.0f, color.getBlue() / 100.0f, 0.3f + (float)(Math.random() * 0.25f), 0.0f, maxAge);
+ Botania.proxy.setWispFXDepthTest(true);
+ }
+ }
+ }
+ }
+ }
+ }
+
+ public boolean onItemUse(ItemStack stack, EntityPlayer p, World world, int x, int y, int z, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
+ if(p.isSneaking()) {
+ Block block = world.getBlock(x, y, z);
+ if(block != null) {
+ int meta = world.getBlockMetadata(x, y, z);
+ Item item = Item.getItemFromBlock(block);
+ if(item != null) {
+ ItemStack findStack = new ItemStack(block, 1, meta);
+ if(findStack != null) {
+ setFindBlock(stack, block, meta);
+ if(world.isRemote)
+ ItemsRemainingRender.set(findStack, findStack.getDisplayName());
+ }
+ }
+ return true;
+ }
+ }
+ return false;
+ }
+
+ public boolean canWork(ItemStack stack) {
+ int tick = ItemNBTHelper.getInt(stack, "cooldown", 0);
+ if(tick == 0)
+ return true;
+ else if(tick > 0)
+ ItemNBTHelper.setInt(stack, "cooldown", tick - 1);
+ return false;
+ }
+
+ public void setMaxTick(ItemStack stack) {
+ ItemNBTHelper.setInt(stack, "cooldown", maxCooldown);
+ }
+
+ public static void setFindBlock(ItemStack stack, Block block, int meta) {
+ ItemNBTHelper.setInt(stack, "findBlockID", Block.getIdFromBlock(block));
+ ItemNBTHelper.setInt(stack, "findBlockMeta", meta);
+ }
+
+ public static Block getFindBlock(ItemStack stack) {
+ int blockID = ItemNBTHelper.getInt(stack, "findBlockID", 0);
+ if(blockID == 0)
+ return null;
+ else
+ return Block.getBlockById(blockID);
+ }
+
+ public static int getFindMeta(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "findBlockMeta", -1);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/37/b0aa68dc01c0001c1965b122d2f8f403 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/37/b0aa68dc01c0001c1965b122d2f8f403
new file mode 100644
index 0000000..81cc35e
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/37/b0aa68dc01c0001c1965b122d2f8f403
@@ -0,0 +1,157 @@
+package ab.common.item.relic;
+
+import java.awt.Color;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.common.core.handler.NetworkHandler;
+import ab.common.lib.register.ItemListAB;
+import net.minecraft.block.Block;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.util.MathHelper;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.api.mana.ManaItemHandler;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class ItemSphereNavigation extends ItemModRelic {
+
+ public static final int rangeSearch = 16;
+ public static final int maxCooldown = 112;
+ public static final int manaCost = 1750;
+
+ public ItemSphereNavigation() {
+ super("sphereNavigation");
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int pos, boolean equipped) {
+ super.onUpdate(stack, world, entity, pos, equipped);
+ if(entity instanceof EntityPlayer) {
+ EntityPlayer player = (EntityPlayer)entity;
+ if(!world.isRemote && getFindBlock(stack) != null && canWork(stack) && ManaItemHandler.requestManaExactForTool(stack, player, manaCost, true)) {
+ setMaxTick(stack);
+ NetworkHandler.sendPacketToFindBlocks((EntityPlayerMP)player, getFindBlock(stack), getFindMeta(stack));
+ }
+ }
+ }
+
+ public static void findBlocks(World world, Block findBlock, int findMeta, EntityPlayer player) {
+ if(world.isRemote) {
+ ItemStack renderStack = null;
+ int findedBlocks = 0;
+ label1703:
+ for(int y = -rangeSearch * 2; y < rangeSearch; y++) {
+ for(int x = -rangeSearch; x < rangeSearch; x++) {
+ if(world.rand.nextBoolean())
+ continue;
+ for(int z = -rangeSearch; z < rangeSearch; z++) {
+ if(world.rand.nextBoolean())
+ continue;
+ else if(findedBlocks > 24)
+ break label1703;
+ int posX = MathHelper.floor_double(player.posX) + x;
+ int posY = MathHelper.floor_double(player.posY) + y;
+ int posZ = MathHelper.floor_double(player.posZ) + z;
+ if(posY < 0)
+ continue;
+ Block block = world.getBlock(posX, posY, posZ);
+ if(!Block.isEqualTo(block, findBlock))
+ continue;
+ int meta = world.getBlockMetadata(posX, posY, posZ);
+ if(meta == findMeta) {
+ if(renderStack == null)
+ renderStack = getRenderStackForBlock(world, block, meta, posX, posY, posZ);
+ findedBlocks++;
+ float maxAge = 2.7f + (0.5f * (float)(Math.random()));
+ Botania.proxy.setWispFXDepthTest(false);
+ Botania.proxy.setWispFXDistanceLimit(false);
+ float far = 120.0f - (((Math.abs(x) + Math.min(rangeSearch, Math.abs(y)) + Math.abs(z)) / (rangeSearch * 4.0f)) * 120.0f);
+ if(far <= 60)
+ far *= 0.15f;
+ Color color = new Color(Color.HSBtoRGB(far / 360.0f, 0.9f + (float)(Math.random() * 0.1f), 1.0f));
+ for(int i = 0; i < 11; i++)
+ Botania.proxy.wispFX(world, posX + 0.5f + (Math.random() - 0.5f), posY + 0.5f + (Math.random() - 0.5f), posZ + 0.5f + (Math.random() - 0.5f), color.getRed() / 100.0f, color.getGreen() / 100.0f, color.getBlue() / 100.0f, 0.3f + (float)(Math.random() * 0.25f), 0.0f, maxAge);
+ Botania.proxy.setWispFXDistanceLimit(true);
+ Botania.proxy.setWispFXDepthTest(true);
+ }
+ }
+ }
+ }
+ if(renderStack != null)
+ ItemsRemainingRender.set(renderStack, "íàéäåíî: " + findedBlocks);
+ }
+ }
+
+ public static ItemStack getRenderStackForBlock(World world, Block block, int meta, int x, int y, int z) {
+ if(block != null) {
+ Item item = Item.getItemFromBlock(block);
+ if(item != null) {
+ ItemStack findStack = new ItemStack(block, 1, meta);
+ if(findStack != null)
+ return findStack;
+ } else {
+ Item item1 = block.getItem(world, x, y, z);
+ if(item1 != null) {
+ ItemStack findStack = new ItemStack(item1, 1, meta);
+ if(findStack != null)
+ return findStack;
+ }
+ }
+ }
+ return null;
+ }
+
+ public boolean onItemUse(ItemStack stack, EntityPlayer p, World world, int x, int y, int z, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
+ if(p.isSneaking()) {
+ Block block = world.getBlock(x, y, z);
+ if(block != null) {
+ int meta = world.getBlockMetadata(x, y, z);
+ ItemStack findStack = getRenderStackForBlock(world, block, meta, x, y, z);
+ if(findStack != null) {
+ setFindBlock(stack, block, meta);
+ if(world.isRemote)
+ ItemsRemainingRender.set(findStack, findStack.getDisplayName());
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public boolean canWork(ItemStack stack) {
+ int tick = ItemNBTHelper.getInt(stack, "cooldown", 0);
+ if(tick == 0)
+ return true;
+ else if(tick > 0)
+ ItemNBTHelper.setInt(stack, "cooldown", tick - 1);
+ return false;
+ }
+
+ public void setMaxTick(ItemStack stack) {
+ ItemNBTHelper.setInt(stack, "cooldown", maxCooldown);
+ }
+
+ public static void setFindBlock(ItemStack stack, Block block, int meta) {
+ ItemNBTHelper.setInt(stack, "findBlockID", Block.getIdFromBlock(block));
+ ItemNBTHelper.setInt(stack, "findBlockMeta", meta);
+ }
+
+ public static Block getFindBlock(ItemStack stack) {
+ int blockID = ItemNBTHelper.getInt(stack, "findBlockID", 0);
+ if(blockID == 0)
+ return null;
+ else
+ return Block.getBlockById(blockID);
+ }
+
+ public static int getFindMeta(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "findBlockMeta", -1);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/39/a0870e58c1bc001c1a9f99005529f322 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/39/a0870e58c1bc001c1a9f99005529f322
new file mode 100644
index 0000000..fb2979b
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/39/a0870e58c1bc001c1a9f99005529f322
@@ -0,0 +1,38 @@
+package ab.client.render.block;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.client.render.tile.RenderTileManaContainer;
+import ab.common.block.tile.TileNidavellirForge;
+import ab.common.lib.register.BlockListAB;
+import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
+import net.minecraft.block.Block;
+import net.minecraft.client.renderer.RenderBlocks;
+import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.world.IBlockAccess;
+
+public class RenderBlockNidavellirForge implements ISimpleBlockRenderingHandler {
+
+ public void renderInventoryBlock(Block block, int metadata, int modelID, RenderBlocks renderer) {
+ GL11.glPushMatrix();
+ GL11.glTranslatef(-0.4F, -0.35F, -0.5F);
+ GL11.glScalef(1.25f, 1.25f, 1.25f);
+ TileNidavellirForge forge = new TileNidavellirForge();
+ RenderTileManaContainer.metadata = metadata;
+ TileEntityRendererDispatcher.instance.renderTileEntityAt((TileEntity)forge, 0.0D, 0.0D, 0.0D, 0.0F);
+ GL11.glPopMatrix();
+ }
+
+ public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId, RenderBlocks renderer) {
+ return false;
+ }
+
+ public int getRenderId() {
+ return BlockListAB.blockABPlateRI;
+ }
+
+ public boolean shouldRender3DInInventory(int modelId) {
+ return true;
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/39/e0e9e401ffac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/39/e0e9e401ffac001c1d59e42be7477558
deleted file mode 100644
index 92e9033..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/39/e0e9e401ffac001c1d59e42be7477558
+++ /dev/null
@@ -1,125 +0,0 @@
-package ab.common.block;
-
-import java.util.List;
-
-import ab.AdvancedBotany;
-import ab.common.block.tile.TileBoardFate;
-import ab.common.block.tile.TileGameBoard;
-import ab.common.block.tile.TileInventory;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockContainer;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.renderer.texture.IIconRegister;
-import net.minecraft.creativetab.CreativeTabs;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.IIcon;
-import net.minecraft.world.World;
-import vazkii.botania.api.wand.IWandable;
-
-public class BlockBoardFate extends BlockContainer implements IWandable {
-
- protected IIcon[] iconsFate;
- protected IIcon[] iconsBoard;
-
- public BlockBoardFate() {
- super(Material.iron);
- this.setCreativeTab(AdvancedBotany.tabAB);
- this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.1875F, 1.0F);
- this.setHardness(3.0F);
- this.setResistance(10.0F);
- this.setStepSound(soundTypeMetal);
- this.setBlockName("boardFate");
- }
-
- public void getSubBlocks(Item par1, CreativeTabs par2CreativeTabs, List list) {
- for(int i = 0; i < 2; i++)
- list.add(new ItemStack(par1, 1, i));
- }
-
- public void registerBlockIcons(IIconRegister ir) {
- this.iconsFate = new IIcon[3];
- this.iconsBoard = new IIcon[3];
- for(int i = 0; i < iconsFate.length; i++)
- this.iconsFate[i] = ir.registerIcon("ab:boardFate_" + i);
- for(int i = 0; i < iconsBoard.length; i++)
- this.iconsBoard[i] = ir.registerIcon("ab:gameBoard_" + i);
- }
-
- public IIcon getIcon(int side, int meta) {
- if(meta == 0)
- return this.iconsBoard[Math.min(2, side)];
- else
- return this.iconsFate[Math.min(2, side)];
- }
-
- public boolean isOpaqueCube() {
- return false;
- }
-
- public boolean renderAsNormalBlock() {
- return false;
- }
-
- public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float par7, float par8, float par9) {
- int meta = world.getBlockMetadata(x, y, z);
- if(meta == 0) {
- TileGameBoard tile = (TileGameBoard)world.getTileEntity(x, y, z);
- if(!tile.hasGame())
- tile.setPlayer(player);
- else if(!tile.isSingleGame && tile.playersName[1].isEmpty() && !tile.playersName[0].equals(player.getCommandSenderName()))
- tile.setPlayer(player);
- else {
- return tile.dropDice(player);
- }
- return false;
- } else {
- TileBoardFate tile = (TileBoardFate)world.getTileEntity(x, y, z);
- return tile.spawnRelic(player);
- }
- }
-
- public TileEntity createNewTileEntity(World world, int meta) {
- return meta == 0 ? new TileGameBoard() : new TileBoardFate();
- }
-
- public void breakBlock(World world, int x, int y, int z, Block block, int meta) {
- if(!world.isRemote && meta == 1) {
- TileInventory inv = (TileInventory)world.getTileEntity(x, y, z);
- if (inv != null) {
- for (int i = 0; i < inv.getSizeInventory(); i++) {
- ItemStack stack = inv.getStackInSlot(i);
- if (stack != null) {
- float f = world.rand.nextFloat() * 0.8F + 0.1F;
- float f1 = world.rand.nextFloat() * 0.8F + 0.1F;
- float f2 = world.rand.nextFloat() * 0.8F + 0.1F;
- EntityItem entityitem = new EntityItem(world, (x + f), (y + f1), (z + f2), stack.copy());
- float f3 = 0.05F;
- entityitem.motionX = ((float)world.rand.nextGaussian() * f3);
- entityitem.motionY = ((float)world.rand.nextGaussian() * f3 + 0.2F);
- entityitem.motionZ = ((float)world.rand.nextGaussian() * f3);
- if (stack.hasTagCompound())
- entityitem.getEntityItem().setTagCompound((NBTTagCompound)stack.getTagCompound().copy());
- world.spawnEntityInWorld(entityitem);
- }
- }
- }
- }
- super.breakBlock(world, x, y, z, block, meta);
- }
-
- public boolean onUsedByWand(EntityPlayer player, ItemStack stack, World world, int x, int y, int z, int side) {
- if(world.getBlockMetadata(x, y, z) == 0 && player.isSneaking()) {
- TileGameBoard tile = (TileGameBoard)world.getTileEntity(x, y, z);
- if(tile != null && !tile.hasGame()) {
- tile.isSingleGame = !tile.isSingleGame;
- return true;
- }
- }
- return false;
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/3a/30ba14ff30b0001c18a5eba32f24fffa b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/3a/30ba14ff30b0001c18a5eba32f24fffa
deleted file mode 100644
index 1b414a7..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/3a/30ba14ff30b0001c18a5eba32f24fffa
+++ /dev/null
@@ -1,35 +0,0 @@
-package ab.common.item.relic;
-
-import java.util.List;
-
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.item.ItemStack;
-import net.minecraft.world.World;
-import net.minecraftforge.common.MinecraftForge;
-import net.minecraftforge.event.entity.living.LivingDropsEvent;
-
-public class ItemSehrimnirHide extends ItemModRelic {
-
- public ItemSehrimnirHide() {
- super("sehrimnirHide");
- MinecraftForge.EVENT_BUS.register(this);
- }
-
- @SubscribeEvent
- public void onPlayerAttack(LivingDropsEvent event) {
- List items = event.drops;
- World world = event.entityLiving.worldObj;
- double posX = event.entityLiving.posX;
- double posY = event.entityLiving.posY;
- double posZ = event.entityLiving.posZ;
- for(EntityItem entity : items) {
- if(!world.isRemote) {
- ItemStack loot = entity.getEntityItem().copy();
- loot.stackSize = Math.max(1, (int)(loot.stackSize / 1.5f));
- EntityItem item = new EntityItem(world, posX, posY, posZ, loot);
- world.spawnEntityInWorld(item);
- }
- }
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/3a/607489ffbabc001c1a9f99005529f322 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/3a/607489ffbabc001c1a9f99005529f322
new file mode 100644
index 0000000..808e78d
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/3a/607489ffbabc001c1a9f99005529f322
@@ -0,0 +1,139 @@
+package ab.common.block;
+
+import ab.AdvancedBotany;
+import ab.common.block.tile.TileNidavellirForge;
+import ab.common.block.tile.TileInventory;
+import ab.common.lib.register.RecipeListAB;
+import net.minecraft.block.Block;
+import net.minecraft.block.BlockContainer;
+import net.minecraft.block.material.Material;
+import net.minecraft.client.renderer.texture.IIconRegister;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.MathHelper;
+import net.minecraft.util.Vec3;
+import net.minecraft.world.IBlockAccess;
+import net.minecraft.world.World;
+import vazkii.botania.api.BotaniaAPI;
+import vazkii.botania.api.lexicon.ILexiconable;
+import vazkii.botania.api.lexicon.LexiconEntry;
+
+public class BlockNidavellirForge extends BlockContainer implements ILexiconable {
+
+ public BlockNidavellirForge() {
+ super(Material.iron);
+ this.setCreativeTab(AdvancedBotany.tabAB);
+ this.setHardness(3.0F);
+ this.setResistance(10.0F);
+ this.setStepSound(soundTypeMetal);
+ this.setBlockName("ABPlate");
+ }
+
+ public void setBlockBoundsBasedOnState(IBlockAccess world, int x, int y, int z) {
+ float f = 0.1875F;
+ float f1 = 0.125F;
+ switch(world.getBlockMetadata(x, y, z)) {
+ case 0: this.setBlockBounds(f, 0.0F, f1, 1.0F - f, 0.75F, 1.0F);
+ break;
+ default: this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
+ }
+// if(world.getBlockMetadata(x, y, z) % 2 == 0)
+// this.setBlockBounds(f, 0.0F, 0.0F, 1.0F - f, 0.75F, 1.0F);
+// else
+// this.setBlockBounds(0.0F, 0.0F, f, 1.0F, 0.75F, 1.0F - f);
+ }
+
+ public void onBlockPlacedBy(World world, int x, int y, int z, EntityLivingBase liv, ItemStack stack) {
+ int meta = MathHelper.floor_double((double)(liv.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3;
+ world.setBlockMetadataWithNotify(x, y, z, meta, 3);
+ }
+
+ public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int par6, float par7, float par8, float par9) {
+ TileNidavellirForge tile = (TileNidavellirForge)world.getTileEntity(x, y, z);
+ if(player.isSneaking()) {
+ if(tile.getStackInSlot(0) != null) {
+ ItemStack copy = tile.getStackInSlot(0).copy();
+ if(!world.isRemote) {
+ Vec3 vec3 = player.getLook(1.0F).normalize();
+ EntityItem entityitem = new EntityItem(world, player.posX + vec3.xCoord, player.posY + 1.2f, player.posZ + vec3.zCoord, copy);
+ world.spawnEntityInWorld(entityitem);
+ tile.requestUpdate = true;
+ }
+ tile.setInventorySlotContents(0, null);
+ world.func_147453_f(x, y, z, (Block)this);
+ return true;
+ }
+ for(int i = tile.getSizeInventory() - 1; i > 0; i--) {
+ ItemStack stack = tile.getStackInSlot(i);
+ if(stack != null) {
+ ItemStack copy = stack.copy();
+ if(!world.isRemote) {
+ Vec3 vec3 = player.getLook(1.0F).normalize();
+ EntityItem entityitem = new EntityItem(world, player.posX + vec3.xCoord, player.posY + 1.2f, player.posZ + vec3.zCoord, copy);
+ world.spawnEntityInWorld(entityitem);
+ tile.requestUpdate = true;
+ }
+ tile.setInventorySlotContents(i, null);
+ world.func_147453_f(x, y, z, (Block)this);
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public void breakBlock(World world, int x, int y, int z, Block block, int meta) {
+ if(!world.isRemote) {
+ TileInventory inv = (TileInventory)world.getTileEntity(x, y, z);
+ if (inv != null) {
+ for (int i = 0; i < inv.getSizeInventory(); i++) {
+ ItemStack stack = inv.getStackInSlot(i);
+ if (stack != null) {
+ float f = world.rand.nextFloat() * 0.8F + 0.1F;
+ float f1 = world.rand.nextFloat() * 0.8F + 0.1F;
+ float f2 = world.rand.nextFloat() * 0.8F + 0.1F;
+ EntityItem entityitem = new EntityItem(world, (x + f), (y + f1), (z + f2), stack.copy());
+ float f3 = 0.05F;
+ entityitem.motionX = ((float)world.rand.nextGaussian() * f3);
+ entityitem.motionY = ((float)world.rand.nextGaussian() * f3 + 0.2F);
+ entityitem.motionZ = ((float)world.rand.nextGaussian() * f3);
+ if (stack.hasTagCompound())
+ entityitem.getEntityItem().setTagCompound((NBTTagCompound)stack.getTagCompound().copy());
+ world.spawnEntityInWorld(entityitem);
+ }
+ }
+ }
+ }
+ super.breakBlock(world, x, y, z, block, meta);
+ }
+
+ public int getRenderType() {
+ return -1;
+ }
+
+ public boolean renderAsNormalBlock() {
+ return false;
+ }
+
+ public boolean isOpaqueCube() {
+ return false;
+ }
+
+ public boolean getBlocksMovement(IBlockAccess p_149655_1_, int p_149655_2_, int p_149655_3_, int p_149655_4_) {
+ return false;
+ }
+
+ public TileEntity createNewTileEntity(World world, int meta) {
+ return new TileNidavellirForge();
+ }
+
+ public LexiconEntry getEntry(World arg0, int arg1, int arg2, int arg3, EntityPlayer arg4, ItemStack arg5) {
+ return RecipeListAB.advandedAgglomerationPlate;
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/3a/8088e18b18b0001c18a5eba32f24fffa b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/3a/8088e18b18b0001c18a5eba32f24fffa
deleted file mode 100644
index 03312ce..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/3a/8088e18b18b0001c18a5eba32f24fffa
+++ /dev/null
@@ -1,80 +0,0 @@
-package ab.common.block.subtile;
-
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.world.World;
-import vazkii.botania.api.subtile.SubTileGenerating;
-
-public class SubTileArdentAzarcissus extends SubTileGenerating {
-
- public static final String playerName = "ArdentAzarcissus#21sda2gaj91*21df#111sfq3jrns@#";
- int cooldown;
- int workMana = 400;
-
- public void onUpdate() {
- super.onUpdate();
- World world = this.supertile.getWorldObj();
- int posX = this.supertile.xCoord;
- int posY = this.supertile.yCoord;
- int posZ = this.supertile.zCoord;
- if(world.isRemote)
- return;
- if(cooldown > 0) {
- cooldown--;
- return;
- } else if (this.mana == this.getMaxMana())
- return;
- boolean needSync = false;
- for(int i = -1; i <= 1; i++)
- for(int j = -1; j <= 1; j++) {
- int x = posX + i;
- int z = posZ + j;
- TileEntity tile = world.getTileEntity(x, posY, z);
- if(tile != null && tile instanceof TileGameBoard) {
- TileGameBoard board = (TileGameBoard)tile;
- if(board.isSingleGame) {
- if(!board.hasGame()) {
- board.setPlayer(playerName, true);
- cooldown = 80;
- } else {
- if(!board.playersName[0].equals(playerName))
- board.playersName[0] = playerName;
- if(!board.isCustomGame)
- board.isCustomGame = true;
- if(board.endGameTick == 0) {
- int winCount = (board.slotChance[0] + board.slotChance[1]) - (board.slotChance[2] + board.slotChance[3]);
- if(winCount > 0) {
- this.mana = Math.min(this.getMaxMana(), this.mana + (workMana * winCount));
- needSync = true;
- }
- board.finishGame(false);
- } else
- board.dropDice(playerName);
- cooldown = 120;
- }
- }
- }
- }
- if(needSync)
- sync();
- }
-
- public int getMaxMana() {
- return 16000;
- }
-
- public int getColor() {
- return 0xd2cdb2;
- }
-
- public void writeToPacketNBT(NBTTagCompound cmp) {
- super.writeToPacketNBT(cmp);
- cmp.setInteger("cooldown", this.cooldown);
- }
-
- public void readFromPacketNBT(NBTTagCompound cmp) {
- super.readFromPacketNBT(cmp);
- this.cooldown = cmp.getInteger("cooldown");
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/3a/e0e909bf5dc1001c11e398ea97007cb4 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/3a/e0e909bf5dc1001c11e398ea97007cb4
new file mode 100644
index 0000000..bcc1afe
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/3a/e0e909bf5dc1001c11e398ea97007cb4
@@ -0,0 +1,158 @@
+package ab.common.item.relic;
+
+import java.awt.Color;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.common.core.handler.NetworkHandler;
+import ab.common.lib.register.ItemListAB;
+import net.minecraft.block.Block;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.util.MathHelper;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.api.mana.ManaItemHandler;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class ItemSphereNavigation extends ItemModRelic {
+
+ public static final int rangeSearch = 16;
+ public static final int maxCooldown = 112;
+ public static final int manaCost = 1750;
+
+ public ItemSphereNavigation() {
+ super("sphereNavigation");
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int pos, boolean equipped) {
+ super.onUpdate(stack, world, entity, pos, equipped);
+ if(entity instanceof EntityPlayer) {
+ EntityPlayer player = (EntityPlayer)entity;
+ if(!world.isRemote && getFindBlock(stack) != null && canWork(stack) && ManaItemHandler.requestManaExactForTool(stack, player, manaCost, true)) {
+ setMaxTick(stack);
+ NetworkHandler.sendPacketToFindBlocks((EntityPlayerMP)player, getFindBlock(stack), getFindMeta(stack));
+ }
+ }
+ }
+
+ public static void findBlocks(World world, Block findBlock, int findMeta, EntityPlayer player) {
+ if(world.isRemote) {
+ ItemStack renderStack = null;
+ int maxFindedBlocks = 32;
+ int findedBlocks = 0;
+ label1703:
+ for(int y = -rangeSearch * 2; y < rangeSearch; y++) {
+ for(int x = -rangeSearch; x < rangeSearch; x++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks)) || world.rand.nextBoolean())
+ continue;
+ for(int z = -rangeSearch; z < rangeSearch; z++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks)) || world.rand.nextBoolean())
+ continue;
+ else if(findedBlocks >= maxFindedBlocks)
+ break label1703;
+ int posX = MathHelper.floor_double(player.posX) + x;
+ int posY = MathHelper.floor_double(player.posY) + y;
+ int posZ = MathHelper.floor_double(player.posZ) + z;
+ if(posY < 0)
+ continue;
+ Block block = world.getBlock(posX, posY, posZ);
+ if(!Block.isEqualTo(block, findBlock))
+ continue;
+ int meta = world.getBlockMetadata(posX, posY, posZ);
+ if(meta == findMeta) {
+ if(renderStack == null)
+ renderStack = getRenderStackForBlock(world, block, meta, posX, posY, posZ);
+ findedBlocks++;
+ float maxAge = 2.7f + (0.5f * (float)(Math.random()));
+ Botania.proxy.setWispFXDepthTest(false);
+ Botania.proxy.setWispFXDistanceLimit(false);
+ float far = 120.0f - (((Math.abs(x) + Math.min(rangeSearch, Math.abs(y)) + Math.abs(z)) / (rangeSearch * 4.0f)) * 120.0f);
+ if(far <= 40)
+ far *= 0.15f;
+ Color color = new Color(Color.HSBtoRGB(far / 360.0f, 0.9f + (float)(Math.random() * 0.1f), 1.0f));
+ for(int i = 0; i < 11; i++)
+ Botania.proxy.wispFX(world, posX + 0.5f + (Math.random() - 0.5f), posY + 0.5f + (Math.random() - 0.5f), posZ + 0.5f + (Math.random() - 0.5f), color.getRed() / 100.0f, color.getGreen() / 100.0f, color.getBlue() / 100.0f, 0.3f + (float)(Math.random() * 0.25f), 0.0f, maxAge);
+ Botania.proxy.setWispFXDistanceLimit(true);
+ Botania.proxy.setWispFXDepthTest(true);
+ }
+ }
+ }
+ }
+ if(renderStack != null)
+ ItemsRemainingRender.set(renderStack, "íàéäåíî: " + findedBlocks);
+ }
+ }
+
+ public static ItemStack getRenderStackForBlock(World world, Block block, int meta, int x, int y, int z) {
+ if(block != null) {
+ Item item = Item.getItemFromBlock(block);
+ if(item != null) {
+ ItemStack findStack = new ItemStack(block, 1, meta);
+ if(findStack != null)
+ return findStack;
+ } else {
+ Item item1 = block.getItem(world, x, y, z);
+ if(item1 != null) {
+ ItemStack findStack = new ItemStack(item1, 1, meta);
+ if(findStack != null)
+ return findStack;
+ }
+ }
+ }
+ return null;
+ }
+
+ public boolean onItemUse(ItemStack stack, EntityPlayer p, World world, int x, int y, int z, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
+ if(p.isSneaking()) {
+ Block block = world.getBlock(x, y, z);
+ if(block != null) {
+ int meta = world.getBlockMetadata(x, y, z);
+ ItemStack findStack = getRenderStackForBlock(world, block, meta, x, y, z);
+ if(findStack != null) {
+ setFindBlock(stack, block, meta);
+ if(world.isRemote)
+ ItemsRemainingRender.set(findStack, findStack.getDisplayName());
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public boolean canWork(ItemStack stack) {
+ int tick = ItemNBTHelper.getInt(stack, "cooldown", 0);
+ if(tick == 0)
+ return true;
+ else if(tick > 0)
+ ItemNBTHelper.setInt(stack, "cooldown", tick - 1);
+ return false;
+ }
+
+ public void setMaxTick(ItemStack stack) {
+ ItemNBTHelper.setInt(stack, "cooldown", maxCooldown);
+ }
+
+ public static void setFindBlock(ItemStack stack, Block block, int meta) {
+ ItemNBTHelper.setInt(stack, "findBlockID", Block.getIdFromBlock(block));
+ ItemNBTHelper.setInt(stack, "findBlockMeta", meta);
+ }
+
+ public static Block getFindBlock(ItemStack stack) {
+ int blockID = ItemNBTHelper.getInt(stack, "findBlockID", 0);
+ if(blockID == 0)
+ return null;
+ else
+ return Block.getBlockById(blockID);
+ }
+
+ public static int getFindMeta(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "findBlockMeta", -1);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/3b/1079d886bcbc001c1a9f99005529f322 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/3b/1079d886bcbc001c1a9f99005529f322
new file mode 100644
index 0000000..ae743d2
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/3b/1079d886bcbc001c1a9f99005529f322
@@ -0,0 +1,141 @@
+package ab.common.block;
+
+import ab.AdvancedBotany;
+import ab.common.block.tile.TileNidavellirForge;
+import ab.common.block.tile.TileInventory;
+import ab.common.lib.register.RecipeListAB;
+import net.minecraft.block.Block;
+import net.minecraft.block.BlockContainer;
+import net.minecraft.block.material.Material;
+import net.minecraft.client.renderer.texture.IIconRegister;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.MathHelper;
+import net.minecraft.util.Vec3;
+import net.minecraft.world.IBlockAccess;
+import net.minecraft.world.World;
+import vazkii.botania.api.BotaniaAPI;
+import vazkii.botania.api.lexicon.ILexiconable;
+import vazkii.botania.api.lexicon.LexiconEntry;
+
+public class BlockNidavellirForge extends BlockContainer implements ILexiconable {
+
+ public BlockNidavellirForge() {
+ super(Material.iron);
+ this.setCreativeTab(AdvancedBotany.tabAB);
+ this.setHardness(3.0F);
+ this.setResistance(10.0F);
+ this.setStepSound(soundTypeMetal);
+ this.setBlockName("ABPlate");
+ }
+
+ public void setBlockBoundsBasedOnState(IBlockAccess world, int x, int y, int z) {
+ float f = 0.1875F;
+ float f1 = 0.0625F;
+ switch(world.getBlockMetadata(x, y, z)) {
+ case 0: this.setBlockBounds(f, 0.0F, f1, 1.0F - f, 0.75F, 1.0F);
+ break;
+ case 1: this.setBlockBounds(0.0F, 0.0F, f, 1.0F - f1, 0.75F, 1.0F - f);
+ break;
+ case 2: this.setBlockBounds(f, 0.0F, 0.0F, 1.0F - f, 0.75F, 1.0F - f1);
+ break;
+ case 3: this.setBlockBounds(f1, 0.0F, f, 1.0F, 0.75F, 1.0F - f);
+ break;
+ default: this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
+ }
+ }
+
+ public void onBlockPlacedBy(World world, int x, int y, int z, EntityLivingBase liv, ItemStack stack) {
+ int meta = MathHelper.floor_double((double)(liv.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3;
+ world.setBlockMetadataWithNotify(x, y, z, meta, 3);
+ }
+
+ public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int par6, float par7, float par8, float par9) {
+ TileNidavellirForge tile = (TileNidavellirForge)world.getTileEntity(x, y, z);
+ if(player.isSneaking()) {
+ if(tile.getStackInSlot(0) != null) {
+ ItemStack copy = tile.getStackInSlot(0).copy();
+ if(!world.isRemote) {
+ Vec3 vec3 = player.getLook(1.0F).normalize();
+ EntityItem entityitem = new EntityItem(world, player.posX + vec3.xCoord, player.posY + 1.2f, player.posZ + vec3.zCoord, copy);
+ world.spawnEntityInWorld(entityitem);
+ tile.requestUpdate = true;
+ }
+ tile.setInventorySlotContents(0, null);
+ world.func_147453_f(x, y, z, (Block)this);
+ return true;
+ }
+ for(int i = tile.getSizeInventory() - 1; i > 0; i--) {
+ ItemStack stack = tile.getStackInSlot(i);
+ if(stack != null) {
+ ItemStack copy = stack.copy();
+ if(!world.isRemote) {
+ Vec3 vec3 = player.getLook(1.0F).normalize();
+ EntityItem entityitem = new EntityItem(world, player.posX + vec3.xCoord, player.posY + 1.2f, player.posZ + vec3.zCoord, copy);
+ world.spawnEntityInWorld(entityitem);
+ tile.requestUpdate = true;
+ }
+ tile.setInventorySlotContents(i, null);
+ world.func_147453_f(x, y, z, (Block)this);
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public void breakBlock(World world, int x, int y, int z, Block block, int meta) {
+ if(!world.isRemote) {
+ TileInventory inv = (TileInventory)world.getTileEntity(x, y, z);
+ if (inv != null) {
+ for (int i = 0; i < inv.getSizeInventory(); i++) {
+ ItemStack stack = inv.getStackInSlot(i);
+ if (stack != null) {
+ float f = world.rand.nextFloat() * 0.8F + 0.1F;
+ float f1 = world.rand.nextFloat() * 0.8F + 0.1F;
+ float f2 = world.rand.nextFloat() * 0.8F + 0.1F;
+ EntityItem entityitem = new EntityItem(world, (x + f), (y + f1), (z + f2), stack.copy());
+ float f3 = 0.05F;
+ entityitem.motionX = ((float)world.rand.nextGaussian() * f3);
+ entityitem.motionY = ((float)world.rand.nextGaussian() * f3 + 0.2F);
+ entityitem.motionZ = ((float)world.rand.nextGaussian() * f3);
+ if (stack.hasTagCompound())
+ entityitem.getEntityItem().setTagCompound((NBTTagCompound)stack.getTagCompound().copy());
+ world.spawnEntityInWorld(entityitem);
+ }
+ }
+ }
+ }
+ super.breakBlock(world, x, y, z, block, meta);
+ }
+
+ public int getRenderType() {
+ return -1;
+ }
+
+ public boolean renderAsNormalBlock() {
+ return false;
+ }
+
+ public boolean isOpaqueCube() {
+ return false;
+ }
+
+ public boolean getBlocksMovement(IBlockAccess p_149655_1_, int p_149655_2_, int p_149655_3_, int p_149655_4_) {
+ return false;
+ }
+
+ public TileEntity createNewTileEntity(World world, int meta) {
+ return new TileNidavellirForge();
+ }
+
+ public LexiconEntry getEntry(World arg0, int arg1, int arg2, int arg3, EntityPlayer arg4, ItemStack arg5) {
+ return RecipeListAB.advandedAgglomerationPlate;
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/3b/e080c97741b0001c1746c57a5fe46fd3 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/3b/e080c97741b0001c1746c57a5fe46fd3
deleted file mode 100644
index 4d0acab..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/3b/e080c97741b0001c1746c57a5fe46fd3
+++ /dev/null
@@ -1,47 +0,0 @@
-package ab.common.item.relic;
-
-import java.lang.reflect.InvocationTargetException;
-import java.util.List;
-
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import cpw.mods.fml.relauncher.ReflectionHelper;
-import net.minecraft.entity.EntityLivingBase;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.ItemStack;
-import net.minecraft.world.World;
-import net.minecraftforge.common.MinecraftForge;
-import net.minecraftforge.event.entity.living.LivingDropsEvent;
-
-public class ItemSehrimnirHide extends ItemModRelic {
-
- public static final String[] dropFewItems = new String[] { "dropFewItems", "func_70628_a" };
-
- public ItemSehrimnirHide() {
- super("sehrimnirHide");
- MinecraftForge.EVENT_BUS.register(this);
- }
-
- @SubscribeEvent
- public void onPlayerAttack(LivingDropsEvent event) {
- if(event != null && event.source != null && event.source.getSourceOfDamage() instanceof EntityPlayer) {
- EntityPlayer player = (EntityPlayer)event.source.getSourceOfDamage();
- if(player.inventory.hasItem(this)) {
- if(event.entityLiving != null && event.drops != null) {
- List items = event.drops;
- World world = event.entityLiving.worldObj;
- double posX = event.entityLiving.posX;
- double posY = event.entityLiving.posY;
- double posZ = event.entityLiving.posZ;
- if(!world.isRemote) {
- for(EntityItem entity : items) {
- ItemStack loot = entity.getEntityItem().copy();
- EntityItem item = new EntityItem(world, posX, posY, posZ, loot);
- world.spawnEntityInWorld(item);
- }
- }
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/3d/60eec6aa32b0001c1746c57a5fe46fd3 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/3d/60eec6aa32b0001c1746c57a5fe46fd3
deleted file mode 100644
index eb26de5..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/3d/60eec6aa32b0001c1746c57a5fe46fd3
+++ /dev/null
@@ -1,50 +0,0 @@
-package ab.common.item.relic;
-
-import java.lang.reflect.InvocationTargetException;
-import java.util.List;
-
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import cpw.mods.fml.relauncher.ReflectionHelper;
-import net.minecraft.entity.EntityLivingBase;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.item.ItemStack;
-import net.minecraft.world.World;
-import net.minecraftforge.common.MinecraftForge;
-import net.minecraftforge.event.entity.living.LivingDropsEvent;
-
-public class ItemSehrimnirHide extends ItemModRelic {
-
- public static final String[] dropFewItems = new String[] { "dropFewItems", "field_75307_b", "a" };
-
- public ItemSehrimnirHide() {
- super("sehrimnirHide");
- MinecraftForge.EVENT_BUS.register(this);
- }
-
- @SubscribeEvent
- public void onPlayerAttack(LivingDropsEvent event) {
-
-// .invoke(event.entityLiving, new Object[] {true, 5});
- EntityLivingBase liv = event.entityLiving;
- try {
- ReflectionHelper.findMethod(EntityLivingBase.class, liv, dropFewItems, new Class[0]).invoke(liv, true, 5);
- } catch (Exception e) {
- e.printStackTrace();
- }
-
-
-// List items = event.drops;
-// World world = event.entityLiving.worldObj;
-// double posX = event.entityLiving.posX;
-// double posY = event.entityLiving.posY;
-// double posZ = event.entityLiving.posZ;
-// for(EntityItem entity : items) {
-// if(!world.isRemote) {
-// ItemStack loot = entity.getEntityItem().copy();
-// loot.stackSize = Math.max(1, (int)(loot.stackSize / 1.5f));
-// EntityItem item = new EntityItem(world, posX, posY, posZ, loot);
-// world.spawnEntityInWorld(item);
-// }
-// }
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/3d/a0430e459cb1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/3d/a0430e459cb1001c19bf8a91ac37238b
deleted file mode 100644
index 66b19d6..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/3d/a0430e459cb1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,83 +0,0 @@
-package ab.client.core.handler;
-
-import java.awt.Color;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.armor.ItemNebulaArmor;
-import ab.common.item.equipment.armor.ItemNebulaHelm;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.ItemRenderer;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.texture.TextureMap;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraftforge.client.event.RenderPlayerEvent;
-import vazkii.botania.api.item.IPhantomInkable;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class PlayerRendererHandler {
-
- @SubscribeEvent
- public void onPlayerRender(RenderPlayerEvent.Specials.Pre event) {
- EntityPlayer player = event.entityPlayer;
- ItemStack item = player.getCurrentArmor(3);
- if(item != null && item.getItem() instanceof ItemNebulaHelm) {
- Item helm = player.getCurrentArmor(3).getItem();
- boolean hasPhantomInk = helm instanceof IPhantomInkable && ((IPhantomInkable)helm).hasPhantomInk(item);
- if(!hasPhantomInk && ((ItemNebulaHelm)helm).enableCosmicFace(item)) {
- float angelX = event.renderer.modelBipedMain.bipedHead.rotateAngleX * 180.0F / (float)Math.PI;
- float angelY = event.renderer.modelBipedMain.bipedHead.rotateAngleY * 180.0F / (float)Math.PI;
- GL11.glPushMatrix();
- if(player.isSneaking())
- GL11.glTranslatef(event.renderer.modelBipedMain.bipedHead.rotationPointX * 0.0625f, event.renderer.modelBipedMain.bipedHead.rotationPointY * 0.0625f, 0.0f);
- GL11.glRotatef(angelY, 0.0F, 1.0F, 0.0F);
- GL11.glRotatef(angelX, 1.0F, 0.0F, 0.0F);
- renderCosmicFace();
- GL11.glPopMatrix();
- }
- }
- }
-
- private void renderCosmicFace() {
- double worldTime = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- GL11.glPushMatrix();
- GL11.glEnable(GL11.GL_TEXTURE_2D);
- GL11.glDisable(2884);
-
- GL11.glPushMatrix();
- GL11.glScalef(0.5f, 0.4f, 0.4f);
- GL11.glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
- GL11.glTranslatef(-0.5f, -0.8675f, 0.0f);
- GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
- ClientHelper.renderCosmicBackground();
- GL11.glPopMatrix();
-
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
-// OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- (Minecraft.getMinecraft()).renderEngine.bindTexture(TextureMap.locationItemsTexture);
- GL11.glTranslatef(-0.2F, -0.35F, -0.25F);
- GL11.glScalef(0.4f, 0.4f, 0.4f);
- float f = ItemNebulaArmor.nebulaEyes.getMinU();
- float f1 = ItemNebulaArmor.nebulaEyes.getMaxU();
- float f2 = ItemNebulaArmor.nebulaEyes.getMinV();
- float f3 = ItemNebulaArmor.nebulaEyes.getMaxV();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float r = color.getRed() / 510.0F;
- float g = color.getGreen() / 510.0F;
- float b = color.getBlue() / 510.0F;
- GL11.glColor4f(0.5f + r, 0.5f + g, 0.5f + b, 0.685f + (float)Math.sin(worldTime / 50.0D) * 0.175F);
- ItemRenderer.renderItemIn2D(Tessellator.instance, f1, f2, f, f3, ItemNebulaArmor.nebulaEyes.getIconWidth(), ItemNebulaArmor.nebulaEyes.getIconHeight(), 0.03125F);
- GL11.glDisable(3042);
- GL11.glEnable(32826);
- GL11.glPopMatrix();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/3e/40bd0a9ff5b0001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/3e/40bd0a9ff5b0001c19bf8a91ac37238b
deleted file mode 100644
index 75d0ba3..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/3e/40bd0a9ff5b0001c19bf8a91ac37238b
+++ /dev/null
@@ -1,85 +0,0 @@
-package ab.client.core.handler;
-
-import java.awt.Color;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.armor.ItemNebulaArmor;
-import ab.common.item.equipment.armor.ItemNebulaHelm;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.ItemRenderer;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.texture.TextureMap;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraftforge.client.event.RenderPlayerEvent;
-import vazkii.botania.api.item.IPhantomInkable;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class PlayerRendererHandler {
-
- @SubscribeEvent
- public void onPlayerRender(RenderPlayerEvent.Specials.Post event) {
- EntityPlayer player = event.entityPlayer;
- ItemStack item = player.getCurrentArmor(3);
- if(item != null && item.getItem() instanceof ItemNebulaHelm) {
- Item helm = player.getCurrentArmor(3).getItem();
- boolean hasPhantomInk = helm instanceof IPhantomInkable && ((IPhantomInkable)helm).hasPhantomInk(item);
- if(!hasPhantomInk && ((ItemNebulaHelm)helm).enableCosmicFace(item)) {
- float angelX = event.renderer.modelBipedMain.bipedHead.rotateAngleX * 180.0F / (float)Math.PI;
- float angelY = event.renderer.modelBipedMain.bipedHead.rotateAngleY * 180.0F / (float)Math.PI;
- GL11.glPushMatrix();
- if(player.isSneaking())
- GL11.glTranslatef(event.renderer.modelBipedMain.bipedHead.rotationPointX * 0.0625f, event.renderer.modelBipedMain.bipedHead.rotationPointY * 0.0625f, 0.0f);
- GL11.glRotatef(angelY, 0.0F, 1.0F, 0.0F);
- GL11.glRotatef(angelX, 1.0F, 0.0F, 0.0F);
- renderCosmicFace();
- GL11.glPopMatrix();
- }
- }
- }
-
- private void renderCosmicFace() {
- double worldTime = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- GL11.glPushMatrix();
- GL11.glEnable(GL11.GL_TEXTURE_2D);
-// GL11.glDisable(2912);
- GL11.glDisable(2884);
-
- GL11.glPushMatrix();
- GL11.glScalef(0.5f, 0.4f, 0.4f);
- GL11.glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
- GL11.glTranslatef(-0.5f, -0.8675f, 0.0f);
- GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
- // ClientHelper.renderCosmicBackground();
- GL11.glPopMatrix();
-
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- (Minecraft.getMinecraft()).renderEngine.bindTexture(TextureMap.locationItemsTexture);
- GL11.glTranslatef(-0.2F, -0.35F, -0.25F);
- GL11.glScalef(0.4f, 0.4f, 0.4f);
- float f = ItemNebulaArmor.nebulaEyes.getMinU();
- float f1 = ItemNebulaArmor.nebulaEyes.getMaxU();
- float f2 = ItemNebulaArmor.nebulaEyes.getMinV();
- float f3 = ItemNebulaArmor.nebulaEyes.getMaxV();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float r = color.getRed() / 510.0F;
- float g = color.getGreen() / 510.0F;
- float b = color.getBlue() / 510.0F;
- GL11.glColor4f(0.5f + r, 0.5f + g, 0.5f + b, 0.685f + (float)Math.sin(worldTime / 50.0D) * 0.175F);
- ItemRenderer.renderItemIn2D(Tessellator.instance, f1, f2, f, f3, ItemNebulaArmor.nebulaEyes.getIconWidth(), ItemNebulaArmor.nebulaEyes.getIconHeight(), 0.03125F);
- GL11.glDisable(3042);
- GL11.glEnable(2884);
- GL11.glEnable(32826);
- GL11.glPopMatrix();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/3e/607a586d8cc1001c11e398ea97007cb4 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/3e/607a586d8cc1001c11e398ea97007cb4
new file mode 100644
index 0000000..d842698
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/3e/607a586d8cc1001c11e398ea97007cb4
@@ -0,0 +1,5 @@
+package ab.api;
+
+public interface IEngeneerLens {
+
+}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/3e/90814b31bdb1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/3e/90814b31bdb1001c19bf8a91ac37238b
deleted file mode 100644
index e8fbb9d..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/3e/90814b31bdb1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,169 +0,0 @@
-package ab.common.entity;
-
-import java.awt.Color;
-import java.util.List;
-import java.util.Random;
-
-import ab.client.core.ClientHelper;
-import ab.common.core.CommonHelper;
-import ab.common.lib.register.BlockListAB;
-import cpw.mods.fml.relauncher.ReflectionHelper;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockBush;
-import net.minecraft.block.BlockCrops;
-import net.minecraft.block.BlockGrass;
-import net.minecraft.block.BlockSapling;
-import net.minecraft.block.IGrowable;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.EntityLivingBase;
-import net.minecraft.entity.passive.EntityAnimal;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.entity.projectile.EntityThrowable;
-import net.minecraft.init.Blocks;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.potion.PotionEffect;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.MathHelper;
-import net.minecraft.util.MovingObjectPosition;
-import net.minecraft.util.Vec3;
-import net.minecraft.world.World;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.core.handler.ConfigHandler;
-import vazkii.botania.common.lib.LibObfuscation;
-
-public class EntityManaVine extends EntityThrowable {
-
- public EntityManaVine(World world) {
- super(world);
- }
-
- public EntityManaVine(World world, EntityLivingBase entity) {
- super(world, entity);
- }
-
- protected void entityInit() {
- super.entityInit();
- this.dataWatcher.addObject(28, "");
- this.dataWatcher.setObjectWatched(28);
- }
-
- public String getAttacker() {
- return this.dataWatcher.getWatchableObjectString(28);
- }
-
- public void setAttacker(String str) {
- this.dataWatcher.updateObject(28, str);
- }
-
- public void onUpdate() {
- super.onUpdate();
- ticksExisted++;
- if(ticksExisted >= 240)
- setDead();
- if(this.worldObj.isRemote) {
- float m = 0.02F;
- float f1 = 6.0f;
- for(int i = 0; i < 4; i++) {
- double posX = this.posX + (Math.random() / f1 - (0.5f / f1));
- double posY = this.posY + (Math.random() / f1 - (0.5f / f1));
- double posZ = this.posZ + (Math.random() / f1 - (0.5f / f1));
- float mx = (float)(Math.random() - 0.5D) * m;
- float my = (float)(Math.random() - 0.5D) * m;
- float mz = (float)(Math.random() - 0.5D) * m;
- Color color = ClientHelper.getCorporeaRuneColor((int)posX, (int)posY, (int)posZ, 3);
- Botania.proxy.wispFX(worldObj, posX, posY, posZ, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float) (0.15f + (Math.random() * 0.12f)), mx, my, mz, 0.7f);
- }
- }
- }
-
- protected void onImpact(MovingObjectPosition pos) {
- if(pos != null && pos.entityHit == null) {
- World world = this.worldObj;
- int x = pos.blockX;
- int y = pos.blockY;
- int z = pos.blockZ;
- List list = (List) (world.getEntitiesWithinAABB(EntityLivingBase.class, AxisAlignedBB.getBoundingBox(x - 10, y - 10, z - 10, x + 10, y + 10, z + 10)));
- for(EntityLivingBase target : list) {
- if(target instanceof EntityAnimal) {
- EntityAnimal animal = (EntityAnimal) target;
- ReflectionHelper.setPrivateValue(EntityAnimal.class, animal, 1200, LibObfuscation.IN_LOVE);
- animal.setTarget(null);
- this.worldObj.setEntityState(animal, (byte) 18);
- }
- }
- for(int k = 0; k < 7; k++)
- for(int k1 = 0; k1 < 7; k1++)
- for(int k2 = 0; k2 < 7; k2++) {
- int xCoord = x + k - 3;
- int yCoord = y + k1 - 1;
- int zCoord = z + k2 - 3;
- Block block = this.worldObj.getBlock(xCoord, yCoord, zCoord);
- if(block instanceof IGrowable && !(block instanceof BlockGrass)) {
- CommonHelper.fertilizer(world, block, xCoord, yCoord, zCoord, 12);
- if(ConfigHandler.blockBreakParticles) {
- worldObj.playAuxSFX(2005, xCoord, yCoord, zCoord, 6 + this.worldObj.rand.nextInt(4));
- worldObj.playSoundEffect(x, y, z, "botania:agricarnation", 0.01F, 0.5F + (float) Math.random() * 0.5F);
- }
- } else if(!world.isRemote && BlockListAB.blockFreyrLiana.canBlockStay(world, xCoord, yCoord - 1, zCoord)) {
- Vec3 vec = Vec3.createVectorHelper(xCoord, yCoord, zCoord);
- int distant = (int)vec.squareDistanceTo(Vec3.createVectorHelper(x, y, z));
- yCoord--;
- if(this.worldObj.rand.nextInt(distant + 1) == 0)
- while(yCoord > 0) {
- block = worldObj.getBlock(xCoord, yCoord, zCoord);
- if(block.isAir(worldObj, xCoord, yCoord, zCoord)) {
- EntityPlayer player = worldObj.getPlayerEntityByName(getAttacker());
- if(player != null) {
- EntityPlayerMP playerMP = (EntityPlayerMP)player;
- if(world.rand.nextInt(4) < 3)
- CommonHelper.setBlock(world, BlockListAB.blockFreyrLiana, 0, xCoord, yCoord, zCoord, playerMP, false);
- else
- CommonHelper.setBlock(world, BlockListAB.blockLuminousFreyrLiana, 0, xCoord, yCoord, zCoord, playerMP, false);
- worldObj.playAuxSFX(2001, xCoord, yCoord, zCoord, Block.getIdFromBlock(BlockListAB.blockFreyrLiana));
- }
- yCoord--;
- } else
- break;
- }
- }
- }
- this.setDead();
- }
- }
-
- @SideOnly(Side.CLIENT)
- public void setPositionAndRotation2(double p_70056_1_, double p_70056_3_, double p_70056_5_, float p_70056_7_, float p_70056_8_, int p_70056_9_) {}
-
- protected float getGravityVelocity() {
- return 0.0f;
- }
-
- public void setDead() {
- if(this.worldObj.isRemote) {
- float m = 0.175F;
- for(int i = 0; i < 32; i++) {
- float mx = (float)(Math.random() - 0.5D) * m;
- float my = (float)(Math.random() - 0.5D) * m;
- float mz = (float)(Math.random() - 0.5D) * m;
- Color color = ClientHelper.getCorporeaRuneColor((int)posX, (int)posY, (int)posZ, 3);
- Botania.proxy.wispFX(worldObj, posX, posY, posZ, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float) (0.2f + (Math.random() * 0.12f)), mx, my, mz, 2.0f);
- }
- }
- super.setDead();
- }
-
- public void readEntityFromNBT(NBTTagCompound nbtt) {
- super.readEntityFromNBT(nbtt);
- ticksExisted = nbtt.getInteger("ticks");
- setAttacker(nbtt.getString("attacker"));
- }
-
- public void writeEntityToNBT(NBTTagCompound nbtt) {
- super.writeEntityToNBT(nbtt);
- nbtt.setInteger("ticks", ticksExisted);
- nbtt.setString("attacker", getAttacker());
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/3f/50a9430abdbc001c1a9f99005529f322 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/3f/50a9430abdbc001c1a9f99005529f322
new file mode 100644
index 0000000..08f26bb
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/3f/50a9430abdbc001c1a9f99005529f322
@@ -0,0 +1,99 @@
+package ab.client.render.tile;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Random;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.client.model.ModelNidavellirForge;
+import ab.common.block.tile.TileNidavellirForge;
+import net.minecraft.client.Minecraft;
+import net.minecraft.client.renderer.OpenGlHelper;
+import net.minecraft.client.renderer.Tessellator;
+import net.minecraft.client.renderer.entity.Render;
+import net.minecraft.client.renderer.entity.RenderManager;
+import net.minecraft.client.renderer.texture.TextureMap;
+import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.ResourceLocation;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.client.core.helper.ShaderHelper;
+import vazkii.botania.common.block.mana.BlockTerraPlate;
+
+public class RenderTileNidavellirForge extends TileEntitySpecialRenderer {
+
+ private List entityList = null;
+ private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/nidavellirForge.png");
+ private static final ModelNidavellirForge model = new ModelNidavellirForge();
+
+ public void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float f) {
+ TileNidavellirForge tile = (TileNidavellirForge)tileentity;
+ double worldTime = 0.0D;
+ int meta = 0;
+ if(tileentity != null && tileentity.getWorldObj() != null) {
+ worldTime = ClientTickHandler.ticksInGame + f + (new Random((tileentity.xCoord ^ tileentity.yCoord ^ tileentity.zCoord))).nextInt(360);
+ meta = tileentity.getWorldObj().getBlockMetadata(tileentity.xCoord, tileentity.yCoord, tileentity.zCoord);
+ }
+ float indetY = (float)(Math.sin(worldTime / 18.0D) / 24.0D);
+ GL11.glPushMatrix();
+ GL11.glEnable(32826);
+ GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
+ GL11.glTranslated(x, y, z);
+ GL11.glTranslatef(0.5f, 1.5f, 0.5f);
+ GL11.glRotatef(180.0f, 1.0f, 0.0f, 1.0f);
+ GL11.glRotatef(90.0f * meta, 0.0f, 1.0f, 0.0f);
+ Minecraft.getMinecraft().renderEngine.bindTexture(texture);
+ model.renderBottom();
+ GL11.glTranslatef(0.0f, indetY, 0.0f);
+ model.renderTop();
+ GL11.glEnable(32826);
+ GL11.glPopMatrix();
+ if(entityList == null) {
+ List list = new ArrayList();
+ for(int i = 0; i < tile.getSizeInventory(); i++) {
+ list.add(new EntityItem(tile.getWorldObj(), tile.xCoord, tile.yCoord, tile.zCoord));
+ }
+ entityList = list;
+ }
+ GL11.glPushMatrix();
+ GL11.glTranslated(x + 0.5f, y + 0.675f - indetY, z + 0.5f);
+ GL11.glScalef(0.2F, 0.225F, 0.225F);
+ for(int i = 1; i < entityList.size(); i++) {
+ GL11.glPushMatrix();
+ ItemStack stack = tile.getStackInSlot(i);
+ if(stack != null) {
+ switch(i) {
+ case 1:
+ GL11.glTranslated(0.15f, 0.0f, 0.0f);
+ break;
+ case 2:
+ GL11.glTranslated(-0.15f, 0.0f, -0.15f);
+ break;
+ case 3:
+ GL11.glTranslated(-0.15f, 0.0f, 0.15f);
+ break;
+ }
+ entityList.get(i).setEntityItemStack(stack);
+ entityList.get(i).age = ClientTickHandler.ticksInGame;
+ ((Render)RenderManager.instance.entityRenderMap.get(EntityItem.class)).doRender((Entity)entityList.get(i), 0.0D, 0.0D, 0.0D, 1.0F, f);
+ }
+ GL11.glPopMatrix();
+ }
+ GL11.glPopMatrix();
+ if(tile.getStackInSlot(0) != null) {
+ GL11.glPushMatrix();
+ GL11.glTranslated(x + 0.5, y + 0.915f - indetY, z + 0.5);
+ GL11.glScalef(0.45f, 0.45f, 0.45f);
+ entityList.get(0).setEntityItemStack(tile.getStackInSlot(0));
+ entityList.get(0).age = ClientTickHandler.ticksInGame;
+ ((Render)RenderManager.instance.entityRenderMap.get(EntityItem.class)).doRender((Entity)entityList.get(0), 0.0D, 0.0D, 0.0D, 1.0F, f);
+ GL11.glPopMatrix();
+ }
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/3f/d0fd313cccbd001c1664fb18d0506bc0 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/3f/d0fd313cccbd001c1664fb18d0506bc0
new file mode 100644
index 0000000..3ff8bb1
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/3f/d0fd313cccbd001c1664fb18d0506bc0
@@ -0,0 +1,49 @@
+package ab.common.core.proxy.packet;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.common.item.relic.ItemSphereNavigation;
+import cpw.mods.fml.common.network.ByteBufUtils;
+import cpw.mods.fml.common.network.simpleimpl.IMessage;
+import cpw.mods.fml.common.network.simpleimpl.IMessageHandler;
+import cpw.mods.fml.common.network.simpleimpl.MessageContext;
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
+import io.netty.buffer.ByteBuf;
+import net.minecraft.block.Block;
+import net.minecraft.client.Minecraft;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.world.WorldServer;
+import net.minecraftforge.common.DimensionManager;
+
+public class S01PacketFindNearBlocks implements IMessage, IMessageHandler {
+
+ private String username;
+ private int blockID;
+ private int meta;
+
+ public S01PacketFindNearBlocks() {};
+
+ public S01PacketFindNearBlocks(EntityPlayer player, Block block, int meta) {
+ this.username = player.getCommandSenderName();
+ this.blockID = Block.getIdFromBlock(block);
+ this.meta = meta;
+ }
+
+ public void toBytes(ByteBuf buf) {
+ buf.writeInt(this.blockID);
+ ByteBufUtils.writeUTF8String(buf, this.username);
+ buf.writeInt(this.meta);
+ }
+
+ public void fromBytes(ByteBuf buf) {
+ this.blockID = buf.readByte();
+ this.username = ByteBufUtils.readUTF8String(buf);
+ this.meta = buf.readByte();
+ }
+
+ @SideOnly(Side.CLIENT)
+ public IMessage onMessage(S01PacketFindNearBlocks message, MessageContext ctx) {
+ ItemSphereNavigation.findBlocks(Minecraft.getMinecraft().theWorld, Block.getBlockById(message.blockID), message.meta, Minecraft.getMinecraft().theWorld.getPlayerEntityByName(message.username));
+ return null;
+ }
+}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/4/00bc3cde2ab0001c18a5eba32f24fffa b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/4/00bc3cde2ab0001c18a5eba32f24fffa
deleted file mode 100644
index 7885e09..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/4/00bc3cde2ab0001c18a5eba32f24fffa
+++ /dev/null
@@ -1,35 +0,0 @@
-package ab.common.item.relic;
-
-import java.util.List;
-
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.item.ItemStack;
-import net.minecraft.world.World;
-import net.minecraftforge.common.MinecraftForge;
-import net.minecraftforge.event.entity.living.LivingDropsEvent;
-
-public class ItemSehrimnirHide extends ItemModRelic {
-
- public ItemSehrimnirHide() {
- super("sehrimnirHide");
- MinecraftForge.EVENT_BUS.register(this);
- }
-
- @SubscribeEvent
- public void onPlayerAttack(LivingDropsEvent event) {
- List items = event.drops;
- World world = event.entityLiving.worldObj;
- double posX = event.entityLiving.posX;
- double posY = event.entityLiving.posY;
- double posZ = event.entityLiving.posZ;
- for(EntityItem entity : items) {
- if(!world.isRemote) {
- ItemStack loot = entity.getEntityItem();
- loot.stackSize = Math.min(1, (int)(loot.stackSize / 1.5f));
- EntityItem item = new EntityItem(world, posX, posY, posZ, loot);
- world.spawnEntityInWorld(item);
- }
- }
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/4/80307f1bb5b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/4/80307f1bb5b1001c19bf8a91ac37238b
deleted file mode 100644
index 3b191f2..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/4/80307f1bb5b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,88 +0,0 @@
-package ab.common.item;
-
-import java.util.List;
-
-import ab.common.core.CommonHelper;
-import ab.common.lib.register.BlockListAB;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.renderer.texture.IIconRegister;
-import net.minecraft.entity.Entity;
-import net.minecraft.entity.item.EntityFallingBlock;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.IIcon;
-import net.minecraft.world.World;
-import vazkii.botania.common.core.helper.ItemNBTHelper;
-
-public class ItemAntigravityCharm extends ItemMod {
-
- public static IIcon[] icons;
-
- public ItemAntigravityCharm() {
- super("antigravityCharm");
- this.setMaxStackSize(1);
- this.setNoRepair();
- }
-
- public void registerIcons(IIconRegister ir) {
- icons = new IIcon[2];
- for(int i = 0; i < icons.length; i++) {
- icons[i] = icons[i] = ir.registerIcon("ab:" + "itemAntigravityCharm_" + i);
- }
- }
-
- @SideOnly(Side.CLIENT)
- public IIcon getIcon(ItemStack stack, int pass) {
- int iconID = Math.min(1, pass);
- return this.icons[iconID];
- }
-
- public boolean requiresMultipleRenderPasses() {
- return true;
- }
-
- public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
- if(player.isSneaking())
- ItemNBTHelper.setBoolean(stack, "isActive", !ItemNBTHelper.getBoolean(stack, "isActive", true));
- return stack;
- }
-
- public void onUpdate(ItemStack stack, World world, Entity entity, int par4, boolean inHand) {
- if(entity instanceof EntityPlayer) {
- EntityPlayer player = (EntityPlayer)entity;
- if(ItemNBTHelper.getBoolean(stack, "isActive", true)) {
- double posX = player.posX;
- double posY = player.posY;
- double posZ = player.posZ;
- final AxisAlignedBB asis = AxisAlignedBB.getBoundingBox(posX, posY, posZ, posX + 1, posY + 1, posZ + 1).expand(8, 8, 8);
- final List listEntity = world.getEntitiesWithinAABB(EntityFallingBlock.class, asis);
- for(EntityFallingBlock fallBlock : listEntity) {
- int x = (int) (fallBlock.posX >= 0 ? fallBlock.posX : fallBlock.posX - 1);
- int y = (int) fallBlock.posY;
- int z = (int) (fallBlock.posZ >= 0 ? fallBlock.posZ : fallBlock.posZ - 1);
- Block block = fallBlock.func_145805_f();
- fallBlock.setInvisible(true);
- if(!world.isRemote) {
- if(CommonHelper.setBlock(world, BlockListAB.blockAntigravitation, 0, x, y - 1, z, (EntityPlayerMP)player, true))
- CommonHelper.setBlock(world, block, fallBlock.field_145814_a, x, y, z, (EntityPlayerMP)player, true);
- fallBlock.setDead();
- // setBlock(world, x, y, z, block, fallBlock.field_145814_a);
-// setBlock(world, x, y - 1, z, BlockListAB.blockAntigravitation, 0);
- }
- }
- }
- }
- }
-
- private void setBlock(World world, int x, int y, int z, Block block, int meta) {
- if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256) {
- world.setBlock(x, y, z, block, meta, 3);
- }
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/40/507681aaf5b0001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/40/507681aaf5b0001c19bf8a91ac37238b
deleted file mode 100644
index b9609a3..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/40/507681aaf5b0001c19bf8a91ac37238b
+++ /dev/null
@@ -1,86 +0,0 @@
-package ab.client.core.handler;
-
-import java.awt.Color;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.armor.ItemNebulaArmor;
-import ab.common.item.equipment.armor.ItemNebulaHelm;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.ItemRenderer;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.texture.TextureMap;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraftforge.client.event.RenderPlayerEvent;
-import vazkii.botania.api.item.IPhantomInkable;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class PlayerRendererHandler {
-
- @SubscribeEvent
- public void onPlayerRender(RenderPlayerEvent.Specials.Post event) {
- EntityPlayer player = event.entityPlayer;
- ItemStack item = player.getCurrentArmor(3);
- if(item != null && item.getItem() instanceof ItemNebulaHelm) {
- Item helm = player.getCurrentArmor(3).getItem();
- boolean hasPhantomInk = helm instanceof IPhantomInkable && ((IPhantomInkable)helm).hasPhantomInk(item);
- if(!hasPhantomInk && ((ItemNebulaHelm)helm).enableCosmicFace(item)) {
- float angelX = event.renderer.modelBipedMain.bipedHead.rotateAngleX * 180.0F / (float)Math.PI;
- float angelY = event.renderer.modelBipedMain.bipedHead.rotateAngleY * 180.0F / (float)Math.PI;
- GL11.glPushMatrix();
- if(player.isSneaking())
- GL11.glTranslatef(event.renderer.modelBipedMain.bipedHead.rotationPointX * 0.0625f, event.renderer.modelBipedMain.bipedHead.rotationPointY * 0.0625f, 0.0f);
- GL11.glRotatef(angelY, 0.0F, 1.0F, 0.0F);
- GL11.glRotatef(angelX, 1.0F, 0.0F, 0.0F);
- renderCosmicFace();
- GL11.glPopMatrix();
- }
- }
- }
-
- private void renderCosmicFace() {
- double worldTime = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- GL11.glPushMatrix();
- GL11.glEnable(GL11.GL_TEXTURE_2D);
- GL11.glDisable(2912);
- GL11.glDisable(2884);
-
- GL11.glPushMatrix();
- GL11.glScalef(0.5f, 0.4f, 0.4f);
- GL11.glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
- GL11.glTranslatef(-0.5f, -0.8675f, 0.0f);
- GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
- ClientHelper.renderCosmicBackground();
- GL11.glPopMatrix();
-
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- (Minecraft.getMinecraft()).renderEngine.bindTexture(TextureMap.locationItemsTexture);
- GL11.glTranslatef(-0.2F, -0.35F, -0.25F);
- GL11.glScalef(0.4f, 0.4f, 0.4f);
- float f = ItemNebulaArmor.nebulaEyes.getMinU();
- float f1 = ItemNebulaArmor.nebulaEyes.getMaxU();
- float f2 = ItemNebulaArmor.nebulaEyes.getMinV();
- float f3 = ItemNebulaArmor.nebulaEyes.getMaxV();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float r = color.getRed() / 510.0F;
- float g = color.getGreen() / 510.0F;
- float b = color.getBlue() / 510.0F;
- GL11.glColor4f(0.5f + r, 0.5f + g, 0.5f + b, 0.685f + (float)Math.sin(worldTime / 50.0D) * 0.175F);
- ItemRenderer.renderItemIn2D(Tessellator.instance, f1, f2, f, f3, ItemNebulaArmor.nebulaEyes.getIconWidth(), ItemNebulaArmor.nebulaEyes.getIconHeight(), 0.03125F);
- GL11.glDisable(3042);
- GL11.glEnable(2884);
- GL11.glEnable(2912);
- GL11.glEnable(32826);
- GL11.glPopMatrix();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/40/803c0305e1ac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/40/803c0305e1ac001c1d59e42be7477558
deleted file mode 100644
index e6bf219..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/40/803c0305e1ac001c1d59e42be7477558
+++ /dev/null
@@ -1,165 +0,0 @@
-package ab.common.block.tile;
-
-import java.util.List;
-
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.ChatComponentTranslation;
-import net.minecraft.util.ChatStyle;
-import net.minecraft.util.EnumChatFormatting;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-
-public class TileGameBoard extends TileInventory {
-
- protected String[] playersName = new String[] { "", "" };
- public byte[] slotChance = new byte[] { 0, 0, 0, 0 };
- protected int botTick = -1;
- public int endGameTick = -1;
- protected boolean requestUpdate;
- public boolean isSingleGame = true;
- public int clientTick[] = new int[] { 0, 0, 0, 0};
-
- public void updateEntity() {
- if(botTick > 0)
- botTick--;
- if(endGameTick > 0)
- endGameTick--;
- if(!worldObj.isRemote)
- updateServer();
- else
- updateClient();
- }
-
- protected void updateClient() {
- for(int i = 0; i < slotChance.length; i++)
- if(slotChance[i] > 0)
- clientTick[i]++;
- else
- clientTick[i] = 0;
- }
-
- protected void updateServer() {
- if(requestUpdate)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- boolean hasUpdate = false;
- if(isSingleGame && botTick == 0 && hasGame()) {
- for(int i = 2; i < 4; i++) {
- if(slotChance[i] == 0) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = -1;
- hasUpdate = true;
- break;
- }
- }
- }
- if(hasGame() && endGameTick == 0)
- finishGame();
- requestUpdate = hasUpdate;
- }
-
- public void setPlayer(EntityPlayer player) {
- if(isSingleGame) {
- playersName[0] = player.getCommandSenderName();
- playersName[1] = "";
- requestUpdate = true;
- botTick = 8;
- }
- }
-
- public boolean dropDice(EntityPlayer player) {
- if(isSingleGame) {
- System.out.println(player.getCommandSenderName());
- if(player.getCommandSenderName() == playersName[0] && botTick <= 0) {
- boolean isLastDice = false;
- for(int i = 0; i < 2; i++) {
- if(slotChance[i] == 0 && !worldObj.isRemote) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = 18;
- requestUpdate = true;
- if(i == 1)
- isLastDice = true;
- break;
- }
- }
- if(isLastDice)
- endGameTick = 28;
- return true;
- }
- }
- return false;
- }
-
- public boolean hasGame() {
- if(isSingleGame)
- return !playersName[0].isEmpty();
- return !playersName[0].isEmpty() && !playersName[1].isEmpty();
- }
-
- public void finishGame() {
- if(worldObj.isRemote)
- return;
- if(isSingleGame) {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won");
- else
- sendNearMessage(playersName[0] + " you Lose!");
- resetGame();
- requestUpdate = true;
- }
- }
-
- public void sendNearMessage(String text) {
- List players = this.worldObj.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(this.xCoord, this.yCoord, this.zCoord, (this.xCoord + 1), (this.yCoord + 1), (this.zCoord + 1)).expand(3.5f, 3.5f, 3.5f));
- for(EntityPlayer player : players) {
- if(player != null)
- player.addChatMessage((new ChatComponentTranslation(text, new Object[] {})).setChatStyle((new ChatStyle()).setColor(EnumChatFormatting.DARK_GREEN)));
- }
- }
-
- public void resetGame() {
- playersName[0] = "";
- playersName[1] = "";
- for(int i = 0; i < slotChance.length; i++)
- slotChance[i] = 0;
- requestUpdate = true;
- botTick = -1;
- endGameTick = -1;
- }
-
- public void writeCustomNBT(NBTTagCompound cmp) {
- super.writeCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- cmp.setString("playerName" + i, playersName[i]);
- cmp.setByteArray("slotChance", slotChance);
- cmp.setInteger("botTick", botTick);
- cmp.setInteger("endGameTick", endGameTick);
- cmp.setBoolean("requestUpdate", requestUpdate);
- cmp.setBoolean("isSingleGame", isSingleGame);
- }
-
- public void readCustomNBT(NBTTagCompound cmp) {
- super.readCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- playersName[i] = cmp.getString("playerName" + i);
- botTick = cmp.getInteger("botTick");
- endGameTick = cmp.getInteger("endGameTick");
- slotChance = cmp.getByteArray("slotChance");
- requestUpdate = cmp.getBoolean("requestUpdate");
- isSingleGame = cmp.getBoolean("isSingleGame");
- }
-
- public int getInventoryStackLimit() {
- return 1;
- }
-
- public int getSizeInventory() {
- return 4;
- }
-
- public String getInventoryName() {
- return "inv.gameBoard";
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/40/90432c619fb1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/40/90432c619fb1001c19bf8a91ac37238b
deleted file mode 100644
index bb78350..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/40/90432c619fb1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,242 +0,0 @@
-package ab.client.core;
-
-import java.awt.Color;
-import java.nio.FloatBuffer;
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.gui.ScaledResolution;
-import net.minecraft.client.renderer.ActiveRenderInfo;
-import net.minecraft.client.renderer.GLAllocation;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.RenderHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.entity.RenderItem;
-import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.IIcon;
-import net.minecraft.util.ResourceLocation;
-import net.minecraft.util.StatCollector;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-import vazkii.botania.client.core.handler.HUDHandler;
-import vazkii.botania.common.block.ModBlocks;
-import vazkii.botania.common.core.helper.Vector3;
-
-public class ClientHelper {
-
- public static final ResourceLocation miscHuds = new ResourceLocation("ab:textures/misc/miscHuds.png");
- private static final ResourceLocation field_147529_c = new ResourceLocation("textures/environment/end_sky.png");
- private static final ResourceLocation field_147526_d = new ResourceLocation("textures/entity/end_portal.png");
- private static final Random field_147527_e = new Random(31100L);
- public static Minecraft mc = Minecraft.getMinecraft();
- private static FloatBuffer field_147528_b = GLAllocation.createDirectFloatBuffer(16);
-
- public static void renderCosmicBackground() {
- field_147527_e.setSeed(31100L);
- float f4 = 0.24F;
- for (int i = 0; i < 16; i++) {
- GL11.glPushMatrix();
- float f5 = (16 - i);
- float f6 = 0.0625F;
- float f7 = 1.0F / (f5 + 1.0F);
- if (i == 0) {
- mc.renderEngine.bindTexture(field_147529_c);
- f7 = 0.1F;
- f5 = 65.0F;
- f6 = 0.125F;
- GL11.glEnable(GL11.GL_BLEND);
- GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
- }
- if (i == 1) {
- mc.renderEngine.bindTexture(field_147526_d);
- GL11.glEnable(GL11.GL_BLEND);
- GL11.glBlendFunc(GL11.GL_ONE, GL11.GL_ONE);
- f6 = 0.5F;
- }
- GL11.glTranslatef(0.0f, 1.5f, 0.0f);
- GL11.glTexGeni(GL11.GL_S, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_OBJECT_LINEAR);
- GL11.glTexGeni(GL11.GL_T, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_OBJECT_LINEAR);
- GL11.glTexGeni(GL11.GL_R, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_OBJECT_LINEAR);
- GL11.glTexGeni(GL11.GL_Q, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_EYE_LINEAR);
- GL11.glTexGen(GL11.GL_S, GL11.GL_OBJECT_PLANE, func_147525_a(1.0F, 0.0F, 0.0F, 0.0F));
- GL11.glTexGen(GL11.GL_T, GL11.GL_OBJECT_PLANE, func_147525_a(0.0F, 0.0F, 1.0F, 0.0F));
- GL11.glTexGen(GL11.GL_R, GL11.GL_OBJECT_PLANE, func_147525_a(0.0F, 0.0F, 0.0F, 1.0F));
- GL11.glTexGen(GL11.GL_Q, GL11.GL_EYE_PLANE, func_147525_a(0.0F, 1.0F, 0.0F, 0.0F));
- GL11.glEnable(GL11.GL_TEXTURE_GEN_S);
- GL11.glEnable(GL11.GL_TEXTURE_GEN_T);
- GL11.glEnable(GL11.GL_TEXTURE_GEN_R);
- GL11.glEnable(GL11.GL_TEXTURE_GEN_Q);
- GL11.glPopMatrix();
- GL11.glMatrixMode(GL11.GL_TEXTURE);
- GL11.glPushMatrix();
- GL11.glLoadIdentity();
- GL11.glTranslatef(0.0F, (float)(Minecraft.getSystemTime() % 20000L) / 20000.0F, 0.0F);
- GL11.glScalef(f6, f6, f6);
- GL11.glTranslatef(0.5F, 0.5F, 0.0F);
- GL11.glRotatef((i * i * 4321 + i * 9) * 2.0F, 0.0F, 0.0F, 1.0F);
- GL11.glTranslatef(-0.5F, -0.5F, 0.0F);
- Tessellator tessellator = Tessellator.instance;
- tessellator.startDrawingQuads();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float f11 = color.getRed() / 255.0F;
- float f12 = color.getGreen() / 255.0F;
- float f13 = color.getBlue() / 255.0F;
- tessellator.setBrightness(180);
- tessellator.setColorRGBA_F(f11 * f7, f12 * f7, f13 * f7, 1.0F);
- tessellator.addVertex(0.0D, f4, 0.0D);
- tessellator.addVertex(0.0D, f4, 1.0D);
- tessellator.addVertex(1.0D, f4, 1.0D);
- tessellator.addVertex(1.0D, f4, 0.0D);
- tessellator.draw();
- GL11.glPopMatrix();
- GL11.glMatrixMode(GL11.GL_MODELVIEW);
- }
- GL11.glDisable(GL11.GL_BLEND);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_S);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_T);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_R);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_Q);
- }
-
- private static FloatBuffer func_147525_a(float p_147525_1_, float p_147525_2_, float p_147525_3_, float p_147525_4_) {
- field_147528_b.clear();
- field_147528_b.put(p_147525_1_).put(p_147525_2_).put(p_147525_3_).put(p_147525_4_);
- field_147528_b.flip();
- return field_147528_b;
- }
-
- public static void drawArrow(int x, int y, boolean side) {
- mc.renderEngine.bindTexture(miscHuds);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0f);
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x, y, 0.0F, 0, 10, side ? 0 : 22, 38);
- }
-
- public static void drawChanceBar(int x, int y, int chance) {
- mc.renderEngine.bindTexture(miscHuds);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0f);
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x, y, 0.0F, 0, 0, 57, 6);
- int chancePercentage = Math.max(0, (int)((chance / 100.f) * 55.0D));
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x + 1, y + 1, 0.0F, 0, 6, 55, 4);
- Color color = new Color(Color.HSBtoRGB((chance) / 360.0f, ((float)Math.sin((ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks) * 0.2D) + 1.0F) * 0.3F + 0.4F, 1.0f));
- GL11.glColor4ub((byte)color.getRed(), (byte)color.getGreen(), (byte)color.getBlue(), (byte)255);
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x + 1, y + 1, 0.0F, 0, 6, Math.min(55, chancePercentage), 4);
- }
-
- public static void renderPoolManaBar(int x, int y, int color, float alpha, int mana) {
- Minecraft mc = Minecraft.getMinecraft();
- int poolCount = (int)Math.floor(mana / 1000000.0D);
- if(poolCount < 0)
- poolCount = 0;
- int onePoolMana = mana - (poolCount * 1000000);
- String strPool = poolCount + "x";
- int xc = x - mc.fontRenderer.getStringWidth(strPool) / 2;
- int yc = y;
- GL11.glPushMatrix();
- GL11.glTranslatef(xc + 42.0f, yc + 5.0f, 0.0f);
- RenderHelper.enableGUIStandardItemLighting();
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, new ItemStack(ModBlocks.pool), 0, 0);
- RenderHelper.disableStandardItemLighting();
- GL11.glTranslatef(18.0f, 5.0f, 300.0f);
- mc.fontRenderer.drawString(strPool, 0, 0, color);
- GL11.glPopMatrix();
- if((poolCount * 1000000) == mana)
- onePoolMana = poolCount * 1000000;
- HUDHandler.renderManaBar(x, y, color, alpha, onePoolMana, 1000000);
- }
-
- public static void drawPoolManaHUD(ScaledResolution res, String name, int mana, int maxMana, int color) {
- Minecraft mc = Minecraft.getMinecraft();
- int poolCount = (int)Math.floor(mana / 1000000.0D);
- int maxPoolCount = (int)Math.floor(maxMana / 1000000.0D);
- if(poolCount < 0)
- poolCount = 0;
- if(maxPoolCount < 0)
- maxPoolCount = 0;
- int onePoolMana = mana - (poolCount * 1000000);
- String strPool = poolCount + "x / " + maxPoolCount + "x";
- int xc = res.getScaledWidth() / 2 - mc.fontRenderer.getStringWidth(strPool) / 2 - 3;
- int yc = res.getScaledHeight() / 2;
- GL11.glPushMatrix();
- GL11.glTranslatef(xc - 6.0f, yc + 30.0f, 0.0f);
- RenderHelper.enableGUIStandardItemLighting();
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, new ItemStack(ModBlocks.pool), 0, 0);
- RenderHelper.disableStandardItemLighting();
- GL11.glTranslatef(18.0f, 4.5f, 300.0f);
- mc.fontRenderer.drawStringWithShadow(strPool, 0, 0, color);
- GL11.glPopMatrix();
- if((poolCount * 1000000) == mana)
- onePoolMana = poolCount * 1000000;
- HUDHandler.drawSimpleManaHUD(color, onePoolMana, 1000000, name, res);
- }
-
- public static void setLightmapTextureCoords() {
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- }
-
- public static Vector3 setRotation(float angel, float vX, float vY, float vZ, Vector3 v3) {
- Vector3 rVec = new Vector3(vX, vY, vZ);
- Vector3 rVec1 = v3.copy().normalize();
- double rAngel = Math.toRadians(angel) * 0.5f;
- double sin = Math.sin(rAngel);
- double x = rVec.x * sin;
- double y = rVec.y * sin;
- double z = rVec.z * sin;
- rAngel = Math.cos(rAngel);
- double d = -x * rVec1.x - y * rVec1.y - z * rVec1.z;
- double d1 = rAngel * rVec1.x + y * rVec1.z - z * rVec1.y;
- double d2 = rAngel * rVec1.y - x * rVec1.z + z * rVec1.x;
- double d3 = rAngel * rVec1.z + x * rVec1.y - y * rVec1.x;
- v3.x = d1 * rAngel - d * x - d2 * z + d3 * y;
- v3.y = d2 * rAngel - d * y + d1 * z - d3 * x;
- v3.z = d3 * rAngel - d * z - d1 * y + d2 * x;
- return v3;
- }
-
- public static Color getCorporeaRuneColor(int posX, int posY, int posZ, int meta) {
- double time = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- time += (new Random((posX ^ posY ^ posZ))).nextInt(360);
- float sin = (float)(Math.sin(time / 20.0f) * 0.15f) - 0.15f;
- int color = 0;
- switch(meta) {
- case 0:
- color = Color.HSBtoRGB(0.0f, 0.0f, 0.54f + (sin / 1.2f));
- break;
- case 1:
- color = Color.HSBtoRGB(0.688f, 0.93f, 0.96f + sin - 0.15f);
- break;
- case 2:
- color = Color.HSBtoRGB(0.983f, 0.99f, 1.0f + sin - 0.15f);
- break;
- case 3:
- color = Color.HSBtoRGB(0.319f, 0.92f, 0.95f + sin - 0.15f);
- break;
- case 4:
- color = Color.HSBtoRGB(0.536f, 0.53f, 0.92f + sin - 0.15f);
- break;
- }
- return new Color(color);
- }
-
- public static void renderIcon(IIcon icon, int light) {
- Tessellator tessellator = Tessellator.instance;
- float f = icon.getMinU();
- float f1 = icon.getMaxU();
- float f2 = icon.getMinV();
- float f3 = icon.getMaxV();
- float f4 = 1.0F;
- float f5 = 0.5F;
- float f6 = 0.25F;
- tessellator.startDrawingQuads();
- tessellator.setNormal(0.0F, 1.0F, 0.0F);
- tessellator.addVertexWithUV((0.0F - f5), (0.0F - f6), 0.0D, f, f3);
- tessellator.addVertexWithUV((f4 - f5), (0.0F - f6), 0.0D, f1, f3);
- tessellator.addVertexWithUV((f4 - f5), (f4 - f6), 0.0D, f1, f2);
- tessellator.addVertexWithUV((0.0F - f5), (f4 - f6), 0.0D, f, f2);
- tessellator.draw();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/40/b046507eb7bc001c1a9f99005529f322 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/40/b046507eb7bc001c1a9f99005529f322
new file mode 100644
index 0000000..cd52010
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/40/b046507eb7bc001c1a9f99005529f322
@@ -0,0 +1,108 @@
+package ab.client.render.tile;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Random;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.client.model.ModelNidavellirForge;
+import ab.common.block.tile.TileNidavellirForge;
+import net.minecraft.client.Minecraft;
+import net.minecraft.client.renderer.OpenGlHelper;
+import net.minecraft.client.renderer.Tessellator;
+import net.minecraft.client.renderer.entity.Render;
+import net.minecraft.client.renderer.entity.RenderManager;
+import net.minecraft.client.renderer.texture.TextureMap;
+import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.ResourceLocation;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.client.core.helper.ShaderHelper;
+import vazkii.botania.common.block.mana.BlockTerraPlate;
+
+public class RenderTileNidavellirForge extends TileEntitySpecialRenderer {
+
+ private List entityList = null;
+ private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/nidavellirForge.png");
+ private static final ModelNidavellirForge model = new ModelNidavellirForge();
+
+ public void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float f) {
+ TileNidavellirForge tile = (TileNidavellirForge)tileentity;
+ double worldTime = 0.0D;
+ int meta = 0;
+ if(tileentity != null && tileentity.getWorldObj() != null) {
+ worldTime = ClientTickHandler.ticksInGame + f + (new Random((tileentity.xCoord ^ tileentity.yCoord ^ tileentity.zCoord))).nextInt(360);
+ meta = tileentity.getWorldObj().getBlockMetadata(tileentity.xCoord, tileentity.yCoord, tileentity.zCoord);
+ }
+ float indetY = (float)(Math.sin(worldTime / 18.0D) / 24.0D);
+ GL11.glPushMatrix();
+ GL11.glEnable(32826);
+ GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
+ GL11.glTranslated(x, y, z);
+ GL11.glTranslatef(0.5f, 1.5f, 0.5f);
+ GL11.glRotatef(180.0f, 1.0f, 0.0f, 1.0f);
+ float angelForSide = 0.0f;
+ switch(meta) {
+ case 1: angelForSide = 90.0f;
+ break;
+ case 2: angelForSide = 270.0f;
+ break;
+ case 3: angelForSide = 180.0f;
+ break;
+ }
+ GL11.glRotatef(angelForSide, 0.0f, 1.0f, 0.0f);
+ Minecraft.getMinecraft().renderEngine.bindTexture(texture);
+ model.renderBottom();
+ GL11.glTranslatef(0.0f, indetY, 0.0f);
+ model.renderTop();
+ GL11.glEnable(32826);
+ GL11.glPopMatrix();
+ if(entityList == null) {
+ List list = new ArrayList();
+ for(int i = 0; i < tile.getSizeInventory(); i++) {
+ list.add(new EntityItem(tile.getWorldObj(), tile.xCoord, tile.yCoord, tile.zCoord));
+ }
+ entityList = list;
+ }
+ GL11.glPushMatrix();
+ GL11.glTranslated(x + 0.5f, y + 0.675f - indetY, z + 0.5f);
+ GL11.glScalef(0.2F, 0.225F, 0.225F);
+ for(int i = 1; i < entityList.size(); i++) {
+ GL11.glPushMatrix();
+ ItemStack stack = tile.getStackInSlot(i);
+ if(stack != null) {
+ switch(i) {
+ case 1:
+ GL11.glTranslated(0.15f, 0.0f, 0.0f);
+ break;
+ case 2:
+ GL11.glTranslated(-0.15f, 0.0f, -0.15f);
+ break;
+ case 3:
+ GL11.glTranslated(-0.15f, 0.0f, 0.15f);
+ break;
+ }
+ entityList.get(i).setEntityItemStack(stack);
+ entityList.get(i).age = ClientTickHandler.ticksInGame;
+ ((Render)RenderManager.instance.entityRenderMap.get(EntityItem.class)).doRender((Entity)entityList.get(i), 0.0D, 0.0D, 0.0D, 1.0F, f);
+ }
+ GL11.glPopMatrix();
+ }
+ GL11.glPopMatrix();
+ if(tile.getStackInSlot(0) != null) {
+ GL11.glPushMatrix();
+ GL11.glTranslated(x + 0.5, y + 0.915f - indetY, z + 0.5);
+ GL11.glScalef(0.45f, 0.45f, 0.45f);
+ entityList.get(0).setEntityItemStack(tile.getStackInSlot(0));
+ entityList.get(0).age = ClientTickHandler.ticksInGame;
+ ((Render)RenderManager.instance.entityRenderMap.get(EntityItem.class)).doRender((Entity)entityList.get(0), 0.0D, 0.0D, 0.0D, 1.0F, f);
+ GL11.glPopMatrix();
+ }
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/42/60555ac5a3b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/42/60555ac5a3b1001c19bf8a91ac37238b
deleted file mode 100644
index d90d372..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/42/60555ac5a3b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,84 +0,0 @@
-package ab.client.core.handler;
-
-import java.awt.Color;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.armor.ItemNebulaArmor;
-import ab.common.item.equipment.armor.ItemNebulaHelm;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.ItemRenderer;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.texture.TextureMap;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraftforge.client.event.RenderPlayerEvent;
-import vazkii.botania.api.item.IPhantomInkable;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class PlayerRendererHandler {
-
- @SubscribeEvent
- public void onPlayerRender(RenderPlayerEvent.Specials.Post event) {
- EntityPlayer player = event.entityPlayer;
- ItemStack item = player.getCurrentArmor(3);
- if(item != null && item.getItem() instanceof ItemNebulaHelm) {
- Item helm = player.getCurrentArmor(3).getItem();
- boolean hasPhantomInk = helm instanceof IPhantomInkable && ((IPhantomInkable)helm).hasPhantomInk(item);
- if(!hasPhantomInk && ((ItemNebulaHelm)helm).enableCosmicFace(item)) {
- float angelX = event.renderer.modelBipedMain.bipedHead.rotateAngleX * 180.0F / (float)Math.PI;
- float angelY = event.renderer.modelBipedMain.bipedHead.rotateAngleY * 180.0F / (float)Math.PI;
- GL11.glPushMatrix();
- if(player.isSneaking())
- GL11.glTranslatef(event.renderer.modelBipedMain.bipedHead.rotationPointX * 0.0625f, event.renderer.modelBipedMain.bipedHead.rotationPointY * 0.0625f, 0.0f);
- GL11.glRotatef(angelY, 0.0F, 1.0F, 0.0F);
- GL11.glRotatef(angelX, 1.0F, 0.0F, 0.0F);
- renderCosmicFace();
- GL11.glPopMatrix();
- }
- }
- }
-
- private void renderCosmicFace() {
- double worldTime = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- GL11.glPushMatrix();
- GL11.glEnable(GL11.GL_TEXTURE_2D);
- GL11.glDisable(2884);
-
- GL11.glPushMatrix();
- GL11.glScalef(0.5f, 0.4f, 0.4f);
- GL11.glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
- GL11.glTranslatef(-0.5f, -0.8675f, 0.0f);
- GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
- ClientHelper.renderCosmicBackground();
- GL11.glPopMatrix();
-
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- (Minecraft.getMinecraft()).renderEngine.bindTexture(TextureMap.locationItemsTexture);
- GL11.glTranslatef(-0.2F, -0.35F, -0.25F);
- GL11.glScalef(0.4f, 0.4f, 0.4f);
- float f = ItemNebulaArmor.nebulaEyes.getMinU();
- float f1 = ItemNebulaArmor.nebulaEyes.getMaxU();
- float f2 = ItemNebulaArmor.nebulaEyes.getMinV();
- float f3 = ItemNebulaArmor.nebulaEyes.getMaxV();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float r = color.getRed() / 510.0F;
- float g = color.getGreen() / 510.0F;
- float b = color.getBlue() / 510.0F;
- GL11.glColor4f(0.5f + r, 0.5f + g, 0.5f + b, 0.685f + (float)Math.sin(worldTime / 50.0D) * 0.175F);
- ItemRenderer.renderItemIn2D(Tessellator.instance, f1, f2, f, f3, ItemNebulaArmor.nebulaEyes.getIconWidth(), ItemNebulaArmor.nebulaEyes.getIconHeight(), 0.03125F);
- GL11.glDisable(3042);
- GL11.glEnable(2884);
- GL11.glEnable(32826);
- GL11.glPopMatrix();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/42/70fa41379fb1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/42/70fa41379fb1001c19bf8a91ac37238b
deleted file mode 100644
index 1f11077..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/42/70fa41379fb1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,245 +0,0 @@
-package ab.client.core;
-
-import java.awt.Color;
-import java.nio.FloatBuffer;
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.gui.ScaledResolution;
-import net.minecraft.client.renderer.ActiveRenderInfo;
-import net.minecraft.client.renderer.GLAllocation;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.RenderHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.entity.RenderItem;
-import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.IIcon;
-import net.minecraft.util.ResourceLocation;
-import net.minecraft.util.StatCollector;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-import vazkii.botania.client.core.handler.HUDHandler;
-import vazkii.botania.common.block.ModBlocks;
-import vazkii.botania.common.core.helper.Vector3;
-
-public class ClientHelper {
-
- public static final ResourceLocation miscHuds = new ResourceLocation("ab:textures/misc/miscHuds.png");
- private static final ResourceLocation field_147529_c = new ResourceLocation("textures/environment/end_sky.png");
- private static final ResourceLocation field_147526_d = new ResourceLocation("textures/entity/end_portal.png");
- private static final Random field_147527_e = new Random(31100L);
- public static Minecraft mc = Minecraft.getMinecraft();
- private static FloatBuffer field_147528_b = GLAllocation.createDirectFloatBuffer(16);
-
- public static void renderCosmicBackground() {
- GL11.glDisable(GL11.GL_LIGHTING);
- GL11.glDepthMask(true);
- field_147527_e.setSeed(31100L);
- float f4 = 0.24F;
- for (int i = 0; i < 16; i++) {
- GL11.glPushMatrix();
- float f5 = (16 - i);
- float f6 = 0.0625F;
- float f7 = 1.0F / (f5 + 1.0F);
- if (i == 0) {
- mc.renderEngine.bindTexture(field_147529_c);
- f7 = 0.1F;
- f5 = 65.0F;
- f6 = 0.125F;
- GL11.glEnable(GL11.GL_BLEND);
- GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
- }
- if (i == 1) {
- mc.renderEngine.bindTexture(field_147526_d);
- GL11.glEnable(GL11.GL_BLEND);
- GL11.glBlendFunc(GL11.GL_ONE, GL11.GL_ONE);
- f6 = 0.5F;
- }
- GL11.glTranslatef(0.0f, 1.5f, 0.0f);
- GL11.glTexGeni(GL11.GL_S, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_OBJECT_LINEAR);
- GL11.glTexGeni(GL11.GL_T, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_OBJECT_LINEAR);
- GL11.glTexGeni(GL11.GL_R, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_OBJECT_LINEAR);
- GL11.glTexGeni(GL11.GL_Q, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_EYE_LINEAR);
- GL11.glTexGen(GL11.GL_S, GL11.GL_OBJECT_PLANE, func_147525_a(1.0F, 0.0F, 0.0F, 0.0F));
- GL11.glTexGen(GL11.GL_T, GL11.GL_OBJECT_PLANE, func_147525_a(0.0F, 0.0F, 1.0F, 0.0F));
- GL11.glTexGen(GL11.GL_R, GL11.GL_OBJECT_PLANE, func_147525_a(0.0F, 0.0F, 0.0F, 1.0F));
- GL11.glTexGen(GL11.GL_Q, GL11.GL_EYE_PLANE, func_147525_a(0.0F, 1.0F, 0.0F, 0.0F));
- GL11.glEnable(GL11.GL_TEXTURE_GEN_S);
- GL11.glEnable(GL11.GL_TEXTURE_GEN_T);
- GL11.glEnable(GL11.GL_TEXTURE_GEN_R);
- GL11.glEnable(GL11.GL_TEXTURE_GEN_Q);
- GL11.glPopMatrix();
- GL11.glMatrixMode(GL11.GL_TEXTURE);
- GL11.glPushMatrix();
- GL11.glLoadIdentity();
- GL11.glTranslatef(0.0F, (float)(Minecraft.getSystemTime() % 20000L) / 20000.0F, 0.0F);
- GL11.glScalef(f6, f6, f6);
- GL11.glTranslatef(0.5F, 0.5F, 0.0F);
- GL11.glRotatef((i * i * 4321 + i * 9) * 2.0F, 0.0F, 0.0F, 1.0F);
- GL11.glTranslatef(-0.5F, -0.5F, 0.0F);
- Tessellator tessellator = Tessellator.instance;
- tessellator.startDrawingQuads();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float f11 = color.getRed() / 255.0F;
- float f12 = color.getGreen() / 255.0F;
- float f13 = color.getBlue() / 255.0F;
- tessellator.setBrightness(180);
- tessellator.setColorRGBA_F(f11 * f7, f12 * f7, f13 * f7, 1.0F);
- tessellator.addVertex(0.0D, f4, 0.0D);
- tessellator.addVertex(0.0D, f4, 1.0D);
- tessellator.addVertex(1.0D, f4, 1.0D);
- tessellator.addVertex(1.0D, f4, 0.0D);
- tessellator.draw();
- GL11.glPopMatrix();
- GL11.glMatrixMode(GL11.GL_MODELVIEW);
- }
- GL11.glDisable(GL11.GL_BLEND);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_S);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_T);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_R);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_Q);
- GL11.glDepthMask(false);
- }
-
- private static FloatBuffer func_147525_a(float p_147525_1_, float p_147525_2_, float p_147525_3_, float p_147525_4_) {
- field_147528_b.clear();
- field_147528_b.put(p_147525_1_).put(p_147525_2_).put(p_147525_3_).put(p_147525_4_);
- field_147528_b.flip();
- return field_147528_b;
- }
-
- public static void drawArrow(int x, int y, boolean side) {
- mc.renderEngine.bindTexture(miscHuds);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0f);
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x, y, 0.0F, 0, 10, side ? 0 : 22, 38);
- }
-
- public static void drawChanceBar(int x, int y, int chance) {
- mc.renderEngine.bindTexture(miscHuds);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0f);
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x, y, 0.0F, 0, 0, 57, 6);
- int chancePercentage = Math.max(0, (int)((chance / 100.f) * 55.0D));
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x + 1, y + 1, 0.0F, 0, 6, 55, 4);
- Color color = new Color(Color.HSBtoRGB((chance) / 360.0f, ((float)Math.sin((ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks) * 0.2D) + 1.0F) * 0.3F + 0.4F, 1.0f));
- GL11.glColor4ub((byte)color.getRed(), (byte)color.getGreen(), (byte)color.getBlue(), (byte)255);
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x + 1, y + 1, 0.0F, 0, 6, Math.min(55, chancePercentage), 4);
- }
-
- public static void renderPoolManaBar(int x, int y, int color, float alpha, int mana) {
- Minecraft mc = Minecraft.getMinecraft();
- int poolCount = (int)Math.floor(mana / 1000000.0D);
- if(poolCount < 0)
- poolCount = 0;
- int onePoolMana = mana - (poolCount * 1000000);
- String strPool = poolCount + "x";
- int xc = x - mc.fontRenderer.getStringWidth(strPool) / 2;
- int yc = y;
- GL11.glPushMatrix();
- GL11.glTranslatef(xc + 42.0f, yc + 5.0f, 0.0f);
- RenderHelper.enableGUIStandardItemLighting();
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, new ItemStack(ModBlocks.pool), 0, 0);
- RenderHelper.disableStandardItemLighting();
- GL11.glTranslatef(18.0f, 5.0f, 300.0f);
- mc.fontRenderer.drawString(strPool, 0, 0, color);
- GL11.glPopMatrix();
- if((poolCount * 1000000) == mana)
- onePoolMana = poolCount * 1000000;
- HUDHandler.renderManaBar(x, y, color, alpha, onePoolMana, 1000000);
- }
-
- public static void drawPoolManaHUD(ScaledResolution res, String name, int mana, int maxMana, int color) {
- Minecraft mc = Minecraft.getMinecraft();
- int poolCount = (int)Math.floor(mana / 1000000.0D);
- int maxPoolCount = (int)Math.floor(maxMana / 1000000.0D);
- if(poolCount < 0)
- poolCount = 0;
- if(maxPoolCount < 0)
- maxPoolCount = 0;
- int onePoolMana = mana - (poolCount * 1000000);
- String strPool = poolCount + "x / " + maxPoolCount + "x";
- int xc = res.getScaledWidth() / 2 - mc.fontRenderer.getStringWidth(strPool) / 2 - 3;
- int yc = res.getScaledHeight() / 2;
- GL11.glPushMatrix();
- GL11.glTranslatef(xc - 6.0f, yc + 30.0f, 0.0f);
- RenderHelper.enableGUIStandardItemLighting();
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, new ItemStack(ModBlocks.pool), 0, 0);
- RenderHelper.disableStandardItemLighting();
- GL11.glTranslatef(18.0f, 4.5f, 300.0f);
- mc.fontRenderer.drawStringWithShadow(strPool, 0, 0, color);
- GL11.glPopMatrix();
- if((poolCount * 1000000) == mana)
- onePoolMana = poolCount * 1000000;
- HUDHandler.drawSimpleManaHUD(color, onePoolMana, 1000000, name, res);
- }
-
- public static void setLightmapTextureCoords() {
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- }
-
- public static Vector3 setRotation(float angel, float vX, float vY, float vZ, Vector3 v3) {
- Vector3 rVec = new Vector3(vX, vY, vZ);
- Vector3 rVec1 = v3.copy().normalize();
- double rAngel = Math.toRadians(angel) * 0.5f;
- double sin = Math.sin(rAngel);
- double x = rVec.x * sin;
- double y = rVec.y * sin;
- double z = rVec.z * sin;
- rAngel = Math.cos(rAngel);
- double d = -x * rVec1.x - y * rVec1.y - z * rVec1.z;
- double d1 = rAngel * rVec1.x + y * rVec1.z - z * rVec1.y;
- double d2 = rAngel * rVec1.y - x * rVec1.z + z * rVec1.x;
- double d3 = rAngel * rVec1.z + x * rVec1.y - y * rVec1.x;
- v3.x = d1 * rAngel - d * x - d2 * z + d3 * y;
- v3.y = d2 * rAngel - d * y + d1 * z - d3 * x;
- v3.z = d3 * rAngel - d * z - d1 * y + d2 * x;
- return v3;
- }
-
- public static Color getCorporeaRuneColor(int posX, int posY, int posZ, int meta) {
- double time = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- time += (new Random((posX ^ posY ^ posZ))).nextInt(360);
- float sin = (float)(Math.sin(time / 20.0f) * 0.15f) - 0.15f;
- int color = 0;
- switch(meta) {
- case 0:
- color = Color.HSBtoRGB(0.0f, 0.0f, 0.54f + (sin / 1.2f));
- break;
- case 1:
- color = Color.HSBtoRGB(0.688f, 0.93f, 0.96f + sin - 0.15f);
- break;
- case 2:
- color = Color.HSBtoRGB(0.983f, 0.99f, 1.0f + sin - 0.15f);
- break;
- case 3:
- color = Color.HSBtoRGB(0.319f, 0.92f, 0.95f + sin - 0.15f);
- break;
- case 4:
- color = Color.HSBtoRGB(0.536f, 0.53f, 0.92f + sin - 0.15f);
- break;
- }
- return new Color(color);
- }
-
- public static void renderIcon(IIcon icon, int light) {
- Tessellator tessellator = Tessellator.instance;
- float f = icon.getMinU();
- float f1 = icon.getMaxU();
- float f2 = icon.getMinV();
- float f3 = icon.getMaxV();
- float f4 = 1.0F;
- float f5 = 0.5F;
- float f6 = 0.25F;
- tessellator.startDrawingQuads();
- tessellator.setNormal(0.0F, 1.0F, 0.0F);
- tessellator.addVertexWithUV((0.0F - f5), (0.0F - f6), 0.0D, f, f3);
- tessellator.addVertexWithUV((f4 - f5), (0.0F - f6), 0.0D, f1, f3);
- tessellator.addVertexWithUV((f4 - f5), (f4 - f6), 0.0D, f1, f2);
- tessellator.addVertexWithUV((0.0F - f5), (f4 - f6), 0.0D, f, f2);
- tessellator.draw();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/42/c0ffb780b2b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/42/c0ffb780b2b1001c19bf8a91ac37238b
deleted file mode 100644
index b94b4d0..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/42/c0ffb780b2b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,61 +0,0 @@
-package ab.common.block;
-
-import java.util.Random;
-
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.material.Material;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.world.IBlockAccess;
-import net.minecraft.world.World;
-import vazkii.botania.common.Botania;
-
-public class BlockAntigravitation extends Block {
-
- public BlockAntigravitation() {
- super(Material.ground);
- this.setHardness(-1.0f);
- this.setTickRandomly(true);
- this.useNeighborBrightness = false;
- }
- public boolean isReplaceable(IBlockAccess world, int x, int y, int z) {
- return true;
- }
-
- public int getRenderType() {
- return -1;
- }
-
- public AxisAlignedBB getCollisionBoundingBoxFromPool(World world, int x, int y, int z) {
- return null;
- }
-
- public boolean renderAsNormalBlock() {
- return false;
- }
-
- public boolean isOpaqueCube() {
- return false;
- }
-
- public boolean canCollideCheck(int p_149678_1_, boolean p_149678_2_) {
- return false;
- }
-
- public void dropBlockAsItemWithChance(World p_149690_1_, int p_149690_2_, int p_149690_3_, int p_149690_4_, int p_149690_5_, float p_149690_6_, int p_149690_7_) {}
-
- public void updateTick(World world, int x, int y, int z, Random rand) {
- world.setBlockToAir(x, y, z);
- }
-
- @SideOnly(Side.CLIENT)
- public void randomDisplayTick(World world, int x, int y, int z, Random random) {
- if(random.nextBoolean()) {
- float r = random.nextInt(128) / 255.0f;
- float g = (random.nextInt(128) + 70) / 255.0f;
- float b = 200.0f / 255.0f;
- Botania.proxy.wispFX(world, x + 0.1f + Math.random() * 0.8f, y - 0.18f + 1.0f, z + 0.1 + Math.random() * 0.8, r, g, b, 0.24F * (float)(Math.random() - 0.5D), 0.0f, (float)(0.001f + Math.random() * 0.01f), 0.0f);
- }
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/42/d064607ab4b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/42/d064607ab4b1001c19bf8a91ac37238b
deleted file mode 100644
index 3039780..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/42/d064607ab4b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,89 +0,0 @@
-package ab.common.item;
-
-import java.util.List;
-
-import ab.common.core.CommonHelper;
-import ab.common.lib.register.BlockListAB;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.renderer.texture.IIconRegister;
-import net.minecraft.entity.Entity;
-import net.minecraft.entity.item.EntityFallingBlock;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.IIcon;
-import net.minecraft.world.World;
-import vazkii.botania.common.core.helper.ItemNBTHelper;
-
-public class ItemAntigravityCharm extends ItemMod {
-
- public static IIcon[] icons;
-
- public ItemAntigravityCharm() {
- super("antigravityCharm");
- this.setMaxStackSize(1);
- this.setNoRepair();
- }
-
- public void registerIcons(IIconRegister ir) {
- icons = new IIcon[2];
- for(int i = 0; i < icons.length; i++) {
- icons[i] = icons[i] = ir.registerIcon("ab:" + "itemAntigravityCharm_" + i);
- }
- }
-
- @SideOnly(Side.CLIENT)
- public IIcon getIcon(ItemStack stack, int pass) {
- int iconID = Math.min(1, pass);
- return this.icons[iconID];
- }
-
- public boolean requiresMultipleRenderPasses() {
- return true;
- }
-
- public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
- if(player.isSneaking())
- ItemNBTHelper.setBoolean(stack, "isActive", !ItemNBTHelper.getBoolean(stack, "isActive", true));
- return stack;
- }
-
- public void onUpdate(ItemStack stack, World world, Entity entity, int par4, boolean inHand) {
- if(entity instanceof EntityPlayer) {
- EntityPlayer player = (EntityPlayer)entity;
- if(ItemNBTHelper.getBoolean(stack, "isActive", true)) {
- double posX = player.posX;
- double posY = player.posY;
- double posZ = player.posZ;
- final AxisAlignedBB asis = AxisAlignedBB.getBoundingBox(posX, posY, posZ, posX + 1, posY + 1, posZ + 1).expand(8, 8, 8);
- final List listEntity = world.getEntitiesWithinAABB(EntityFallingBlock.class, asis);
- for(EntityFallingBlock fallBlock : listEntity) {
- int x = (int) (fallBlock.posX >= 0 ? fallBlock.posX : fallBlock.posX - 1);
- int y = (int) fallBlock.posY;
- int z = (int) (fallBlock.posZ >= 0 ? fallBlock.posZ : fallBlock.posZ - 1);
- Block block = fallBlock.func_145805_f();
- fallBlock.setInvisible(true);
- if(!world.isRemote) {
- boolean first = CommonHelper.setBlock(world, block, fallBlock.field_145814_a, x, y, z, (EntityPlayerMP)player, true);
- boolean second = CommonHelper.setBlock(world, BlockListAB.blockAntigravitation, 0, x, y - 1, z, (EntityPlayerMP)player, true);
- System.out.println(first + " " + second);
- // setBlock(world, x, y, z, block, fallBlock.field_145814_a);
-// setBlock(world, x, y - 1, z, BlockListAB.blockAntigravitation, 0);
- }
- fallBlock.setDead();
- }
- }
- }
- }
-
- private void setBlock(World world, int x, int y, int z, Block block, int meta) {
- if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256) {
- world.setBlock(x, y, z, block, meta, 3);
- }
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/43/0050bc1f2bb0001c18a5eba32f24fffa b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/43/0050bc1f2bb0001c18a5eba32f24fffa
deleted file mode 100644
index 1b414a7..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/43/0050bc1f2bb0001c18a5eba32f24fffa
+++ /dev/null
@@ -1,35 +0,0 @@
-package ab.common.item.relic;
-
-import java.util.List;
-
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.item.ItemStack;
-import net.minecraft.world.World;
-import net.minecraftforge.common.MinecraftForge;
-import net.minecraftforge.event.entity.living.LivingDropsEvent;
-
-public class ItemSehrimnirHide extends ItemModRelic {
-
- public ItemSehrimnirHide() {
- super("sehrimnirHide");
- MinecraftForge.EVENT_BUS.register(this);
- }
-
- @SubscribeEvent
- public void onPlayerAttack(LivingDropsEvent event) {
- List items = event.drops;
- World world = event.entityLiving.worldObj;
- double posX = event.entityLiving.posX;
- double posY = event.entityLiving.posY;
- double posZ = event.entityLiving.posZ;
- for(EntityItem entity : items) {
- if(!world.isRemote) {
- ItemStack loot = entity.getEntityItem().copy();
- loot.stackSize = Math.max(1, (int)(loot.stackSize / 1.5f));
- EntityItem item = new EntityItem(world, posX, posY, posZ, loot);
- world.spawnEntityInWorld(item);
- }
- }
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/43/40fe13d4deac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/43/40fe13d4deac001c1d59e42be7477558
deleted file mode 100644
index 8e8ba5f..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/43/40fe13d4deac001c1d59e42be7477558
+++ /dev/null
@@ -1,90 +0,0 @@
-package ab.client.render.tile;
-
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.model.ModelDiceFate;
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.ResourceLocation;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class RenderTileGameBoard extends TileEntitySpecialRenderer {
-
- private static final ModelDiceFate model = new ModelDiceFate();
- private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/gameDice.png");
- private static final ResourceLocation textureEnemy = new ResourceLocation("ab:textures/model/gameDice_enemy.png");
-
- public void renderTileEntityAt(TileEntity tile, double x, double y, double z, float ticks) {
- double time = (tile.getWorldObj() == null) ? 0.0D : (ClientTickHandler.ticksInGame + ticks);
- if(tile != null)
- time += (new Random((tile.xCoord ^ tile.yCoord ^ tile.zCoord))).nextInt(360);
- TileGameBoard board = (TileGameBoard)tile;
- GL11.glEnable(3042);
- GL11.glEnable(32826);
- for(int i = 0; i < board.slotChance.length; i++) {
- if(board.slotChance[i] == 0)
- continue;
- time += i * 65;
- GL11.glPushMatrix();
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- float posX = 0.0f;
- float posY = 0.0f;
- float dropAnim = (1.0f - (Math.min(100.0f, board.clientTick[i] * board.clientTick[i] * 1.125f) / 100.0f));
- dropAnim = Math.min(1.0f, Math.max(dropAnim, 0));
- GL11.glColor4f(1.0F, 1.0F, 1.0F, Math.min(Math.max(1.0f, 1.0f - (dropAnim * 0.25f)), 0.0f));
- switch(i) {
- case 0:
- posX = 0.16f + 0.08f * dropAnim;
- posY = 0.16f + 0.08f * dropAnim;
- break;
- case 1:
- posX = -0.16f - 0.08f * dropAnim;
- posY = 0.16f + 0.08f * dropAnim;
- break;
- case 2:
- posX = 0.16f + 0.08f * dropAnim;
- posY = -0.16f - 0.08f * dropAnim;
- break;
- case 3:
- posX = -0.16f - 0.08f * dropAnim;
- posY = -0.16f - 0.08f * dropAnim;
- break;
- }
- GL11.glTranslated(x, y, z);
- GL11.glTranslated(0.5f + posX, 0.02f + Math.sin(time / 12.0D) / 48.0D + (0.28f * dropAnim), 0.5f + posY);
- GL11.glScalef(0.25f, 0.25f, 0.25f);
- Minecraft.getMinecraft().renderEngine.bindTexture(i > 1 ? textureEnemy : texture);
- float dropAngel = 70.0f * dropAnim;
- switch(board.slotChance[i]) {
- case 1:
- model.render(180.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 2:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 3:
- model.render(90.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 4:
- model.render(270.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 5:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 270.0f);
- break;
- case 6:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 90.0f);
- break;
- default:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- }
- GL11.glPopMatrix();
- }
- GL11.glEnable(32826);
- GL11.glDisable(3042);
- }
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/43/f0b82c2903b0001c18a5eba32f24fffa b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/43/f0b82c2903b0001c18a5eba32f24fffa
deleted file mode 100644
index dfb66da..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/43/f0b82c2903b0001c18a5eba32f24fffa
+++ /dev/null
@@ -1,5 +0,0 @@
-package ab.common.block.subtile;
-
-public class SubTileArdentAzarcûissus {
-
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/44/403ded50dfad001c1bd4eaa9a9be6b81 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/44/403ded50dfad001c1bd4eaa9a9be6b81
deleted file mode 100644
index 432d394..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/44/403ded50dfad001c1bd4eaa9a9be6b81
+++ /dev/null
@@ -1,122 +0,0 @@
-package ab.common.block;
-
-import java.util.List;
-
-import ab.AdvancedBotany;
-import ab.common.block.tile.TileBoardFate;
-import ab.common.block.tile.TileGameBoard;
-import ab.common.block.tile.TileInventory;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockContainer;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.renderer.texture.IIconRegister;
-import net.minecraft.creativetab.CreativeTabs;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.IIcon;
-import net.minecraft.world.World;
-import vazkii.botania.api.wand.IWandable;
-
-public class BlockBoardFate extends BlockContainer {
-
- protected IIcon[] iconsFate;
- protected IIcon[] iconsBoard;
-
- public BlockBoardFate() {
- super(Material.iron);
- this.setCreativeTab(AdvancedBotany.tabAB);
- this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.1875F, 1.0F);
- this.setHardness(3.0F);
- this.setResistance(10.0F);
- this.setStepSound(soundTypeMetal);
- this.setBlockName("boardFate");
- }
-
- public void getSubBlocks(Item par1, CreativeTabs par2CreativeTabs, List list) {
- for(int i = 0; i < 2; i++)
- list.add(new ItemStack(par1, 1, i));
- }
-
- public void registerBlockIcons(IIconRegister ir) {
- this.iconsFate = new IIcon[3];
- this.iconsBoard = new IIcon[3];
- for(int i = 0; i < iconsFate.length; i++)
- this.iconsFate[i] = ir.registerIcon("ab:boardFate_" + i);
- for(int i = 0; i < iconsBoard.length; i++)
- this.iconsBoard[i] = ir.registerIcon("ab:gameBoard_" + i);
- }
-
- public IIcon getIcon(int side, int meta) {
- if(meta == 0)
- return this.iconsBoard[Math.min(2, side)];
- else
- return this.iconsFate[Math.min(2, side)];
- }
-
- public boolean isOpaqueCube() {
- return false;
- }
-
- public boolean renderAsNormalBlock() {
- return false;
- }
-
- public int damageDropped(int par1) {
- return par1;
- }
-
- public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float par7, float par8, float par9) {
- int meta = world.getBlockMetadata(x, y, z);
- if(meta == 0) {
- TileGameBoard tile = (TileGameBoard)world.getTileEntity(x, y, z);
- if(player.isSneaking() && !tile.hasGame()) {
- tile.isSingleGame = !tile.isSingleGame;
- return true;
- }
- if(!tile.hasGame())
- tile.setPlayer(player);
- else if(!tile.isSingleGame && tile.playersName[1].isEmpty() && !tile.playersName[0].equals(player.getCommandSenderName()))
- tile.setPlayer(player);
- else {
- return tile.dropDice(player);
- }
- return false;
- } else {
- TileBoardFate tile = (TileBoardFate)world.getTileEntity(x, y, z);
- return tile.spawnRelic(player);
- }
- }
-
- public TileEntity createNewTileEntity(World world, int meta) {
- return meta == 0 ? new TileGameBoard() : new TileBoardFate();
- }
-
- public void breakBlock(World world, int x, int y, int z, Block block, int meta) {
- if(!world.isRemote && meta == 1) {
- TileInventory inv = (TileInventory)world.getTileEntity(x, y, z);
- if (inv != null) {
- for (int i = 0; i < inv.getSizeInventory(); i++) {
- ItemStack stack = inv.getStackInSlot(i);
- if (stack != null) {
- float f = world.rand.nextFloat() * 0.8F + 0.1F;
- float f1 = world.rand.nextFloat() * 0.8F + 0.1F;
- float f2 = world.rand.nextFloat() * 0.8F + 0.1F;
- EntityItem entityitem = new EntityItem(world, (x + f), (y + f1), (z + f2), stack.copy());
- float f3 = 0.05F;
- entityitem.motionX = ((float)world.rand.nextGaussian() * f3);
- entityitem.motionY = ((float)world.rand.nextGaussian() * f3 + 0.2F);
- entityitem.motionZ = ((float)world.rand.nextGaussian() * f3);
- if (stack.hasTagCompound())
- entityitem.getEntityItem().setTagCompound((NBTTagCompound)stack.getTagCompound().copy());
- world.spawnEntityInWorld(entityitem);
- }
- }
- }
- }
- super.breakBlock(world, x, y, z, block, meta);
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/44/60e10cf2e1ad001c1bd4eaa9a9be6b81 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/44/60e10cf2e1ad001c1bd4eaa9a9be6b81
deleted file mode 100644
index 7e5c142..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/44/60e10cf2e1ad001c1bd4eaa9a9be6b81
+++ /dev/null
@@ -1,270 +0,0 @@
-package ab.common.lib.register;
-
-import java.io.Serializable;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.List;
-
-import ab.api.AdvancedBotanyAPI;
-import ab.api.recipe.RecipeAdvancedPlate;
-import ab.api.recipe.RecipeAncientAlphirine;
-import ab.api.recipe.lexicon.AdvancedPlateCraftPage;
-import ab.api.recipe.lexicon.AlphirineCraftPage;
-import ab.common.block.tile.TileAgglomerationPlate;
-import ab.common.block.tile.TileLebethronCore;
-import ab.common.block.tile.TileMagicCraftCrate;
-import ab.common.core.handler.ConfigABHandler;
-import ab.common.item.ItemCraftingPattern;
-import cpw.mods.fml.common.registry.GameRegistry;
-import net.minecraft.init.Blocks;
-import net.minecraft.init.Items;
-import net.minecraft.item.ItemStack;
-import net.minecraft.item.crafting.CraftingManager;
-import net.minecraft.item.crafting.IRecipe;
-import net.minecraft.util.EnumChatFormatting;
-import net.minecraftforge.oredict.ShapedOreRecipe;
-import net.minecraftforge.oredict.ShapelessOreRecipe;
-import thaumcraft.common.config.ConfigBlocks;
-import thaumcraft.common.config.ConfigItems;
-import vazkii.botania.api.BotaniaAPI;
-import vazkii.botania.api.lexicon.KnowledgeType;
-import vazkii.botania.api.lexicon.LexiconCategory;
-import vazkii.botania.api.lexicon.LexiconEntry;
-import vazkii.botania.api.lexicon.LexiconPage;
-import vazkii.botania.api.recipe.RecipePetals;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.block.ModBlocks;
-import vazkii.botania.common.item.ModItems;
-import vazkii.botania.common.item.block.ItemBlockSpecialFlower;
-import vazkii.botania.common.lexicon.BLexiconCategory;
-import vazkii.botania.common.lexicon.BLexiconEntry;
-import vazkii.botania.common.lexicon.RLexiconEntry;
-import vazkii.botania.common.lexicon.page.PageText;
-
-public class RecipeListAB {
-
- public static LexiconCategory categoryForgotten;
-
- public static RecipeAncientAlphirine lebethroneRecipe;
- public static RecipeAncientAlphirine forgottenLandRecipe;
- public static RecipeAncientAlphirine advancedSparkRecipe;
- public static RecipeAncientAlphirine manaFlowerRecipe;
- public static RecipeAncientAlphirine slingshotRecipe;
- public static RecipeAncientAlphirine hopperRecipe;
-
- public static RecipeAdvancedPlate manaStarRecipe;
- public static RecipeAdvancedPlate terrasteelRecipe;
- public static RecipeAdvancedPlate mithrillRecipe;
- public static RecipeAdvancedPlate nebulaRecipe;
-
- public static RecipePetals alphirineRecipe;
- public static RecipePetals dictariusRecipe;
- public static RecipePetals aspecolusRecipe;
- public static RecipePetals pureGladRecipe;
-
- public static LexiconEntry advandedAgglomerationPlate;
- public static LexiconEntry ancientAlphirine;
- public static LexiconEntry lebethronWood;
- public static LexiconEntry lebethronSpreader;
- public static LexiconEntry mithrill;
- public static LexiconEntry manaContainer;
- public static LexiconEntry manaCrystalCube;
- public static LexiconEntry terraHoe;
- public static LexiconEntry manaRings;
- public static LexiconEntry manaFlower;
- public static LexiconEntry mithrillSword;
- public static LexiconEntry nebula;
- public static LexiconEntry blackHalo;
- public static LexiconEntry antigravityCharm;
- public static LexiconEntry nebulaBlaze;
- public static LexiconEntry aspecolus;
- public static LexiconEntry dictarius;
- public static LexiconEntry manaCharger;
- public static LexiconEntry nebulaArmor;
- public static LexiconEntry freyrSlingshot;
- public static LexiconEntry engineerHopper;
- public static LexiconEntry nebulaRod;
- public static LexiconEntry thaumAutoCraft;
- public static LexiconEntry gladious;
-
- public static KnowledgeType forgotten;
-
- public static void init() {
-
- BotaniaAPI.addCategory(categoryForgotten = new BLexiconCategory("forgotten", 5));
- forgotten = BotaniaAPI.registerKnowledgeType("ab_forgotten", EnumChatFormatting.BLUE, false);
-
- lebethroneRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(BlockListAB.blockLebethron), new ItemStack(ModBlocks.dreamwood, 1, 0), 15);
- forgottenLandRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(ItemListAB.itemABResource, 1, 3), new ItemStack(ModItems.manaResource, 1, 15), 75);
- advancedSparkRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(ItemListAB.itemAdvancedSpark), new ItemStack(ModItems.spark), 11);
- manaFlowerRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(ItemListAB.itemABResource, 1, 4), new ItemStack(ModBlocks.flower, 1, 32767), 32);
- slingshotRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(ItemListAB.itemFreyrSlingshot), new ItemStack(ModItems.slingshot), 66);
- hopperRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(BlockListAB.blockEngineerHopper), new ItemStack(Blocks.hopper), 23);
-
- mithrillRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ItemListAB.itemABResource, 1, 0), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModBlocks.storage, 1, 0), new ItemStack(ModItems.manaResource, 1, 18), 7500000, 0x25d6b7);
- terrasteelRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ModItems.manaResource, 1, 4), new ItemStack(ModItems.manaResource, 1, 2), new ItemStack(ModItems.manaResource, 1, 0), new ItemStack(ModItems.manaResource, 1, 1), 500000, 0x29de20);
- manaStarRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ItemListAB.itemABResource, 1, 2), new ItemStack(ModItems.manaResource, 1, 23), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(Items.nether_star), 250000, 0x6bc9ec);
- nebulaRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ItemListAB.itemABResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 8), new ItemStack(ModBlocks.storage, 1, 4), new ItemStack(ItemListAB.itemABResource, 1, 1), 50000000, 0x8d16e0);
-
- ancientAlphirine = new BLexiconEntry("ancientAlphirine", categoryForgotten);
- alphirineRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("ancientAlphirine"), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.rune, 1, 8), new ItemStack(ModItems.rune, 1, 4), new ItemStack(ModItems.rune, 1, 5), new ItemStack(ModItems.rune, 1, 6), new ItemStack(ModItems.rune, 1, 7), new ItemStack(ModItems.petal, 1, 1), new ItemStack(ModItems.petal, 1, 4));
- ancientAlphirine.setPriority().setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), new PageText("1"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", alphirineRecipe), new AlphirineCraftPage(ancientAlphirine, forgottenLandRecipe.getOutput(), ".alphirineCraft") }).setIcon(ItemBlockSpecialFlower.ofType("ancientAlphirine"));
-
- if(ConfigABHandler.hasAbPlate) {
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockABPlate), new Object[] { " ", "MPM", "BRB", Character.valueOf('M'), new ItemStack(ModBlocks.storage), Character.valueOf('P'), new ItemStack(ModBlocks.terraPlate), Character.valueOf('B'), new ItemStack(ItemListAB.itemABResource, 1, 3), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 3)});
- advandedAgglomerationPlate = new BLexiconEntry("advancedPlate", categoryForgotten);
- advandedAgglomerationPlate.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] {new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()), BotaniaAPI.internalHandler.multiblockPage(".structure", TileAgglomerationPlate.makeMultiblockSet()), new AdvancedPlateCraftPage(advandedAgglomerationPlate, terrasteelRecipe.getOutput(), ".abCraft0"), new AdvancedPlateCraftPage(advandedAgglomerationPlate, manaStarRecipe.getOutput(), ".abCraft1") }).setIcon(new ItemStack(BlockListAB.blockABPlate));
- }
-
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockABSpreader), new Object[] { "WMW", "PSP", "WMW", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource, 1, 2), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('S'), new ItemStack(ModBlocks.spreader, 1, 3), Character.valueOf('W'), new ItemStack(BlockListAB.blockLebethron, 1, 4)});
- lebethronSpreader = new BLexiconEntry("lebethronSpreader", categoryForgotten);
- lebethronSpreader.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(BlockListAB.blockABSpreader));
-
- addShapelessOreDictRecipe(new ItemStack(BlockListAB.blockLebethron, 4, 1), new Object[] { new ItemStack(BlockListAB.blockLebethron)});
- IRecipe leb1 = getLastRecipe();
- addShapelessOreDictRecipe(new ItemStack(BlockListAB.blockLebethron, 1, 2), new Object[] { new ItemStack(BlockListAB.blockLebethron, 1, 1), new ItemStack(Items.wheat_seeds)});
- IRecipe leb2 = getLastRecipe();
- addShapelessOreDictRecipe(new ItemStack(BlockListAB.blockLebethron, 1, 3), new Object[] { new ItemStack(BlockListAB.blockLebethron), new ItemStack(Items.glowstone_dust)});
- IRecipe leb3 = getLastRecipe();
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockLebethron, 1, 4), new Object[] { "4W5", "WPW", "6W7", Character.valueOf('P'), new ItemStack(ModBlocks.pylon, 1, 1), Character.valueOf('W'), new ItemStack(BlockListAB.blockLebethron), Character.valueOf('4'), new ItemStack(ModItems.rune, 1, 4), Character.valueOf('5'), new ItemStack(ModItems.rune, 1, 5), Character.valueOf('6'), new ItemStack(ModItems.rune, 1, 6), Character.valueOf('7'), new ItemStack(ModItems.rune, 1, 7)});
- IRecipe leb4 = getLastRecipe();
- lebethronWood = new BLexiconEntry("lebethronWood", categoryForgotten);
- lebethronWood.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AlphirineCraftPage(lebethronWood, lebethroneRecipe.getOutput(), ".alphirineCraft"), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb1), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb2), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb3), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb4), new PageText("1"), BotaniaAPI.internalHandler.multiblockPage(".structure", TileLebethronCore.makeMultiblockSet()) }).setIcon(new ItemStack(BlockListAB.blockLebethron));
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemMihrillMultiTool), new Object[] { " MB", " FM", "F ", Character.valueOf('F'), new ItemStack(ModItems.manaResource, 1, 3), Character.valueOf('B'), new ItemStack(ModBlocks.livingwood), Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource)});
- mithrill = new BLexiconEntry("mithrill", categoryForgotten);
- mithrill.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AdvancedPlateCraftPage(mithrill, mithrillRecipe.getOutput(), ".abCraft"), new PageText("1"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(ItemListAB.itemMihrillMultiTool));
- if(!ConfigABHandler.hasAbPlate)
- mithrill.pages.remove(1);
-
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaContainer), new Object[] { "MGM", "LPL", "M3M", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('L'), new ItemStack(ModBlocks.pool), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('3'), new ItemStack(ModItems.rune, 1, 3), Character.valueOf('G'), new ItemStack(ModItems.rune, 1, 15)});
- IRecipe cont1 = getLastRecipe();
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaContainer, 1, 1), new Object[] { "MGM", "LPL", "M3M", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource, 1, 1), Character.valueOf('L'), new ItemStack(ModBlocks.pool, 1, 2), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('3'), new ItemStack(ModItems.rune, 1, 3), Character.valueOf('G'), new ItemStack(ModItems.rune, 1, 15)});
- IRecipe cont2 = getLastRecipe();
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaContainer, 1, 2), new Object[] { "MGM", "LPL", "M3M", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('L'), new ItemStack(ModBlocks.pool, 1, 3), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('3'), new ItemStack(ModItems.rune, 1, 3), Character.valueOf('G'), new ItemStack(ModItems.rune, 1, 15)});
- IRecipe cont3 = getLastRecipe();
- manaContainer = new BLexiconEntry("manaContainer", categoryForgotten);
- manaContainer.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", cont1), BotaniaAPI.internalHandler.craftingRecipePage(".craft1", cont2), BotaniaAPI.internalHandler.craftingRecipePage(".craft2", cont3), new PageText("1"), new AlphirineCraftPage(manaContainer, advancedSparkRecipe.getOutput(), ".alphirineCraft") }).setIcon(new ItemStack(BlockListAB.blockManaContainer));
-
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaCrystalCube), new Object[] { "TST", "GWG", "DMD", Character.valueOf('D'), new ItemStack(ModBlocks.dreamwood), Character.valueOf('W'), new ItemStack(ModItems.twigWand, 1, 32767), Character.valueOf('G'), new ItemStack(ModBlocks.manaGlass), Character.valueOf('M'), new ItemStack(ModItems.manaResource), Character.valueOf('T'), new ItemStack(ModItems.manaResource, 1, 18), Character.valueOf('S'), new ItemStack(ModItems.spark)});
- manaCrystalCube = new BLexiconEntry("manaCrystalCube", BotaniaAPI.categoryMana);
- manaCrystalCube.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(BlockListAB.blockManaCrystalCube));
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemTerraHoe), new Object[] { "TTL", "RW ", " W ", Character.valueOf('T'), new ItemStack(ModItems.manaResource, 1, 4), Character.valueOf('L'), new ItemStack(ModItems.manaResource, 1, 18), Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 3), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 2)});
- terraHoe = new BLexiconEntry("terraHoe", BotaniaAPI.categoryTools);
- terraHoe.setLexiconPages(new LexiconPage[]{ new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(ItemListAB.itemTerraHoe));
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemMithrillRing), new Object[] { "LML", "MRM", "LML", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('L'), new ItemStack(ItemListAB.itemABResource, 1, 1), Character.valueOf('R'), new ItemStack(ModItems.manaRingGreater)});
- IRecipe ring1 = getLastRecipe();
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaRing), new Object[] { "LML", "MRM", "LML", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource, 1, 6), Character.valueOf('L'), new ItemStack(ModItems.manaResource, 1, 5), Character.valueOf('R'), new ItemStack(ItemListAB.itemMithrillRing)});
- IRecipe ring2 = getLastRecipe();
- manaRings = new BLexiconEntry("manaRings", categoryForgotten);
- manaRings.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[]{ new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", ring1), BotaniaAPI.internalHandler.craftingRecipePage(".craft1", ring2)}).setIcon(new ItemStack(ItemListAB.itemMithrillRing));
- AdvancedBotanyAPI.registerFarmlandSeed(Blocks.nether_wart, 3);
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemManaFlower), new Object[] { " F ", " M ", " R ", Character.valueOf('F'), new ItemStack(ItemListAB.itemABResource, 1, 4), Character.valueOf('M'), new ItemStack(ModItems.manaBottle), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 8)});
- manaFlower = new BLexiconEntry("manaFlower", categoryForgotten);
- manaFlower.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AlphirineCraftPage(manaFlower, manaFlowerRecipe.getOutput(), ".alphirineCraft"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())}).setIcon(new ItemStack(ItemListAB.itemManaFlower));
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemMithrillSword), new Object[] { " M", "SM ", "WS ", Character.valueOf('S'), new ItemStack(ItemListAB.itemABResource, 1, 6), Character.valueOf('T'), new ItemStack(ModItems.terraSword), Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 3)});
- mithrillSword = new BLexiconEntry("mithrillSword", categoryForgotten);
- mithrillSword.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(ItemListAB.itemMithrillSword));
-
- dictariusRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("dictarius"), new ItemStack(ItemListAB.itemABResource, 1, 4), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.rune, 1, 15), new ItemStack(ModItems.petal, 1, 4), new ItemStack(ModItems.petal, 1, 4), new ItemStack(ModItems.petal, 1, 1));
- dictarius = new BLexiconEntry("dictarius", BotaniaAPI.categoryGenerationFlowers);
- dictarius.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", dictariusRecipe)});
-
- nebula = new BLexiconEntry("nebula", categoryForgotten);
- nebula.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AdvancedPlateCraftPage(nebula, nebulaRecipe.getOutput(), ".abCraft")});
- if(!ConfigABHandler.hasAbPlate)
- nebula.pages.remove(1);
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemBlackHalo), new Object[] { " E ", "DHD", " E ", Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.autocraftingHalo), Character.valueOf('D'), new ItemStack(ModItems.blackHoleTalisman)});
- blackHalo = new BLexiconEntry("blackHalo", BotaniaAPI.categoryTools);
- blackHalo.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemAntigravityCharm), new Object[] { " G ", "GDG", "ERE", Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('G'), new ItemStack(ModBlocks.elfGlass), Character.valueOf('D'), new ItemStack(ModBlocks.floatingFlower, 1, 32767), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 3)});
- antigravityCharm = new BLexiconEntry("antigravityCharm", BotaniaAPI.categoryTools);
- antigravityCharm.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())}).setIcon(new ItemStack(ItemListAB.itemAntigravityCharm));
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaBlaze), new Object[] { " N ", "MMN", "AMN", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 6), Character.valueOf('A'), new ItemStack(ItemListAB.itemABResource, 1, 3), Character.valueOf('M'), new ItemStack(ModBlocks.storage)});
- nebulaBlaze = new BLexiconEntry("nebulaBlaze", categoryForgotten);
- nebulaBlaze.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
-
- if(ConfigABHandler.hasManaCharger) {
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaCharger), new Object[] { "NLN", "MPM", " R ", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 1), Character.valueOf('L'), new ItemStack(ModBlocks.livingrock), Character.valueOf('M'), new ItemStack(ModBlocks.bellows), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 8)});
- manaCharger = new BLexiconEntry("manaCharger", categoryForgotten);
- manaCharger.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
- }
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaHelm), new Object[] { "RNR", "NHN", " E ", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelHelm), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8)});
- IRecipe nHelm = getLastRecipe();
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaChest), new Object[] { "RTR", "NHN", "ENE", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelChest), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8), Character.valueOf('T'), new ItemStack(ModItems.flightTiara, 1, 32767)});
- IRecipe nChest = getLastRecipe();
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaLegs), new Object[] { "ENE", "RHR", "NAN", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelLegs), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8), Character.valueOf('A'), new ItemStack(ItemListAB.itemABResource, 1, 3)});
- IRecipe nLegs = getLastRecipe();
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaBoots), new Object[] { "RBR", "NHN", " E ", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelBoots), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8), Character.valueOf('B'), new ItemStack(ModItems.speedUpBelt)});
- IRecipe nBoots = getLastRecipe();
- nebulaArmor = new BLexiconEntry("nebulaArmor", categoryForgotten);
- nebulaArmor.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new PageText("1"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", nHelm), BotaniaAPI.internalHandler.craftingRecipePage(".craft", nChest), BotaniaAPI.internalHandler.craftingRecipePage(".craft", nLegs), BotaniaAPI.internalHandler.craftingRecipePage(".craft", nBoots)});
-
- freyrSlingshot = new RLexiconEntry("freyrSlingshot", categoryForgotten, AchievementRegister.relicSlingshot);
- freyrSlingshot.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AlphirineCraftPage(freyrSlingshot, slingshotRecipe.getOutput(), ".alphirineCraft")});
-
- engineerHopper = new BLexiconEntry("engineerHopper", categoryForgotten);
- engineerHopper.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AlphirineCraftPage(engineerHopper, hopperRecipe.getOutput(), ".alphirineCraft")});
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaRod), new Object[] { " WN", " RW", "W ", Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 13), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 8), Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 6)});
- nebulaRod = new BLexiconEntry("nebulaRod", categoryForgotten);
- nebulaRod.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
-
- if(Botania.thaumcraftLoaded)
- thaumcraft();
-
- addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemABResource, 9, 1), new Object[] { new ItemStack(ItemListAB.itemABResource)});
- addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemABResource, 9, 0), new Object[] { new ItemStack(BlockListAB.blockABStorage)});
- addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemABResource, 9, 6), new Object[] { new ItemStack(ItemListAB.itemABResource, 1, 5)});
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockABStorage), new Object[] { "III", "III", "III", Character.valueOf('I'), new ItemStack(ItemListAB.itemABResource)});
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemABResource, 1, 5), new Object[] { "III", "III", "III", Character.valueOf('I'), new ItemStack(ItemListAB.itemABResource, 1, 6)});
- }
-
- public static void thaumcraft() {
- aspecolus = new BLexiconEntry("aspecolus", BotaniaAPI.categoryFunctionalFlowers);
- aspecolusRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("aspecolus"), new ItemStack(ModItems.manaResource, 1, 6), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.rune, 1, 1), new ItemStack(ModItems.rune), new ItemStack(ItemListAB.itemABResource, 1, 2), new ItemStack(ModItems.petal, 1, 10), new ItemStack(ModItems.petal, 1, 13));
- aspecolus.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", aspecolusRecipe) }).setIcon(ItemBlockSpecialFlower.ofType("aspecolus"));
- addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemNebulaHelmReveal), new Object[] { new ItemStack(ItemListAB.itemNebulaHelm), new ItemStack(ConfigItems.itemGoggles)});
- List recipes = new ArrayList();
- for(int i = 1; i < 10; i++) {
- boolean[][] patterns = ItemCraftingPattern.getPattern(i);
- List str = new ArrayList();
- for(int j = 0; j < patterns.length; j++) {
- String str1 = "";
- for(int k = 0; k < patterns[j].length; k++)
- str1 += patterns[j][k] ? "T" : "H";
- str.add(str1);
- }
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemCraftingPattern, 1, i), new Object[] { str.get(0), str.get(1), str.get(2), Character.valueOf('T'), new ItemStack(ItemListAB.itemCraftingPattern), Character.valueOf('H'), new ItemStack(ConfigItems.itemNugget, 1, 6)});
- recipes.add(getLastRecipe());
- }
- IRecipe crate = GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockMagicCraftCrate), new Object[] { "TST", "WCW", "W W", Character.valueOf('W'), new ItemStack(ConfigBlocks.blockMagicalLog), Character.valueOf('S'), new ItemStack(ConfigItems.itemResource, 1, 14), Character.valueOf('T'), new ItemStack(ConfigItems.itemResource, 1, 7), Character.valueOf('C'), new ItemStack(ModBlocks.openCrate, 1, 1)});
- addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemCraftingPattern, 48), new Object[] { new ItemStack(Blocks.crafting_table), new ItemStack(ModBlocks.livingrock), new ItemStack(ConfigItems.itemResource, 1, 14)});
- thaumAutoCraft = new BLexiconEntry("thaumAutoCraft", BotaniaAPI.categoryDevices);
- thaumAutoCraft.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", crate) , BotaniaAPI.internalHandler.craftingRecipePage(".craft0", getLastRecipe()), BotaniaAPI.internalHandler.craftingRecipesPage(".craft1", recipes)});
-
- pureGladRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("pureGladiolus"), new ItemStack(ItemListAB.itemABResource, 1, 4), new ItemStack(ModItems.rune, 1, 8), new ItemStack(ModItems.petal, 1, 8), new ItemStack(ModItems.petal, 1, 4), new ItemStack(ModItems.petal, 1, 14), new ItemStack(ModItems.petal, 1, 5), new ItemStack(ModItems.petal, 1, 13), new ItemStack(ModItems.petal, 1, 11));
- gladious = new BLexiconEntry("gladious", BotaniaAPI.categoryFunctionalFlowers);
- gladious.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", pureGladRecipe)});
- }
-
- private static IRecipe getLastRecipe() {
- return (IRecipe)CraftingManager.getInstance().getRecipeList().get(CraftingManager.getInstance().getRecipeList().size() - 1);
- }
-
- private static void addOreDictRecipe(ItemStack output, Object... recipe) {
- CraftingManager.getInstance().getRecipeList().add(new ShapedOreRecipe(output, recipe));
- }
-
- private static void addShapelessOreDictRecipe(ItemStack output, Object... recipe) {
- CraftingManager.getInstance().getRecipeList().add(new ShapelessOreRecipe(output, recipe));
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/44/70966694f5b0001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/44/70966694f5b0001c19bf8a91ac37238b
deleted file mode 100644
index b84fdd9..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/44/70966694f5b0001c19bf8a91ac37238b
+++ /dev/null
@@ -1,85 +0,0 @@
-package ab.client.core.handler;
-
-import java.awt.Color;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.armor.ItemNebulaArmor;
-import ab.common.item.equipment.armor.ItemNebulaHelm;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.ItemRenderer;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.texture.TextureMap;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraftforge.client.event.RenderPlayerEvent;
-import vazkii.botania.api.item.IPhantomInkable;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class PlayerRendererHandler {
-
- @SubscribeEvent
- public void onPlayerRender(RenderPlayerEvent.Specials.Post event) {
- EntityPlayer player = event.entityPlayer;
- ItemStack item = player.getCurrentArmor(3);
- if(item != null && item.getItem() instanceof ItemNebulaHelm) {
- Item helm = player.getCurrentArmor(3).getItem();
- boolean hasPhantomInk = helm instanceof IPhantomInkable && ((IPhantomInkable)helm).hasPhantomInk(item);
- if(!hasPhantomInk && ((ItemNebulaHelm)helm).enableCosmicFace(item)) {
- float angelX = event.renderer.modelBipedMain.bipedHead.rotateAngleX * 180.0F / (float)Math.PI;
- float angelY = event.renderer.modelBipedMain.bipedHead.rotateAngleY * 180.0F / (float)Math.PI;
- GL11.glPushMatrix();
- if(player.isSneaking())
- GL11.glTranslatef(event.renderer.modelBipedMain.bipedHead.rotationPointX * 0.0625f, event.renderer.modelBipedMain.bipedHead.rotationPointY * 0.0625f, 0.0f);
- GL11.glRotatef(angelY, 0.0F, 1.0F, 0.0F);
- GL11.glRotatef(angelX, 1.0F, 0.0F, 0.0F);
- renderCosmicFace();
- GL11.glPopMatrix();
- }
- }
- }
-
- private void renderCosmicFace() {
- double worldTime = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- GL11.glPushMatrix();
- GL11.glEnable(GL11.GL_TEXTURE_2D);
- GL11.glDisable(2912);
- GL11.glDisable(2884);
-
- GL11.glPushMatrix();
- GL11.glScalef(0.5f, 0.4f, 0.4f);
- GL11.glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
- GL11.glTranslatef(-0.5f, -0.8675f, 0.0f);
- GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
- // ClientHelper.renderCosmicBackground();
- GL11.glPopMatrix();
-
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- (Minecraft.getMinecraft()).renderEngine.bindTexture(TextureMap.locationItemsTexture);
- GL11.glTranslatef(-0.2F, -0.35F, -0.25F);
- GL11.glScalef(0.4f, 0.4f, 0.4f);
- float f = ItemNebulaArmor.nebulaEyes.getMinU();
- float f1 = ItemNebulaArmor.nebulaEyes.getMaxU();
- float f2 = ItemNebulaArmor.nebulaEyes.getMinV();
- float f3 = ItemNebulaArmor.nebulaEyes.getMaxV();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float r = color.getRed() / 510.0F;
- float g = color.getGreen() / 510.0F;
- float b = color.getBlue() / 510.0F;
- GL11.glColor4f(0.5f + r, 0.5f + g, 0.5f + b, 0.685f + (float)Math.sin(worldTime / 50.0D) * 0.175F);
- ItemRenderer.renderItemIn2D(Tessellator.instance, f1, f2, f, f3, ItemNebulaArmor.nebulaEyes.getIconWidth(), ItemNebulaArmor.nebulaEyes.getIconHeight(), 0.03125F);
- GL11.glDisable(3042);
- GL11.glEnable(2884);
- GL11.glEnable(32826);
- GL11.glPopMatrix();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/46/50d42d1248b0001c1746c57a5fe46fd3 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/46/50d42d1248b0001c1746c57a5fe46fd3
deleted file mode 100644
index 1e79ac3..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/46/50d42d1248b0001c1746c57a5fe46fd3
+++ /dev/null
@@ -1,56 +0,0 @@
-package ab.common.item.relic;
-
-import java.lang.reflect.InvocationTargetException;
-import java.util.List;
-
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import cpw.mods.fml.relauncher.ReflectionHelper;
-import net.minecraft.entity.EntityLivingBase;
-import net.minecraft.entity.boss.IBossDisplayData;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.ItemStack;
-import net.minecraft.world.World;
-import net.minecraftforge.common.MinecraftForge;
-import net.minecraftforge.event.entity.living.LivingDropsEvent;
-
-public class ItemSehrimnirHide extends ItemModRelic {
-
- public static final String[] dropFewItems = new String[] { "dropFewItems", "func_70628_a" };
-
- public ItemSehrimnirHide() {
- super("sehrimnirHide");
- MinecraftForge.EVENT_BUS.register(this);
- }
-
- @SubscribeEvent
- public void onPlayerAttack(LivingDropsEvent event) {
- if(event != null && event.source != null && event.source.getSourceOfDamage() instanceof EntityPlayer) {
- EntityPlayer player = (EntityPlayer)event.source.getSourceOfDamage();
- if(player.inventory.hasItem(this)) {
- if(event.entityLiving != null) {
- try {
- EntityLivingBase liv = event.entityLiving;
- ReflectionHelper.findMethod(EntityLivingBase.class, liv, dropFewItems, new Class[] {boolean.class, int.class} ).invoke(liv, new Object[] {true, 5});
- } catch(Exception e) {
- e.printStackTrace();
- }
- }
-// if(event.entityLiving != null && event.drops != null && !(event.entityLiving instanceof IBossDisplayData)) {
-// List items = event.drops;
-// World world = event.entityLiving.worldObj;
-// double posX = event.entityLiving.posX;
-// double posY = event.entityLiving.posY;
-// double posZ = event.entityLiving.posZ;
-// if(!world.isRemote) {
-// for(EntityItem entity : items) {
-// ItemStack loot = entity.getEntityItem().copy();
-// EntityItem item = new EntityItem(world, posX, posY, posZ, loot);
-// world.spawnEntityInWorld(item);
-// }
-// }
-// }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/48/e0a400d397c1001c11e398ea97007cb4 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/48/e0a400d397c1001c11e398ea97007cb4
new file mode 100644
index 0000000..4fa824f
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/48/e0a400d397c1001c11e398ea97007cb4
@@ -0,0 +1,210 @@
+package ab.common.item.relic;
+
+import java.awt.Color;
+import java.util.List;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.common.core.handler.NetworkHandler;
+import ab.common.lib.register.ItemListAB;
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
+import net.minecraft.block.Block;
+import net.minecraft.client.renderer.texture.IIconRegister;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.util.EnumChatFormatting;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.MathHelper;
+import net.minecraft.util.StatCollector;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.api.mana.ManaItemHandler;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class ItemSphereNavigation extends ItemModRelic {
+
+ public static IIcon[] icons;
+ public static final int rangeSearch = 16;
+ public static final int maxCooldown = 158;
+ public static final int manaCost = 1750;
+
+ public ItemSphereNavigation() {
+ super("sphereNavigation");
+ }
+
+ public void registerIcons(IIconRegister ir) {
+ icons = new IIcon[5];
+ icons[0] = ir.registerIcon("ab:sphereNavigation");
+ icons[1] = ir.registerIcon("ab:sphereNavigation_hasblock");
+ icons[2] = ir.registerIcon("ab:sphereNavigation_nonBlock");
+ icons[3] = ir.registerIcon("ab:sphereNavigation_off");
+ icons[4] = ir.registerIcon("ab:sphereNavigation_on");
+ }
+
+ @SideOnly(Side.CLIENT)
+ public IIcon getIcon(ItemStack stack, int pass) {
+ return this.icons[pass == 0 ? 0 : 4];
+ }
+
+ public boolean requiresMultipleRenderPasses() {
+ return true;
+ }
+
+ public String getItemStackDisplayName(ItemStack stack) {
+ Block block = getFindBlock(stack);
+ int meta = getFindMeta(stack);
+ ItemStack rStack = new ItemStack(block, 1, meta);
+ return super.getItemStackDisplayName(stack) + ((rStack == null || rStack.getItem() == null) ? "" : (EnumChatFormatting.RESET + " (" + EnumChatFormatting.GREEN + rStack.getDisplayName() + EnumChatFormatting.RESET + ")"));
+ }
+
+ @SideOnly(Side.CLIENT)
+ public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean par4) {
+ super.addInformation(stack, player, list, par4);
+ addStringToTooltip(StatCollector.translateToLocal(stack.getItemDamage() == 0 ? "botaniamisc.active" : "botaniamisc.inactive"), list);
+ }
+
+ void addStringToTooltip(String s, List tooltip) {
+ tooltip.add(s.replaceAll("&", "\u00A7"));
+ }
+
+ public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
+ if(getFindBlock(stack) != null && player.isSneaking()) {
+ int dmg = stack.getItemDamage();
+ stack.setItemDamage((dmg ^ 0xFFFFFFFF) & 0x1);
+ world.playSoundAtEntity(player, "random.orb", 0.3F, 0.1F);
+ }
+ return stack;
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int pos, boolean equipped) {
+ super.onUpdate(stack, world, entity, pos, equipped);
+ if(entity instanceof EntityPlayer) {
+ EntityPlayer player = (EntityPlayer)entity;
+ if(!world.isRemote && stack.getItemDamage() == 0 && getFindBlock(stack) != null && canWork(stack) && ManaItemHandler.requestManaExactForTool(stack, player, manaCost, true)) {
+ setMaxTick(stack);
+ NetworkHandler.sendPacketToFindBlocks((EntityPlayerMP)player, getFindBlock(stack), getFindMeta(stack));
+ }
+ }
+ }
+
+ public static void findBlocks(World world, Block findBlock, int findMeta, EntityPlayer player) {
+ if(world.isRemote) {
+ ItemStack renderStack = null;
+ int maxFindedBlocks = 32;
+ int findedBlocks = 0;
+ label1703:
+ for(int y = -rangeSearch * 2; y < rangeSearch; y++) {
+ for(int x = -rangeSearch; x < rangeSearch; x++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks)) || world.rand.nextBoolean())
+ continue;
+ for(int z = -rangeSearch; z < rangeSearch; z++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks)) || world.rand.nextBoolean())
+ continue;
+ else if(findedBlocks >= maxFindedBlocks)
+ break label1703;
+ int posX = MathHelper.floor_double(player.posX) + x;
+ int posY = MathHelper.floor_double(player.posY) + y;
+ int posZ = MathHelper.floor_double(player.posZ) + z;
+ if(posY < 0)
+ continue;
+ Block block = world.getBlock(posX, posY, posZ);
+ if(!Block.isEqualTo(block, findBlock))
+ continue;
+ int meta = world.getBlockMetadata(posX, posY, posZ);
+ if(meta == findMeta) {
+ if(renderStack == null)
+ renderStack = getRenderStackForBlock(world, block, meta, posX, posY, posZ);
+ findedBlocks++;
+ float maxAge = 2.7f + (0.5f * (float)(Math.random()));
+ Botania.proxy.setWispFXDepthTest(false);
+ Botania.proxy.setWispFXDistanceLimit(false);
+ float far = 120.0f - (((Math.abs(x) + Math.min(rangeSearch, Math.abs(y)) + Math.abs(z)) / (rangeSearch * 4.0f)) * 120.0f);
+ if(far <= 70)
+ far *= 0.1f;
+ Color color = new Color(Color.HSBtoRGB(far / 360.0f, 0.9f + (float)(Math.random() * 0.1f), 1.0f));
+ for(int i = 0; i < 11; i++)
+ Botania.proxy.wispFX(world, posX + 0.5f + (Math.random() - 0.5f), posY + 0.5f + (Math.random() - 0.5f), posZ + 0.5f + (Math.random() - 0.5f), color.getRed() / 100.0f, color.getGreen() / 100.0f, color.getBlue() / 100.0f, 0.3f + (float)(Math.random() * 0.25f), 0.0f, maxAge);
+ Botania.proxy.setWispFXDistanceLimit(true);
+ Botania.proxy.setWispFXDepthTest(true);
+ }
+ }
+ }
+ }
+ if(renderStack != null)
+ ItemsRemainingRender.set(renderStack, "íàéäåíî: " + findedBlocks);
+ }
+ }
+
+ public static ItemStack getRenderStackForBlock(World world, Block block, int meta, int x, int y, int z) {
+ if(block != null) {
+ Item item = Item.getItemFromBlock(block);
+ if(item != null) {
+ ItemStack findStack = new ItemStack(block, 1, meta);
+ if(findStack != null)
+ return findStack;
+ } else {
+ Item item1 = block.getItem(world, x, y, z);
+ if(item1 != null) {
+ ItemStack findStack = new ItemStack(item1, 1, meta);
+ if(findStack != null)
+ return findStack;
+ }
+ }
+ }
+ return null;
+ }
+
+ public boolean onItemUse(ItemStack stack, EntityPlayer p, World world, int x, int y, int z, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
+ if(p.isSneaking()) {
+ Block block = world.getBlock(x, y, z);
+ if(block != null) {
+ int meta = world.getBlockMetadata(x, y, z);
+ ItemStack findStack = getRenderStackForBlock(world, block, meta, x, y, z);
+ if(findStack != null) {
+ setFindBlock(stack, block, meta);
+ if(world.isRemote)
+ ItemsRemainingRender.set(findStack, findStack.getDisplayName());
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public boolean canWork(ItemStack stack) {
+ int tick = ItemNBTHelper.getInt(stack, "cooldown", 0);
+ if(tick == 0)
+ return true;
+ else if(tick > 0)
+ ItemNBTHelper.setInt(stack, "cooldown", tick - 1);
+ return false;
+ }
+
+ public void setMaxTick(ItemStack stack) {
+ ItemNBTHelper.setInt(stack, "cooldown", maxCooldown);
+ }
+
+ public static void setFindBlock(ItemStack stack, Block block, int meta) {
+ ItemNBTHelper.setInt(stack, "findBlockID", Block.getIdFromBlock(block));
+ ItemNBTHelper.setInt(stack, "findBlockMeta", meta);
+ }
+
+ public static Block getFindBlock(ItemStack stack) {
+ int blockID = ItemNBTHelper.getInt(stack, "findBlockID", 0);
+ if(blockID == 0)
+ return null;
+ else
+ return Block.getBlockById(blockID);
+ }
+
+ public static int getFindMeta(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "findBlockMeta", -1);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/49/60bc6d5bbabc001c1a9f99005529f322 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/49/60bc6d5bbabc001c1a9f99005529f322
new file mode 100644
index 0000000..53ca985
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/49/60bc6d5bbabc001c1a9f99005529f322
@@ -0,0 +1,139 @@
+package ab.common.block;
+
+import ab.AdvancedBotany;
+import ab.common.block.tile.TileNidavellirForge;
+import ab.common.block.tile.TileInventory;
+import ab.common.lib.register.RecipeListAB;
+import net.minecraft.block.Block;
+import net.minecraft.block.BlockContainer;
+import net.minecraft.block.material.Material;
+import net.minecraft.client.renderer.texture.IIconRegister;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.MathHelper;
+import net.minecraft.util.Vec3;
+import net.minecraft.world.IBlockAccess;
+import net.minecraft.world.World;
+import vazkii.botania.api.BotaniaAPI;
+import vazkii.botania.api.lexicon.ILexiconable;
+import vazkii.botania.api.lexicon.LexiconEntry;
+
+public class BlockNidavellirForge extends BlockContainer implements ILexiconable {
+
+ public BlockNidavellirForge() {
+ super(Material.iron);
+ this.setCreativeTab(AdvancedBotany.tabAB);
+ this.setHardness(3.0F);
+ this.setResistance(10.0F);
+ this.setStepSound(soundTypeMetal);
+ this.setBlockName("ABPlate");
+ }
+
+ public void setBlockBoundsBasedOnState(IBlockAccess world, int x, int y, int z) {
+ float f = 0.1875F;
+ float f1 = 0.0625F;
+ switch(world.getBlockMetadata(x, y, z)) {
+ case 0: this.setBlockBounds(f - f1, 0.0F, 0.0F, 1.0F - f, 0.75F, 1.0F);
+ break;
+ default: this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
+ }
+// if(world.getBlockMetadata(x, y, z) % 2 == 0)
+// this.setBlockBounds(f, 0.0F, 0.0F, 1.0F - f, 0.75F, 1.0F);
+// else
+// this.setBlockBounds(0.0F, 0.0F, f, 1.0F, 0.75F, 1.0F - f);
+ }
+
+ public void onBlockPlacedBy(World world, int x, int y, int z, EntityLivingBase liv, ItemStack stack) {
+ int meta = MathHelper.floor_double((double)(liv.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3;
+ world.setBlockMetadataWithNotify(x, y, z, meta, 3);
+ }
+
+ public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int par6, float par7, float par8, float par9) {
+ TileNidavellirForge tile = (TileNidavellirForge)world.getTileEntity(x, y, z);
+ if(player.isSneaking()) {
+ if(tile.getStackInSlot(0) != null) {
+ ItemStack copy = tile.getStackInSlot(0).copy();
+ if(!world.isRemote) {
+ Vec3 vec3 = player.getLook(1.0F).normalize();
+ EntityItem entityitem = new EntityItem(world, player.posX + vec3.xCoord, player.posY + 1.2f, player.posZ + vec3.zCoord, copy);
+ world.spawnEntityInWorld(entityitem);
+ tile.requestUpdate = true;
+ }
+ tile.setInventorySlotContents(0, null);
+ world.func_147453_f(x, y, z, (Block)this);
+ return true;
+ }
+ for(int i = tile.getSizeInventory() - 1; i > 0; i--) {
+ ItemStack stack = tile.getStackInSlot(i);
+ if(stack != null) {
+ ItemStack copy = stack.copy();
+ if(!world.isRemote) {
+ Vec3 vec3 = player.getLook(1.0F).normalize();
+ EntityItem entityitem = new EntityItem(world, player.posX + vec3.xCoord, player.posY + 1.2f, player.posZ + vec3.zCoord, copy);
+ world.spawnEntityInWorld(entityitem);
+ tile.requestUpdate = true;
+ }
+ tile.setInventorySlotContents(i, null);
+ world.func_147453_f(x, y, z, (Block)this);
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public void breakBlock(World world, int x, int y, int z, Block block, int meta) {
+ if(!world.isRemote) {
+ TileInventory inv = (TileInventory)world.getTileEntity(x, y, z);
+ if (inv != null) {
+ for (int i = 0; i < inv.getSizeInventory(); i++) {
+ ItemStack stack = inv.getStackInSlot(i);
+ if (stack != null) {
+ float f = world.rand.nextFloat() * 0.8F + 0.1F;
+ float f1 = world.rand.nextFloat() * 0.8F + 0.1F;
+ float f2 = world.rand.nextFloat() * 0.8F + 0.1F;
+ EntityItem entityitem = new EntityItem(world, (x + f), (y + f1), (z + f2), stack.copy());
+ float f3 = 0.05F;
+ entityitem.motionX = ((float)world.rand.nextGaussian() * f3);
+ entityitem.motionY = ((float)world.rand.nextGaussian() * f3 + 0.2F);
+ entityitem.motionZ = ((float)world.rand.nextGaussian() * f3);
+ if (stack.hasTagCompound())
+ entityitem.getEntityItem().setTagCompound((NBTTagCompound)stack.getTagCompound().copy());
+ world.spawnEntityInWorld(entityitem);
+ }
+ }
+ }
+ }
+ super.breakBlock(world, x, y, z, block, meta);
+ }
+
+ public int getRenderType() {
+ return -1;
+ }
+
+ public boolean renderAsNormalBlock() {
+ return false;
+ }
+
+ public boolean isOpaqueCube() {
+ return false;
+ }
+
+ public boolean getBlocksMovement(IBlockAccess p_149655_1_, int p_149655_2_, int p_149655_3_, int p_149655_4_) {
+ return false;
+ }
+
+ public TileEntity createNewTileEntity(World world, int meta) {
+ return new TileNidavellirForge();
+ }
+
+ public LexiconEntry getEntry(World arg0, int arg1, int arg2, int arg3, EntityPlayer arg4, ItemStack arg5) {
+ return RecipeListAB.advandedAgglomerationPlate;
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/4a/20113c2efbac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/4a/20113c2efbac001c1d59e42be7477558
deleted file mode 100644
index 12bb419..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/4a/20113c2efbac001c1d59e42be7477558
+++ /dev/null
@@ -1,96 +0,0 @@
-package ab.client.render.tile;
-
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.model.ModelDiceFate;
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.entity.RenderManager;
-import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.ResourceLocation;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class RenderTileGameBoard extends TileEntitySpecialRenderer {
-
- private static final ModelDiceFate model = new ModelDiceFate();
- private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/gameDice.png");
- private static final ResourceLocation textureEnemy = new ResourceLocation("ab:textures/model/gameDice_enemy.png");
-
- public void renderTileEntityAt(TileEntity tile, double x, double y, double z, float ticks) {
- double time = (tile.getWorldObj() == null) ? 0.0D : (ClientTickHandler.ticksInGame + ticks);
- if(tile != null)
- time += (new Random((tile.xCoord ^ tile.yCoord ^ tile.zCoord))).nextInt(360);
- TileGameBoard board = (TileGameBoard)tile;
- GL11.glEnable(3042);
- GL11.glEnable(32826);
- GL11.glBlendFunc(770, 771);
- GL11.glPushMatrix();
- GL11.glRotatef(180.0f - RenderManager.instance.playerViewY, 0.0f, 1.0f, 0.0f);
- for(int i = 0; i < board.slotChance.length; i++) {
- if(board.slotChance[i] == 0)
- continue;
- time += i * 65;
- GL11.glPushMatrix();
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- float posX = 0.0f;
- float posY = 0.0f;
- float dropAnim = (1.0f - (Math.min(100.0f, (board.clientTick[i] * board.clientTick[i] * 1.25f) + ticks) / 100.0f));
- dropAnim = Math.min(1.0f, Math.max(dropAnim, 0));
- float alpha = (float)Math.cos(dropAnim);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, alpha);
- switch(i) {
- case 0:
- posX = 0.16f + 0.08f * dropAnim;
- posY = 0.16f + 0.08f * dropAnim;
- break;
- case 1:
- posX = -0.16f - 0.08f * dropAnim;
- posY = 0.16f + 0.08f * dropAnim;
- break;
- case 2:
- posX = 0.16f + 0.08f * dropAnim;
- posY = -0.16f - 0.08f * dropAnim;
- break;
- case 3:
- posX = -0.16f - 0.08f * dropAnim;
- posY = -0.16f - 0.08f * dropAnim;
- break;
- }
- GL11.glTranslated(x, y, z);
- GL11.glTranslated(0.5f + posX, 0.02f + Math.sin(time / 12.0D) / 48.0D + (0.28f * dropAnim), 0.5f + posY);
- GL11.glScalef(0.25f, 0.25f, 0.25f);
- Minecraft.getMinecraft().renderEngine.bindTexture(i > 1 ? textureEnemy : texture);
- float dropAngel = 70.0f * dropAnim;
- switch(board.slotChance[i]) {
- case 1:
- model.render(180.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 2:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 3:
- model.render(90.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 4:
- model.render(270.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 5:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 270.0f);
- break;
- case 6:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 90.0f);
- break;
- default:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- }
- GL11.glPopMatrix();
- }
- GL11.glPopMatrix();
- GL11.glEnable(32826);
- GL11.glDisable(3042);
- }
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/4a/7017e591deac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/4a/7017e591deac001c1d59e42be7477558
deleted file mode 100644
index 2a9dae6..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/4a/7017e591deac001c1d59e42be7477558
+++ /dev/null
@@ -1,92 +0,0 @@
-package ab.client.render.tile;
-
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.model.ModelDiceFate;
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.ResourceLocation;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class RenderTileGameBoard extends TileEntitySpecialRenderer {
-
- private static final ModelDiceFate model = new ModelDiceFate();
- private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/gameDice.png");
- private static final ResourceLocation textureEnemy = new ResourceLocation("ab:textures/model/gameDice_enemy.png");
-
- public void renderTileEntityAt(TileEntity tile, double x, double y, double z, float ticks) {
- double time = (tile.getWorldObj() == null) ? 0.0D : (ClientTickHandler.ticksInGame + ticks);
- if(tile != null)
- time += (new Random((tile.xCoord ^ tile.yCoord ^ tile.zCoord))).nextInt(360);
- TileGameBoard board = (TileGameBoard)tile;
- GL11.glEnable(3042);
- GL11.glEnable(32826);
- GL11.glDepthMask(false);
- for(int i = 0; i < board.slotChance.length; i++) {
- if(board.slotChance[i] == 0)
- continue;
- time += i * 65;
- GL11.glPushMatrix();
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- float posX = 0.0f;
- float posY = 0.0f;
- float dropAnim = (1.0f - (Math.min(100.0f, board.clientTick[i] * board.clientTick[i] * 1.125f) / 100.0f));
- dropAnim = Math.min(1.0f, Math.max(dropAnim, 0));
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0f - dropAnim);
- switch(i) {
- case 0:
- posX = 0.16f + 0.08f * dropAnim;
- posY = 0.16f + 0.08f * dropAnim;
- break;
- case 1:
- posX = -0.16f - 0.08f * dropAnim;
- posY = 0.16f + 0.08f * dropAnim;
- break;
- case 2:
- posX = 0.16f + 0.08f * dropAnim;
- posY = -0.16f - 0.08f * dropAnim;
- break;
- case 3:
- posX = -0.16f - 0.08f * dropAnim;
- posY = -0.16f - 0.08f * dropAnim;
- break;
- }
- GL11.glTranslated(x, y, z);
- GL11.glTranslated(0.5f + posX, 0.02f + Math.sin(time / 12.0D) / 48.0D + (0.28f * dropAnim), 0.5f + posY);
- GL11.glScalef(0.25f, 0.25f, 0.25f);
- Minecraft.getMinecraft().renderEngine.bindTexture(i > 1 ? textureEnemy : texture);
- float dropAngel = 70.0f * dropAnim;
- switch(board.slotChance[i]) {
- case 1:
- model.render(180.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 2:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 3:
- model.render(90.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 4:
- model.render(270.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 5:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 270.0f);
- break;
- case 6:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 90.0f);
- break;
- default:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- }
- GL11.glPopMatrix();
- }
- GL11.glDepthMask(true);
- GL11.glEnable(32826);
- GL11.glDisable(3042);
- }
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/4a/80f28858e7bc001c1a9f99005529f322 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/4a/80f28858e7bc001c1a9f99005529f322
new file mode 100644
index 0000000..ca04f8f
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/4a/80f28858e7bc001c1a9f99005529f322
@@ -0,0 +1,101 @@
+package ab.client.render.tile;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Random;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.client.model.ModelNidavellirForge;
+import ab.common.block.tile.TileNidavellirForge;
+import net.minecraft.client.Minecraft;
+import net.minecraft.client.renderer.OpenGlHelper;
+import net.minecraft.client.renderer.Tessellator;
+import net.minecraft.client.renderer.entity.Render;
+import net.minecraft.client.renderer.entity.RenderManager;
+import net.minecraft.client.renderer.texture.TextureMap;
+import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.ResourceLocation;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.client.core.helper.ShaderHelper;
+import vazkii.botania.common.block.mana.BlockTerraPlate;
+
+public class RenderTileNidavellirForge extends TileEntitySpecialRenderer {
+
+ private List entityList = null;
+ private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/nidavellirForge.png");
+ private static final ModelNidavellirForge model = new ModelNidavellirForge();
+
+ public void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float f) {
+ TileNidavellirForge tile = (TileNidavellirForge)tileentity;
+ double worldTime = 0.0D;
+ int meta = 2;
+ float invRender = 0.0f;
+ if(tileentity != null && tileentity.getWorldObj() != null) {
+ worldTime = ClientTickHandler.ticksInGame + f + (new Random((tileentity.xCoord ^ tileentity.yCoord ^ tileentity.zCoord))).nextInt(360);
+ meta = tileentity.getWorldObj().getBlockMetadata(tileentity.xCoord, tileentity.yCoord, tileentity.zCoord);
+ } else
+ invRender = 0.0f;
+ float indetY = (float)(Math.sin(worldTime / 18.0D) / 24.0D);
+ GL11.glPushMatrix();
+ GL11.glEnable(32826);
+ GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
+ GL11.glTranslated(x - invRender, y, z);
+ GL11.glTranslatef(0.5f, 1.5f, 0.5f);
+ GL11.glRotatef(180.0f, 1.0f, 0.0f, 1.0f);
+ GL11.glRotatef(90.0f * meta, 0.0f, 1.0f, 0.0f);
+ Minecraft.getMinecraft().renderEngine.bindTexture(texture);
+ model.renderBottom();
+ GL11.glTranslatef(0.0f, indetY, 0.0f);
+ model.renderTop();
+ GL11.glEnable(32826);
+ GL11.glPopMatrix();
+ if(entityList == null) {
+ List list = new ArrayList();
+ for(int i = 0; i < tile.getSizeInventory(); i++) {
+ list.add(new EntityItem(tile.getWorldObj(), tile.xCoord, tile.yCoord, tile.zCoord));
+ }
+ entityList = list;
+ }
+ GL11.glPushMatrix();
+ GL11.glTranslated(x + 0.5f, y + 0.675f - indetY, z + 0.5f);
+ GL11.glScalef(0.2F, 0.225F, 0.225F);
+ for(int i = 1; i < entityList.size(); i++) {
+ GL11.glPushMatrix();
+ ItemStack stack = tile.getStackInSlot(i);
+ if(stack != null) {
+ switch(i) {
+ case 1:
+ GL11.glTranslated(0.15f, 0.0f, 0.0f);
+ break;
+ case 2:
+ GL11.glTranslated(-0.15f, 0.0f, -0.15f);
+ break;
+ case 3:
+ GL11.glTranslated(-0.15f, 0.0f, 0.15f);
+ break;
+ }
+ entityList.get(i).setEntityItemStack(stack);
+ entityList.get(i).age = ClientTickHandler.ticksInGame;
+ ((Render)RenderManager.instance.entityRenderMap.get(EntityItem.class)).doRender((Entity)entityList.get(i), 0.0D, 0.0D, 0.0D, 1.0F, f);
+ }
+ GL11.glPopMatrix();
+ }
+ GL11.glPopMatrix();
+ if(tile.getStackInSlot(0) != null) {
+ GL11.glPushMatrix();
+ GL11.glTranslated(x + 0.5, y + 0.915f - indetY, z + 0.5);
+ GL11.glScalef(0.45f, 0.45f, 0.45f);
+ entityList.get(0).setEntityItemStack(tile.getStackInSlot(0));
+ entityList.get(0).age = ClientTickHandler.ticksInGame;
+ ((Render)RenderManager.instance.entityRenderMap.get(EntityItem.class)).doRender((Entity)entityList.get(0), 0.0D, 0.0D, 0.0D, 1.0F, f);
+ GL11.glPopMatrix();
+ }
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/4a/c067e3a7babc001c1a9f99005529f322 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/4a/c067e3a7babc001c1a9f99005529f322
new file mode 100644
index 0000000..df6d9c4
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/4a/c067e3a7babc001c1a9f99005529f322
@@ -0,0 +1,139 @@
+package ab.common.block;
+
+import ab.AdvancedBotany;
+import ab.common.block.tile.TileNidavellirForge;
+import ab.common.block.tile.TileInventory;
+import ab.common.lib.register.RecipeListAB;
+import net.minecraft.block.Block;
+import net.minecraft.block.BlockContainer;
+import net.minecraft.block.material.Material;
+import net.minecraft.client.renderer.texture.IIconRegister;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.MathHelper;
+import net.minecraft.util.Vec3;
+import net.minecraft.world.IBlockAccess;
+import net.minecraft.world.World;
+import vazkii.botania.api.BotaniaAPI;
+import vazkii.botania.api.lexicon.ILexiconable;
+import vazkii.botania.api.lexicon.LexiconEntry;
+
+public class BlockNidavellirForge extends BlockContainer implements ILexiconable {
+
+ public BlockNidavellirForge() {
+ super(Material.iron);
+ this.setCreativeTab(AdvancedBotany.tabAB);
+ this.setHardness(3.0F);
+ this.setResistance(10.0F);
+ this.setStepSound(soundTypeMetal);
+ this.setBlockName("ABPlate");
+ }
+
+ public void setBlockBoundsBasedOnState(IBlockAccess world, int x, int y, int z) {
+ float f = 0.1875F;
+ float f1 = 0.0625F;
+ switch(world.getBlockMetadata(x, y, z)) {
+ case 0: this.setBlockBounds(f + f1, 0.0F, 0.0F, 1.0F - f, 0.75F, 1.0F);
+ break;
+ default: this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
+ }
+// if(world.getBlockMetadata(x, y, z) % 2 == 0)
+// this.setBlockBounds(f, 0.0F, 0.0F, 1.0F - f, 0.75F, 1.0F);
+// else
+// this.setBlockBounds(0.0F, 0.0F, f, 1.0F, 0.75F, 1.0F - f);
+ }
+
+ public void onBlockPlacedBy(World world, int x, int y, int z, EntityLivingBase liv, ItemStack stack) {
+ int meta = MathHelper.floor_double((double)(liv.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3;
+ world.setBlockMetadataWithNotify(x, y, z, meta, 3);
+ }
+
+ public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int par6, float par7, float par8, float par9) {
+ TileNidavellirForge tile = (TileNidavellirForge)world.getTileEntity(x, y, z);
+ if(player.isSneaking()) {
+ if(tile.getStackInSlot(0) != null) {
+ ItemStack copy = tile.getStackInSlot(0).copy();
+ if(!world.isRemote) {
+ Vec3 vec3 = player.getLook(1.0F).normalize();
+ EntityItem entityitem = new EntityItem(world, player.posX + vec3.xCoord, player.posY + 1.2f, player.posZ + vec3.zCoord, copy);
+ world.spawnEntityInWorld(entityitem);
+ tile.requestUpdate = true;
+ }
+ tile.setInventorySlotContents(0, null);
+ world.func_147453_f(x, y, z, (Block)this);
+ return true;
+ }
+ for(int i = tile.getSizeInventory() - 1; i > 0; i--) {
+ ItemStack stack = tile.getStackInSlot(i);
+ if(stack != null) {
+ ItemStack copy = stack.copy();
+ if(!world.isRemote) {
+ Vec3 vec3 = player.getLook(1.0F).normalize();
+ EntityItem entityitem = new EntityItem(world, player.posX + vec3.xCoord, player.posY + 1.2f, player.posZ + vec3.zCoord, copy);
+ world.spawnEntityInWorld(entityitem);
+ tile.requestUpdate = true;
+ }
+ tile.setInventorySlotContents(i, null);
+ world.func_147453_f(x, y, z, (Block)this);
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public void breakBlock(World world, int x, int y, int z, Block block, int meta) {
+ if(!world.isRemote) {
+ TileInventory inv = (TileInventory)world.getTileEntity(x, y, z);
+ if (inv != null) {
+ for (int i = 0; i < inv.getSizeInventory(); i++) {
+ ItemStack stack = inv.getStackInSlot(i);
+ if (stack != null) {
+ float f = world.rand.nextFloat() * 0.8F + 0.1F;
+ float f1 = world.rand.nextFloat() * 0.8F + 0.1F;
+ float f2 = world.rand.nextFloat() * 0.8F + 0.1F;
+ EntityItem entityitem = new EntityItem(world, (x + f), (y + f1), (z + f2), stack.copy());
+ float f3 = 0.05F;
+ entityitem.motionX = ((float)world.rand.nextGaussian() * f3);
+ entityitem.motionY = ((float)world.rand.nextGaussian() * f3 + 0.2F);
+ entityitem.motionZ = ((float)world.rand.nextGaussian() * f3);
+ if (stack.hasTagCompound())
+ entityitem.getEntityItem().setTagCompound((NBTTagCompound)stack.getTagCompound().copy());
+ world.spawnEntityInWorld(entityitem);
+ }
+ }
+ }
+ }
+ super.breakBlock(world, x, y, z, block, meta);
+ }
+
+ public int getRenderType() {
+ return -1;
+ }
+
+ public boolean renderAsNormalBlock() {
+ return false;
+ }
+
+ public boolean isOpaqueCube() {
+ return false;
+ }
+
+ public boolean getBlocksMovement(IBlockAccess p_149655_1_, int p_149655_2_, int p_149655_3_, int p_149655_4_) {
+ return false;
+ }
+
+ public TileEntity createNewTileEntity(World world, int meta) {
+ return new TileNidavellirForge();
+ }
+
+ public LexiconEntry getEntry(World arg0, int arg1, int arg2, int arg3, EntityPlayer arg4, ItemStack arg5) {
+ return RecipeListAB.advandedAgglomerationPlate;
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/4a/e0162f0b9db1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/4a/e0162f0b9db1001c19bf8a91ac37238b
deleted file mode 100644
index 45cc4da..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/4a/e0162f0b9db1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,243 +0,0 @@
-package ab.client.core;
-
-import java.awt.Color;
-import java.nio.FloatBuffer;
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.gui.ScaledResolution;
-import net.minecraft.client.renderer.ActiveRenderInfo;
-import net.minecraft.client.renderer.GLAllocation;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.RenderHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.entity.RenderItem;
-import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.IIcon;
-import net.minecraft.util.ResourceLocation;
-import net.minecraft.util.StatCollector;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-import vazkii.botania.client.core.handler.HUDHandler;
-import vazkii.botania.common.block.ModBlocks;
-import vazkii.botania.common.core.helper.Vector3;
-
-public class ClientHelper {
-
- public static final ResourceLocation miscHuds = new ResourceLocation("ab:textures/misc/miscHuds.png");
- private static final ResourceLocation field_147529_c = new ResourceLocation("textures/environment/end_sky.png");
- private static final ResourceLocation field_147526_d = new ResourceLocation("textures/entity/end_portal.png");
- private static final Random field_147527_e = new Random(31100L);
- public static Minecraft mc = Minecraft.getMinecraft();
- private static FloatBuffer field_147528_b = GLAllocation.createDirectFloatBuffer(16);
-
- public static void renderCosmicBackground() {
-// GL11.glDisable(GL11.GL_LIGHTING);
- field_147527_e.setSeed(31100L);
- float f4 = 0.24F;
- for (int i = 0; i < 16; i++) {
- GL11.glPushMatrix();
- float f5 = (16 - i);
- float f6 = 0.0625F;
- float f7 = 1.0F / (f5 + 1.0F);
- if (i == 0) {
- mc.renderEngine.bindTexture(field_147529_c);
- f7 = 0.1F;
- f5 = 65.0F;
- f6 = 0.125F;
- GL11.glEnable(GL11.GL_BLEND);
- GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
- }
- if (i == 1) {
- mc.renderEngine.bindTexture(field_147526_d);
- GL11.glEnable(GL11.GL_BLEND);
- GL11.glBlendFunc(GL11.GL_ONE, GL11.GL_ONE);
- f6 = 0.5F;
- }
- GL11.glTranslatef(0.0f, 1.5f, 0.0f);
- GL11.glTexGeni(GL11.GL_S, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_OBJECT_LINEAR);
- GL11.glTexGeni(GL11.GL_T, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_OBJECT_LINEAR);
- GL11.glTexGeni(GL11.GL_R, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_OBJECT_LINEAR);
- GL11.glTexGeni(GL11.GL_Q, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_EYE_LINEAR);
- GL11.glTexGen(GL11.GL_S, GL11.GL_OBJECT_PLANE, func_147525_a(1.0F, 0.0F, 0.0F, 0.0F));
- GL11.glTexGen(GL11.GL_T, GL11.GL_OBJECT_PLANE, func_147525_a(0.0F, 0.0F, 1.0F, 0.0F));
- GL11.glTexGen(GL11.GL_R, GL11.GL_OBJECT_PLANE, func_147525_a(0.0F, 0.0F, 0.0F, 1.0F));
- GL11.glTexGen(GL11.GL_Q, GL11.GL_EYE_PLANE, func_147525_a(0.0F, 1.0F, 0.0F, 0.0F));
- GL11.glEnable(GL11.GL_TEXTURE_GEN_S);
- GL11.glEnable(GL11.GL_TEXTURE_GEN_T);
- GL11.glEnable(GL11.GL_TEXTURE_GEN_R);
- GL11.glEnable(GL11.GL_TEXTURE_GEN_Q);
- GL11.glPopMatrix();
- GL11.glMatrixMode(GL11.GL_TEXTURE);
- GL11.glPushMatrix();
- GL11.glLoadIdentity();
- GL11.glTranslatef(0.0F, (float)(Minecraft.getSystemTime() % 20000L) / 20000.0F, 0.0F);
- GL11.glScalef(f6, f6, f6);
- GL11.glTranslatef(0.5F, 0.5F, 0.0F);
- GL11.glRotatef((i * i * 4321 + i * 9) * 2.0F, 0.0F, 0.0F, 1.0F);
- GL11.glTranslatef(-0.5F, -0.5F, 0.0F);
- Tessellator tessellator = Tessellator.instance;
- tessellator.startDrawingQuads();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float f11 = color.getRed() / 255.0F;
- float f12 = color.getGreen() / 255.0F;
- float f13 = color.getBlue() / 255.0F;
- tessellator.setBrightness(180);
- tessellator.setColorRGBA_F(f11 * f7, f12 * f7, f13 * f7, 1.0F);
- tessellator.addVertex(0.0D, f4, 0.0D);
- tessellator.addVertex(0.0D, f4, 1.0D);
- tessellator.addVertex(1.0D, f4, 1.0D);
- tessellator.addVertex(1.0D, f4, 0.0D);
- tessellator.draw();
- GL11.glPopMatrix();
- GL11.glMatrixMode(GL11.GL_MODELVIEW);
- }
- GL11.glDisable(GL11.GL_BLEND);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_S);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_T);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_R);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_Q);
- }
-
- private static FloatBuffer func_147525_a(float p_147525_1_, float p_147525_2_, float p_147525_3_, float p_147525_4_) {
- field_147528_b.clear();
- field_147528_b.put(p_147525_1_).put(p_147525_2_).put(p_147525_3_).put(p_147525_4_);
- field_147528_b.flip();
- return field_147528_b;
- }
-
- public static void drawArrow(int x, int y, boolean side) {
- mc.renderEngine.bindTexture(miscHuds);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0f);
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x, y, 0.0F, 0, 10, side ? 0 : 22, 38);
- }
-
- public static void drawChanceBar(int x, int y, int chance) {
- mc.renderEngine.bindTexture(miscHuds);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0f);
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x, y, 0.0F, 0, 0, 57, 6);
- int chancePercentage = Math.max(0, (int)((chance / 100.f) * 55.0D));
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x + 1, y + 1, 0.0F, 0, 6, 55, 4);
- Color color = new Color(Color.HSBtoRGB((chance) / 360.0f, ((float)Math.sin((ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks) * 0.2D) + 1.0F) * 0.3F + 0.4F, 1.0f));
- GL11.glColor4ub((byte)color.getRed(), (byte)color.getGreen(), (byte)color.getBlue(), (byte)255);
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x + 1, y + 1, 0.0F, 0, 6, Math.min(55, chancePercentage), 4);
- }
-
- public static void renderPoolManaBar(int x, int y, int color, float alpha, int mana) {
- Minecraft mc = Minecraft.getMinecraft();
- int poolCount = (int)Math.floor(mana / 1000000.0D);
- if(poolCount < 0)
- poolCount = 0;
- int onePoolMana = mana - (poolCount * 1000000);
- String strPool = poolCount + "x";
- int xc = x - mc.fontRenderer.getStringWidth(strPool) / 2;
- int yc = y;
- GL11.glPushMatrix();
- GL11.glTranslatef(xc + 42.0f, yc + 5.0f, 0.0f);
- RenderHelper.enableGUIStandardItemLighting();
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, new ItemStack(ModBlocks.pool), 0, 0);
- RenderHelper.disableStandardItemLighting();
- GL11.glTranslatef(18.0f, 5.0f, 300.0f);
- mc.fontRenderer.drawString(strPool, 0, 0, color);
- GL11.glPopMatrix();
- if((poolCount * 1000000) == mana)
- onePoolMana = poolCount * 1000000;
- HUDHandler.renderManaBar(x, y, color, alpha, onePoolMana, 1000000);
- }
-
- public static void drawPoolManaHUD(ScaledResolution res, String name, int mana, int maxMana, int color) {
- Minecraft mc = Minecraft.getMinecraft();
- int poolCount = (int)Math.floor(mana / 1000000.0D);
- int maxPoolCount = (int)Math.floor(maxMana / 1000000.0D);
- if(poolCount < 0)
- poolCount = 0;
- if(maxPoolCount < 0)
- maxPoolCount = 0;
- int onePoolMana = mana - (poolCount * 1000000);
- String strPool = poolCount + "x / " + maxPoolCount + "x";
- int xc = res.getScaledWidth() / 2 - mc.fontRenderer.getStringWidth(strPool) / 2 - 3;
- int yc = res.getScaledHeight() / 2;
- GL11.glPushMatrix();
- GL11.glTranslatef(xc - 6.0f, yc + 30.0f, 0.0f);
- RenderHelper.enableGUIStandardItemLighting();
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, new ItemStack(ModBlocks.pool), 0, 0);
- RenderHelper.disableStandardItemLighting();
- GL11.glTranslatef(18.0f, 4.5f, 300.0f);
- mc.fontRenderer.drawStringWithShadow(strPool, 0, 0, color);
- GL11.glPopMatrix();
- if((poolCount * 1000000) == mana)
- onePoolMana = poolCount * 1000000;
- HUDHandler.drawSimpleManaHUD(color, onePoolMana, 1000000, name, res);
- }
-
- public static void setLightmapTextureCoords() {
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- }
-
- public static Vector3 setRotation(float angel, float vX, float vY, float vZ, Vector3 v3) {
- Vector3 rVec = new Vector3(vX, vY, vZ);
- Vector3 rVec1 = v3.copy().normalize();
- double rAngel = Math.toRadians(angel) * 0.5f;
- double sin = Math.sin(rAngel);
- double x = rVec.x * sin;
- double y = rVec.y * sin;
- double z = rVec.z * sin;
- rAngel = Math.cos(rAngel);
- double d = -x * rVec1.x - y * rVec1.y - z * rVec1.z;
- double d1 = rAngel * rVec1.x + y * rVec1.z - z * rVec1.y;
- double d2 = rAngel * rVec1.y - x * rVec1.z + z * rVec1.x;
- double d3 = rAngel * rVec1.z + x * rVec1.y - y * rVec1.x;
- v3.x = d1 * rAngel - d * x - d2 * z + d3 * y;
- v3.y = d2 * rAngel - d * y + d1 * z - d3 * x;
- v3.z = d3 * rAngel - d * z - d1 * y + d2 * x;
- return v3;
- }
-
- public static Color getCorporeaRuneColor(int posX, int posY, int posZ, int meta) {
- double time = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- time += (new Random((posX ^ posY ^ posZ))).nextInt(360);
- float sin = (float)(Math.sin(time / 20.0f) * 0.15f) - 0.15f;
- int color = 0;
- switch(meta) {
- case 0:
- color = Color.HSBtoRGB(0.0f, 0.0f, 0.54f + (sin / 1.2f));
- break;
- case 1:
- color = Color.HSBtoRGB(0.688f, 0.93f, 0.96f + sin - 0.15f);
- break;
- case 2:
- color = Color.HSBtoRGB(0.983f, 0.99f, 1.0f + sin - 0.15f);
- break;
- case 3:
- color = Color.HSBtoRGB(0.319f, 0.92f, 0.95f + sin - 0.15f);
- break;
- case 4:
- color = Color.HSBtoRGB(0.536f, 0.53f, 0.92f + sin - 0.15f);
- break;
- }
- return new Color(color);
- }
-
- public static void renderIcon(IIcon icon, int light) {
- Tessellator tessellator = Tessellator.instance;
- float f = icon.getMinU();
- float f1 = icon.getMaxU();
- float f2 = icon.getMinV();
- float f3 = icon.getMaxV();
- float f4 = 1.0F;
- float f5 = 0.5F;
- float f6 = 0.25F;
- tessellator.startDrawingQuads();
- tessellator.setNormal(0.0F, 1.0F, 0.0F);
- tessellator.addVertexWithUV((0.0F - f5), (0.0F - f6), 0.0D, f, f3);
- tessellator.addVertexWithUV((f4 - f5), (0.0F - f6), 0.0D, f1, f3);
- tessellator.addVertexWithUV((f4 - f5), (f4 - f6), 0.0D, f1, f2);
- tessellator.addVertexWithUV((0.0F - f5), (f4 - f6), 0.0D, f, f2);
- tessellator.draw();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/4b/d01672a125b0001c18a5eba32f24fffa b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/4b/d01672a125b0001c18a5eba32f24fffa
deleted file mode 100644
index 12ac1c1..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/4b/d01672a125b0001c18a5eba32f24fffa
+++ /dev/null
@@ -1,94 +0,0 @@
-package ab.common.lib.register;
-
-import ab.common.item.*;
-import ab.common.item.equipment.*;
-import ab.common.item.equipment.armor.ItemNebulaBoots;
-import ab.common.item.equipment.armor.ItemNebulaChest;
-import ab.common.item.equipment.armor.ItemNebulaHelm;
-import ab.common.item.equipment.armor.ItemNebulaHelmRevealing;
-import ab.common.item.equipment.armor.ItemNebulaLegs;
-import ab.common.item.relic.ItemFreyrSlingshot;
-import ab.common.item.relic.ItemPocketWardrobe;
-import ab.common.item.relic.ItemSpiritJar;
-import ab.common.item.relic.ItemTalismanHiddenRiches;
-import cpw.mods.fml.common.registry.GameRegistry;
-import net.minecraft.item.Item;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.core.handler.ConfigHandler;
-
-public class ItemListAB {
-
- public static Item itemABResource;
- public static Item itemMithrillRing;
- public static Item itemMihrillMultiTool;
- public static Item itemNebulaRing;
- public static Item itemAdvancedSpark;
- public static Item itemMithrillSword;
- public static Item itemTerraHoe;
- public static Item itemManaFlower;
- public static Item itemBlackHalo;
- public static Item itemNebulaBlaze;
- public static Item itemAntigravityCharm;
- public static Item itemNebulaHelm;
- public static Item itemNebulaHelmReveal;
- public static Item itemNebulaChest;
- public static Item itemNebulaLegs;
- public static Item itemNebulaBoots;
- public static Item itemFreyrSlingshot;
- public static Item itemNebulaRod;
- public static Item itemCraftingPattern;
- public static Item itemSprawlRod;
- public static Item itemPocketWardrobe;
- public static Item itemTalismanHiddenRiches;
- public static Item itemSpiritJar;
-
- public static void init() {
- ItemListAB.itemABResource = new ItemABResource();
- GameRegistry.registerItem(itemABResource, "itemABResource");
- ItemListAB.itemMithrillRing = new ItemMithrillRing("mithrillManaRing");
- GameRegistry.registerItem(itemMithrillRing, "itemMithrillRing");
- ItemListAB.itemNebulaRing = new ItemNebulaRing("nebulaManaRing");
- GameRegistry.registerItem(itemNebulaRing, "itemNebulaRing");
- ItemListAB.itemMihrillMultiTool = new ItemMithrillMultiTool();
- GameRegistry.registerItem(itemMihrillMultiTool, "itemMihrillMultiTool");
- ItemListAB.itemAdvancedSpark = new ItemAdvancedSpark();
- GameRegistry.registerItem(itemAdvancedSpark, "itemAdvancedSpark");
- ItemListAB.itemMithrillSword = new ItemSpaceBlade();
- GameRegistry.registerItem(itemMithrillSword, "itemMithrillSword");
- ItemListAB.itemTerraHoe = new ItemTerraHoe();
- GameRegistry.registerItem(itemTerraHoe, "itemTerraHoe");
- ItemListAB.itemManaFlower = new ItemManaFlower();
- GameRegistry.registerItem(itemManaFlower, "itemManaFlower");
- ItemListAB.itemBlackHalo = new ItemBlackHalo();
- GameRegistry.registerItem(itemBlackHalo, "itemBlackHalo");
- ItemListAB.itemNebulaBlaze = new ItemNebulaBlaze();
- GameRegistry.registerItem(itemNebulaBlaze, "itemNebulaBlaze");
- ItemListAB.itemAntigravityCharm = new ItemAntigravityCharm();
- GameRegistry.registerItem(itemAntigravityCharm, "itemAntigravityCharm");
-
- ItemListAB.itemNebulaRod = new ItemNebulaRod();
- GameRegistry.registerItem(itemNebulaRod, "itemNebulaRod");
- ItemListAB.itemSprawlRod = new ItemSprawlRod();
- GameRegistry.registerItem(itemSprawlRod, "itemSprawlRod");
-
- ItemListAB.itemPocketWardrobe = new ItemPocketWardrobe();
- ItemListAB.itemTalismanHiddenRiches = new ItemTalismanHiddenRiches();
- ItemListAB.itemFreyrSlingshot = new ItemFreyrSlingshot();
-
- // ItemListAB.itemSpiritJar = new ItemSpiritJar();
-
- ItemListAB.itemNebulaHelm = new ItemNebulaHelm();
- ItemListAB.itemNebulaChest = new ItemNebulaChest();
- ItemListAB.itemNebulaLegs = new ItemNebulaLegs();
- ItemListAB.itemNebulaBoots = new ItemNebulaBoots();
- if(Botania.thaumcraftLoaded)
- thaumcraft();
-
- }
-
- public static void thaumcraft() {
- ItemListAB.itemNebulaHelmReveal = new ItemNebulaHelmRevealing();
- ItemListAB.itemCraftingPattern = new ItemCraftingPattern();
- GameRegistry.registerItem(itemCraftingPattern, "itemCraftingPattern");
- }
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/4c/8089beb8b5bc001c1a9f99005529f322 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/4c/8089beb8b5bc001c1a9f99005529f322
new file mode 100644
index 0000000..90206d5
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/4c/8089beb8b5bc001c1a9f99005529f322
@@ -0,0 +1,146 @@
+package ab.common.block;
+
+import ab.AdvancedBotany;
+import ab.common.block.tile.TileNidavellirForge;
+import ab.common.block.tile.TileInventory;
+import ab.common.lib.register.RecipeListAB;
+import net.minecraft.block.Block;
+import net.minecraft.block.BlockContainer;
+import net.minecraft.block.material.Material;
+import net.minecraft.client.renderer.texture.IIconRegister;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.Vec3;
+import net.minecraft.world.IBlockAccess;
+import net.minecraft.world.World;
+import vazkii.botania.api.BotaniaAPI;
+import vazkii.botania.api.lexicon.ILexiconable;
+import vazkii.botania.api.lexicon.LexiconEntry;
+
+public class BlockNidavellirForge extends BlockContainer implements ILexiconable {
+
+ public BlockNidavellirForge() {
+ super(Material.iron);
+ this.setCreativeTab(AdvancedBotany.tabAB);
+ this.setHardness(3.0F);
+ this.setResistance(10.0F);
+ this.setStepSound(soundTypeMetal);
+ this.setBlockName("ABPlate");
+ }
+
+ public void setBlockBoundsBasedOnState(IBlockAccess world, int x, int y, int z) {
+ float f1 = 1.0F;
+ float f2 = 1.0F;
+ float f3 = 1.0F;
+ float f4 = 0.0F;
+ float f5 = 0.0F;
+ float f6 = 0.0F;
+ this.setBlockBounds(f1, f2, f3, f4, f5, f6);
+ }
+
+ public int onBlockPlaced(World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ, int meta) {
+ byte b0 = 0;
+ switch (side) {
+ case 2:
+ b0 = 1;
+ break;
+ case 3:
+ b0 = 4;
+ break;
+ case 4:
+ b0 = 8;
+ break;
+ case 5:
+ b0 = 2;
+ }
+ return b0 != 0 ? b0 : meta;
+ }
+
+ public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int par6, float par7, float par8, float par9) {
+ TileNidavellirForge tile = (TileNidavellirForge)world.getTileEntity(x, y, z);
+ if(player.isSneaking()) {
+ if(tile.getStackInSlot(0) != null) {
+ ItemStack copy = tile.getStackInSlot(0).copy();
+ if(!world.isRemote) {
+ Vec3 vec3 = player.getLook(1.0F).normalize();
+ EntityItem entityitem = new EntityItem(world, player.posX + vec3.xCoord, player.posY + 1.2f, player.posZ + vec3.zCoord, copy);
+ world.spawnEntityInWorld(entityitem);
+ tile.requestUpdate = true;
+ }
+ tile.setInventorySlotContents(0, null);
+ world.func_147453_f(x, y, z, (Block)this);
+ return true;
+ }
+ for(int i = tile.getSizeInventory() - 1; i > 0; i--) {
+ ItemStack stack = tile.getStackInSlot(i);
+ if(stack != null) {
+ ItemStack copy = stack.copy();
+ if(!world.isRemote) {
+ Vec3 vec3 = player.getLook(1.0F).normalize();
+ EntityItem entityitem = new EntityItem(world, player.posX + vec3.xCoord, player.posY + 1.2f, player.posZ + vec3.zCoord, copy);
+ world.spawnEntityInWorld(entityitem);
+ tile.requestUpdate = true;
+ }
+ tile.setInventorySlotContents(i, null);
+ world.func_147453_f(x, y, z, (Block)this);
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public void breakBlock(World world, int x, int y, int z, Block block, int meta) {
+ if(!world.isRemote) {
+ TileInventory inv = (TileInventory)world.getTileEntity(x, y, z);
+ if (inv != null) {
+ for (int i = 0; i < inv.getSizeInventory(); i++) {
+ ItemStack stack = inv.getStackInSlot(i);
+ if (stack != null) {
+ float f = world.rand.nextFloat() * 0.8F + 0.1F;
+ float f1 = world.rand.nextFloat() * 0.8F + 0.1F;
+ float f2 = world.rand.nextFloat() * 0.8F + 0.1F;
+ EntityItem entityitem = new EntityItem(world, (x + f), (y + f1), (z + f2), stack.copy());
+ float f3 = 0.05F;
+ entityitem.motionX = ((float)world.rand.nextGaussian() * f3);
+ entityitem.motionY = ((float)world.rand.nextGaussian() * f3 + 0.2F);
+ entityitem.motionZ = ((float)world.rand.nextGaussian() * f3);
+ if (stack.hasTagCompound())
+ entityitem.getEntityItem().setTagCompound((NBTTagCompound)stack.getTagCompound().copy());
+ world.spawnEntityInWorld(entityitem);
+ }
+ }
+ }
+ }
+ super.breakBlock(world, x, y, z, block, meta);
+ }
+
+ public int getRenderType() {
+ return -1;
+ }
+
+ public boolean renderAsNormalBlock() {
+ return false;
+ }
+
+ public boolean isOpaqueCube() {
+ return false;
+ }
+
+ public boolean getBlocksMovement(IBlockAccess p_149655_1_, int p_149655_2_, int p_149655_3_, int p_149655_4_) {
+ return false;
+ }
+
+ public TileEntity createNewTileEntity(World world, int meta) {
+ return new TileNidavellirForge();
+ }
+
+ public LexiconEntry getEntry(World arg0, int arg1, int arg2, int arg3, EntityPlayer arg4, ItemStack arg5) {
+ return RecipeListAB.advandedAgglomerationPlate;
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/4c/a04a75b4ceb0001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/4c/a04a75b4ceb0001c19bf8a91ac37238b
deleted file mode 100644
index cc3ca11..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/4c/a04a75b4ceb0001c19bf8a91ac37238b
+++ /dev/null
@@ -1,130 +0,0 @@
-package ab.common.item.equipment;
-
-import java.awt.Color;
-
-import ab.client.core.ClientHelper;
-import ab.common.core.handler.ConfigABHandler;
-import ab.common.item.ItemMod;
-import net.minecraft.block.Block;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.Minecraft;
-import net.minecraft.entity.Entity;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.EnumAction;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.ChunkCoordinates;
-import net.minecraft.util.MathHelper;
-import net.minecraft.util.Vec3;
-import net.minecraft.world.World;
-import net.minecraft.world.chunk.Chunk;
-import vazkii.botania.api.mana.IManaUsingItem;
-import vazkii.botania.api.mana.ManaItemHandler;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.core.helper.Vector3;
-
-public class ItemNebulaRod extends ItemMod implements IManaUsingItem {
-
- public ItemNebulaRod() {
- super("nebulaRod");
- this.setMaxStackSize(1);
- this.setNoRepair();
- this.setMaxDamage(100);
- }
-
- public boolean usesMana(ItemStack stack) {
- return true;
- }
-
- public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
- if(stack.getItemDamage() == 0)
- player.setItemInUse(stack, getMaxItemUseDuration(stack));
- return stack;
- }
-
- public EnumAction getItemUseAction(ItemStack par1ItemStack) {
- return EnumAction.bow;
- }
-
- public void onUpdate(ItemStack stack, World world, Entity player, int par4, boolean par5) {
- if(!world.isRemote && player instanceof EntityPlayer && player.ticksExisted % ConfigABHandler.nebulaWandCooldownTick == 0 && stack.getItemDamage() > 0 && ManaItemHandler.requestManaExactForTool(stack, (EntityPlayer)player, 140, true))
- stack.setItemDamage(stack.getItemDamage() - 1);
- }
-
- public void onUsingTick(ItemStack stack, EntityPlayer p, int time) {
- time = this.getMaxItemUseDuration(stack) - time;
- if(time > 110 && !p.isSneaking()) {
- Vec3 vec3 = p.getLook(1.0F).normalize();
- MathHelper.floor_double(time);
- int limitXZ = ConfigABHandler.limitXZCoords;
- int posX = MathHelper.floor_double(p.posX + vec3.xCoord * 256);
- int posY = MathHelper.floor_double(p.posY);
- int posZ = MathHelper.floor_double(p.posZ + vec3.zCoord * 256);
- ChunkCoordinates chunkcoordinates = new ChunkCoordinates(Math.min(Math.max(posX, -(limitXZ - 1)), limitXZ - 1), posY, Math.min(Math.max(posZ, -(limitXZ - 1)), limitXZ - 1));
- int topY = getTopBlock(p.worldObj, posX, posZ);
- if(topY == -1) {
- p.stopUsingItem();
- return;
- }
- chunkcoordinates.posY = topY;
- if(!p.worldObj.isRemote)
- ((EntityPlayerMP)p).playerNetServerHandler.setPlayerLocation(chunkcoordinates.posX + 0.5D, chunkcoordinates.posY + 1.6D, chunkcoordinates.posZ + 0.5D, p.rotationYaw, p.rotationPitch);
- if(!p.capabilities.isCreativeMode)
- stack.setItemDamage(100);
- p.stopUsingItem();
- }
- spawnPortalParticle(p.worldObj, p, time);
- }
-
- public void spawnPortalParticle(World world, EntityPlayer p, int time) {
- if(world.isRemote) {
- boolean isFinish = time > 80;
- int ticks = Math.min(100, time);
- int totalSpiritCount = (int)Math.max(3, ticks / 100.0f * 18);
- double tickIncrement = 360.0D / totalSpiritCount;
- int speed = 8;
- double wticks = (ticks * speed) - tickIncrement;
- double r = Math.sin((ticks) / 100.0D) * Math.max(0.75f, 1.4D * ticks / 100.0f);
- Vec3 look = p.getLookVec();
- float yawOffset = Minecraft.getMinecraft().thePlayer.getDisplayName() == p.getDisplayName() ? 0.0f : 1.62f;
- Vector3 l = new Vector3(look.xCoord, look.yCoord + yawOffset, look.zCoord);
- Vector3 player = Vector3.fromEntity(p).add(0.0f, 0.0f, 0.0f);
- Vector3 v3 = new Vector3();
- for(int i = 0; i < totalSpiritCount; i++) {
- float size = Math.max(0.215f, ticks / 100.0f);
- v3.set(Math.sin(wticks * Math.PI / 180.0D) / 1.825f * r, Math.cos(wticks * Math.PI / 180.0D) * r, 0.8f);
- ClientHelper.setRotation(p.rotationPitch, 1.0f, 0.0f, 0.0f, v3);
- ClientHelper.setRotation(-p.rotationYaw, 0.0f, 1.0f, 0.0f, v3);
- v3.add(l.multiply(1.0f)).add(player);
- wticks += tickIncrement;
- int color = world.rand.nextBoolean() ? 0x931fec : 0x4b1682;
- float hsb[] = Color.RGBtoHSB(color & 255, color >> 8 & 255, color >> 16 & 255, null);
- int color1 = Color.HSBtoRGB(hsb[0], hsb[1], ticks / 100.0f);
- float[] colorsfx = { (color1 & 255) / 255.0f, (color1 >> 8 & 255) / 255.0f, (color1 >> 16 & 255) / 255.0f };
- float motionSpeed = 0.25f * Math.min(1.0f, (time - 80) / 30.0f);
- Botania.proxy.wispFX(world, v3.x, v3.y, v3.z, colorsfx[0], colorsfx[1], colorsfx[2], 0.3F * size, isFinish ? (float)(look.xCoord * -1) * motionSpeed : 0.0f, isFinish ? (float)(look.yCoord * -1) * motionSpeed : 0.0f, isFinish ? (float)(look.zCoord * -1) * motionSpeed : 0.0f, 0.3F);
- Botania.proxy.wispFX(world, v3.x, v3.y, v3.z, colorsfx[0], colorsfx[1], colorsfx[2], (float)(Math.random() * 0.1F + 0.05F) * size, (float)(Math.random() - 0.5D) * 0.05F, (float)(Math.random() - 0.5D) * 0.05F, (float)(Math.random() - 0.5D) * 0.05F, 0.4F);
- }
- }
- }
-
- public int getMaxItemUseDuration(ItemStack par1ItemStack) {
- return 72000;
- }
-
- public boolean isFull3D() {
- return true;
- }
-
- public int getTopBlock(World world, int posX, int posZ) {
- Chunk chunk = world.getChunkFromBlockCoords(posX, posZ);
- int k = chunk.getTopFilledSegment() + 15;
- for(; k > 0; --k) {
- Block block = chunk.getBlock(posX, k, posZ);
- if(!block.isAir(world, posX, k, posZ) && block != Blocks.bedrock)
- return k + 1;
- }
- return -1;
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/4d/6030bb82ceb0001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/4d/6030bb82ceb0001c19bf8a91ac37238b
deleted file mode 100644
index 22977fd..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/4d/6030bb82ceb0001c19bf8a91ac37238b
+++ /dev/null
@@ -1,133 +0,0 @@
-package ab.common.item.equipment;
-
-import java.awt.Color;
-
-import ab.client.core.ClientHelper;
-import ab.common.core.handler.ConfigABHandler;
-import ab.common.item.ItemMod;
-import net.minecraft.block.Block;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.Minecraft;
-import net.minecraft.entity.Entity;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.EnumAction;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.ChunkCoordinates;
-import net.minecraft.util.MathHelper;
-import net.minecraft.util.Vec3;
-import net.minecraft.world.World;
-import net.minecraft.world.chunk.Chunk;
-import vazkii.botania.api.mana.IManaUsingItem;
-import vazkii.botania.api.mana.ManaItemHandler;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.core.helper.Vector3;
-
-public class ItemNebulaRod extends ItemMod implements IManaUsingItem {
-
- public ItemNebulaRod() {
- super("nebulaRod");
- this.setMaxStackSize(1);
- this.setNoRepair();
- this.setMaxDamage(100);
- }
-
- public boolean usesMana(ItemStack stack) {
- return true;
- }
-
- public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
- if(stack.getItemDamage() == 0)
- player.setItemInUse(stack, getMaxItemUseDuration(stack));
- return stack;
- }
-
- public EnumAction getItemUseAction(ItemStack par1ItemStack) {
- return EnumAction.bow;
- }
-
- public void onUpdate(ItemStack stack, World world, Entity player, int par4, boolean par5) {
- if(!world.isRemote && player instanceof EntityPlayer && player.ticksExisted % ConfigABHandler.nebulaWandCooldownTick == 0 && stack.getItemDamage() > 0 && ManaItemHandler.requestManaExactForTool(stack, (EntityPlayer)player, 140, true))
- stack.setItemDamage(stack.getItemDamage() - 1);
- }
-
- public void onUsingTick(ItemStack stack, EntityPlayer p, int time) {
- time = this.getMaxItemUseDuration(stack) - time;
- if(time > 110 && !p.isSneaking()) {
- Vec3 vec3 = p.getLook(1.0F).normalize();
- MathHelper.floor_double(time);
- int limitXZ = ConfigABHandler.limitXZCoords;
- int posX = MathHelper.floor_double(p.posX + vec3.xCoord * 256);
- int posY = MathHelper.floor_double(p.posY);
- int posZ = MathHelper.floor_double(p.posZ + vec3.zCoord * 256);
- ChunkCoordinates chunkcoordinates = new ChunkCoordinates(Math.min(Math.max(posX, -(limitXZ - 1)), limitXZ - 1), posY, Math.min(Math.max(posZ, -(limitXZ - 1)), limitXZ - 1));
- int topY = getTopBlock(p.worldObj, posX, posZ);
- if(topY == -1) {
- p.stopUsingItem();
- return;
- }
- chunkcoordinates.posY = topY;
- if(!p.worldObj.isRemote)
- ((EntityPlayerMP)p).playerNetServerHandler.setPlayerLocation(chunkcoordinates.posX + 0.5D, chunkcoordinates.posY + 1.6D, chunkcoordinates.posZ + 0.5D, p.rotationYaw, p.rotationPitch);
- if(!p.capabilities.isCreativeMode)
- stack.setItemDamage(100);
- p.stopUsingItem();
- }
- spawnPortalParticle(p.worldObj, p, time);
- }
-
- public void spawnPortalParticle(World world, EntityPlayer p, int time) {
- if(world.isRemote) {
- boolean isFinish = time > 80;
- int ticks = Math.min(100, time);
- int totalSpiritCount = (int)Math.max(3, ticks / 100.0f * 18);
- double tickIncrement = 360.0D / totalSpiritCount;
- int speed = 8;
- double wticks = (ticks * speed) - tickIncrement;
- double r = Math.sin((ticks) / 100.0D) * Math.max(0.75f, 1.4D * ticks / 100.0f);
- Vec3 look = p.getLookVec();
- float yawOffset = Minecraft.getMinecraft().thePlayer.getDisplayName() == p.getDisplayName() ? 0.0f : 1.62f;
- Vector3 l = new Vector3(look.xCoord, look.yCoord + yawOffset, look.zCoord);
- Vector3 player = Vector3.fromEntity(p).add(0.0f, 0.0f, 0.0f);
- Vector3 v3 = new Vector3();
- for(int i = 0; i < totalSpiritCount; i++) {
- float size = Math.max(0.215f, ticks / 100.0f);
- v3.set(Math.sin(wticks * Math.PI / 180.0D) / 1.825f * r, Math.cos(wticks * Math.PI / 180.0D) * r, 0.8f);
- ClientHelper.setRotation(p.rotationPitch, 1.0f, 0.0f, 0.0f, v3);
- ClientHelper.setRotation(-p.rotationYaw, 0.0f, 1.0f, 0.0f, v3);
- v3.add(l.multiply(1.0f)).add(player);
- wticks += tickIncrement;
- int color = world.rand.nextBoolean() ? 0x931fec : 0x4b1682;
- float hsb[] = Color.RGBtoHSB(color & 255, color >> 8 & 255, color >> 16 & 255, null);
- int color1 = Color.HSBtoRGB(hsb[0], hsb[1], ticks / 100.0f);
- float[] colorsfx = { (color1 & 255) / 255.0f, (color1 >> 8 & 255) / 255.0f, (color1 >> 16 & 255) / 255.0f };
- float motionSpeed = 0.25f * Math.min(1.0f, (time - 80) / 30.0f);
- Botania.proxy.wispFX(world, v3.x, v3.y, v3.z, colorsfx[0], colorsfx[1], colorsfx[2], 0.3F * size, isFinish ? (float)(look.xCoord * -1) * motionSpeed : 0.0f, isFinish ? (float)(look.yCoord * -1) * motionSpeed : 0.0f, isFinish ? (float)(look.zCoord * -1) * motionSpeed : 0.0f, 0.3F);
- Botania.proxy.wispFX(world, v3.x, v3.y, v3.z, colorsfx[0], colorsfx[1], colorsfx[2], (float)(Math.random() * 0.1F + 0.05F) * size, (float)(Math.random() - 0.5D) * 0.05F, (float)(Math.random() - 0.5D) * 0.05F, (float)(Math.random() - 0.5D) * 0.05F, 0.4F);
- }
- }
- }
-
- public int getMaxItemUseDuration(ItemStack par1ItemStack) {
- return 72000;
- }
-
- public boolean isFull3D() {
- return true;
- }
-
- public int getTopBlock(World world, int posX, int posZ) {
- Chunk chunk = world.getChunkFromBlockCoords(posX, posZ);
- int x = posX;
- int z = posZ;
- int k = chunk.getTopFilledSegment() + 15;
- posX &= 15;
- for(posZ &= 15; k > 0; --k) {
- Block block = chunk.getBlock(posX, k, posZ);
- if(!block.isAir(world, posX, k, posZ) && block != Blocks.bedrock)
- return k + 1;
- }
- return -1;
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/4e/0055ff8abcb1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/4e/0055ff8abcb1001c19bf8a91ac37238b
deleted file mode 100644
index 965c02e..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/4e/0055ff8abcb1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,234 +0,0 @@
-package ab.common.block.tile;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.api.IRenderHud;
-import ab.common.core.CommonHelper;
-import ab.common.lib.register.BlockListAB;
-import net.minecraft.block.Block;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.gui.Gui;
-import net.minecraft.client.gui.ScaledResolution;
-import net.minecraft.client.renderer.RenderHelper;
-import net.minecraft.client.renderer.entity.RenderItem;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.ItemBlock;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.world.World;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.api.lexicon.multiblock.Multiblock;
-import vazkii.botania.api.lexicon.multiblock.MultiblockSet;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.block.ModBlocks;
-import vazkii.botania.common.block.ModFluffBlocks;
-import vazkii.botania.common.block.tile.TileMod;
-import vazkii.botania.common.core.handler.ConfigHandler;
-
-public class TileLebethronCore extends TileMod implements IRenderHud {
-
- protected int tick;
- protected Block block;
- protected int meta;
- protected boolean validTree;
- private String playerName;
-
- public static MultiblockSet makeMultiblockSet() {
- Multiblock mb = new Multiblock();
- mb.addComponent(0, 1, 0, BlockListAB.blockLebethron, 4);
- mb.addComponent(0, 0, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 2, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 3, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 4, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 5, 0, BlockListAB.blockLebethron, 0);
- mb.setRenderOffset(0, 1, 0);
- return mb.makeSet();
- }
-
- public void updateEntity() {
- if(tick <= 0) {
- updateStructure();
- if(validTree && getBlock() != null) {
- spawnLeaves();
- tick = 40;
- }
- } else
- tick--;
- if(worldObj.isRemote && worldObj.rand.nextBoolean() && this.worldObj.isRemote)
- Botania.proxy.sparkleFX(this.worldObj, this.xCoord + Math.random(), this.yCoord + Math.random(), this.zCoord + Math.random(), 0.5F, 1.0F, 0.5F, (float)Math.random() * 2, 2);
- }
-
- public boolean getValidTree() {
- return this.validTree;
- }
-
- public void updateStructure() {
- boolean oldValidTree = validTree;
- validTree = hasValidTree();
- if(oldValidTree != validTree)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- }
-
- public void setPlayerName(String name) {
- if(playerName.isEmpty())
- playerName = name;
- }
-
- public void writeToNBT(NBTTagCompound nbtt) {
- super.writeToNBT(nbtt);
- nbtt.setString("playerName", playerName);
- }
-
- public void readFromNBT(NBTTagCompound nbtt) {
- super.readFromNBT(nbtt);
- playerName = nbtt.getString("playerName");
- }
-
- public void writeCustomNBT(NBTTagCompound nbtt) {
- nbtt.setInteger("blockID", Block.getIdFromBlock(block));
- nbtt.setInteger("blockMeta", this.meta);
- nbtt.setInteger("tick", this.tick);
- nbtt.setBoolean("validTree", validTree);
- }
-
- public void readCustomNBT(NBTTagCompound nbtt) {
- this.block = Block.getBlockById(nbtt.getInteger("blockID"));
- this.meta = nbtt.getInteger("blockMeta");
- this.tick = nbtt.getInteger("tick");
- this.validTree = nbtt.getBoolean("validTree");
- }
-
- public boolean setBlock(Block block, int meta) {
- if(this.block == null) {
- this.block = block;
- this.meta = meta;
- return true;
- } else {
- if(Block.isEqualTo(this.block, block) && this.meta == meta) {
- return false;
- }
- if(!this.worldObj.isRemote) {
- EntityItem entity = new EntityItem(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- entity.setEntityItemStack(new ItemStack(this.block, 1, this.meta));
- this.worldObj.spawnEntityInWorld(entity);
- }
- this.block = block;
- this.meta = meta;
- return true;
- }
- }
-
- public Block getBlock() {
- if(!Block.isEqualTo(block, Blocks.air) && block != null)
- return this.block;
- return null;
- }
-
- public int getMeta() {
- return this.meta;
- }
-
- public boolean hasValidTree() {
- if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord - 1, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord - 1, this.zCoord))) {
- return false;
- }
- for(int i = 1; i <= 4; i++) {
- if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord + i, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord + i, this.zCoord))) {
- return false;
- }
- }
- return true;
- }
-
- boolean checkBlock(Block block, int meta) {
- return block == BlockListAB.blockLebethron && meta == 0;
- }
-
- private void spawnLeaves() {
- for(int x = -1; x <= 1; x++) {
- for(int z = -1; z <= 1; z++) {
- for(int y = 0; y < 5; y++) {
- this.setBlock(worldObj, this.xCoord + x, this.yCoord + y + 2, this.zCoord + z);
- }
- }
- }
- this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 1, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 1, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord + 1);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord - 1);
- this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 7, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 7, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord + 1);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord - 1);
- for(int i = 0; i <= 3; i++)
- this.setBlock(worldObj, this.xCoord, this.yCoord + 6 + i, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord - 2);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord - 2);
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord - 2);
- }
- this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord - 2);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord + 2);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord + 2);
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord + 2);
- }
- this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord + 2);
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 2, this.zCoord);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 3, this.zCoord + i);
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 4, this.zCoord + i);
- }
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 5, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 2, this.zCoord);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 3, this.zCoord + i);
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 4, this.zCoord + i);
- }
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 5, this.zCoord);
- }
-
- private void setBlock(World world, int x, int y, int z) {
- EntityPlayer player = worldObj.getPlayerEntityByName(playerName);
- if(player != null) {
- if(world.rand.nextInt(10) <= 8)
- return;
- else
- CommonHelper.setBlock(world, block, meta, x, y, z, (EntityPlayerMP)player, true);
- }
- }
-
- public void renderHud(Minecraft mc, ScaledResolution res) {
- if(!validTree)
- return;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- ItemStack stack = getBlock() != null ? new ItemStack(block, 1, meta) : new ItemStack(Blocks.leaves);
- int x = res.getScaledWidth() / 2 - 7;
- int y = res.getScaledHeight() / 2 + 12;
- Gui.drawRect(x - 2, y - 2, x + 18, y + 18, 1140850688);
- Gui.drawRect(x, y, x + 16, y + 16, 1140850688);
- RenderHelper.enableGUIStandardItemLighting();
- GL11.glEnable(32826);
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, stack, x, y);
- RenderHelper.disableStandardItemLighting();
- GL11.glDisable(2929);
- boolean unicode = mc.fontRenderer.getUnicodeFlag();
- mc.fontRenderer.setUnicodeFlag(true);
- if(getBlock() != null) {
- mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 9, 19456);
- mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 8, 774669);
- } else {
- mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 9, 4980736);
- mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 8, 13764621);
- }
- mc.fontRenderer.setUnicodeFlag(unicode);
- GL11.glEnable(2929);
- GL11.glDisable(3042);
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/4e/407dcb66cdbd001c1664fb18d0506bc0 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/4e/407dcb66cdbd001c1664fb18d0506bc0
new file mode 100644
index 0000000..b0085db
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/4e/407dcb66cdbd001c1664fb18d0506bc0
@@ -0,0 +1,45 @@
+package ab.common.core.proxy.packet;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.common.item.relic.ItemSphereNavigation;
+import cpw.mods.fml.common.network.ByteBufUtils;
+import cpw.mods.fml.common.network.simpleimpl.IMessage;
+import cpw.mods.fml.common.network.simpleimpl.IMessageHandler;
+import cpw.mods.fml.common.network.simpleimpl.MessageContext;
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
+import io.netty.buffer.ByteBuf;
+import net.minecraft.block.Block;
+import net.minecraft.client.Minecraft;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.world.WorldServer;
+import net.minecraftforge.common.DimensionManager;
+
+public class S01PacketFindNearBlocks implements IMessage, IMessageHandler {
+
+ private int blockID;
+ private int meta;
+
+ public S01PacketFindNearBlocks() {};
+
+ public S01PacketFindNearBlocks(Block block, int meta) {
+ this.blockID = Block.getIdFromBlock(block);
+ this.meta = meta;
+ }
+
+ public void toBytes(ByteBuf buf) {
+ buf.writeInt(this.blockID);
+ buf.writeInt(this.meta);
+ }
+
+ public void fromBytes(ByteBuf buf) {
+ this.blockID = buf.readByte();
+ this.meta = buf.readByte();
+ }
+
+ @SideOnly(Side.CLIENT)
+ public IMessage onMessage(S01PacketFindNearBlocks message, MessageContext ctx) {
+ ItemSphereNavigation.findBlocks(Minecraft.getMinecraft().theWorld, Block.getBlockById(message.blockID), message.meta, Minecraft.getMinecraft().thePlayer);
+ return null;
+ }
+}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/4e/e0e8552205ad001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/4e/e0e8552205ad001c1d59e42be7477558
deleted file mode 100644
index 3362bb1..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/4e/e0e8552205ad001c1d59e42be7477558
+++ /dev/null
@@ -1,229 +0,0 @@
-package ab.common.block.tile;
-
-import java.util.List;
-
-import ab.api.IRenderHud;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.gui.ScaledResolution;
-import net.minecraft.client.renderer.RenderHelper;
-import net.minecraft.client.renderer.entity.RenderItem;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.init.Items;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.ChatComponentTranslation;
-import net.minecraft.util.ChatStyle;
-import net.minecraft.util.EnumChatFormatting;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.common.block.tile.TileMod;
-
-public class TileGameBoard extends TileMod implements IRenderHud {
-
- public String[] playersName = new String[] { "", "" };
- public byte[] slotChance = new byte[] { 0, 0, 0, 0 };
- protected int botTick = -1;
- public int endGameTick = -1;
- protected boolean requestUpdate;
- public boolean isSingleGame = true;
- public int clientTick[] = new int[] { 0, 0, 0, 0 };
- public static final ItemStack headRender = new ItemStack(Items.skull, 1, 3);
-
- public void updateEntity() {
- if(botTick > 0)
- botTick--;
- if(endGameTick > 0)
- endGameTick--;
- if(!worldObj.isRemote)
- updateServer();
- else
- updateAnimationTicks();
- }
-
- public void updateAnimationTicks() {
- for(int i = 0; i < slotChance.length; i++)
- if(slotChance[i] > 0)
- clientTick[i]++;
- else
- clientTick[i] = 0;
- }
-
- protected void updateServer() {
- if(hasGame() && endGameTick == 0)
- finishGame();
- if(requestUpdate)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- boolean hasUpdate = false;
- if(isSingleGame) {
- if(botTick == 0 && hasGame()) {
- for(int i = 2; i < 4; i++) {
- if(slotChance[i] == 0) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = -1;
- hasUpdate = true;
- break;
- }
- }
- }
- } else {
- if(botTick == 0 && hasGame())
- endGameTick = 0;
- }
- requestUpdate = hasUpdate;
- }
-
- public void setPlayer(EntityPlayer player) {
- if(isSingleGame) {
- playersName[0] = player.getCommandSenderName();
- playersName[1] = "";
- requestUpdate = true;
- botTick = 8;
- } else {
- if(playersName[0].isEmpty())
- playersName[0] = player.getCommandSenderName();
- else if(!playersName[0].equals(player.getCommandSenderName()))
- playersName[1] = player.getCommandSenderName();
- requestUpdate = true;
- }
- }
-
- public boolean dropDice(EntityPlayer player) {
- if(isSingleGame) {
- if(player.getCommandSenderName().equals(playersName[0]) && botTick == -1) {
- boolean isLastDice = false;
- boolean hasDrop = false;
- for(int i = 0; i < 2; i++) {
- if(slotChance[i] == 0) {
- hasDrop = true;
- if(!worldObj.isRemote) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = 18;
- requestUpdate = true;
- if(i == 1)
- isLastDice = true;
- }
- break;
- }
- }
- if(isLastDice)
- endGameTick = 28;
- return hasDrop;
- }
- } else {
- for(int i = 0; i < playersName.length; i++) {
- if(player.getCommandSenderName().equals(playersName[i])) {
- boolean hasDrop = false;
- for(int j = i * 2; j < (i + 1) * 2; j++) {
- if(slotChance[j] == 0) {
- hasDrop = true;
- if(!worldObj.isRemote) {
- slotChance[j] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = 1200;
- if(hasFullDice())
- endGameTick = 28;
- requestUpdate = true;
- }
- break;
- }
- }
- return hasDrop;
- }
- }
- }
- return false;
- }
-
- public boolean hasFullDice() {
- boolean hasFull = false;
- for(int i = 0; i < slotChance.length; i++) {
- if(!(slotChance[i] > 0))
- return false;
- hasFull = slotChance[i] > 0;
- }
- return hasFull;
- }
-
- public boolean hasGame() {
- if(isSingleGame)
- return !playersName[0].isEmpty();
- else
- for(int i = 0; i < playersName.length; i++)
- if(!playersName[i].isEmpty())
- return true;
- return false;
- }
-
- public void finishGame() {
- if(worldObj.isRemote)
- return;
- if(isSingleGame) {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won");
- else if((slotChance[0] + slotChance[1]) == (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " not win");
- else
- sendNearMessage(playersName[0] + " you Lose!");
- resetGame();
- } else {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won!");
- else if((slotChance[0] + slotChance[1]) == (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " " + playersName[1] + "we are not win");
- else
- sendNearMessage(playersName[1] + " you Won!");
- resetGame();
- }
- }
-
- public void sendNearMessage(String text) {
- List players = this.worldObj.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(this.xCoord, this.yCoord, this.zCoord, (this.xCoord + 1), (this.yCoord + 1), (this.zCoord + 1)).expand(3.5f, 3.5f, 3.5f));
- for(EntityPlayer player : players) {
- if(player != null)
- player.addChatMessage((new ChatComponentTranslation(text, new Object[] {})).setChatStyle((new ChatStyle()).setColor(EnumChatFormatting.DARK_GREEN)));
- }
- }
-
- public void resetGame() {
- playersName[0] = "";
- playersName[1] = "";
- for(int i = 0; i < slotChance.length; i++)
- slotChance[i] = 0;
- botTick = -1;
- endGameTick = -1;
- requestUpdate = true;
- }
-
- public void renderHud(Minecraft mc, ScaledResolution res) {
- int x = res.getScaledWidth() / 2 - 7;
- int y = res.getScaledHeight() / 2 + 12;
- RenderHelper.enableGUIStandardItemLighting();
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, headRender, x, y);
- if(isSingleGame)
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, headRender, x + 8, y + 8);
- RenderHelper.disableStandardItemLighting();
- }
-
- public void writeCustomNBT(NBTTagCompound cmp) {
- super.writeCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- cmp.setString("playerName" + i, playersName[i]);
- cmp.setByteArray("slotChance", slotChance);
- cmp.setInteger("botTick", botTick);
- cmp.setInteger("endGameTick", endGameTick);
- cmp.setBoolean("requestUpdate", requestUpdate);
- cmp.setBoolean("isSingleGame", isSingleGame);
- }
-
- public void readCustomNBT(NBTTagCompound cmp) {
- super.readCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- playersName[i] = cmp.getString("playerName" + i);
- botTick = cmp.getInteger("botTick");
- endGameTick = cmp.getInteger("endGameTick");
- slotChance = cmp.getByteArray("slotChance");
- requestUpdate = cmp.getBoolean("requestUpdate");
- isSingleGame = cmp.getBoolean("isSingleGame");
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/4f/409a258d7cc1001c11e398ea97007cb4 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/4f/409a258d7cc1001c11e398ea97007cb4
new file mode 100644
index 0000000..4b5152c
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/4f/409a258d7cc1001c11e398ea97007cb4
@@ -0,0 +1,142 @@
+package ab.common.block;
+
+import ab.AdvancedBotany;
+import ab.common.block.tile.TileNidavellirForge;
+import ab.common.block.tile.TileInventory;
+import ab.common.lib.register.BlockListAB;
+import ab.common.lib.register.RecipeListAB;
+import net.minecraft.block.Block;
+import net.minecraft.block.BlockContainer;
+import net.minecraft.block.material.Material;
+import net.minecraft.client.renderer.texture.IIconRegister;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.MathHelper;
+import net.minecraft.util.Vec3;
+import net.minecraft.world.IBlockAccess;
+import net.minecraft.world.World;
+import vazkii.botania.api.BotaniaAPI;
+import vazkii.botania.api.lexicon.ILexiconable;
+import vazkii.botania.api.lexicon.LexiconEntry;
+
+public class BlockNidavellirForge extends BlockContainer implements ILexiconable {
+
+ public BlockNidavellirForge() {
+ super(Material.iron);
+ this.setCreativeTab(AdvancedBotany.tabAB);
+ this.setHardness(3.0F);
+ this.setResistance(10.0F);
+ this.setStepSound(soundTypeMetal);
+ this.setBlockName("ABPlate");
+ }
+
+ public void setBlockBoundsBasedOnState(IBlockAccess world, int x, int y, int z) {
+ float f = 0.1875F;
+ float f1 = 0.0625F;
+ switch(world.getBlockMetadata(x, y, z)) {
+ case 0: this.setBlockBounds(f, 0.0F, f1, 1.0F - f, 0.75F, 1.0F);
+ break;
+ case 1: this.setBlockBounds(0.0F, 0.0F, f, 1.0F - f1, 0.75F, 1.0F - f);
+ break;
+ case 2: this.setBlockBounds(f, 0.0F, 0.0F, 1.0F - f, 0.75F, 1.0F - f1);
+ break;
+ case 3: this.setBlockBounds(f1, 0.0F, f, 1.0F, 0.75F, 1.0F - f);
+ break;
+ default: this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
+ }
+ }
+
+ public void onBlockPlacedBy(World world, int x, int y, int z, EntityLivingBase liv, ItemStack stack) {
+ int meta = MathHelper.floor_double((double)(liv.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3;
+ world.setBlockMetadataWithNotify(x, y, z, meta, 3);
+ }
+
+ public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int par6, float par7, float par8, float par9) {
+ TileNidavellirForge tile = (TileNidavellirForge)world.getTileEntity(x, y, z);
+ if(player.isSneaking()) {
+ if(tile.getStackInSlot(0) != null) {
+ ItemStack copy = tile.getStackInSlot(0).copy();
+ if(!world.isRemote) {
+ Vec3 vec3 = player.getLook(1.0F).normalize();
+ EntityItem entityitem = new EntityItem(world, player.posX + vec3.xCoord, player.posY + 1.2f, player.posZ + vec3.zCoord, copy);
+ world.spawnEntityInWorld(entityitem);
+ tile.requestUpdate = true;
+ }
+ tile.setInventorySlotContents(0, null);
+ world.func_147453_f(x, y, z, (Block)this);
+ return true;
+ }
+ for(int i = tile.getSizeInventory() - 1; i > 0; i--) {
+ ItemStack stack = tile.getStackInSlot(i);
+ if(stack != null) {
+ ItemStack copy = stack.copy();
+ if(!world.isRemote) {
+ Vec3 vec3 = player.getLook(1.0F).normalize();
+ EntityItem entityitem = new EntityItem(world, player.posX + vec3.xCoord, player.posY + 1.2f, player.posZ + vec3.zCoord, copy);
+ world.spawnEntityInWorld(entityitem);
+ tile.requestUpdate = true;
+ }
+ tile.setInventorySlotContents(i, null);
+ world.func_147453_f(x, y, z, (Block)this);
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public void breakBlock(World world, int x, int y, int z, Block block, int meta) {
+ if(!world.isRemote) {
+ TileInventory inv = (TileInventory)world.getTileEntity(x, y, z);
+ if (inv != null) {
+ for (int i = 0; i < inv.getSizeInventory(); i++) {
+ ItemStack stack = inv.getStackInSlot(i);
+ if (stack != null) {
+ float f = world.rand.nextFloat() * 0.8F + 0.1F;
+ float f1 = world.rand.nextFloat() * 0.8F + 0.1F;
+ float f2 = world.rand.nextFloat() * 0.8F + 0.1F;
+ EntityItem entityitem = new EntityItem(world, (x + f), (y + f1), (z + f2), stack.copy());
+ float f3 = 0.05F;
+ entityitem.motionX = ((float)world.rand.nextGaussian() * f3);
+ entityitem.motionY = ((float)world.rand.nextGaussian() * f3 + 0.2F);
+ entityitem.motionZ = ((float)world.rand.nextGaussian() * f3);
+ if (stack.hasTagCompound())
+ entityitem.getEntityItem().setTagCompound((NBTTagCompound)stack.getTagCompound().copy());
+ world.spawnEntityInWorld(entityitem);
+ }
+ }
+ }
+ }
+ super.breakBlock(world, x, y, z, block, meta);
+ }
+
+ public int getRenderType() {
+ return BlockListAB.blockABPlateRI;
+ }
+
+ public boolean renderAsNormalBlock() {
+ return false;
+ }
+
+ public boolean isOpaqueCube() {
+ return false;
+ }
+
+ public boolean getBlocksMovement(IBlockAccess p_149655_1_, int p_149655_2_, int p_149655_3_, int p_149655_4_) {
+ return false;
+ }
+
+ public TileEntity createNewTileEntity(World world, int meta) {
+ return new TileNidavellirForge();
+ }
+
+ public LexiconEntry getEntry(World arg0, int arg1, int arg2, int arg3, EntityPlayer arg4, ItemStack arg5) {
+ return RecipeListAB.advandedAgglomerationPlate;
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/4f/60af6a32eaac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/4f/60af6a32eaac001c1d59e42be7477558
deleted file mode 100644
index 36482f7..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/4f/60af6a32eaac001c1d59e42be7477558
+++ /dev/null
@@ -1,185 +0,0 @@
-package ab.common.block.tile;
-
-import java.util.List;
-
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.ChatComponentTranslation;
-import net.minecraft.util.ChatStyle;
-import net.minecraft.util.EnumChatFormatting;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.common.block.tile.TileMod;
-
-public class TileGameBoard extends TileMod {
-
- protected String[] playersName = new String[] { "", "" };
- public byte[] slotChance = new byte[] { 0, 0, 0, 0 };
- protected int botTick = -1;
- public int endGameTick = -1;
- protected boolean requestUpdate;
- public boolean isSingleGame = false;
- public int clientTick[] = new int[] { 0, 0, 0, 0};
-
- public void updateEntity() {
- if(botTick > 0)
- botTick--;
- if(endGameTick > 0)
- endGameTick--;
- if(!worldObj.isRemote)
- updateServer();
- else
- updateClient();
- }
-
- protected void updateClient() {
- for(int i = 0; i < slotChance.length; i++)
- if(slotChance[i] > 0)
- clientTick[i]++;
- else
- clientTick[i] = 0;
- }
-
- protected void updateServer() {
- if(requestUpdate)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- boolean hasUpdate = false;
- if(isSingleGame && botTick == 0 && hasGame()) {
- for(int i = 2; i < 4; i++) {
- if(slotChance[i] == 0) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = -1;
- hasUpdate = true;
- break;
- }
- }
- }
- if(hasGame() && endGameTick == 0)
- finishGame();
- requestUpdate = hasUpdate;
- }
-
- public void setPlayer(EntityPlayer player) {
- if(isSingleGame) {
- playersName[0] = player.getCommandSenderName();
- playersName[1] = "";
- requestUpdate = true;
- botTick = 8;
- } else {
- if(playersName[0].isEmpty()) {
- playersName[0] = player.getCommandSenderName();
- requestUpdate = true;
- } else if(!playersName[0].equals(player.getCommandSenderName())) {
- playersName[1] = player.getCommandSenderName();
- requestUpdate = true;
- }
- }
- }
-
- public boolean dropDice(EntityPlayer player) {
- if(isSingleGame) {
- if(player.getCommandSenderName().equals(playersName[0]) && botTick == -1) {
- boolean isLastDice = false;
- for(int i = 0; i < 2; i++) {
- if(slotChance[i] == 0 && !worldObj.isRemote) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = 18;
- requestUpdate = true;
- if(i == 1)
- isLastDice = true;
- break;
- }
- }
- if(isLastDice)
- endGameTick = 28;
- return true;
- }
- } else {
- for(int i = 0; i < playersName.length; i++) {
- if(player.getCommandSenderName().equals(playersName[i])) {
- for(int j = i * 2; j < (i + 1) * 2; j++) {
- if(slotChance[j] == 0 && !worldObj.isRemote) {
- slotChance[j] = (byte)(worldObj.rand.nextInt(6) + 1);
- requestUpdate = true;
- if(hasFullDice())
- endGameTick = 28;
- break;
- }
- }
- return true;
- }
- }
- }
- return false;
- }
-
- public boolean hasFullDice() {
- boolean hasFull = false;
- for(int i = 0; 0 < slotChance.length; i++)
- hasFull = slotChance[i] > 0;
- return hasFull;
- }
-
- public boolean hasGame() {
- if(isSingleGame)
- return !playersName[0].isEmpty();
- return !playersName[0].isEmpty() && !playersName[1].isEmpty();
- }
-
- public void finishGame() {
- if(worldObj.isRemote)
- return;
- if(isSingleGame) {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won");
- else if((slotChance[0] + slotChance[1]) == (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " not win");
- else
- sendNearMessage(playersName[0] + " you Lose!");
- resetGame();
- requestUpdate = true;
- }
- }
-
- public void sendNearMessage(String text) {
- List players = this.worldObj.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(this.xCoord, this.yCoord, this.zCoord, (this.xCoord + 1), (this.yCoord + 1), (this.zCoord + 1)).expand(3.5f, 3.5f, 3.5f));
- for(EntityPlayer player : players) {
- if(player != null)
- player.addChatMessage((new ChatComponentTranslation(text, new Object[] {})).setChatStyle((new ChatStyle()).setColor(EnumChatFormatting.DARK_GREEN)));
- }
- }
-
- public void resetGame() {
- playersName[0] = "";
- playersName[1] = "";
- for(int i = 0; i < slotChance.length; i++)
- slotChance[i] = 0;
- requestUpdate = true;
- botTick = -1;
- endGameTick = -1;
- }
-
- public void writeCustomNBT(NBTTagCompound cmp) {
- super.writeCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- cmp.setString("playerName" + i, playersName[i]);
- cmp.setByteArray("slotChance", slotChance);
- cmp.setInteger("botTick", botTick);
- cmp.setInteger("endGameTick", endGameTick);
- cmp.setBoolean("requestUpdate", requestUpdate);
- cmp.setBoolean("isSingleGame", isSingleGame);
- }
-
- public void readCustomNBT(NBTTagCompound cmp) {
- super.readCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- playersName[i] = cmp.getString("playerName" + i);
- botTick = cmp.getInteger("botTick");
- endGameTick = cmp.getInteger("endGameTick");
- slotChance = cmp.getByteArray("slotChance");
- requestUpdate = cmp.getBoolean("requestUpdate");
- isSingleGame = cmp.getBoolean("isSingleGame");
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/4f/b03135c870c1001c11e398ea97007cb4 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/4f/b03135c870c1001c11e398ea97007cb4
new file mode 100644
index 0000000..40d08a1
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/4f/b03135c870c1001c11e398ea97007cb4
@@ -0,0 +1,200 @@
+package ab.common.item.relic;
+
+import java.awt.Color;
+import java.util.List;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.common.core.handler.NetworkHandler;
+import ab.common.lib.register.ItemListAB;
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
+import net.minecraft.block.Block;
+import net.minecraft.client.renderer.texture.IIconRegister;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.util.EnumChatFormatting;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.MathHelper;
+import net.minecraft.util.StatCollector;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.api.mana.ManaItemHandler;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class ItemSphereNavigation extends ItemModRelic {
+
+ public static IIcon[] icons;
+ public static final int rangeSearch = 16;
+ public static final int maxCooldown = 158;
+ public static final int manaCost = 1750;
+
+ public ItemSphereNavigation() {
+ super("sphereNavigation");
+ }
+
+ public void registerIcons(IIconRegister ir) {
+ icons = new IIcon[5];
+ icons[0] = ir.registerIcon("ab:sphereNavigation");
+ icons[1] = ir.registerIcon("ab:sphereNavigation_hasblock");
+ icons[2] = ir.registerIcon("ab:sphereNavigation_nonBlock");
+ icons[3] = ir.registerIcon("ab:sphereNavigation_off");
+ icons[4] = ir.registerIcon("ab:sphereNavigation_on");
+ }
+
+ public String getItemStackDisplayName(ItemStack stack) {
+ Block block = getFindBlock(stack);
+ int meta = getFindMeta(stack);
+ ItemStack rStack = new ItemStack(block, 1, meta);
+ return super.getItemStackDisplayName(stack) + ((rStack == null || rStack.getItem() == null) ? "" : (EnumChatFormatting.RESET + " (" + EnumChatFormatting.GREEN + rStack.getDisplayName() + EnumChatFormatting.RESET + ")"));
+ }
+
+ @SideOnly(Side.CLIENT)
+ public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean par4) {
+ addStringToTooltip(StatCollector.translateToLocal(stack.getItemDamage() == 0 ? "botaniamisc.active" : "botaniamisc.inactive"), list);
+ }
+
+ void addStringToTooltip(String s, List tooltip) {
+ tooltip.add(s.replaceAll("&", "\u00A7"));
+ }
+
+ public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
+ if(getFindBlock(stack) != null && player.isSneaking()) {
+ int dmg = stack.getItemDamage();
+ stack.setItemDamage((dmg ^ 0xFFFFFFFF) & 0x1);
+ world.playSoundAtEntity(player, "random.orb", 0.3F, 0.1F);
+ }
+ return stack;
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int pos, boolean equipped) {
+ super.onUpdate(stack, world, entity, pos, equipped);
+ if(entity instanceof EntityPlayer) {
+ EntityPlayer player = (EntityPlayer)entity;
+ if(!world.isRemote && stack.getItemDamage() == 0 && getFindBlock(stack) != null && canWork(stack) && ManaItemHandler.requestManaExactForTool(stack, player, manaCost, true)) {
+ setMaxTick(stack);
+ NetworkHandler.sendPacketToFindBlocks((EntityPlayerMP)player, getFindBlock(stack), getFindMeta(stack));
+ }
+ }
+ }
+
+ public static void findBlocks(World world, Block findBlock, int findMeta, EntityPlayer player) {
+ if(world.isRemote) {
+ ItemStack renderStack = null;
+ int maxFindedBlocks = 32;
+ int findedBlocks = 0;
+ label1703:
+ for(int y = -rangeSearch * 2; y < rangeSearch; y++) {
+ for(int x = -rangeSearch; x < rangeSearch; x++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks)) || world.rand.nextBoolean())
+ continue;
+ for(int z = -rangeSearch; z < rangeSearch; z++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks)) || world.rand.nextBoolean())
+ continue;
+ else if(findedBlocks >= maxFindedBlocks)
+ break label1703;
+ int posX = MathHelper.floor_double(player.posX) + x;
+ int posY = MathHelper.floor_double(player.posY) + y;
+ int posZ = MathHelper.floor_double(player.posZ) + z;
+ if(posY < 0)
+ continue;
+ Block block = world.getBlock(posX, posY, posZ);
+ if(!Block.isEqualTo(block, findBlock))
+ continue;
+ int meta = world.getBlockMetadata(posX, posY, posZ);
+ if(meta == findMeta) {
+ if(renderStack == null)
+ renderStack = getRenderStackForBlock(world, block, meta, posX, posY, posZ);
+ findedBlocks++;
+ float maxAge = 2.7f + (0.5f * (float)(Math.random()));
+ Botania.proxy.setWispFXDepthTest(false);
+ Botania.proxy.setWispFXDistanceLimit(false);
+ float far = 120.0f - (((Math.abs(x) + Math.min(rangeSearch, Math.abs(y)) + Math.abs(z)) / (rangeSearch * 4.0f)) * 120.0f);
+ if(far <= 40)
+ far *= 0.15f;
+ Color color = new Color(Color.HSBtoRGB(far / 360.0f, 0.9f + (float)(Math.random() * 0.1f), 1.0f));
+ for(int i = 0; i < 11; i++)
+ Botania.proxy.wispFX(world, posX + 0.5f + (Math.random() - 0.5f), posY + 0.5f + (Math.random() - 0.5f), posZ + 0.5f + (Math.random() - 0.5f), color.getRed() / 100.0f, color.getGreen() / 100.0f, color.getBlue() / 100.0f, 0.3f + (float)(Math.random() * 0.25f), 0.0f, maxAge);
+ Botania.proxy.setWispFXDistanceLimit(true);
+ Botania.proxy.setWispFXDepthTest(true);
+ }
+ }
+ }
+ }
+ if(renderStack != null)
+ ItemsRemainingRender.set(renderStack, "íàéäåíî: " + findedBlocks);
+ }
+ }
+
+ public static ItemStack getRenderStackForBlock(World world, Block block, int meta, int x, int y, int z) {
+ if(block != null) {
+ Item item = Item.getItemFromBlock(block);
+ if(item != null) {
+ ItemStack findStack = new ItemStack(block, 1, meta);
+ if(findStack != null)
+ return findStack;
+ } else {
+ Item item1 = block.getItem(world, x, y, z);
+ if(item1 != null) {
+ ItemStack findStack = new ItemStack(item1, 1, meta);
+ if(findStack != null)
+ return findStack;
+ }
+ }
+ }
+ return null;
+ }
+
+ public boolean onItemUse(ItemStack stack, EntityPlayer p, World world, int x, int y, int z, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
+ if(p.isSneaking()) {
+ Block block = world.getBlock(x, y, z);
+ if(block != null) {
+ int meta = world.getBlockMetadata(x, y, z);
+ ItemStack findStack = getRenderStackForBlock(world, block, meta, x, y, z);
+ if(findStack != null) {
+ setFindBlock(stack, block, meta);
+ if(world.isRemote)
+ ItemsRemainingRender.set(findStack, findStack.getDisplayName());
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public boolean canWork(ItemStack stack) {
+ int tick = ItemNBTHelper.getInt(stack, "cooldown", 0);
+ if(tick == 0)
+ return true;
+ else if(tick > 0)
+ ItemNBTHelper.setInt(stack, "cooldown", tick - 1);
+ return false;
+ }
+
+ public void setMaxTick(ItemStack stack) {
+ ItemNBTHelper.setInt(stack, "cooldown", maxCooldown);
+ }
+
+ public static void setFindBlock(ItemStack stack, Block block, int meta) {
+ ItemNBTHelper.setInt(stack, "findBlockID", Block.getIdFromBlock(block));
+ ItemNBTHelper.setInt(stack, "findBlockMeta", meta);
+ }
+
+ public static Block getFindBlock(ItemStack stack) {
+ int blockID = ItemNBTHelper.getInt(stack, "findBlockID", 0);
+ if(blockID == 0)
+ return null;
+ else
+ return Block.getBlockById(blockID);
+ }
+
+ public static int getFindMeta(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "findBlockMeta", -1);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/4f/c0e0baac93b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/4f/c0e0baac93b1001c19bf8a91ac37238b
deleted file mode 100644
index 24b9b65..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/4f/c0e0baac93b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,97 +0,0 @@
-package ab.common.lib.register;
-
-import ab.common.item.*;
-import ab.common.item.equipment.*;
-import ab.common.item.equipment.armor.ItemNebulaBoots;
-import ab.common.item.equipment.armor.ItemNebulaChest;
-import ab.common.item.equipment.armor.ItemNebulaHelm;
-import ab.common.item.equipment.armor.ItemNebulaHelmRevealing;
-import ab.common.item.equipment.armor.ItemNebulaLegs;
-import ab.common.item.relic.ItemFreyrSlingshot;
-import ab.common.item.relic.ItemPocketWardrobe;
-import ab.common.item.relic.ItemSehrimnirHide;
-import ab.common.item.relic.ItemSpiritJar;
-import ab.common.item.relic.ItemTalismanHiddenRiches;
-import cpw.mods.fml.common.registry.GameRegistry;
-import net.minecraft.item.Item;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.core.handler.ConfigHandler;
-
-public class ItemListAB {
-
- public static Item itemABResource;
- public static Item itemMithrillRing;
- public static Item itemMihrillMultiTool;
- public static Item itemNebulaRing;
- public static Item itemAdvancedSpark;
- public static Item itemMithrillSword;
- public static Item itemTerraHoe;
- public static Item itemManaFlower;
- public static Item itemBlackHalo;
- public static Item itemNebulaBlaze;
- public static Item itemAntigravityCharm;
- public static Item itemNebulaHelm;
- public static Item itemNebulaHelmReveal;
- public static Item itemNebulaChest;
- public static Item itemNebulaLegs;
- public static Item itemNebulaBoots;
- public static Item itemFreyrSlingshot;
- public static Item itemNebulaRod;
- public static Item itemCraftingPattern;
- public static Item itemSprawlRod;
- public static Item itemPocketWardrobe;
- public static Item itemTalismanHiddenRiches;
- public static Item itemSehrimnirHide;
- public static Item itemSpiritJar;
-
- public static void init() {
- ItemListAB.itemABResource = new ItemABResource();
- GameRegistry.registerItem(itemABResource, "itemABResource");
- ItemListAB.itemMithrillRing = new ItemMithrillRing("mithrillManaRing");
- GameRegistry.registerItem(itemMithrillRing, "itemMithrillRing");
- ItemListAB.itemNebulaRing = new ItemNebulaRing("nebulaManaRing");
- GameRegistry.registerItem(itemNebulaRing, "itemNebulaRing");
- ItemListAB.itemMihrillMultiTool = new ItemMithrillMultiTool();
- GameRegistry.registerItem(itemMihrillMultiTool, "itemMihrillMultiTool");
- ItemListAB.itemAdvancedSpark = new ItemAdvancedSpark();
- GameRegistry.registerItem(itemAdvancedSpark, "itemAdvancedSpark");
- ItemListAB.itemMithrillSword = new ItemSpaceBlade();
- GameRegistry.registerItem(itemMithrillSword, "itemMithrillSword");
- ItemListAB.itemTerraHoe = new ItemTerraHoe();
- GameRegistry.registerItem(itemTerraHoe, "itemTerraHoe");
- ItemListAB.itemManaFlower = new ItemManaFlower();
- GameRegistry.registerItem(itemManaFlower, "itemManaFlower");
- ItemListAB.itemBlackHalo = new ItemBlackHalo();
- GameRegistry.registerItem(itemBlackHalo, "itemBlackHalo");
- ItemListAB.itemNebulaBlaze = new ItemNebulaBlaze();
- GameRegistry.registerItem(itemNebulaBlaze, "itemNebulaBlaze");
- ItemListAB.itemAntigravityCharm = new ItemAntigravityCharm();
- GameRegistry.registerItem(itemAntigravityCharm, "itemAntigravityCharm");
-
- ItemListAB.itemNebulaRod = new ItemNebulaRod();
- GameRegistry.registerItem(itemNebulaRod, "itemNebulaRod");
- ItemListAB.itemSprawlRod = new ItemSprawlRod();
- GameRegistry.registerItem(itemSprawlRod, "itemSprawlRod");
-
- ItemListAB.itemPocketWardrobe = new ItemPocketWardrobe();
- ItemListAB.itemTalismanHiddenRiches = new ItemTalismanHiddenRiches();
- ItemListAB.itemFreyrSlingshot = new ItemFreyrSlingshot();
- ItemListAB.itemSehrimnirHide = new ItemSehrimnirHide();
-
- // ItemListAB.itemSpiritJar = new ItemSpiritJar();
-
- ItemListAB.itemNebulaHelm = new ItemNebulaHelm();
- ItemListAB.itemNebulaChest = new ItemNebulaChest();
- ItemListAB.itemNebulaLegs = new ItemNebulaLegs();
- ItemListAB.itemNebulaBoots = new ItemNebulaBoots();
- if(Botania.thaumcraftLoaded)
- thaumcraft();
-
- }
-
- public static void thaumcraft() {
- ItemListAB.itemNebulaHelmReveal = new ItemNebulaHelmRevealing();
- ItemListAB.itemCraftingPattern = new ItemCraftingPattern();
- GameRegistry.registerItem(itemCraftingPattern, "itemCraftingPattern");
- }
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/5/6003d460c1bc001c1a9f99005529f322 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/5/6003d460c1bc001c1a9f99005529f322
new file mode 100644
index 0000000..a79f3d8
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/5/6003d460c1bc001c1a9f99005529f322
@@ -0,0 +1,38 @@
+package ab.client.render.block;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.client.render.tile.RenderTileManaContainer;
+import ab.common.block.tile.TileNidavellirForge;
+import ab.common.lib.register.BlockListAB;
+import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
+import net.minecraft.block.Block;
+import net.minecraft.client.renderer.RenderBlocks;
+import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.world.IBlockAccess;
+
+public class RenderBlockNidavellirForge implements ISimpleBlockRenderingHandler {
+
+ public void renderInventoryBlock(Block block, int metadata, int modelID, RenderBlocks renderer) {
+ GL11.glPushMatrix();
+ GL11.glTranslatef(-1.1F, -0.35F, -0.5F);
+ GL11.glScalef(1.25f, 1.25f, 1.25f);
+ TileNidavellirForge forge = new TileNidavellirForge();
+ RenderTileManaContainer.metadata = metadata;
+ TileEntityRendererDispatcher.instance.renderTileEntityAt((TileEntity)forge, 0.0D, 0.0D, 0.0D, 0.0F);
+ GL11.glPopMatrix();
+ }
+
+ public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId, RenderBlocks renderer) {
+ return false;
+ }
+
+ public int getRenderId() {
+ return BlockListAB.blockABPlateRI;
+ }
+
+ public boolean shouldRender3DInInventory(int modelId) {
+ return true;
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/5/801377a2dfac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/5/801377a2dfac001c1d59e42be7477558
deleted file mode 100644
index 1c566d2..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/5/801377a2dfac001c1d59e42be7477558
+++ /dev/null
@@ -1,91 +0,0 @@
-package ab.client.render.tile;
-
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.model.ModelDiceFate;
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.ResourceLocation;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class RenderTileGameBoard extends TileEntitySpecialRenderer {
-
- private static final ModelDiceFate model = new ModelDiceFate();
- private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/gameDice.png");
- private static final ResourceLocation textureEnemy = new ResourceLocation("ab:textures/model/gameDice_enemy.png");
-
- public void renderTileEntityAt(TileEntity tile, double x, double y, double z, float ticks) {
- double time = (tile.getWorldObj() == null) ? 0.0D : (ClientTickHandler.ticksInGame + ticks);
- if(tile != null)
- time += (new Random((tile.xCoord ^ tile.yCoord ^ tile.zCoord))).nextInt(360);
- TileGameBoard board = (TileGameBoard)tile;
- GL11.glEnable(3042);
- GL11.glEnable(32826);
- for(int i = 0; i < board.slotChance.length; i++) {
- if(board.slotChance[i] == 0)
- continue;
- time += i * 65;
- GL11.glPushMatrix();
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- float posX = 0.0f;
- float posY = 0.0f;
- float dropAnim = (1.0f - (Math.min(100.0f, board.clientTick[i] * board.clientTick[i] * 1.125f) / 100.0f));
- dropAnim = Math.min(1.0f, Math.max(dropAnim, 0));
- float alpha = (float)Math.cos(1.0f - dropAnim);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, alpha);
- switch(i) {
- case 0:
- posX = 0.16f + 0.08f * dropAnim;
- posY = 0.16f + 0.08f * dropAnim;
- break;
- case 1:
- posX = -0.16f - 0.08f * dropAnim;
- posY = 0.16f + 0.08f * dropAnim;
- break;
- case 2:
- posX = 0.16f + 0.08f * dropAnim;
- posY = -0.16f - 0.08f * dropAnim;
- break;
- case 3:
- posX = -0.16f - 0.08f * dropAnim;
- posY = -0.16f - 0.08f * dropAnim;
- break;
- }
- GL11.glTranslated(x, y, z);
- GL11.glTranslated(0.5f + posX, 0.02f + Math.sin(time / 12.0D) / 48.0D + (0.28f * dropAnim), 0.5f + posY);
- GL11.glScalef(0.25f, 0.25f, 0.25f);
- Minecraft.getMinecraft().renderEngine.bindTexture(i > 1 ? textureEnemy : texture);
- float dropAngel = 70.0f * dropAnim;
- switch(board.slotChance[i]) {
- case 1:
- model.render(180.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 2:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 3:
- model.render(90.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 4:
- model.render(270.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 5:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 270.0f);
- break;
- case 6:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 90.0f);
- break;
- default:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- }
- GL11.glPopMatrix();
- }
- GL11.glEnable(32826);
- GL11.glDisable(3042);
- }
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/50/209fb2cd9db1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/50/209fb2cd9db1001c19bf8a91ac37238b
deleted file mode 100644
index 380be0a..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/50/209fb2cd9db1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,243 +0,0 @@
-package ab.client.core;
-
-import java.awt.Color;
-import java.nio.FloatBuffer;
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.gui.ScaledResolution;
-import net.minecraft.client.renderer.ActiveRenderInfo;
-import net.minecraft.client.renderer.GLAllocation;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.RenderHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.entity.RenderItem;
-import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.IIcon;
-import net.minecraft.util.ResourceLocation;
-import net.minecraft.util.StatCollector;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-import vazkii.botania.client.core.handler.HUDHandler;
-import vazkii.botania.common.block.ModBlocks;
-import vazkii.botania.common.core.helper.Vector3;
-
-public class ClientHelper {
-
- public static final ResourceLocation miscHuds = new ResourceLocation("ab:textures/misc/miscHuds.png");
- private static final ResourceLocation field_147529_c = new ResourceLocation("textures/environment/end_sky.png");
- private static final ResourceLocation field_147526_d = new ResourceLocation("textures/entity/end_portal.png");
- private static final Random field_147527_e = new Random(31100L);
- public static Minecraft mc = Minecraft.getMinecraft();
- private static FloatBuffer field_147528_b = GLAllocation.createDirectFloatBuffer(16);
-
- public static void renderCosmicBackground() {
- GL11.glDisable(GL11.GL_LIGHTING);
- field_147527_e.setSeed(31100L);
- float f4 = 0.24F;
- for (int i = 0; i < 16; i++) {
- GL11.glPushMatrix();
- float f5 = (16 - i);
- float f6 = 0.0625F;
- float f7 = 1.0F / (f5 + 1.0F);
- if (i == 0) {
- mc.renderEngine.bindTexture(field_147529_c);
- f7 = 0.1F;
- f5 = 65.0F;
- f6 = 0.125F;
- GL11.glEnable(GL11.GL_BLEND);
- GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
- }
- if (i == 1) {
- mc.renderEngine.bindTexture(field_147526_d);
- GL11.glEnable(GL11.GL_BLEND);
- GL11.glBlendFunc(GL11.GL_ONE, GL11.GL_ONE);
- f6 = 0.5F;
- }
- GL11.glTranslatef(0.0f, 1.5f, 0.0f);
- GL11.glTexGeni(GL11.GL_S, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_OBJECT_LINEAR);
- GL11.glTexGeni(GL11.GL_T, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_OBJECT_LINEAR);
- GL11.glTexGeni(GL11.GL_R, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_OBJECT_LINEAR);
- GL11.glTexGeni(GL11.GL_Q, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_EYE_LINEAR);
- GL11.glTexGen(GL11.GL_S, GL11.GL_OBJECT_PLANE, func_147525_a(1.0F, 0.0F, 0.0F, 0.0F));
- GL11.glTexGen(GL11.GL_T, GL11.GL_OBJECT_PLANE, func_147525_a(0.0F, 0.0F, 1.0F, 0.0F));
- GL11.glTexGen(GL11.GL_R, GL11.GL_OBJECT_PLANE, func_147525_a(0.0F, 0.0F, 0.0F, 1.0F));
- GL11.glTexGen(GL11.GL_Q, GL11.GL_EYE_PLANE, func_147525_a(0.0F, 1.0F, 0.0F, 0.0F));
- GL11.glEnable(GL11.GL_TEXTURE_GEN_S);
- GL11.glEnable(GL11.GL_TEXTURE_GEN_T);
- GL11.glEnable(GL11.GL_TEXTURE_GEN_R);
- GL11.glEnable(GL11.GL_TEXTURE_GEN_Q);
- GL11.glPopMatrix();
- GL11.glMatrixMode(GL11.GL_TEXTURE);
- GL11.glPushMatrix();
- GL11.glLoadIdentity();
- GL11.glTranslatef(0.0F, (float)(Minecraft.getSystemTime() % 20000L) / 20000.0F, 0.0F);
- GL11.glScalef(f6, f6, f6);
- GL11.glTranslatef(0.5F, 0.5F, 0.0F);
- GL11.glRotatef((i * i * 4321 + i * 9) * 2.0F, 0.0F, 0.0F, 1.0F);
- GL11.glTranslatef(-0.5F, -0.5F, 0.0F);
- Tessellator tessellator = Tessellator.instance;
- tessellator.startDrawingQuads();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float f11 = color.getRed() / 255.0F;
- float f12 = color.getGreen() / 255.0F;
- float f13 = color.getBlue() / 255.0F;
- tessellator.setBrightness(180);
- tessellator.setColorRGBA_F(f11 * f7, f12 * f7, f13 * f7, 1.0F);
- tessellator.addVertex(0.0D, f4, 0.0D);
- tessellator.addVertex(0.0D, f4, 1.0D);
- tessellator.addVertex(1.0D, f4, 1.0D);
- tessellator.addVertex(1.0D, f4, 0.0D);
- tessellator.draw();
- GL11.glPopMatrix();
- GL11.glMatrixMode(GL11.GL_MODELVIEW);
- }
- GL11.glDisable(GL11.GL_BLEND);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_S);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_T);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_R);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_Q);
- }
-
- private static FloatBuffer func_147525_a(float p_147525_1_, float p_147525_2_, float p_147525_3_, float p_147525_4_) {
- field_147528_b.clear();
- field_147528_b.put(p_147525_1_).put(p_147525_2_).put(p_147525_3_).put(p_147525_4_);
- field_147528_b.flip();
- return field_147528_b;
- }
-
- public static void drawArrow(int x, int y, boolean side) {
- mc.renderEngine.bindTexture(miscHuds);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0f);
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x, y, 0.0F, 0, 10, side ? 0 : 22, 38);
- }
-
- public static void drawChanceBar(int x, int y, int chance) {
- mc.renderEngine.bindTexture(miscHuds);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0f);
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x, y, 0.0F, 0, 0, 57, 6);
- int chancePercentage = Math.max(0, (int)((chance / 100.f) * 55.0D));
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x + 1, y + 1, 0.0F, 0, 6, 55, 4);
- Color color = new Color(Color.HSBtoRGB((chance) / 360.0f, ((float)Math.sin((ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks) * 0.2D) + 1.0F) * 0.3F + 0.4F, 1.0f));
- GL11.glColor4ub((byte)color.getRed(), (byte)color.getGreen(), (byte)color.getBlue(), (byte)255);
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x + 1, y + 1, 0.0F, 0, 6, Math.min(55, chancePercentage), 4);
- }
-
- public static void renderPoolManaBar(int x, int y, int color, float alpha, int mana) {
- Minecraft mc = Minecraft.getMinecraft();
- int poolCount = (int)Math.floor(mana / 1000000.0D);
- if(poolCount < 0)
- poolCount = 0;
- int onePoolMana = mana - (poolCount * 1000000);
- String strPool = poolCount + "x";
- int xc = x - mc.fontRenderer.getStringWidth(strPool) / 2;
- int yc = y;
- GL11.glPushMatrix();
- GL11.glTranslatef(xc + 42.0f, yc + 5.0f, 0.0f);
- RenderHelper.enableGUIStandardItemLighting();
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, new ItemStack(ModBlocks.pool), 0, 0);
- RenderHelper.disableStandardItemLighting();
- GL11.glTranslatef(18.0f, 5.0f, 300.0f);
- mc.fontRenderer.drawString(strPool, 0, 0, color);
- GL11.glPopMatrix();
- if((poolCount * 1000000) == mana)
- onePoolMana = poolCount * 1000000;
- HUDHandler.renderManaBar(x, y, color, alpha, onePoolMana, 1000000);
- }
-
- public static void drawPoolManaHUD(ScaledResolution res, String name, int mana, int maxMana, int color) {
- Minecraft mc = Minecraft.getMinecraft();
- int poolCount = (int)Math.floor(mana / 1000000.0D);
- int maxPoolCount = (int)Math.floor(maxMana / 1000000.0D);
- if(poolCount < 0)
- poolCount = 0;
- if(maxPoolCount < 0)
- maxPoolCount = 0;
- int onePoolMana = mana - (poolCount * 1000000);
- String strPool = poolCount + "x / " + maxPoolCount + "x";
- int xc = res.getScaledWidth() / 2 - mc.fontRenderer.getStringWidth(strPool) / 2 - 3;
- int yc = res.getScaledHeight() / 2;
- GL11.glPushMatrix();
- GL11.glTranslatef(xc - 6.0f, yc + 30.0f, 0.0f);
- RenderHelper.enableGUIStandardItemLighting();
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, new ItemStack(ModBlocks.pool), 0, 0);
- RenderHelper.disableStandardItemLighting();
- GL11.glTranslatef(18.0f, 4.5f, 300.0f);
- mc.fontRenderer.drawStringWithShadow(strPool, 0, 0, color);
- GL11.glPopMatrix();
- if((poolCount * 1000000) == mana)
- onePoolMana = poolCount * 1000000;
- HUDHandler.drawSimpleManaHUD(color, onePoolMana, 1000000, name, res);
- }
-
- public static void setLightmapTextureCoords() {
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- }
-
- public static Vector3 setRotation(float angel, float vX, float vY, float vZ, Vector3 v3) {
- Vector3 rVec = new Vector3(vX, vY, vZ);
- Vector3 rVec1 = v3.copy().normalize();
- double rAngel = Math.toRadians(angel) * 0.5f;
- double sin = Math.sin(rAngel);
- double x = rVec.x * sin;
- double y = rVec.y * sin;
- double z = rVec.z * sin;
- rAngel = Math.cos(rAngel);
- double d = -x * rVec1.x - y * rVec1.y - z * rVec1.z;
- double d1 = rAngel * rVec1.x + y * rVec1.z - z * rVec1.y;
- double d2 = rAngel * rVec1.y - x * rVec1.z + z * rVec1.x;
- double d3 = rAngel * rVec1.z + x * rVec1.y - y * rVec1.x;
- v3.x = d1 * rAngel - d * x - d2 * z + d3 * y;
- v3.y = d2 * rAngel - d * y + d1 * z - d3 * x;
- v3.z = d3 * rAngel - d * z - d1 * y + d2 * x;
- return v3;
- }
-
- public static Color getCorporeaRuneColor(int posX, int posY, int posZ, int meta) {
- double time = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- time += (new Random((posX ^ posY ^ posZ))).nextInt(360);
- float sin = (float)(Math.sin(time / 20.0f) * 0.15f) - 0.15f;
- int color = 0;
- switch(meta) {
- case 0:
- color = Color.HSBtoRGB(0.0f, 0.0f, 0.54f + (sin / 1.2f));
- break;
- case 1:
- color = Color.HSBtoRGB(0.688f, 0.93f, 0.96f + sin - 0.15f);
- break;
- case 2:
- color = Color.HSBtoRGB(0.983f, 0.99f, 1.0f + sin - 0.15f);
- break;
- case 3:
- color = Color.HSBtoRGB(0.319f, 0.92f, 0.95f + sin - 0.15f);
- break;
- case 4:
- color = Color.HSBtoRGB(0.536f, 0.53f, 0.92f + sin - 0.15f);
- break;
- }
- return new Color(color);
- }
-
- public static void renderIcon(IIcon icon, int light) {
- Tessellator tessellator = Tessellator.instance;
- float f = icon.getMinU();
- float f1 = icon.getMaxU();
- float f2 = icon.getMinV();
- float f3 = icon.getMaxV();
- float f4 = 1.0F;
- float f5 = 0.5F;
- float f6 = 0.25F;
- tessellator.startDrawingQuads();
- tessellator.setNormal(0.0F, 1.0F, 0.0F);
- tessellator.addVertexWithUV((0.0F - f5), (0.0F - f6), 0.0D, f, f3);
- tessellator.addVertexWithUV((f4 - f5), (0.0F - f6), 0.0D, f1, f3);
- tessellator.addVertexWithUV((f4 - f5), (f4 - f6), 0.0D, f1, f2);
- tessellator.addVertexWithUV((0.0F - f5), (f4 - f6), 0.0D, f, f2);
- tessellator.draw();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/50/c06e224db2b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/50/c06e224db2b1001c19bf8a91ac37238b
deleted file mode 100644
index 939bcdc..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/50/c06e224db2b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,79 +0,0 @@
-package ab.common.item;
-
-import java.util.List;
-
-import ab.common.core.CommonHelper;
-import ab.common.lib.register.BlockListAB;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.renderer.texture.IIconRegister;
-import net.minecraft.entity.Entity;
-import net.minecraft.entity.item.EntityFallingBlock;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.IIcon;
-import net.minecraft.world.World;
-import vazkii.botania.common.core.helper.ItemNBTHelper;
-
-public class ItemAntigravityCharm extends ItemMod {
-
- public static IIcon[] icons;
-
- public ItemAntigravityCharm() {
- super("antigravityCharm");
- this.setMaxStackSize(1);
- this.setNoRepair();
- }
-
- public void registerIcons(IIconRegister ir) {
- icons = new IIcon[2];
- for(int i = 0; i < icons.length; i++) {
- icons[i] = icons[i] = ir.registerIcon("ab:" + "itemAntigravityCharm_" + i);
- }
- }
-
- @SideOnly(Side.CLIENT)
- public IIcon getIcon(ItemStack stack, int pass) {
- int iconID = Math.min(1, pass);
- return this.icons[iconID];
- }
-
- public boolean requiresMultipleRenderPasses() {
- return true;
- }
-
- public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
- if(player.isSneaking())
- ItemNBTHelper.setBoolean(stack, "isActive", !ItemNBTHelper.getBoolean(stack, "isActive", true));
- return stack;
- }
-
- public void onUpdate(ItemStack stack, World world, Entity entity, int par4, boolean inHand) {
- if(entity instanceof EntityPlayer) {
- EntityPlayer player = (EntityPlayer)entity;
- if(ItemNBTHelper.getBoolean(stack, "isActive", true)) {
- double posX = entity.posX;
- double posY = entity.posY;
- double posZ = entity.posZ;
- final AxisAlignedBB asis = AxisAlignedBB.getBoundingBox(posX, posY, posZ, posX + 1, posY + 1, posZ + 1).expand(8, 8, 8);
- final List listEntity = (List)world.getEntitiesWithinAABB((Class)EntityFallingBlock.class, asis);
- for(EntityFallingBlock fallBlock : listEntity) {
- int x = (int) (fallBlock.posX >= 0 ? fallBlock.posX : fallBlock.posX - 1);
- int y = (int) fallBlock.posY;
- int z = (int) (fallBlock.posZ >= 0 ? fallBlock.posZ : fallBlock.posZ - 1);
- Block block = fallBlock.func_145805_f();
- fallBlock.setDead();
- if(!world.isRemote) {
- CommonHelper.setBlock(world, BlockListAB.blockAntigravitation, 0, x, y - 1, z, (EntityPlayerMP)player, true);
- CommonHelper.setBlock(world, block, fallBlock.field_145814_a, x, y, z, (EntityPlayerMP)player, true);
- }
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/51/d0dfe55129b0001c18a5eba32f24fffa b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/51/d0dfe55129b0001c18a5eba32f24fffa
deleted file mode 100644
index c259ad3..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/51/d0dfe55129b0001c18a5eba32f24fffa
+++ /dev/null
@@ -1,22 +0,0 @@
-package ab.common.item.relic;
-
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraftforge.common.MinecraftForge;
-import net.minecraftforge.event.entity.living.LivingDeathEvent;
-import net.minecraftforge.event.entity.living.LivingDropsEvent;
-
-public class ItemSehrimnirHide extends ItemModRelic {
-
- public ItemSehrimnirHide() {
- super("sehrimnirHide");
- MinecraftForge.EVENT_BUS.register(this);
- }
-
- @SubscribeEvent
- public void onPlayerAttack(LivingDeathEvent event) {
- for (EntityItem item : event.entityLiving.capturedDrops) {
- event.entityLiving.worldObj.spawnEntityInWorld(item);
- }
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/52/a057f7f485b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/52/a057f7f485b1001c19bf8a91ac37238b
deleted file mode 100644
index 25e904f..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/52/a057f7f485b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,75 +0,0 @@
-package ab.common.item.equipment.armor;
-
-import java.util.List;
-import java.util.UUID;
-
-import com.google.common.collect.HashMultimap;
-import com.google.common.collect.Multimap;
-
-import net.minecraft.entity.SharedMonsterAttributes;
-import net.minecraft.entity.ai.attributes.AttributeModifier;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.EnumChatFormatting;
-import net.minecraft.util.StatCollector;
-import net.minecraft.world.World;
-import vazkii.botania.api.mana.IManaDiscountArmor;
-import vazkii.botania.api.mana.IManaGivingItem;
-import vazkii.botania.api.mana.ManaItemHandler;
-import vazkii.botania.common.core.helper.ItemNBTHelper;
-
-public class ItemNebulaHelm extends ItemNebulaArmor implements IManaDiscountArmor, IManaGivingItem {
-
- private static final String TAG_COSMIC_FACE = "enableCosmicFace";
-
- public ItemNebulaHelm() {
- this("nebulaHelm");
- }
-
- public ItemNebulaHelm(String str) {
- super(0, str);
- }
-
- public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
- if(player.isSneaking())
- setCosmicFace(stack, !enableCosmicFace(stack));
- else
- super.onItemRightClick(stack, world, player);
- return stack;
- }
-
- public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean adv) {
- super.addInformation(stack, player, list, adv);
- if(!enableCosmicFace(stack))
- addStringToTooltip(EnumChatFormatting.GREEN + StatCollector.translateToLocal("ab.nebulaHelm.mask"), list);
- }
-
- public boolean enableCosmicFace(ItemStack stack) {
- return ItemNBTHelper.getBoolean(stack, TAG_COSMIC_FACE, true);
- }
-
- public void setCosmicFace(ItemStack stack, boolean enable) {
- ItemNBTHelper.setBoolean(stack, TAG_COSMIC_FACE, enable);
- }
-
- public void onArmorTick(World world, EntityPlayer player, ItemStack stack) {
- super.onArmorTick(world, player, stack);
- if(hasArmorSet(player)) {
- int food = player.getFoodStats().getFoodLevel();
- if(food > 0 && food < 18 && player.shouldHeal() && player.ticksExisted % 80 == 0)
- player.heal(1.0F);
- ManaItemHandler.dispatchManaExact(stack, player, 2, true);
- }
- }
-
- public float getDiscount(ItemStack stack, int slot, EntityPlayer player) {
- return hasArmorSet(player) ? 0.30F : 0.0F;
- }
-
- public Multimap getAttributeModifiers(ItemStack stack) {
- HashMultimap hashMultimap = HashMultimap.create();
- UUID uuid = new UUID(getUnlocalizedName().hashCode(), 0L);
- hashMultimap.put(SharedMonsterAttributes.maxHealth.getAttributeUnlocalizedName(), new AttributeModifier(uuid, "NebulaHelm modifier", 20.0D * (1.0f - (this.getDamage(stack) / 1000.0f)), 0));
- return (Multimap)hashMultimap;
- }
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/54/206706218dc1001c11e398ea97007cb4 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/54/206706218dc1001c11e398ea97007cb4
new file mode 100644
index 0000000..5e31c55
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/54/206706218dc1001c11e398ea97007cb4
@@ -0,0 +1,333 @@
+package ab.common.block.tile;
+
+import java.util.List;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.api.IBoundRender;
+import ab.client.core.ClientHelper;
+import net.minecraft.block.Block;
+import net.minecraft.block.BlockChest;
+import net.minecraft.block.BlockHopper;
+import net.minecraft.client.Minecraft;
+import net.minecraft.client.gui.Gui;
+import net.minecraft.client.gui.ScaledResolution;
+import net.minecraft.client.renderer.RenderHelper;
+import net.minecraft.client.renderer.entity.RenderItem;
+import net.minecraft.command.IEntitySelector;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.init.Blocks;
+import net.minecraft.inventory.IInventory;
+import net.minecraft.inventory.ISidedInventory;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.tileentity.IHopper;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.tileentity.TileEntityChest;
+import net.minecraft.tileentity.TileEntityHopper;
+import net.minecraft.util.AxisAlignedBB;
+import net.minecraft.util.ChunkCoordinates;
+import net.minecraft.util.Facing;
+import net.minecraft.util.MathHelper;
+import net.minecraft.util.MovingObjectPosition;
+import net.minecraft.world.World;
+import net.minecraftforge.common.util.ForgeDirection;
+import vazkii.botania.api.wand.IWandBindable;
+import vazkii.botania.client.core.handler.HUDHandler;
+import vazkii.botania.common.core.helper.Vector3;
+import vazkii.botania.common.item.ModItems;
+
+public class TileEngineerHopper extends TileInventory implements IHopper, IBoundRender {
+
+ private int cooldown;
+ private int[] invPosX = new int[] {0, 0};
+ private int[] invPosY = new int[] {-1, -1};
+ private int[] invPosZ = new int[] {0, 0};
+ private int[] invSide = new int[] {-1, -1};
+ private boolean bindType;
+ public int redstoneSignal = 0;
+
+ public void updateEntity() {
+ this.redstoneSignal = 0;
+ for(ForgeDirection dir : ForgeDirection.VALID_DIRECTIONS) {
+ int redstoneSide = getWorldObj().getIndirectPowerLevelTo(xCoord + dir.offsetX, yCoord + dir.offsetY, zCoord + dir.offsetZ, dir.ordinal());
+ this.redstoneSignal = Math.max(this.redstoneSignal, redstoneSide);
+ }
+ if(redstoneSignal > 0)
+ return;
+ else if(this.worldObj != null) {
+ if(!this.worldObj.isRemote) {
+ if(cooldown > 0)
+ --cooldown;
+ else if(cooldown == 0) {
+ if(worldObj != null && !worldObj.isRemote) {
+ boolean hasUpdate = false;
+ ItemStack stack = getStackInSlot(0);
+ if(stack != null)
+ hasUpdate = canExtractStack();
+ if(stack == null || stack.stackSize != stack.getMaxStackSize())
+ hasUpdate = canInsertStack() || hasUpdate;
+ if(hasUpdate)
+ this.cooldown = 8;
+ this.markDirty();
+ }
+ }
+ }
+ }
+ }
+
+ public boolean bindTo(EntityPlayer player, ItemStack wand, int x, int y, int z, int side) {
+ TileEntity tile = player.getEntityWorld().getTileEntity(x, y, z);
+ boolean isFar = Math.abs(this.xCoord - x) >= 10 || Math.abs(this.yCoord - y) >= 10 || Math.abs(this.zCoord - z) >= 10;
+ if(isFar)
+ return false;
+ int invCount = bindType ? 0 : 1;
+ if(tile instanceof TileEngineerHopper)
+ return false;
+ else if(tile != null && tile instanceof IInventory) {
+ setDistantInventory(invCount, x, y, z);
+ invSide[invCount] = side;
+ return true;
+ } else {
+ setDistantInventory(invCount, 0, -1, 0);
+ invSide[invCount] = -1;
+ return false;
+ }
+ }
+
+ public void changeBindType() {
+ bindType = !bindType;
+ }
+
+ public void setDistantInventory(int count, int posX, int posY, int posZ) {
+ invPosX[count] = posX;
+ invPosY[count] = posY;
+ invPosZ[count] = posZ;
+ }
+
+ public IInventory getDistantInventory(int count) {
+ IInventory inv = TileEntityHopper.func_145893_b(this.getWorldObj(), invPosX[count], invPosY[count], invPosZ[count]);
+ if(inv == null)
+ setDistantInventory(count, 0, -1, 0);
+ return inv;
+ }
+
+ public boolean canSelect(EntityPlayer player, ItemStack wand, int x, int y, int z, int side) {
+ return true;
+ }
+
+ public ChunkCoordinates[] getBlocksCoord() {
+ return new ChunkCoordinates[] { new ChunkCoordinates(invPosX[0], invPosY[0], invPosZ[0]), new ChunkCoordinates(invPosX[1], invPosY[1], invPosZ[1]) };
+ }
+
+ public ChunkCoordinates getBinding() {
+ return null;
+ }
+
+ public void renderHUD(Minecraft mc, ScaledResolution res) {
+ int x = res.getScaledWidth() / 2 - 7;
+ int y = res.getScaledHeight() / 2 + 16;
+ GL11.glEnable(3042);
+ GL11.glBlendFunc(770, 771);
+ ClientHelper.drawArrow(x - 2, y, false);
+ for(int i = 0; i < 2; i++) {
+ ItemStack stack = null;
+ boolean hasInv = false;
+ int posX = x + (i == 0 ? 32 : -32);
+ if(getDistantInventory(i) != null && (TileEntity)getDistantInventory(i) != null) {
+ TileEntity tile = (TileEntity)getDistantInventory(i);
+ Block block = tile.getWorldObj().getBlock(tile.xCoord, tile.yCoord, tile.zCoord);
+ int meta = tile.getWorldObj().getBlockMetadata(tile.xCoord, tile.yCoord, tile.zCoord);
+ stack = new ItemStack(block, 1, meta);
+ hasInv = true;
+ }
+ Gui.drawRect(posX - 4, y - 4, posX + 20, y + 20, 1140850688);
+ Gui.drawRect(posX - 2, y - 2, posX + 18, y + 18, 1140850688);
+ if(stack != null) {
+ RenderHelper.enableGUIStandardItemLighting();
+ GL11.glEnable(32826);
+ RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, stack, posX, y);
+ RenderHelper.disableStandardItemLighting();
+ GL11.glDisable(2929);
+ }
+ int invCount = bindType ? 0 : 1;
+ if(invCount == i) {
+ GL11.glTranslatef(0.0f, 0.0f, 300.0f);
+ RenderHelper.enableGUIStandardItemLighting();
+ GL11.glEnable(32826);
+ RenderItem.getInstance().renderItemIntoGUI(mc.fontRenderer, mc.renderEngine, new ItemStack(ModItems.twigWand), posX + 10, y + 7);
+ RenderHelper.disableStandardItemLighting();
+ GL11.glDisable(2929);
+ GL11.glTranslatef(0.0f, 0.0f, -300.0f);
+ }
+ boolean unicode = mc.fontRenderer.getUnicodeFlag();
+ mc.fontRenderer.setUnicodeFlag(true);
+ if(!hasInv) {
+ mc.fontRenderer.drawStringWithShadow("\u2717", posX + 5, y + 6, 4980736);
+ mc.fontRenderer.drawStringWithShadow("\u2717", posX + 5, y + 5, 13764621);
+ }
+ mc.fontRenderer.setUnicodeFlag(unicode);
+ GL11.glEnable(2929);
+ }
+ GL11.glDisable(3042);
+ }
+
+ public void writeCustomNBT(NBTTagCompound nbtt) {
+ super.writeCustomNBT(nbtt);
+ nbtt.setInteger("cooldown", this.cooldown);
+ nbtt.setBoolean("bindType", this.bindType);
+ nbtt.setIntArray("bindingX", this.invPosX);
+ nbtt.setIntArray("bindingY", this.invPosY);
+ nbtt.setIntArray("bindingZ", this.invPosZ);
+ nbtt.setIntArray("bindingSide", this.invSide);
+ }
+
+ public void readCustomNBT(NBTTagCompound nbtt) {
+ super.readCustomNBT(nbtt);
+ this.cooldown = nbtt.getInteger("cooldown");
+ this.bindType = nbtt.getBoolean("bindType");
+ this.invPosX = nbtt.getIntArray("bindingX");
+ this.invPosY = nbtt.getIntArray("bindingY");
+ this.invPosZ = nbtt.getIntArray("bindingZ");
+ this.invSide = nbtt.getIntArray("bindingSide");
+ }
+
+ private boolean canExtractStack() {
+ IInventory inv = getDistantInventory(0);
+ if(inv == null)
+ return false;
+ else {
+ int side = invSide[0];
+ int pullCount = getPullCount(inv, side);
+ System.out.println(pullCount);
+ if(pullCount <= 0)
+ return false;
+ else {
+ if(getStackInSlot(0) != null) {
+ ItemStack itemstack = getStackInSlot(0).copy();
+ ItemStack itemstack1 = TileEntityHopper.func_145889_a(inv, decrStackSize(0, pullCount), side);
+ if(itemstack1 == null || itemstack1.stackSize == 0) {
+ inv.markDirty();
+ return true;
+ }
+ setInventorySlotContents(0, itemstack);
+ }
+ return false;
+ }
+ }
+ }
+
+ private int getPullCount(IInventory inv, int side) {
+ if(inv instanceof ISidedInventory && side > -1) {
+ ISidedInventory sideInv = (ISidedInventory)inv;
+ int[] slots = sideInv.getAccessibleSlotsFromSide(side);
+ for(int i = 0; i < slots.length; ++i) {
+ ItemStack stack = sideInv.getStackInSlot(slots[i]);
+ if(stack == null)
+ return inv.getInventoryStackLimit();
+ else if(inv.getInventoryStackLimit() != stack.stackSize && stack.stackSize != stack.getMaxStackSize() && TileNidavellirForge.isItemEqual(stack, getStackInSlot(0)))
+ return inv.getInventoryStackLimit() - stack.stackSize;
+ }
+ } else {
+ int size = inv.getSizeInventory();
+ for(int i = 0; i < size; ++i) {
+ ItemStack stack = inv.getStackInSlot(i);
+ if(stack == null)
+ return inv.getInventoryStackLimit();
+ else if(inv.getInventoryStackLimit() != stack.stackSize && stack.stackSize != stack.getMaxStackSize() && TileNidavellirForge.isItemEqual(stack, getStackInSlot(0)))
+ return inv.getInventoryStackLimit() - stack.stackSize;
+ }
+ }
+ return 0;
+ }
+
+ private boolean canInsertStack() {
+ IInventory inv = getDistantInventory(1);
+ if(inv != null) {
+ int side = invSide[1];
+ int takeCount = getTakeCount(inv, side);
+ System.out.println("take" + takeCount);
+ if(takeCount <= 0)
+ return false;
+ if(inv instanceof ISidedInventory && side > -1) {
+ ISidedInventory sidedInv = (ISidedInventory)inv;
+ int[] slots = sidedInv.getAccessibleSlotsFromSide(side);
+ for(int k = 0; k < slots.length; ++k) {
+ if(func_145892_a(inv, slots[k], side, takeCount))
+ return true;
+ }
+ } else {
+ int i = inv.getSizeInventory();
+ for(int j = 0; j < i; ++j) {
+ if(func_145892_a(inv, j, side, takeCount))
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ private int getTakeCount(IInventory inv, int side) {
+ if(inv instanceof ISidedInventory && side > -1) {
+ ISidedInventory sideInv = (ISidedInventory)inv;
+ int[] slots = sideInv.getAccessibleSlotsFromSide(side);
+ for(int i = 0; i < slots.length; ++i) {
+ ItemStack stack = sideInv.getStackInSlot(slots[i]);
+ if(stack != null)
+ if(getStackInSlot(0) == null)
+ return getInventoryStackLimit();
+ else if(getInventoryStackLimit() != getStackInSlot(0).stackSize && getStackInSlot(0).stackSize != getStackInSlot(0).getMaxStackSize() && TileNidavellirForge.isItemEqual(stack, getStackInSlot(0)))
+ return getInventoryStackLimit() - getStackInSlot(0).stackSize;
+ }
+ } else {
+ for(int i = 0; i < inv.getSizeInventory(); ++i) {
+ ItemStack stack = inv.getStackInSlot(i);
+ if(stack != null)
+ if(getStackInSlot(0) == null)
+ return getInventoryStackLimit();
+ else if(getInventoryStackLimit() != getStackInSlot(0).stackSize && getStackInSlot(0).stackSize != getStackInSlot(0).getMaxStackSize() && TileNidavellirForge.isItemEqual(stack, getStackInSlot(0)))
+ return getInventoryStackLimit() - getStackInSlot(0).stackSize;
+ }
+ }
+ return 0;
+ }
+
+ private boolean func_145892_a(IInventory inv, int slot, int side, int takeCount) {
+ ItemStack itemstack = inv.getStackInSlot(slot);
+ if(itemstack != null && func_145890_b(inv, itemstack, slot, side)) {
+ ItemStack itemstack1 = itemstack.copy();
+ ItemStack itemstack2 = TileEntityHopper.func_145889_a(this, inv.decrStackSize(slot, takeCount), side);
+ if(itemstack2 == null || itemstack2.stackSize == 0) {
+ inv.markDirty();
+ return true;
+ }
+ inv.setInventorySlotContents(slot, itemstack1);
+ }
+ return false;
+ }
+
+ private static boolean func_145890_b(IInventory inv, ItemStack stack, int slot, int side) {
+ return !(inv instanceof ISidedInventory) || ((ISidedInventory)inv).canExtractItem(slot, stack, side);
+ }
+
+ public int getSizeInventory() {
+ return 1;
+ }
+
+ public String getInventoryName() {
+ return "engineerHopper";
+ }
+
+ public double getXPos() {
+ return this.xCoord;
+ }
+
+ public double getYPos() {
+ return this.yCoord;
+ }
+
+ public double getZPos() {
+ return this.zCoord;
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/54/30985084a4b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/54/30985084a4b1001c19bf8a91ac37238b
deleted file mode 100644
index 84fe10f..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/54/30985084a4b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,84 +0,0 @@
-package ab.client.core.handler;
-
-import java.awt.Color;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.armor.ItemNebulaArmor;
-import ab.common.item.equipment.armor.ItemNebulaHelm;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.ItemRenderer;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.texture.TextureMap;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraftforge.client.event.RenderPlayerEvent;
-import vazkii.botania.api.item.IPhantomInkable;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class PlayerRendererHandler {
-
- @SubscribeEvent
- public void onPlayerRender(RenderPlayerEvent.Specials.Post event) {
- EntityPlayer player = event.entityPlayer;
- ItemStack item = player.getCurrentArmor(3);
- if(item != null && item.getItem() instanceof ItemNebulaHelm) {
- Item helm = player.getCurrentArmor(3).getItem();
- boolean hasPhantomInk = helm instanceof IPhantomInkable && ((IPhantomInkable)helm).hasPhantomInk(item);
- if(!hasPhantomInk && ((ItemNebulaHelm)helm).enableCosmicFace(item)) {
- float angelX = event.renderer.modelBipedMain.bipedHead.rotateAngleX * 180.0F / (float)Math.PI;
- float angelY = event.renderer.modelBipedMain.bipedHead.rotateAngleY * 180.0F / (float)Math.PI;
- GL11.glPushMatrix();
- if(player.isSneaking())
- GL11.glTranslatef(event.renderer.modelBipedMain.bipedHead.rotationPointX * 0.0625f, event.renderer.modelBipedMain.bipedHead.rotationPointY * 0.0625f, 0.0f);
- GL11.glRotatef(angelY, 0.0F, 1.0F, 0.0F);
- GL11.glRotatef(angelX, 1.0F, 0.0F, 0.0F);
- renderCosmicFace();
- GL11.glPopMatrix();
- }
- }
- }
-
- private void renderCosmicFace() {
- double worldTime = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- GL11.glPushMatrix();
- GL11.glEnable(GL11.GL_TEXTURE_2D);
- GL11.glDisable(2884);
- GL11.glDisable(2912);
-
- GL11.glPushMatrix();
- GL11.glScalef(0.5f, 0.4f, 0.4f);
- GL11.glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
- GL11.glTranslatef(-0.5f, -0.8675f, 0.0f);
- GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
- ClientHelper.renderCosmicBackground();
- GL11.glPopMatrix();
-
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- (Minecraft.getMinecraft()).renderEngine.bindTexture(TextureMap.locationItemsTexture);
- GL11.glTranslatef(-0.2F, -0.35F, -0.25F);
- GL11.glScalef(0.4f, 0.4f, 0.4f);
- float f = ItemNebulaArmor.nebulaEyes.getMinU();
- float f1 = ItemNebulaArmor.nebulaEyes.getMaxU();
- float f2 = ItemNebulaArmor.nebulaEyes.getMinV();
- float f3 = ItemNebulaArmor.nebulaEyes.getMaxV();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float r = color.getRed() / 510.0F;
- float g = color.getGreen() / 510.0F;
- float b = color.getBlue() / 510.0F;
- GL11.glColor4f(0.5f + r, 0.5f + g, 0.5f + b, 0.685f + (float)Math.sin(worldTime / 50.0D) * 0.175F);
- ItemRenderer.renderItemIn2D(Tessellator.instance, f1, f2, f, f3, ItemNebulaArmor.nebulaEyes.getIconWidth(), ItemNebulaArmor.nebulaEyes.getIconHeight(), 0.03125F);
- GL11.glDisable(3042);
- GL11.glEnable(32826);
- GL11.glPopMatrix();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/b9/901a519987ae001c11109eb5a6670b42 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/54/9069cb3d9dc1001c1356c3b0f89d3b03
similarity index 96%
rename from 1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/b9/901a519987ae001c11109eb5a6670b42
rename to 1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/54/9069cb3d9dc1001c1356c3b0f89d3b03
index 53689a4..2860952 100644
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/b9/901a519987ae001c11109eb5a6670b42
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/54/9069cb3d9dc1001c1356c3b0f89d3b03
@@ -13,7 +13,7 @@ import net.minecraftforge.common.MinecraftForge;
public class AdvancedBotany {
public static final String modid = "AdvancedBotany";
- public static final String version = "1.2.0.1";
+ public static final String version = "1.3.0";
@Mod.Instance("AdvancedBotany")
public static AdvancedBotany instance;
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/54/a0139a98e7ac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/54/a0139a98e7ac001c1d59e42be7477558
deleted file mode 100644
index db07980..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/54/a0139a98e7ac001c1d59e42be7477558
+++ /dev/null
@@ -1,177 +0,0 @@
-package ab.common.block.tile;
-
-import java.util.List;
-
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.ChatComponentTranslation;
-import net.minecraft.util.ChatStyle;
-import net.minecraft.util.EnumChatFormatting;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.common.block.tile.TileMod;
-
-public class TileGameBoard extends TileMod {
-
- protected String[] playersName = new String[] { "", "" };
- public byte[] slotChance = new byte[] { 0, 0, 0, 0 };
- protected int botTick = -1;
- public int endGameTick = -1;
- protected boolean requestUpdate;
- public boolean isSingleGame = false;
- public int clientTick[] = new int[] { 0, 0, 0, 0};
-
- public void updateEntity() {
- if(botTick > 0)
- botTick--;
- if(endGameTick > 0)
- endGameTick--;
- if(!worldObj.isRemote)
- updateServer();
- else
- updateClient();
- }
-
- protected void updateClient() {
- for(int i = 0; i < slotChance.length; i++)
- if(slotChance[i] > 0)
- clientTick[i]++;
- else
- clientTick[i] = 0;
- }
-
- protected void updateServer() {
- if(requestUpdate)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- boolean hasUpdate = false;
- if(isSingleGame && botTick == 0 && hasGame()) {
- for(int i = 2; i < 4; i++) {
- if(slotChance[i] == 0) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = -1;
- hasUpdate = true;
- break;
- }
- }
- }
- if(hasGame() && endGameTick == 0)
- finishGame();
- requestUpdate = hasUpdate;
- }
-
- public void setPlayer(EntityPlayer player) {
- if(isSingleGame) {
- playersName[0] = player.getCommandSenderName();
- playersName[1] = "";
- requestUpdate = true;
- botTick = 8;
- } else {
- if(playersName[0].isEmpty()) {
- playersName[0] = player.getCommandSenderName();
- requestUpdate = true;
- } else if(!playersName[0].equals(player.getCommandSenderName())) {
- playersName[1] = player.getCommandSenderName();
- requestUpdate = true;
- }
- }
- }
-
- public boolean dropDice(EntityPlayer player) {
- if(isSingleGame) {
- if(player.getCommandSenderName().equals(playersName[0]) && botTick == -1) {
- boolean isLastDice = false;
- for(int i = 0; i < 2; i++) {
- if(slotChance[i] == 0 && !worldObj.isRemote) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = 18;
- requestUpdate = true;
- if(i == 1)
- isLastDice = true;
- break;
- }
- }
- if(isLastDice)
- endGameTick = 28;
- return true;
- }
- } else {
- for(int i = 0; i < playersName.length; i++) {
- if(player.getCommandSenderName().equals(playersName[i])) {
- for(int j = i * 2; j < (i + 1) * 2; j++) {
- System.out.println(j);
- if(slotChance[i] == 0 && !worldObj.isRemote) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- requestUpdate = true;
- break;
- }
- }
- return true;
- }
- }
- }
- return false;
- }
-
- public boolean hasGame() {
- if(isSingleGame)
- return !playersName[0].isEmpty();
- return !playersName[0].isEmpty() && !playersName[1].isEmpty();
- }
-
- public void finishGame() {
- if(worldObj.isRemote)
- return;
- if(isSingleGame) {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won");
- else if((slotChance[0] + slotChance[1]) == (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " not win");
- else
- sendNearMessage(playersName[0] + " you Lose!");
- resetGame();
- requestUpdate = true;
- }
- }
-
- public void sendNearMessage(String text) {
- List players = this.worldObj.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(this.xCoord, this.yCoord, this.zCoord, (this.xCoord + 1), (this.yCoord + 1), (this.zCoord + 1)).expand(3.5f, 3.5f, 3.5f));
- for(EntityPlayer player : players) {
- if(player != null)
- player.addChatMessage((new ChatComponentTranslation(text, new Object[] {})).setChatStyle((new ChatStyle()).setColor(EnumChatFormatting.DARK_GREEN)));
- }
- }
-
- public void resetGame() {
- playersName[0] = "";
- playersName[1] = "";
- for(int i = 0; i < slotChance.length; i++)
- slotChance[i] = 0;
- requestUpdate = true;
- botTick = -1;
- endGameTick = -1;
- }
-
- public void writeCustomNBT(NBTTagCompound cmp) {
- super.writeCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- cmp.setString("playerName" + i, playersName[i]);
- cmp.setByteArray("slotChance", slotChance);
- cmp.setInteger("botTick", botTick);
- cmp.setInteger("endGameTick", endGameTick);
- cmp.setBoolean("requestUpdate", requestUpdate);
- cmp.setBoolean("isSingleGame", isSingleGame);
- }
-
- public void readCustomNBT(NBTTagCompound cmp) {
- super.readCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- playersName[i] = cmp.getString("playerName" + i);
- botTick = cmp.getInteger("botTick");
- endGameTick = cmp.getInteger("endGameTick");
- slotChance = cmp.getByteArray("slotChance");
- requestUpdate = cmp.getBoolean("requestUpdate");
- isSingleGame = cmp.getBoolean("isSingleGame");
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/55/c0ddcd5c05ad001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/55/c0ddcd5c05ad001c1d59e42be7477558
deleted file mode 100644
index dd0f1bd..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/55/c0ddcd5c05ad001c1d59e42be7477558
+++ /dev/null
@@ -1,229 +0,0 @@
-package ab.common.block.tile;
-
-import java.util.List;
-
-import ab.api.IRenderHud;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.gui.ScaledResolution;
-import net.minecraft.client.renderer.RenderHelper;
-import net.minecraft.client.renderer.entity.RenderItem;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.init.Items;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.ChatComponentTranslation;
-import net.minecraft.util.ChatStyle;
-import net.minecraft.util.EnumChatFormatting;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.common.block.tile.TileMod;
-
-public class TileGameBoard extends TileMod implements IRenderHud {
-
- public String[] playersName = new String[] { "", "" };
- public byte[] slotChance = new byte[] { 0, 0, 0, 0 };
- protected int botTick = -1;
- public int endGameTick = -1;
- protected boolean requestUpdate;
- public boolean isSingleGame = true;
- public int clientTick[] = new int[] { 0, 0, 0, 0 };
- public static final ItemStack headRender = new ItemStack(Items.skull, 1, 3);
-
- public void updateEntity() {
- if(botTick > 0)
- botTick--;
- if(endGameTick > 0)
- endGameTick--;
- if(!worldObj.isRemote)
- updateServer();
- else
- updateAnimationTicks();
- }
-
- public void updateAnimationTicks() {
- for(int i = 0; i < slotChance.length; i++)
- if(slotChance[i] > 0)
- clientTick[i]++;
- else
- clientTick[i] = 0;
- }
-
- protected void updateServer() {
- if(hasGame() && endGameTick == 0)
- finishGame();
- if(requestUpdate)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- boolean hasUpdate = false;
- if(isSingleGame) {
- if(botTick == 0 && hasGame()) {
- for(int i = 2; i < 4; i++) {
- if(slotChance[i] == 0) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = -1;
- hasUpdate = true;
- break;
- }
- }
- }
- } else {
- if(botTick == 0 && hasGame())
- endGameTick = 0;
- }
- requestUpdate = hasUpdate;
- }
-
- public void setPlayer(EntityPlayer player) {
- if(isSingleGame) {
- playersName[0] = player.getCommandSenderName();
- playersName[1] = "";
- requestUpdate = true;
- botTick = 8;
- } else {
- if(playersName[0].isEmpty())
- playersName[0] = player.getCommandSenderName();
- else if(!playersName[0].equals(player.getCommandSenderName()))
- playersName[1] = player.getCommandSenderName();
- requestUpdate = true;
- }
- }
-
- public boolean dropDice(EntityPlayer player) {
- if(isSingleGame) {
- if(player.getCommandSenderName().equals(playersName[0]) && botTick == -1) {
- boolean isLastDice = false;
- boolean hasDrop = false;
- for(int i = 0; i < 2; i++) {
- if(slotChance[i] == 0) {
- hasDrop = true;
- if(!worldObj.isRemote) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = 18;
- requestUpdate = true;
- if(i == 1)
- isLastDice = true;
- }
- break;
- }
- }
- if(isLastDice)
- endGameTick = 28;
- return hasDrop;
- }
- } else {
- for(int i = 0; i < playersName.length; i++) {
- if(player.getCommandSenderName().equals(playersName[i])) {
- boolean hasDrop = false;
- for(int j = i * 2; j < (i + 1) * 2; j++) {
- if(slotChance[j] == 0) {
- hasDrop = true;
- if(!worldObj.isRemote) {
- slotChance[j] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = 1200;
- if(hasFullDice())
- endGameTick = 28;
- requestUpdate = true;
- }
- break;
- }
- }
- return hasDrop;
- }
- }
- }
- return false;
- }
-
- public boolean hasFullDice() {
- boolean hasFull = false;
- for(int i = 0; i < slotChance.length; i++) {
- if(!(slotChance[i] > 0))
- return false;
- hasFull = slotChance[i] > 0;
- }
- return hasFull;
- }
-
- public boolean hasGame() {
- if(isSingleGame)
- return !playersName[0].isEmpty();
- else
- for(int i = 0; i < playersName.length; i++)
- if(!playersName[i].isEmpty())
- return true;
- return false;
- }
-
- public void finishGame() {
- if(worldObj.isRemote)
- return;
- if(isSingleGame) {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won");
- else if((slotChance[0] + slotChance[1]) == (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " not win");
- else
- sendNearMessage(playersName[0] + " you Lose!");
- resetGame();
- } else {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won!");
- else if((slotChance[0] + slotChance[1]) == (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " " + playersName[1] + "we are not win");
- else
- sendNearMessage(playersName[1] + " you Won!");
- resetGame();
- }
- }
-
- public void sendNearMessage(String text) {
- List players = this.worldObj.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(this.xCoord, this.yCoord, this.zCoord, (this.xCoord + 1), (this.yCoord + 1), (this.zCoord + 1)).expand(3.5f, 3.5f, 3.5f));
- for(EntityPlayer player : players) {
- if(player != null)
- player.addChatMessage((new ChatComponentTranslation(text, new Object[] {})).setChatStyle((new ChatStyle()).setColor(EnumChatFormatting.DARK_GREEN)));
- }
- }
-
- public void resetGame() {
- playersName[0] = "";
- playersName[1] = "";
- for(int i = 0; i < slotChance.length; i++)
- slotChance[i] = 0;
- botTick = -1;
- endGameTick = -1;
- requestUpdate = true;
- }
-
- public void renderHud(Minecraft mc, ScaledResolution res) {
- int x = res.getScaledWidth() / 2 - 7;
- int y = res.getScaledHeight() / 2 + 12;
- RenderHelper.enableGUIStandardItemLighting();
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, headRender, x - (isSingleGame ? 2 : 0), y - (isSingleGame ? 2 : 0));
- if(isSingleGame)
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, headRender, x + 2, y + 2);
- RenderHelper.disableStandardItemLighting();
- }
-
- public void writeCustomNBT(NBTTagCompound cmp) {
- super.writeCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- cmp.setString("playerName" + i, playersName[i]);
- cmp.setByteArray("slotChance", slotChance);
- cmp.setInteger("botTick", botTick);
- cmp.setInteger("endGameTick", endGameTick);
- cmp.setBoolean("requestUpdate", requestUpdate);
- cmp.setBoolean("isSingleGame", isSingleGame);
- }
-
- public void readCustomNBT(NBTTagCompound cmp) {
- super.readCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- playersName[i] = cmp.getString("playerName" + i);
- botTick = cmp.getInteger("botTick");
- endGameTick = cmp.getInteger("endGameTick");
- slotChance = cmp.getByteArray("slotChance");
- requestUpdate = cmp.getBoolean("requestUpdate");
- isSingleGame = cmp.getBoolean("isSingleGame");
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/56/70f977d3ebac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/56/70f977d3ebac001c1d59e42be7477558
deleted file mode 100644
index b246d60..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/56/70f977d3ebac001c1d59e42be7477558
+++ /dev/null
@@ -1,197 +0,0 @@
-package ab.common.block.tile;
-
-import java.util.List;
-
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.ChatComponentTranslation;
-import net.minecraft.util.ChatStyle;
-import net.minecraft.util.EnumChatFormatting;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.common.block.tile.TileMod;
-
-public class TileGameBoard extends TileMod {
-
- protected String[] playersName = new String[] { "", "" };
- public byte[] slotChance = new byte[] { 0, 0, 0, 0 };
- protected int botTick = -1;
- public int endGameTick = -1;
- protected boolean requestUpdate;
- public boolean isSingleGame = false;
- public int clientTick[] = new int[] { 0, 0, 0, 0};
-
- public void updateEntity() {
- if(botTick > 0)
- botTick--;
- if(endGameTick > 0)
- endGameTick--;
- if(!worldObj.isRemote)
- updateServer();
- else
- updateClient();
- }
-
- protected void updateClient() {
- for(int i = 0; i < slotChance.length; i++)
- if(slotChance[i] > 0)
- clientTick[i]++;
- else
- clientTick[i] = 0;
- }
-
- protected void updateServer() {
- if(requestUpdate)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- boolean hasUpdate = false;
- if(isSingleGame && botTick == 0 && hasGame()) {
- for(int i = 2; i < 4; i++) {
- if(slotChance[i] == 0) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = -1;
- hasUpdate = true;
- break;
- }
- }
- }
- if(hasGame() && endGameTick == 0)
- finishGame();
- requestUpdate = hasUpdate;
- }
-
- public void setPlayer(EntityPlayer player) {
- if(isSingleGame) {
- playersName[0] = player.getCommandSenderName();
- playersName[1] = "";
- requestUpdate = true;
- botTick = 8;
- } else {
- if(playersName[0].isEmpty()) {
- playersName[0] = player.getCommandSenderName();
- requestUpdate = true;
- } else if(!playersName[0].equals(player.getCommandSenderName())) {
- playersName[1] = player.getCommandSenderName();
- requestUpdate = true;
- }
- }
- }
-
- public boolean dropDice(EntityPlayer player) {
- if(isSingleGame) {
- if(player.getCommandSenderName().equals(playersName[0]) && botTick == -1) {
- boolean isLastDice = false;
- for(int i = 0; i < 2; i++) {
- if(slotChance[i] == 0 && !worldObj.isRemote) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = 18;
- requestUpdate = true;
- if(i == 1)
- isLastDice = true;
- break;
- }
- }
- if(isLastDice)
- endGameTick = 28;
- return true;
- }
- } else {
- for(int i = 0; i < playersName.length; i++) {
- if(player.getCommandSenderName().equals(playersName[i])) {
- for(int j = i * 2; j < (i + 1) * 2; j++) {
- if(slotChance[j] == 0 && !worldObj.isRemote) {
- slotChance[j] = (byte)(worldObj.rand.nextInt(6) + 1);
- requestUpdate = true;
- if(hasFullDice())
- endGameTick = 28;
- break;
- }
- }
- return true;
- }
- }
- }
- return false;
- }
-
- public boolean hasFullDice() {
- boolean hasFull = false;
- for(int i = 0; i < slotChance.length; i++) {
- if(!(slotChance[i] > 0))
- return false;
- hasFull = slotChance[i] > 0;
- }
- return hasFull;
- }
-
- public boolean hasGame() {
- if(isSingleGame)
- return !playersName[0].isEmpty();
- return !playersName[0].isEmpty() && !playersName[1].isEmpty();
- }
-
- public void finishGame() {
- if(worldObj.isRemote)
- return;
- if(isSingleGame) {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won");
- else if((slotChance[0] + slotChance[1]) == (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " not win");
- else
- sendNearMessage(playersName[0] + " you Lose!");
- resetGame();
- requestUpdate = true;
- } else {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won!");
- else if((slotChance[0] + slotChance[1]) == (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " " + playersName[1] + "we are not win");
- else
- sendNearMessage(playersName[1] + " you Won!");
- resetGame();
- requestUpdate = true;
- }
- }
-
- public void sendNearMessage(String text) {
- List players = this.worldObj.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(this.xCoord, this.yCoord, this.zCoord, (this.xCoord + 1), (this.yCoord + 1), (this.zCoord + 1)).expand(3.5f, 3.5f, 3.5f));
- for(EntityPlayer player : players) {
- if(player != null)
- player.addChatMessage((new ChatComponentTranslation(text, new Object[] {})).setChatStyle((new ChatStyle()).setColor(EnumChatFormatting.DARK_GREEN)));
- }
- }
-
- public void resetGame() {
- playersName[0] = "";
- playersName[1] = "";
- for(int i = 0; i < slotChance.length; i++)
- slotChance[i] = 0;
- requestUpdate = true;
- botTick = -1;
- endGameTick = -1;
- }
-
- public void writeCustomNBT(NBTTagCompound cmp) {
- super.writeCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- cmp.setString("playerName" + i, playersName[i]);
- cmp.setByteArray("slotChance", slotChance);
- cmp.setInteger("botTick", botTick);
- cmp.setInteger("endGameTick", endGameTick);
- cmp.setBoolean("requestUpdate", requestUpdate);
- cmp.setBoolean("isSingleGame", isSingleGame);
- }
-
- public void readCustomNBT(NBTTagCompound cmp) {
- super.readCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- playersName[i] = cmp.getString("playerName" + i);
- botTick = cmp.getInteger("botTick");
- endGameTick = cmp.getInteger("endGameTick");
- slotChance = cmp.getByteArray("slotChance");
- requestUpdate = cmp.getBoolean("requestUpdate");
- isSingleGame = cmp.getBoolean("isSingleGame");
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/56/80c50540deac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/56/80c50540deac001c1d59e42be7477558
deleted file mode 100644
index f6d7675..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/56/80c50540deac001c1d59e42be7477558
+++ /dev/null
@@ -1,90 +0,0 @@
-package ab.client.render.tile;
-
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.model.ModelDiceFate;
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.ResourceLocation;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class RenderTileGameBoard extends TileEntitySpecialRenderer {
-
- private static final ModelDiceFate model = new ModelDiceFate();
- private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/gameDice.png");
- private static final ResourceLocation textureEnemy = new ResourceLocation("ab:textures/model/gameDice_enemy.png");
-
- public void renderTileEntityAt(TileEntity tile, double x, double y, double z, float ticks) {
- double time = (tile.getWorldObj() == null) ? 0.0D : (ClientTickHandler.ticksInGame + ticks);
- if(tile != null)
- time += (new Random((tile.xCoord ^ tile.yCoord ^ tile.zCoord))).nextInt(360);
- TileGameBoard board = (TileGameBoard)tile;
- GL11.glEnable(3042);
- GL11.glEnable(32826);
- for(int i = 0; i < board.slotChance.length; i++) {
- if(board.slotChance[i] == 0)
- continue;
- time += i * 65;
- GL11.glPushMatrix();
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- float posX = 0.0f;
- float posY = 0.0f;
- float dropAnim = (1.0f - (Math.min(100.0f, board.clientTick[i] * board.clientTick[i] * 1.125f) / 100.0f));
- dropAnim = Math.min(1.0f, Math.max(dropAnim, 0));
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0f - dropAnim);
- switch(i) {
- case 0:
- posX = 0.16f + 0.08f * dropAnim;
- posY = 0.16f + 0.08f * dropAnim;
- break;
- case 1:
- posX = -0.16f - 0.08f * dropAnim;
- posY = 0.16f + 0.08f * dropAnim;
- break;
- case 2:
- posX = 0.16f + 0.08f * dropAnim;
- posY = -0.16f - 0.08f * dropAnim;
- break;
- case 3:
- posX = -0.16f - 0.08f * dropAnim;
- posY = -0.16f - 0.08f * dropAnim;
- break;
- }
- GL11.glTranslated(x, y, z);
- GL11.glTranslated(0.5f + posX, 0.02f + Math.sin(time / 12.0D) / 48.0D + (0.28f * dropAnim), 0.5f + posY);
- GL11.glScalef(0.25f, 0.25f, 0.25f);
- Minecraft.getMinecraft().renderEngine.bindTexture(i > 1 ? textureEnemy : texture);
- float dropAngel = 70.0f * dropAnim;
- switch(board.slotChance[i]) {
- case 1:
- model.render(180.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 2:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 3:
- model.render(90.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 4:
- model.render(270.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 5:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 270.0f);
- break;
- case 6:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 90.0f);
- break;
- default:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- }
- GL11.glPopMatrix();
- }
- GL11.glEnable(32826);
- GL11.glDisable(3042);
- }
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/56/d08442f1b8b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/56/d08442f1b8b1001c19bf8a91ac37238b
deleted file mode 100644
index f96bf09..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/56/d08442f1b8b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,169 +0,0 @@
-package ab.common.entity;
-
-import java.awt.Color;
-import java.util.List;
-import java.util.Random;
-
-import ab.client.core.ClientHelper;
-import ab.common.core.CommonHelper;
-import ab.common.lib.register.BlockListAB;
-import cpw.mods.fml.relauncher.ReflectionHelper;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockBush;
-import net.minecraft.block.BlockCrops;
-import net.minecraft.block.BlockGrass;
-import net.minecraft.block.BlockSapling;
-import net.minecraft.block.IGrowable;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.EntityLivingBase;
-import net.minecraft.entity.passive.EntityAnimal;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.entity.projectile.EntityThrowable;
-import net.minecraft.init.Blocks;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.potion.PotionEffect;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.MathHelper;
-import net.minecraft.util.MovingObjectPosition;
-import net.minecraft.util.Vec3;
-import net.minecraft.world.World;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.core.handler.ConfigHandler;
-import vazkii.botania.common.lib.LibObfuscation;
-
-public class EntityManaVine extends EntityThrowable {
-
- public EntityManaVine(World world) {
- super(world);
- }
-
- public EntityManaVine(World world, EntityLivingBase entity) {
- super(world, entity);
- }
-
- protected void entityInit() {
- super.entityInit();
- this.dataWatcher.addObject(28, "");
- this.dataWatcher.setObjectWatched(28);
- }
-
- public String getAttacker() {
- return this.dataWatcher.getWatchableObjectString(28);
- }
-
- public void setAttacker(String str) {
- this.dataWatcher.updateObject(28, str);
- }
-
- public void onUpdate() {
- super.onUpdate();
- ticksExisted++;
- if(ticksExisted >= 240)
- setDead();
- if(this.worldObj.isRemote) {
- float m = 0.02F;
- float f1 = 6.0f;
- for(int i = 0; i < 4; i++) {
- double posX = this.posX + (Math.random() / f1 - (0.5f / f1));
- double posY = this.posY + (Math.random() / f1 - (0.5f / f1));
- double posZ = this.posZ + (Math.random() / f1 - (0.5f / f1));
- float mx = (float)(Math.random() - 0.5D) * m;
- float my = (float)(Math.random() - 0.5D) * m;
- float mz = (float)(Math.random() - 0.5D) * m;
- Color color = ClientHelper.getCorporeaRuneColor((int)posX, (int)posY, (int)posZ, 3);
- Botania.proxy.wispFX(worldObj, posX, posY, posZ, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float) (0.15f + (Math.random() * 0.12f)), mx, my, mz, 0.7f);
- }
- }
- }
-
- protected void onImpact(MovingObjectPosition pos) {
- if(pos != null && pos.entityHit == null) {
- World world = this.worldObj;
- int x = pos.blockX;
- int y = pos.blockY;
- int z = pos.blockZ;
- List list = (List) (world.getEntitiesWithinAABB(EntityLivingBase.class, AxisAlignedBB.getBoundingBox(x - 10, y - 10, z - 10, x + 10, y + 10, z + 10)));
- for(EntityLivingBase target : list) {
- if(target instanceof EntityAnimal) {
- EntityAnimal animal = (EntityAnimal) target;
- ReflectionHelper.setPrivateValue(EntityAnimal.class, animal, 1200, LibObfuscation.IN_LOVE);
- animal.setTarget(null);
- this.worldObj.setEntityState(animal, (byte) 18);
- }
- }
- for(int k = 0; k < 7; k++)
- for(int k1 = 0; k1 < 7; k1++)
- for(int k2 = 0; k2 < 7; k2++) {
- int xCoord = x + k - 3;
- int yCoord = y + k1 - 1;
- int zCoord = z + k2 - 3;
- Block block = this.worldObj.getBlock(xCoord, yCoord, zCoord);
- if(block instanceof IGrowable && !(block instanceof BlockGrass)) {
- CommonHelper.fertilizer(world, block, xCoord, yCoord, zCoord, 12);
- if(ConfigHandler.blockBreakParticles) {
- worldObj.playAuxSFX(2005, xCoord, yCoord, zCoord, 6 + this.worldObj.rand.nextInt(4));
- worldObj.playSoundEffect(x, y, z, "botania:agricarnation", 0.01F, 0.5F + (float) Math.random() * 0.5F);
- }
- } else if(!world.isRemote && BlockListAB.blockFreyrLiana.canBlockStay(world, xCoord, yCoord - 1, zCoord)) {
- Vec3 vec = Vec3.createVectorHelper(xCoord, yCoord, zCoord);
- int distant = (int)vec.squareDistanceTo(Vec3.createVectorHelper(x, y, z));
- yCoord--;
- if(this.worldObj.rand.nextInt(distant + 1) == 0)
- while (yCoord > 0) {
- block = worldObj.getBlock(xCoord, yCoord, zCoord);
- if(block.isAir(worldObj, xCoord, yCoord, zCoord)) {
- EntityPlayer player = worldObj.getPlayerEntityByName(getAttacker());
- if(player != null) {
- EntityPlayerMP playerMP = (EntityPlayerMP)player;
- if(world.rand.nextInt(4) < 3)
- CommonHelper.setBlock(world, BlockListAB.blockFreyrLiana, 0, xCoord, yCoord, zCoord, playerMP, false);
- else
- CommonHelper.setBlock(world, BlockListAB.blockLuminousFreyrLiana, 0, xCoord, yCoord, zCoord, playerMP, false);
- worldObj.playAuxSFX(2001, xCoord, yCoord, zCoord, Block.getIdFromBlock(BlockListAB.blockFreyrLiana));
- }
- yCoord--;
- } else
- break;
- }
- }
- }
- this.setDead();
- }
- }
-
- @SideOnly(Side.CLIENT)
- public void setPositionAndRotation2(double p_70056_1_, double p_70056_3_, double p_70056_5_, float p_70056_7_, float p_70056_8_, int p_70056_9_) {}
-
- protected float getGravityVelocity() {
- return 0.0f;
- }
-
- public void setDead() {
- if(this.worldObj.isRemote) {
- float m = 0.175F;
- for(int i = 0; i < 32; i++) {
- float mx = (float)(Math.random() - 0.5D) * m;
- float my = (float)(Math.random() - 0.5D) * m;
- float mz = (float)(Math.random() - 0.5D) * m;
- Color color = ClientHelper.getCorporeaRuneColor((int)posX, (int)posY, (int)posZ, 3);
- Botania.proxy.wispFX(worldObj, posX, posY, posZ, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float) (0.2f + (Math.random() * 0.12f)), mx, my, mz, 2.0f);
- }
- }
- super.setDead();
- }
-
- public void readEntityFromNBT(NBTTagCompound nbtt) {
- super.readEntityFromNBT(nbtt);
- ticksExisted = nbtt.getInteger("ticks");
- setAttacker(nbtt.getString("attacker"));
- }
-
- public void writeEntityToNBT(NBTTagCompound nbtt) {
- super.writeEntityToNBT(nbtt);
- nbtt.setInteger("ticks", ticksExisted);
- nbtt.setString("attacker", getAttacker());
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/56/f0d9596d8cc1001c11e398ea97007cb4 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/56/f0d9596d8cc1001c11e398ea97007cb4
new file mode 100644
index 0000000..29f2bdf
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/56/f0d9596d8cc1001c11e398ea97007cb4
@@ -0,0 +1,5 @@
+package ab.common.item;
+
+public class ItemEngineerLens {
+
+}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/58/9039a53be6ad001c1bd4eaa9a9be6b81 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/58/9039a53be6ad001c1bd4eaa9a9be6b81
deleted file mode 100644
index 6892761..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/58/9039a53be6ad001c1bd4eaa9a9be6b81
+++ /dev/null
@@ -1,268 +0,0 @@
-package ab.common.lib.register;
-
-import java.io.Serializable;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.List;
-
-import ab.api.AdvancedBotanyAPI;
-import ab.api.recipe.RecipeAdvancedPlate;
-import ab.api.recipe.RecipeAncientAlphirine;
-import ab.api.recipe.lexicon.AdvancedPlateCraftPage;
-import ab.api.recipe.lexicon.AlphirineCraftPage;
-import ab.common.block.tile.TileAgglomerationPlate;
-import ab.common.block.tile.TileLebethronCore;
-import ab.common.block.tile.TileMagicCraftCrate;
-import ab.common.core.handler.ConfigABHandler;
-import ab.common.item.ItemCraftingPattern;
-import cpw.mods.fml.common.registry.GameRegistry;
-import net.minecraft.init.Blocks;
-import net.minecraft.init.Items;
-import net.minecraft.item.ItemStack;
-import net.minecraft.item.crafting.CraftingManager;
-import net.minecraft.item.crafting.IRecipe;
-import net.minecraft.util.EnumChatFormatting;
-import net.minecraftforge.oredict.ShapedOreRecipe;
-import net.minecraftforge.oredict.ShapelessOreRecipe;
-import thaumcraft.common.config.ConfigBlocks;
-import thaumcraft.common.config.ConfigItems;
-import vazkii.botania.api.BotaniaAPI;
-import vazkii.botania.api.lexicon.KnowledgeType;
-import vazkii.botania.api.lexicon.LexiconCategory;
-import vazkii.botania.api.lexicon.LexiconEntry;
-import vazkii.botania.api.lexicon.LexiconPage;
-import vazkii.botania.api.recipe.RecipePetals;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.block.ModBlocks;
-import vazkii.botania.common.item.ModItems;
-import vazkii.botania.common.item.block.ItemBlockSpecialFlower;
-import vazkii.botania.common.lexicon.BLexiconCategory;
-import vazkii.botania.common.lexicon.BLexiconEntry;
-import vazkii.botania.common.lexicon.RLexiconEntry;
-import vazkii.botania.common.lexicon.page.PageText;
-
-public class RecipeListAB {
-
- public static LexiconCategory categoryForgotten;
-
- public static RecipeAncientAlphirine lebethroneRecipe;
- public static RecipeAncientAlphirine forgottenLandRecipe;
- public static RecipeAncientAlphirine advancedSparkRecipe;
- public static RecipeAncientAlphirine manaFlowerRecipe;
- public static RecipeAncientAlphirine hopperRecipe;
-
- public static RecipeAdvancedPlate manaStarRecipe;
- public static RecipeAdvancedPlate terrasteelRecipe;
- public static RecipeAdvancedPlate mithrillRecipe;
- public static RecipeAdvancedPlate nebulaRecipe;
-
- public static RecipePetals alphirineRecipe;
- public static RecipePetals dictariusRecipe;
- public static RecipePetals aspecolusRecipe;
- public static RecipePetals pureGladRecipe;
-
- public static LexiconEntry advandedAgglomerationPlate;
- public static LexiconEntry ancientAlphirine;
- public static LexiconEntry lebethronWood;
- public static LexiconEntry lebethronSpreader;
- public static LexiconEntry mithrill;
- public static LexiconEntry manaContainer;
- public static LexiconEntry manaCrystalCube;
- public static LexiconEntry terraHoe;
- public static LexiconEntry manaRings;
- public static LexiconEntry manaFlower;
- public static LexiconEntry mithrillSword;
- public static LexiconEntry nebula;
- public static LexiconEntry blackHalo;
- public static LexiconEntry antigravityCharm;
- public static LexiconEntry nebulaBlaze;
- public static LexiconEntry aspecolus;
- public static LexiconEntry dictarius;
- public static LexiconEntry manaCharger;
- public static LexiconEntry nebulaArmor;
- public static LexiconEntry freyrSlingshot;
- public static LexiconEntry engineerHopper;
- public static LexiconEntry nebulaRod;
- public static LexiconEntry thaumAutoCraft;
- public static LexiconEntry gladious;
-
- public static KnowledgeType forgotten;
-
- public static void init() {
-
- BotaniaAPI.addCategory(categoryForgotten = new BLexiconCategory("forgotten", 5));
- forgotten = BotaniaAPI.registerKnowledgeType("ab_forgotten", EnumChatFormatting.BLUE, false);
-
- lebethroneRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(BlockListAB.blockLebethron), new ItemStack(ModBlocks.dreamwood, 1, 0), 15);
- forgottenLandRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(ItemListAB.itemABResource, 1, 3), new ItemStack(ModItems.manaResource, 1, 15), 75);
- advancedSparkRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(ItemListAB.itemAdvancedSpark), new ItemStack(ModItems.spark), 11);
- manaFlowerRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(ItemListAB.itemABResource, 1, 4), new ItemStack(ModBlocks.flower, 1, 32767), 32);
- hopperRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(BlockListAB.blockEngineerHopper), new ItemStack(Blocks.hopper), 23);
-
- mithrillRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ItemListAB.itemABResource, 1, 0), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModBlocks.storage, 1, 0), new ItemStack(ModItems.manaResource, 1, 18), 7500000, 0x25d6b7);
- terrasteelRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ModItems.manaResource, 1, 4), new ItemStack(ModItems.manaResource, 1, 2), new ItemStack(ModItems.manaResource, 1, 0), new ItemStack(ModItems.manaResource, 1, 1), 500000, 0x29de20);
- manaStarRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ItemListAB.itemABResource, 1, 2), new ItemStack(ModItems.manaResource, 1, 23), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(Items.nether_star), 250000, 0x6bc9ec);
- nebulaRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ItemListAB.itemABResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 8), new ItemStack(ModBlocks.storage, 1, 4), new ItemStack(ItemListAB.itemABResource, 1, 1), 50000000, 0x8d16e0);
-
- ancientAlphirine = new BLexiconEntry("ancientAlphirine", categoryForgotten);
- alphirineRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("ancientAlphirine"), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.rune, 1, 8), new ItemStack(ModItems.rune, 1, 4), new ItemStack(ModItems.rune, 1, 5), new ItemStack(ModItems.rune, 1, 6), new ItemStack(ModItems.rune, 1, 7), new ItemStack(ModItems.petal, 1, 1), new ItemStack(ModItems.petal, 1, 4));
- ancientAlphirine.setPriority().setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), new PageText("1"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", alphirineRecipe), new AlphirineCraftPage(ancientAlphirine, forgottenLandRecipe.getOutput(), ".alphirineCraft") }).setIcon(ItemBlockSpecialFlower.ofType("ancientAlphirine"));
-
- if(ConfigABHandler.hasAbPlate) {
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockABPlate), new Object[] { " ", "MPM", "BRB", Character.valueOf('M'), new ItemStack(ModBlocks.storage), Character.valueOf('P'), new ItemStack(ModBlocks.terraPlate), Character.valueOf('B'), new ItemStack(ItemListAB.itemABResource, 1, 3), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 3)});
- advandedAgglomerationPlate = new BLexiconEntry("advancedPlate", categoryForgotten);
- advandedAgglomerationPlate.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] {new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()), BotaniaAPI.internalHandler.multiblockPage(".structure", TileAgglomerationPlate.makeMultiblockSet()), new AdvancedPlateCraftPage(advandedAgglomerationPlate, terrasteelRecipe.getOutput(), ".abCraft0"), new AdvancedPlateCraftPage(advandedAgglomerationPlate, manaStarRecipe.getOutput(), ".abCraft1") }).setIcon(new ItemStack(BlockListAB.blockABPlate));
- }
-
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockABSpreader), new Object[] { "WMW", "PSP", "WMW", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource, 1, 2), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('S'), new ItemStack(ModBlocks.spreader, 1, 3), Character.valueOf('W'), new ItemStack(BlockListAB.blockLebethron, 1, 4)});
- lebethronSpreader = new BLexiconEntry("lebethronSpreader", categoryForgotten);
- lebethronSpreader.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(BlockListAB.blockABSpreader));
-
- addShapelessOreDictRecipe(new ItemStack(BlockListAB.blockLebethron, 4, 1), new Object[] { new ItemStack(BlockListAB.blockLebethron)});
- IRecipe leb1 = getLastRecipe();
- addShapelessOreDictRecipe(new ItemStack(BlockListAB.blockLebethron, 1, 2), new Object[] { new ItemStack(BlockListAB.blockLebethron, 1, 1), new ItemStack(Items.wheat_seeds)});
- IRecipe leb2 = getLastRecipe();
- addShapelessOreDictRecipe(new ItemStack(BlockListAB.blockLebethron, 1, 3), new Object[] { new ItemStack(BlockListAB.blockLebethron), new ItemStack(Items.glowstone_dust)});
- IRecipe leb3 = getLastRecipe();
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockLebethron, 1, 4), new Object[] { "4W5", "WPW", "6W7", Character.valueOf('P'), new ItemStack(ModBlocks.pylon, 1, 1), Character.valueOf('W'), new ItemStack(BlockListAB.blockLebethron), Character.valueOf('4'), new ItemStack(ModItems.rune, 1, 4), Character.valueOf('5'), new ItemStack(ModItems.rune, 1, 5), Character.valueOf('6'), new ItemStack(ModItems.rune, 1, 6), Character.valueOf('7'), new ItemStack(ModItems.rune, 1, 7)});
- IRecipe leb4 = getLastRecipe();
- lebethronWood = new BLexiconEntry("lebethronWood", categoryForgotten);
- lebethronWood.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AlphirineCraftPage(lebethronWood, lebethroneRecipe.getOutput(), ".alphirineCraft"), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb1), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb2), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb3), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb4), new PageText("1"), BotaniaAPI.internalHandler.multiblockPage(".structure", TileLebethronCore.makeMultiblockSet()) }).setIcon(new ItemStack(BlockListAB.blockLebethron));
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemMihrillMultiTool), new Object[] { " MB", " FM", "F ", Character.valueOf('F'), new ItemStack(ModItems.manaResource, 1, 3), Character.valueOf('B'), new ItemStack(ModBlocks.livingwood), Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource)});
- mithrill = new BLexiconEntry("mithrill", categoryForgotten);
- mithrill.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AdvancedPlateCraftPage(mithrill, mithrillRecipe.getOutput(), ".abCraft"), new PageText("1"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(ItemListAB.itemMihrillMultiTool));
- if(!ConfigABHandler.hasAbPlate)
- mithrill.pages.remove(1);
-
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaContainer), new Object[] { "MGM", "LPL", "M3M", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('L'), new ItemStack(ModBlocks.pool), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('3'), new ItemStack(ModItems.rune, 1, 3), Character.valueOf('G'), new ItemStack(ModItems.rune, 1, 15)});
- IRecipe cont1 = getLastRecipe();
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaContainer, 1, 1), new Object[] { "MGM", "LPL", "M3M", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource, 1, 1), Character.valueOf('L'), new ItemStack(ModBlocks.pool, 1, 2), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('3'), new ItemStack(ModItems.rune, 1, 3), Character.valueOf('G'), new ItemStack(ModItems.rune, 1, 15)});
- IRecipe cont2 = getLastRecipe();
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaContainer, 1, 2), new Object[] { "MGM", "LPL", "M3M", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('L'), new ItemStack(ModBlocks.pool, 1, 3), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('3'), new ItemStack(ModItems.rune, 1, 3), Character.valueOf('G'), new ItemStack(ModItems.rune, 1, 15)});
- IRecipe cont3 = getLastRecipe();
- manaContainer = new BLexiconEntry("manaContainer", categoryForgotten);
- manaContainer.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", cont1), BotaniaAPI.internalHandler.craftingRecipePage(".craft1", cont2), BotaniaAPI.internalHandler.craftingRecipePage(".craft2", cont3), new PageText("1"), new AlphirineCraftPage(manaContainer, advancedSparkRecipe.getOutput(), ".alphirineCraft") }).setIcon(new ItemStack(BlockListAB.blockManaContainer));
-
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaCrystalCube), new Object[] { "TST", "GWG", "DMD", Character.valueOf('D'), new ItemStack(ModBlocks.dreamwood), Character.valueOf('W'), new ItemStack(ModItems.twigWand, 1, 32767), Character.valueOf('G'), new ItemStack(ModBlocks.manaGlass), Character.valueOf('M'), new ItemStack(ModItems.manaResource), Character.valueOf('T'), new ItemStack(ModItems.manaResource, 1, 18), Character.valueOf('S'), new ItemStack(ModItems.spark)});
- manaCrystalCube = new BLexiconEntry("manaCrystalCube", BotaniaAPI.categoryMana);
- manaCrystalCube.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(BlockListAB.blockManaCrystalCube));
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemTerraHoe), new Object[] { "TTL", "RW ", " W ", Character.valueOf('T'), new ItemStack(ModItems.manaResource, 1, 4), Character.valueOf('L'), new ItemStack(ModItems.manaResource, 1, 18), Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 3), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 2)});
- terraHoe = new BLexiconEntry("terraHoe", BotaniaAPI.categoryTools);
- terraHoe.setLexiconPages(new LexiconPage[]{ new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(ItemListAB.itemTerraHoe));
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemMithrillRing), new Object[] { "LML", "MRM", "LML", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('L'), new ItemStack(ItemListAB.itemABResource, 1, 1), Character.valueOf('R'), new ItemStack(ModItems.manaRingGreater)});
- IRecipe ring1 = getLastRecipe();
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaRing), new Object[] { "LML", "MRM", "LML", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource, 1, 6), Character.valueOf('L'), new ItemStack(ModItems.manaResource, 1, 5), Character.valueOf('R'), new ItemStack(ItemListAB.itemMithrillRing)});
- IRecipe ring2 = getLastRecipe();
- manaRings = new BLexiconEntry("manaRings", categoryForgotten);
- manaRings.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[]{ new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", ring1), BotaniaAPI.internalHandler.craftingRecipePage(".craft1", ring2)}).setIcon(new ItemStack(ItemListAB.itemMithrillRing));
- AdvancedBotanyAPI.registerFarmlandSeed(Blocks.nether_wart, 3);
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemManaFlower), new Object[] { " F ", " M ", " R ", Character.valueOf('F'), new ItemStack(ItemListAB.itemABResource, 1, 4), Character.valueOf('M'), new ItemStack(ModItems.manaBottle), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 8)});
- manaFlower = new BLexiconEntry("manaFlower", categoryForgotten);
- manaFlower.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AlphirineCraftPage(manaFlower, manaFlowerRecipe.getOutput(), ".alphirineCraft"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())}).setIcon(new ItemStack(ItemListAB.itemManaFlower));
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemMithrillSword), new Object[] { " M", "SM ", "WS ", Character.valueOf('S'), new ItemStack(ItemListAB.itemABResource, 1, 6), Character.valueOf('T'), new ItemStack(ModItems.terraSword), Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 3)});
- mithrillSword = new BLexiconEntry("mithrillSword", categoryForgotten);
- mithrillSword.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(ItemListAB.itemMithrillSword));
-
- dictariusRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("dictarius"), new ItemStack(ItemListAB.itemABResource, 1, 4), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.rune, 1, 15), new ItemStack(ModItems.petal, 1, 4), new ItemStack(ModItems.petal, 1, 4), new ItemStack(ModItems.petal, 1, 1));
- dictarius = new BLexiconEntry("dictarius", BotaniaAPI.categoryGenerationFlowers);
- dictarius.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", dictariusRecipe)});
-
- nebula = new BLexiconEntry("nebula", categoryForgotten);
- nebula.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AdvancedPlateCraftPage(nebula, nebulaRecipe.getOutput(), ".abCraft")});
- if(!ConfigABHandler.hasAbPlate)
- nebula.pages.remove(1);
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemBlackHalo), new Object[] { " E ", "DHD", " E ", Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.autocraftingHalo), Character.valueOf('D'), new ItemStack(ModItems.blackHoleTalisman)});
- blackHalo = new BLexiconEntry("blackHalo", BotaniaAPI.categoryTools);
- blackHalo.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemAntigravityCharm), new Object[] { " G ", "GDG", "ERE", Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('G'), new ItemStack(ModBlocks.elfGlass), Character.valueOf('D'), new ItemStack(ModBlocks.floatingFlower, 1, 32767), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 3)});
- antigravityCharm = new BLexiconEntry("antigravityCharm", BotaniaAPI.categoryTools);
- antigravityCharm.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())}).setIcon(new ItemStack(ItemListAB.itemAntigravityCharm));
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaBlaze), new Object[] { " N ", "MMN", "AMN", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 6), Character.valueOf('A'), new ItemStack(ItemListAB.itemABResource, 1, 3), Character.valueOf('M'), new ItemStack(ModBlocks.storage)});
- nebulaBlaze = new BLexiconEntry("nebulaBlaze", categoryForgotten);
- nebulaBlaze.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
-
- if(ConfigABHandler.hasManaCharger) {
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaCharger), new Object[] { "NLN", "MPM", " R ", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 1), Character.valueOf('L'), new ItemStack(ModBlocks.livingrock), Character.valueOf('M'), new ItemStack(ModBlocks.bellows), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 8)});
- manaCharger = new BLexiconEntry("manaCharger", categoryForgotten);
- manaCharger.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
- }
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaHelm), new Object[] { "RNR", "NHN", " E ", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelHelm), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8)});
- IRecipe nHelm = getLastRecipe();
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaChest), new Object[] { "RTR", "NHN", "ENE", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelChest), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8), Character.valueOf('T'), new ItemStack(ModItems.flightTiara, 1, 32767)});
- IRecipe nChest = getLastRecipe();
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaLegs), new Object[] { "ENE", "RHR", "NAN", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelLegs), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8), Character.valueOf('A'), new ItemStack(ItemListAB.itemABResource, 1, 3)});
- IRecipe nLegs = getLastRecipe();
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaBoots), new Object[] { "RBR", "NHN", " E ", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelBoots), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8), Character.valueOf('B'), new ItemStack(ModItems.speedUpBelt)});
- IRecipe nBoots = getLastRecipe();
- nebulaArmor = new BLexiconEntry("nebulaArmor", categoryForgotten);
- nebulaArmor.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new PageText("1"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", nHelm), BotaniaAPI.internalHandler.craftingRecipePage(".craft", nChest), BotaniaAPI.internalHandler.craftingRecipePage(".craft", nLegs), BotaniaAPI.internalHandler.craftingRecipePage(".craft", nBoots)});
-
- freyrSlingshot = new RLexiconEntry("freyrSlingshot", BotaniaAPI.categoryAlfhomancy, AchievementRegister.relicSlingshot);
- freyrSlingshot.setLexiconPages(new LexiconPage[] { new PageText("0")});
-
- engineerHopper = new BLexiconEntry("engineerHopper", categoryForgotten);
- engineerHopper.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AlphirineCraftPage(engineerHopper, hopperRecipe.getOutput(), ".alphirineCraft")});
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaRod), new Object[] { " WN", " RW", "W ", Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 13), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 8), Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 6)});
- nebulaRod = new BLexiconEntry("nebulaRod", categoryForgotten);
- nebulaRod.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
-
- if(Botania.thaumcraftLoaded)
- thaumcraft();
-
- addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemABResource, 9, 1), new Object[] { new ItemStack(ItemListAB.itemABResource)});
- addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemABResource, 9, 0), new Object[] { new ItemStack(BlockListAB.blockABStorage)});
- addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemABResource, 9, 6), new Object[] { new ItemStack(ItemListAB.itemABResource, 1, 5)});
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockABStorage), new Object[] { "III", "III", "III", Character.valueOf('I'), new ItemStack(ItemListAB.itemABResource)});
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemABResource, 1, 5), new Object[] { "III", "III", "III", Character.valueOf('I'), new ItemStack(ItemListAB.itemABResource, 1, 6)});
- }
-
- public static void thaumcraft() {
- aspecolus = new BLexiconEntry("aspecolus", BotaniaAPI.categoryFunctionalFlowers);
- aspecolusRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("aspecolus"), new ItemStack(ModItems.manaResource, 1, 6), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.rune, 1, 1), new ItemStack(ModItems.rune), new ItemStack(ItemListAB.itemABResource, 1, 2), new ItemStack(ModItems.petal, 1, 10), new ItemStack(ModItems.petal, 1, 13));
- aspecolus.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", aspecolusRecipe) }).setIcon(ItemBlockSpecialFlower.ofType("aspecolus"));
- addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemNebulaHelmReveal), new Object[] { new ItemStack(ItemListAB.itemNebulaHelm), new ItemStack(ConfigItems.itemGoggles)});
- List recipes = new ArrayList();
- for(int i = 1; i < 10; i++) {
- boolean[][] patterns = ItemCraftingPattern.getPattern(i);
- List str = new ArrayList();
- for(int j = 0; j < patterns.length; j++) {
- String str1 = "";
- for(int k = 0; k < patterns[j].length; k++)
- str1 += patterns[j][k] ? "T" : "H";
- str.add(str1);
- }
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemCraftingPattern, 1, i), new Object[] { str.get(0), str.get(1), str.get(2), Character.valueOf('T'), new ItemStack(ItemListAB.itemCraftingPattern), Character.valueOf('H'), new ItemStack(ConfigItems.itemNugget, 1, 6)});
- recipes.add(getLastRecipe());
- }
- IRecipe crate = GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockMagicCraftCrate), new Object[] { "TST", "WCW", "W W", Character.valueOf('W'), new ItemStack(ConfigBlocks.blockMagicalLog), Character.valueOf('S'), new ItemStack(ConfigItems.itemResource, 1, 14), Character.valueOf('T'), new ItemStack(ConfigItems.itemResource, 1, 7), Character.valueOf('C'), new ItemStack(ModBlocks.openCrate, 1, 1)});
- addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemCraftingPattern, 48), new Object[] { new ItemStack(Blocks.crafting_table), new ItemStack(ModBlocks.livingrock), new ItemStack(ConfigItems.itemResource, 1, 14)});
- thaumAutoCraft = new BLexiconEntry("thaumAutoCraft", BotaniaAPI.categoryDevices);
- thaumAutoCraft.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", crate) , BotaniaAPI.internalHandler.craftingRecipePage(".craft0", getLastRecipe()), BotaniaAPI.internalHandler.craftingRecipesPage(".craft1", recipes)});
-
- pureGladRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("pureGladiolus"), new ItemStack(ItemListAB.itemABResource, 1, 4), new ItemStack(ModItems.rune, 1, 8), new ItemStack(ModItems.petal, 1, 8), new ItemStack(ModItems.petal, 1, 4), new ItemStack(ModItems.petal, 1, 14), new ItemStack(ModItems.petal, 1, 5), new ItemStack(ModItems.petal, 1, 13), new ItemStack(ModItems.petal, 1, 11));
- gladious = new BLexiconEntry("gladious", BotaniaAPI.categoryFunctionalFlowers);
- gladious.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", pureGladRecipe)});
- }
-
- private static IRecipe getLastRecipe() {
- return (IRecipe)CraftingManager.getInstance().getRecipeList().get(CraftingManager.getInstance().getRecipeList().size() - 1);
- }
-
- private static void addOreDictRecipe(ItemStack output, Object... recipe) {
- CraftingManager.getInstance().getRecipeList().add(new ShapedOreRecipe(output, recipe));
- }
-
- private static void addShapelessOreDictRecipe(ItemStack output, Object... recipe) {
- CraftingManager.getInstance().getRecipeList().add(new ShapelessOreRecipe(output, recipe));
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/58/9073148beeac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/58/9073148beeac001c1d59e42be7477558
deleted file mode 100644
index 4bba078..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/58/9073148beeac001c1d59e42be7477558
+++ /dev/null
@@ -1,197 +0,0 @@
-package ab.common.block.tile;
-
-import java.util.List;
-
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.ChatComponentTranslation;
-import net.minecraft.util.ChatStyle;
-import net.minecraft.util.EnumChatFormatting;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.common.block.tile.TileMod;
-
-public class TileGameBoard extends TileMod {
-
- public String[] playersName = new String[] { "", "" };
- public byte[] slotChance = new byte[] { 0, 0, 0, 0 };
- protected int botTick = -1;
- public int endGameTick = -1;
- protected boolean requestUpdate;
- public boolean isSingleGame = false;
- public int clientTick[] = new int[] { 0, 0, 0, 0};
-
- public void updateEntity() {
- if(botTick > 0)
- botTick--;
- if(endGameTick > 0)
- endGameTick--;
- if(!worldObj.isRemote)
- updateServer();
- else
- updateClient();
- }
-
- protected void updateClient() {
- for(int i = 0; i < slotChance.length; i++)
- if(slotChance[i] > 0)
- clientTick[i]++;
- else
- clientTick[i] = 0;
- }
-
- protected void updateServer() {
- if(requestUpdate)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- boolean hasUpdate = false;
- if(isSingleGame && botTick == 0 && hasGame()) {
- for(int i = 2; i < 4; i++) {
- if(slotChance[i] == 0) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = -1;
- hasUpdate = true;
- break;
- }
- }
- }
- if(hasGame() && endGameTick == 0)
- finishGame();
- requestUpdate = hasUpdate;
- }
-
- public void setPlayer(EntityPlayer player) {
- if(isSingleGame) {
- playersName[0] = player.getCommandSenderName();
- playersName[1] = "";
- requestUpdate = true;
- botTick = 8;
- } else {
- if(playersName[0].isEmpty())
- playersName[0] = player.getCommandSenderName();
- else if(!playersName[0].equals(player.getCommandSenderName()))
- playersName[1] = player.getCommandSenderName();
- requestUpdate = true;
- }
- }
-
- public boolean dropDice(EntityPlayer player) {
- if(isSingleGame) {
- if(player.getCommandSenderName().equals(playersName[0]) && botTick == -1) {
- boolean isLastDice = false;
- for(int i = 0; i < 2; i++) {
- if(slotChance[i] == 0 && !worldObj.isRemote) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = 18;
- requestUpdate = true;
- if(i == 1)
- isLastDice = true;
- break;
- }
- }
- if(isLastDice)
- endGameTick = 28;
- return true;
- }
- } else {
- for(int i = 0; i < playersName.length; i++) {
- if(player.getCommandSenderName().equals(playersName[i])) {
- for(int j = i * 2; j < (i + 1) * 2; j++) {
- if(slotChance[j] == 0 && !worldObj.isRemote) {
- slotChance[j] = (byte)(worldObj.rand.nextInt(6) + 1);
- requestUpdate = true;
- if(hasFullDice())
- endGameTick = 28;
- break;
- }
- }
- return true;
- }
- }
- }
- return false;
- }
-
- public boolean hasFullDice() {
- boolean hasFull = false;
- for(int i = 0; i < slotChance.length; i++) {
- if(!(slotChance[i] > 0))
- return false;
- hasFull = slotChance[i] > 0;
- }
- return hasFull;
- }
-
- public boolean hasGame() {
- if(isSingleGame)
- return !playersName[0].isEmpty();
- else
- for(int i = 0; i < playersName.length; i++)
- if(!playersName[i].isEmpty())
- return true;
- return false;
- }
-
- public void finishGame() {
- if(worldObj.isRemote)
- return;
- if(isSingleGame) {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won");
- else if((slotChance[0] + slotChance[1]) == (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " not win");
- else
- sendNearMessage(playersName[0] + " you Lose!");
- resetGame();
- } else {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won!");
- else if((slotChance[0] + slotChance[1]) == (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " " + playersName[1] + "we are not win");
- else
- sendNearMessage(playersName[1] + " you Won!");
- resetGame();
- }
- }
-
- public void sendNearMessage(String text) {
- List players = this.worldObj.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(this.xCoord, this.yCoord, this.zCoord, (this.xCoord + 1), (this.yCoord + 1), (this.zCoord + 1)).expand(3.5f, 3.5f, 3.5f));
- for(EntityPlayer player : players) {
- if(player != null)
- player.addChatMessage((new ChatComponentTranslation(text, new Object[] {})).setChatStyle((new ChatStyle()).setColor(EnumChatFormatting.DARK_GREEN)));
- }
- }
-
- public void resetGame() {
- playersName[0] = "";
- playersName[1] = "";
- for(int i = 0; i < slotChance.length; i++)
- slotChance[i] = 0;
- requestUpdate = true;
- botTick = -1;
- endGameTick = -1;
- }
-
- public void writeCustomNBT(NBTTagCompound cmp) {
- super.writeCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- cmp.setString("playerName" + i, playersName[i]);
- cmp.setByteArray("slotChance", slotChance);
- cmp.setInteger("botTick", botTick);
- cmp.setInteger("endGameTick", endGameTick);
- cmp.setBoolean("requestUpdate", requestUpdate);
- cmp.setBoolean("isSingleGame", isSingleGame);
- }
-
- public void readCustomNBT(NBTTagCompound cmp) {
- super.readCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- playersName[i] = cmp.getString("playerName" + i);
- botTick = cmp.getInteger("botTick");
- endGameTick = cmp.getInteger("endGameTick");
- slotChance = cmp.getByteArray("slotChance");
- requestUpdate = cmp.getBoolean("requestUpdate");
- isSingleGame = cmp.getBoolean("isSingleGame");
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/58/c049dda02fbe001c1965b122d2f8f403 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/58/c049dda02fbe001c1965b122d2f8f403
new file mode 100644
index 0000000..f58ba66
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/58/c049dda02fbe001c1965b122d2f8f403
@@ -0,0 +1,159 @@
+package ab.common.item.relic;
+
+import java.awt.Color;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.common.core.handler.NetworkHandler;
+import ab.common.lib.register.ItemListAB;
+import net.minecraft.block.Block;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.util.MathHelper;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.api.mana.ManaItemHandler;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class ItemSphereNavigation extends ItemModRelic {
+
+ public static final int rangeSearch = 17;
+ public static final int maxCooldown = 112;
+ public static final int manaCost = 1750;
+
+ public ItemSphereNavigation() {
+ super("sphereNavigation");
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int pos, boolean equipped) {
+ super.onUpdate(stack, world, entity, pos, equipped);
+ if(entity instanceof EntityPlayer) {
+ EntityPlayer player = (EntityPlayer)entity;
+ if(!world.isRemote && getFindBlock(stack) != null && canWork(stack) && ManaItemHandler.requestManaExactForTool(stack, player, manaCost, true)) {
+ setMaxTick(stack);
+ NetworkHandler.sendPacketToFindBlocks((EntityPlayerMP)player, getFindBlock(stack), getFindMeta(stack));
+ }
+ }
+ }
+
+ public static void findBlocks(World world, Block findBlock, int findMeta, EntityPlayer player) {
+ if(world.isRemote) {
+ ItemStack renderStack = null;
+ int findedBlocks = 0;
+ label1703:
+ for(int x = -rangeSearch; x < rangeSearch; x++) {
+ if(world.rand.nextBoolean())
+ continue;
+ for(int y = -rangeSearch * 4; y < rangeSearch; y++) {
+ if(world.rand.nextBoolean())
+ continue;
+ for(int z = -rangeSearch; z < rangeSearch; z++) {
+ if(world.rand.nextBoolean())
+ continue;
+ else if(findedBlocks > 24)
+ break label1703;
+ int posX = MathHelper.floor_double(player.posX) + x;
+ int posY = MathHelper.floor_double(player.posY) + y;
+ int posZ = MathHelper.floor_double(player.posZ) + z;
+ if(posY < 0)
+ continue;
+ Block block = world.getBlock(posX, posY, posZ);
+ if(!Block.isEqualTo(block, findBlock))
+ continue;
+ int meta = world.getBlockMetadata(posX, posY, posZ);
+ if(meta == findMeta) {
+ if(renderStack == null)
+ renderStack = getRenderStackForBlock(world, block, meta, posX, posY, posZ);
+ findedBlocks++;
+ float maxAge = 2.7f + (0.5f * (float)(Math.random()));
+ Botania.proxy.setWispFXDepthTest(false);
+ Botania.proxy.setWispFXDistanceLimit(false);
+ float far = 120.0f - (((Math.abs(x) + Math.min(rangeSearch * 2.0f, Math.abs(y)) + Math.abs(z)) / (rangeSearch * 4.0f)) * 120.0f);
+ if(far <= 60)
+ far *= 0.15f;
+ Color color = new Color(Color.HSBtoRGB(far / 360.0f, 0.9f + (float)(Math.random() * 0.1f), 1.0f));
+ for(int i = 0; i < 11; i++)
+ Botania.proxy.wispFX(world, posX + 0.5f + (Math.random() - 0.5f), posY + 0.5f + (Math.random() - 0.5f), posZ + 0.5f + (Math.random() - 0.5f), color.getRed() / 100.0f, color.getGreen() / 100.0f, color.getBlue() / 100.0f, 0.3f + (float)(Math.random() * 0.25f), 0.0f, maxAge);
+ Botania.proxy.setWispFXDistanceLimit(true);
+ Botania.proxy.setWispFXDepthTest(true);
+ }
+ }
+ }
+ }
+ if(renderStack != null)
+ ItemsRemainingRender.set(renderStack, "íàéäåíî: " + findedBlocks);
+ }
+ }
+
+ public static ItemStack getRenderStackForBlock(World world, Block block, int meta, int x, int y, int z) {
+ if(block != null) {
+ Item item = Item.getItemFromBlock(block);
+ if(item != null) {
+ ItemStack findStack = new ItemStack(block, 1, meta);
+ if(findStack != null)
+ return findStack;
+ } else {
+ Item item1 = block.getItem(world, x, y, z);
+ if(item1 != null) {
+ ItemStack findStack = new ItemStack(item1, 1, meta);
+ if(findStack != null)
+ return findStack;
+ }
+ }
+ }
+ return null;
+ }
+
+ public boolean onItemUse(ItemStack stack, EntityPlayer p, World world, int x, int y, int z, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
+ if(p.isSneaking()) {
+ Block block = world.getBlock(x, y, z);
+ if(block != null) {
+ int meta = world.getBlockMetadata(x, y, z);
+ ItemStack findStack = getRenderStackForBlock(world, block, meta, x, y, z);
+ if(findStack != null) {
+ setFindBlock(stack, block, meta);
+ if(world.isRemote)
+ ItemsRemainingRender.set(findStack, findStack.getDisplayName());
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public boolean canWork(ItemStack stack) {
+ int tick = ItemNBTHelper.getInt(stack, "cooldown", 12);
+ if(tick == 0)
+ return true;
+ else if(tick > 0)
+ ItemNBTHelper.setInt(stack, "cooldown", tick - 1);
+ return false;
+ }
+
+ public void setMaxTick(ItemStack stack) {
+ ItemNBTHelper.setInt(stack, "cooldown", maxCooldown);
+ }
+
+ public static void setFindBlock(ItemStack stack, Block block, int meta) {
+ ItemNBTHelper.setInt(stack, "findBlockID", Block.getIdFromBlock(block));
+ ItemNBTHelper.setInt(stack, "findBlockMeta", meta);
+ }
+
+ public static Block getFindBlock(ItemStack stack) {
+ int blockID = ItemNBTHelper.getInt(stack, "findBlockID", 0);
+ if(blockID == 0)
+ return null;
+ else
+ return Block.getBlockById(blockID);
+ }
+
+ public static int getFindMeta(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "findBlockMeta", -1);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/59/80cf11078dc1001c11e398ea97007cb4 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/59/80cf11078dc1001c11e398ea97007cb4
new file mode 100644
index 0000000..699c02c
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/59/80cf11078dc1001c11e398ea97007cb4
@@ -0,0 +1,332 @@
+package ab.common.block.tile;
+
+import java.util.List;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.api.IBoundRender;
+import ab.client.core.ClientHelper;
+import net.minecraft.block.Block;
+import net.minecraft.block.BlockChest;
+import net.minecraft.block.BlockHopper;
+import net.minecraft.client.Minecraft;
+import net.minecraft.client.gui.Gui;
+import net.minecraft.client.gui.ScaledResolution;
+import net.minecraft.client.renderer.RenderHelper;
+import net.minecraft.client.renderer.entity.RenderItem;
+import net.minecraft.command.IEntitySelector;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.init.Blocks;
+import net.minecraft.inventory.IInventory;
+import net.minecraft.inventory.ISidedInventory;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.tileentity.IHopper;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.tileentity.TileEntityChest;
+import net.minecraft.tileentity.TileEntityHopper;
+import net.minecraft.util.AxisAlignedBB;
+import net.minecraft.util.ChunkCoordinates;
+import net.minecraft.util.Facing;
+import net.minecraft.util.MathHelper;
+import net.minecraft.util.MovingObjectPosition;
+import net.minecraft.world.World;
+import net.minecraftforge.common.util.ForgeDirection;
+import vazkii.botania.api.wand.IWandBindable;
+import vazkii.botania.client.core.handler.HUDHandler;
+import vazkii.botania.common.core.helper.Vector3;
+import vazkii.botania.common.item.ModItems;
+
+public class TileEngineerHopper extends TileInventory implements IHopper, IBoundRender {
+
+ private int cooldown;
+ private int[] invPosX = new int[] {0, 0};
+ private int[] invPosY = new int[] {-1, -1};
+ private int[] invPosZ = new int[] {0, 0};
+ private int[] invSide = new int[] {-1, -1};
+ private boolean bindType;
+ public int redstoneSignal = 0;
+
+ public void updateEntity() {
+ this.redstoneSignal = 0;
+ for(ForgeDirection dir : ForgeDirection.VALID_DIRECTIONS) {
+ int redstoneSide = getWorldObj().getIndirectPowerLevelTo(xCoord + dir.offsetX, yCoord + dir.offsetY, zCoord + dir.offsetZ, dir.ordinal());
+ this.redstoneSignal = Math.max(this.redstoneSignal, redstoneSide);
+ }
+ if(redstoneSignal > 0)
+ return;
+ else if(this.worldObj != null) {
+ if(!this.worldObj.isRemote) {
+ if(cooldown > 0)
+ --cooldown;
+ else if(cooldown == 0) {
+ if(worldObj != null && !worldObj.isRemote) {
+ boolean hasUpdate = false;
+ ItemStack stack = getStackInSlot(0);
+ if(stack != null)
+ hasUpdate = canExtractStack();
+ if(stack == null || stack.stackSize != stack.getMaxStackSize())
+ hasUpdate = canInsertStack() || hasUpdate;
+ if(hasUpdate)
+ this.cooldown = 8;
+ this.markDirty();
+ }
+ }
+ }
+ }
+ }
+
+ public boolean bindTo(EntityPlayer player, ItemStack wand, int x, int y, int z, int side) {
+ TileEntity tile = player.getEntityWorld().getTileEntity(x, y, z);
+ boolean isFar = Math.abs(this.xCoord - x) >= 10 || Math.abs(this.yCoord - y) >= 10 || Math.abs(this.zCoord - z) >= 10;
+ if(isFar)
+ return false;
+ int invCount = bindType ? 0 : 1;
+ if(tile instanceof TileEngineerHopper)
+ return false;
+ else if(tile != null && tile instanceof IInventory) {
+ setDistantInventory(invCount, x, y, z);
+ invSide[invCount] = side;
+ return true;
+ } else {
+ setDistantInventory(invCount, 0, -1, 0);
+ invSide[invCount] = -1;
+ return false;
+ }
+ }
+
+ public void changeBindType() {
+ bindType = !bindType;
+ }
+
+ public void setDistantInventory(int count, int posX, int posY, int posZ) {
+ invPosX[count] = posX;
+ invPosY[count] = posY;
+ invPosZ[count] = posZ;
+ }
+
+ public IInventory getDistantInventory(int count) {
+ IInventory inv = TileEntityHopper.func_145893_b(this.getWorldObj(), invPosX[count], invPosY[count], invPosZ[count]);
+ if(inv == null)
+ setDistantInventory(count, 0, -1, 0);
+ return inv;
+ }
+
+ public boolean canSelect(EntityPlayer player, ItemStack wand, int x, int y, int z, int side) {
+ return true;
+ }
+
+ public ChunkCoordinates[] getBlocksCoord() {
+ return new ChunkCoordinates[] { new ChunkCoordinates(invPosX[0], invPosY[0], invPosZ[0]), new ChunkCoordinates(invPosX[1], invPosY[1], invPosZ[1]) };
+ }
+
+ public ChunkCoordinates getBinding() {
+ return null;
+ }
+
+ public void renderHUD(Minecraft mc, ScaledResolution res) {
+ int x = res.getScaledWidth() / 2 - 7;
+ int y = res.getScaledHeight() / 2 + 16;
+ GL11.glEnable(3042);
+ GL11.glBlendFunc(770, 771);
+ ClientHelper.drawArrow(x - 2, y, false);
+ for(int i = 0; i < 2; i++) {
+ ItemStack stack = null;
+ boolean hasInv = false;
+ int posX = x + (i == 0 ? 32 : -32);
+ if(getDistantInventory(i) != null && (TileEntity)getDistantInventory(i) != null) {
+ TileEntity tile = (TileEntity)getDistantInventory(i);
+ Block block = tile.getWorldObj().getBlock(tile.xCoord, tile.yCoord, tile.zCoord);
+ int meta = tile.getWorldObj().getBlockMetadata(tile.xCoord, tile.yCoord, tile.zCoord);
+ stack = new ItemStack(block, 1, meta);
+ hasInv = true;
+ }
+ Gui.drawRect(posX - 4, y - 4, posX + 20, y + 20, 1140850688);
+ Gui.drawRect(posX - 2, y - 2, posX + 18, y + 18, 1140850688);
+ if(stack != null) {
+ RenderHelper.enableGUIStandardItemLighting();
+ GL11.glEnable(32826);
+ RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, stack, posX, y);
+ RenderHelper.disableStandardItemLighting();
+ GL11.glDisable(2929);
+ }
+ int invCount = bindType ? 0 : 1;
+ if(invCount == i) {
+ GL11.glTranslatef(0.0f, 0.0f, 300.0f);
+ RenderHelper.enableGUIStandardItemLighting();
+ GL11.glEnable(32826);
+ RenderItem.getInstance().renderItemIntoGUI(mc.fontRenderer, mc.renderEngine, new ItemStack(ModItems.twigWand), posX + 10, y + 7);
+ RenderHelper.disableStandardItemLighting();
+ GL11.glDisable(2929);
+ GL11.glTranslatef(0.0f, 0.0f, -300.0f);
+ }
+ boolean unicode = mc.fontRenderer.getUnicodeFlag();
+ mc.fontRenderer.setUnicodeFlag(true);
+ if(!hasInv) {
+ mc.fontRenderer.drawStringWithShadow("\u2717", posX + 5, y + 6, 4980736);
+ mc.fontRenderer.drawStringWithShadow("\u2717", posX + 5, y + 5, 13764621);
+ }
+ mc.fontRenderer.setUnicodeFlag(unicode);
+ GL11.glEnable(2929);
+ }
+ GL11.glDisable(3042);
+ }
+
+ public void writeCustomNBT(NBTTagCompound nbtt) {
+ super.writeCustomNBT(nbtt);
+ nbtt.setInteger("cooldown", this.cooldown);
+ nbtt.setBoolean("bindType", this.bindType);
+ nbtt.setIntArray("bindingX", this.invPosX);
+ nbtt.setIntArray("bindingY", this.invPosY);
+ nbtt.setIntArray("bindingZ", this.invPosZ);
+ nbtt.setIntArray("bindingSide", this.invSide);
+ }
+
+ public void readCustomNBT(NBTTagCompound nbtt) {
+ super.readCustomNBT(nbtt);
+ this.cooldown = nbtt.getInteger("cooldown");
+ this.bindType = nbtt.getBoolean("bindType");
+ this.invPosX = nbtt.getIntArray("bindingX");
+ this.invPosY = nbtt.getIntArray("bindingY");
+ this.invPosZ = nbtt.getIntArray("bindingZ");
+ this.invSide = nbtt.getIntArray("bindingSide");
+ }
+
+ private boolean canExtractStack() {
+ IInventory inv = getDistantInventory(0);
+ if(inv == null)
+ return false;
+ else {
+ int side = invSide[0];
+ int pullCount = getPullCount(inv, side);
+ System.out.println(pullCount);
+ if(pullCount <= 0)
+ return false;
+ else {
+ if(getStackInSlot(0) != null) {
+ ItemStack itemstack = getStackInSlot(0).copy();
+ ItemStack itemstack1 = TileEntityHopper.func_145889_a(inv, decrStackSize(0, pullCount), side);
+ if(itemstack1 == null || itemstack1.stackSize == 0) {
+ inv.markDirty();
+ return true;
+ }
+ setInventorySlotContents(0, itemstack);
+ }
+ return false;
+ }
+ }
+ }
+
+ private int getPullCount(IInventory inv, int side) {
+ if(inv instanceof ISidedInventory && side > -1) {
+ ISidedInventory sideInv = (ISidedInventory)inv;
+ int[] slots = sideInv.getAccessibleSlotsFromSide(side);
+ for(int i = 0; i < slots.length; ++i) {
+ ItemStack stack = sideInv.getStackInSlot(slots[i]);
+ if(stack == null)
+ return inv.getInventoryStackLimit();
+ else if(inv.getInventoryStackLimit() != stack.stackSize && stack.stackSize != stack.getMaxStackSize() && TileNidavellirForge.isItemEqual(stack, getStackInSlot(0)))
+ return inv.getInventoryStackLimit() - stack.stackSize;
+ }
+ } else {
+ int size = inv.getSizeInventory();
+ for(int i = 0; i < size; ++i) {
+ ItemStack stack = inv.getStackInSlot(i);
+ if(stack == null)
+ return inv.getInventoryStackLimit();
+ else if(inv.getInventoryStackLimit() != stack.stackSize && stack.stackSize != stack.getMaxStackSize() && TileNidavellirForge.isItemEqual(stack, getStackInSlot(0)))
+ return inv.getInventoryStackLimit() - stack.stackSize;
+ }
+ }
+ return 0;
+ }
+
+ private boolean canInsertStack() {
+ IInventory inv = getDistantInventory(1);
+ if(inv != null) {
+ int side = invSide[1];
+ int takeCount = getTakeCount(inv, side);
+ if(takeCount <= 0)
+ return false;
+ if(inv instanceof ISidedInventory && side > -1) {
+ ISidedInventory sidedInv = (ISidedInventory)inv;
+ int[] slots = sidedInv.getAccessibleSlotsFromSide(side);
+ for(int k = 0; k < slots.length; ++k) {
+ if(func_145892_a(inv, slots[k], side, takeCount))
+ return true;
+ }
+ } else {
+ int i = inv.getSizeInventory();
+ for(int j = 0; j < i; ++j) {
+ if(func_145892_a(inv, j, side, takeCount))
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ private int getTakeCount(IInventory inv, int side) {
+ if(inv instanceof ISidedInventory && side > -1) {
+ ISidedInventory sideInv = (ISidedInventory)inv;
+ int[] slots = sideInv.getAccessibleSlotsFromSide(side);
+ for(int i = 0; i < slots.length; ++i) {
+ ItemStack stack = sideInv.getStackInSlot(slots[i]);
+ if(stack != null)
+ if(getStackInSlot(0) == null)
+ return getInventoryStackLimit();
+ else if(getInventoryStackLimit() != getStackInSlot(0).stackSize && getStackInSlot(0).stackSize != getStackInSlot(0).getMaxStackSize() && TileNidavellirForge.isItemEqual(stack, getStackInSlot(0)))
+ return getInventoryStackLimit() - getStackInSlot(0).stackSize;
+ }
+ } else {
+ for(int i = 0; i < inv.getSizeInventory(); ++i) {
+ ItemStack stack = inv.getStackInSlot(i);
+ if(stack != null)
+ if(getStackInSlot(0) == null)
+ return getInventoryStackLimit();
+ else if(getInventoryStackLimit() != getStackInSlot(0).stackSize && getStackInSlot(0).stackSize != getStackInSlot(0).getMaxStackSize() && TileNidavellirForge.isItemEqual(stack, getStackInSlot(0)))
+ return getInventoryStackLimit() - getStackInSlot(0).stackSize;
+ }
+ }
+ return 0;
+ }
+
+ private boolean func_145892_a(IInventory inv, int slot, int side, int takeCount) {
+ ItemStack itemstack = inv.getStackInSlot(slot);
+ if(itemstack != null && func_145890_b(inv, itemstack, slot, side)) {
+ ItemStack itemstack1 = itemstack.copy();
+ ItemStack itemstack2 = TileEntityHopper.func_145889_a(this, inv.decrStackSize(slot, takeCount), side);
+ if(itemstack2 == null || itemstack2.stackSize == 0) {
+ inv.markDirty();
+ return true;
+ }
+ inv.setInventorySlotContents(slot, itemstack1);
+ }
+ return false;
+ }
+
+ private static boolean func_145890_b(IInventory inv, ItemStack stack, int slot, int side) {
+ return !(inv instanceof ISidedInventory) || ((ISidedInventory)inv).canExtractItem(slot, stack, side);
+ }
+
+ public int getSizeInventory() {
+ return 1;
+ }
+
+ public String getInventoryName() {
+ return "engineerHopper";
+ }
+
+ public double getXPos() {
+ return this.xCoord;
+ }
+
+ public double getYPos() {
+ return this.yCoord;
+ }
+
+ public double getZPos() {
+ return this.zCoord;
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/59/90406d50c1bc001c1a9f99005529f322 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/59/90406d50c1bc001c1a9f99005529f322
new file mode 100644
index 0000000..87f21b4
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/59/90406d50c1bc001c1a9f99005529f322
@@ -0,0 +1,38 @@
+package ab.client.render.block;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.client.render.tile.RenderTileManaContainer;
+import ab.common.block.tile.TileNidavellirForge;
+import ab.common.lib.register.BlockListAB;
+import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
+import net.minecraft.block.Block;
+import net.minecraft.client.renderer.RenderBlocks;
+import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.world.IBlockAccess;
+
+public class RenderBlockNidavellirForge implements ISimpleBlockRenderingHandler {
+
+ public void renderInventoryBlock(Block block, int metadata, int modelID, RenderBlocks renderer) {
+ GL11.glPushMatrix();
+ GL11.glTranslatef(-0.45F, -0.35F, -0.5F);
+ GL11.glScalef(1.25f, 1.25f, 1.25f);
+ TileNidavellirForge forge = new TileNidavellirForge();
+ RenderTileManaContainer.metadata = metadata;
+ TileEntityRendererDispatcher.instance.renderTileEntityAt((TileEntity)forge, 0.0D, 0.0D, 0.0D, 0.0F);
+ GL11.glPopMatrix();
+ }
+
+ public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId, RenderBlocks renderer) {
+ return false;
+ }
+
+ public int getRenderId() {
+ return BlockListAB.blockABPlateRI;
+ }
+
+ public boolean shouldRender3DInInventory(int modelId) {
+ return true;
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/59/e0237270fbac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/59/e0237270fbac001c1d59e42be7477558
deleted file mode 100644
index 1458708..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/59/e0237270fbac001c1d59e42be7477558
+++ /dev/null
@@ -1,96 +0,0 @@
-package ab.client.render.tile;
-
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.model.ModelDiceFate;
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.entity.RenderManager;
-import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.ResourceLocation;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class RenderTileGameBoard extends TileEntitySpecialRenderer {
-
- private static final ModelDiceFate model = new ModelDiceFate();
- private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/gameDice.png");
- private static final ResourceLocation textureEnemy = new ResourceLocation("ab:textures/model/gameDice_enemy.png");
-
- public void renderTileEntityAt(TileEntity tile, double x, double y, double z, float ticks) {
- double time = (tile.getWorldObj() == null) ? 0.0D : (ClientTickHandler.ticksInGame + ticks);
- if(tile != null)
- time += (new Random((tile.xCoord ^ tile.yCoord ^ tile.zCoord))).nextInt(360);
- TileGameBoard board = (TileGameBoard)tile;
- GL11.glEnable(3042);
- GL11.glEnable(32826);
- GL11.glBlendFunc(770, 771);
- GL11.glPushMatrix();
- GL11.glTranslated(x, y, z);
- GL11.glRotatef(180.0f - RenderManager.instance.playerViewY, 0.0f, 1.0f, 0.0f);
- for(int i = 0; i < board.slotChance.length; i++) {
- if(board.slotChance[i] == 0)
- continue;
- time += i * 65;
- GL11.glPushMatrix();
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- float posX = 0.0f;
- float posY = 0.0f;
- float dropAnim = (1.0f - (Math.min(100.0f, (board.clientTick[i] * board.clientTick[i] * 1.25f) + ticks) / 100.0f));
- dropAnim = Math.min(1.0f, Math.max(dropAnim, 0));
- float alpha = (float)Math.cos(dropAnim);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, alpha);
- switch(i) {
- case 0:
- posX = 0.16f + 0.08f * dropAnim;
- posY = 0.16f + 0.08f * dropAnim;
- break;
- case 1:
- posX = -0.16f - 0.08f * dropAnim;
- posY = 0.16f + 0.08f * dropAnim;
- break;
- case 2:
- posX = 0.16f + 0.08f * dropAnim;
- posY = -0.16f - 0.08f * dropAnim;
- break;
- case 3:
- posX = -0.16f - 0.08f * dropAnim;
- posY = -0.16f - 0.08f * dropAnim;
- break;
- }
- GL11.glTranslated(0.5f + posX, 0.02f + Math.sin(time / 12.0D) / 48.0D + (0.28f * dropAnim), 0.5f + posY);
- GL11.glScalef(0.25f, 0.25f, 0.25f);
- Minecraft.getMinecraft().renderEngine.bindTexture(i > 1 ? textureEnemy : texture);
- float dropAngel = 70.0f * dropAnim;
- switch(board.slotChance[i]) {
- case 1:
- model.render(180.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 2:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 3:
- model.render(90.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 4:
- model.render(270.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 5:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 270.0f);
- break;
- case 6:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 90.0f);
- break;
- default:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- }
- GL11.glPopMatrix();
- }
- GL11.glPopMatrix();
- GL11.glEnable(32826);
- GL11.glDisable(3042);
- }
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/5a/7005b4b6fcac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/5a/7005b4b6fcac001c1d59e42be7477558
deleted file mode 100644
index 167fdef..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/5a/7005b4b6fcac001c1d59e42be7477558
+++ /dev/null
@@ -1,96 +0,0 @@
-package ab.client.render.tile;
-
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.model.ModelDiceFate;
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.entity.RenderManager;
-import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.ResourceLocation;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class RenderTileGameBoard extends TileEntitySpecialRenderer {
-
- private static final ModelDiceFate model = new ModelDiceFate();
- private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/gameDice.png");
- private static final ResourceLocation textureEnemy = new ResourceLocation("ab:textures/model/gameDice_enemy.png");
-
- public void renderTileEntityAt(TileEntity tile, double x, double y, double z, float ticks) {
- double time = (tile.getWorldObj() == null) ? 0.0D : (ClientTickHandler.ticksInGame + ticks);
- if(tile != null)
- time += (new Random((tile.xCoord ^ tile.yCoord ^ tile.zCoord))).nextInt(360);
- TileGameBoard board = (TileGameBoard)tile;
- GL11.glEnable(3042);
- GL11.glEnable(32826);
- GL11.glBlendFunc(770, 771);
- GL11.glPushMatrix();
- GL11.glTranslated(x + 0.5f, y, z + 0.5f);
- GL11.glRotatef(90.0f - RenderManager.instance.playerViewY, 0.0f, 1.0f, 0.0f);
- for(int i = 0; i < board.slotChance.length; i++) {
- if(board.slotChance[i] == 0)
- continue;
- time += i * 85;
- GL11.glPushMatrix();
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- float posX = 0.0f;
- float posZ = 0.0f;
- float dropAnim = (1.0f - (Math.min(120.0f, (board.clientTick[i] * board.clientTick[i] * 1.25f) + ticks) / 120.0f));
- dropAnim = Math.min(1.0f, Math.max(dropAnim, 0));
- float alpha = (float)Math.cos(dropAnim);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, alpha);
- switch(i) {
- case 0:
- posX = 0.16f + 0.08f * dropAnim;
- posZ = 0.16f + 0.08f * dropAnim;
- break;
- case 1:
- posX = -0.16f - 0.08f * dropAnim;
- posZ = 0.16f + 0.08f * dropAnim;
- break;
- case 2:
- posX = 0.16f + 0.08f * dropAnim;
- posZ = -0.16f - 0.08f * dropAnim;
- break;
- case 3:
- posX = -0.16f - 0.08f * dropAnim;
- posZ = -0.16f - 0.08f * dropAnim;
- break;
- }
- GL11.glTranslated(posX, 0.02f + Math.sin(time / 12.0D) / 48.0D + (0.28f * dropAnim), posZ);
- GL11.glScalef(0.25f, 0.25f, 0.25f);
- Minecraft.getMinecraft().renderEngine.bindTexture(i > 1 ? textureEnemy : texture);
- float dropAngel = 70.0f * dropAnim;
- switch(board.slotChance[i]) {
- case 1:
- model.render(180.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 2:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 3:
- model.render(90.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 4:
- model.render(270.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 5:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 270.0f);
- break;
- case 6:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 90.0f);
- break;
- default:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- }
- GL11.glPopMatrix();
- }
- GL11.glPopMatrix();
- GL11.glEnable(32826);
- GL11.glDisable(3042);
- }
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d9/305a5cc793b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/5a/70bd8aea9dc1001c1056f0256f545f23
similarity index 85%
rename from 1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d9/305a5cc793b1001c19bf8a91ac37238b
rename to 1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/5a/70bd8aea9dc1001c1056f0256f545f23
index 9a8663f..d04a862 100644
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d9/305a5cc793b1001c19bf8a91ac37238b
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/5a/70bd8aea9dc1001c1056f0256f545f23
@@ -19,11 +19,12 @@ public class ConfigABHandler {
public static double damageFactorSpaceSword = 1.0f;
public static int nebulaWandCooldownTick = 18;
public static boolean hasManaCharger = true;
- public static boolean hasAbPlate = true;
public static int spreaderMaxMana = 128000;
public static int spreaderBurstMana = 32000;
- public static String[] lockEntityListToHide = new String[] {};
+ public static String[] lockEntityListToHorn = new String[] {};
+ public static String[] lockWorldNameNebulaRod = new String[] {};
public static int limitXZCoords = 30000000;
+ public static boolean hasAutoThaum = true;
public static void loadConfig(File configFile) {
config = new Configuration(configFile);
@@ -44,17 +45,19 @@ public class ConfigABHandler {
desc = "The number of ticks needed to restore 1 unit of the Rod of Nebula strength.";
nebulaWandCooldownTick = loadPropInt("Rod of Nebula Cooldown", desc, nebulaWandCooldownTick);
desc = "Switching the Mana Charger on or off in the game";
- hasManaCharger = loadPropBool("Enable Mana Charger", desc, hasManaCharger);
- desc = "Enables or disables Advanced Agglomeration Plate in the game. When switched off, you need to set up recipes, for resources";
- hasAbPlate = loadPropBool("Enable Adv. Agg. Plate", desc, hasAbPlate);
+ hasManaCharger = loadPropBool("Enable Mana Charger", desc, hasManaCharger);
desc = "Maximum amount of mana held in a mana spreader";
spreaderMaxMana = loadPropInt("Spreader Max Mana", desc, spreaderMaxMana);
desc = "Amount of Mana in a Mana Burst";
spreaderBurstMana = loadPropInt("Spreader Burst Mana", desc, spreaderBurstMana);
desc = "To block a creature, type it's class name";
- lockEntityListToHide = loadPropString("Blocked creatures for double drop", desc, lockEntityListToHide);
+ lockEntityListToHorn = loadPropString("Blocked creatures for double drop", desc, lockEntityListToHorn);
+ desc = "Enter the name of the World you want to add to the blacklist";
+ lockWorldNameNebulaRod = loadPropString("Locking Worlds for Teleportation with Nebula Rod", desc, lockWorldNameNebulaRod);
desc = "Limitation on X Z coordinates for teleportation, do not increase the default value";
limitXZCoords = loadPropInt("Restriction on X Z coordinates for Rod of Nebula", desc, limitXZCoords);
+ desc = "Switching the Thaumim Crafty Crate on or off in the game";
+ hasAutoThaum = loadPropBool("Enable Thaumim Crafty Crate", desc, hasAutoThaum);
if(config.hasChanged())
config.save();
}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/5a/80ef39aae3ac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/5a/80ef39aae3ac001c1d59e42be7477558
deleted file mode 100644
index e43941b..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/5a/80ef39aae3ac001c1d59e42be7477558
+++ /dev/null
@@ -1,164 +0,0 @@
-package ab.common.block.tile;
-
-import java.util.List;
-
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.ChatComponentTranslation;
-import net.minecraft.util.ChatStyle;
-import net.minecraft.util.EnumChatFormatting;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-
-public class TileGameBoard extends TileInventory {
-
- protected String[] playersName = new String[] { "", "" };
- public byte[] slotChance = new byte[] { 0, 0, 0, 0 };
- protected int botTick = -1;
- public int endGameTick = -1;
- protected boolean requestUpdate;
- public boolean isSingleGame = true;
- public int clientTick[] = new int[] { 0, 0, 0, 0};
-
- public void updateEntity() {
- if(botTick > 0)
- botTick--;
- if(endGameTick > 0)
- endGameTick--;
- if(!worldObj.isRemote)
- updateServer();
- else
- updateClient();
- }
-
- protected void updateClient() {
- for(int i = 0; i < slotChance.length; i++)
- if(slotChance[i] > 0)
- clientTick[i]++;
- else
- clientTick[i] = 0;
- }
-
- protected void updateServer() {
- if(requestUpdate)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- boolean hasUpdate = false;
- if(isSingleGame && botTick == 0 && hasGame()) {
- for(int i = 2; i < 4; i++) {
- if(slotChance[i] == 0) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = -1;
- hasUpdate = true;
- break;
- }
- }
- }
- if(hasGame() && endGameTick == 0)
- finishGame();
- requestUpdate = hasUpdate;
- }
-
- public void setPlayer(EntityPlayer player) {
- if(isSingleGame) {
- playersName[0] = player.getCommandSenderName();
- playersName[1] = "";
- requestUpdate = true;
- botTick = 8;
- }
- }
-
- public boolean dropDice(EntityPlayer player) {
- if(isSingleGame) {
- if(player.getCommandSenderName().equals(playersName[0]) && botTick == -1) {
- boolean isLastDice = false;
- for(int i = 0; i < 2; i++) {
- if(slotChance[i] == 0 && !worldObj.isRemote) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = 18;
- requestUpdate = true;
- if(i == 1)
- isLastDice = true;
- break;
- }
- }
- if(isLastDice)
- endGameTick = 28;
- return true;
- }
- }
- return false;
- }
-
- public boolean hasGame() {
- if(isSingleGame)
- return !playersName[0].isEmpty();
- return !playersName[0].isEmpty() && !playersName[1].isEmpty();
- }
-
- public void finishGame() {
- if(worldObj.isRemote)
- return;
- if(isSingleGame) {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won");
- else
- sendNearMessage(playersName[0] + " you Lose!");
- resetGame();
- requestUpdate = true;
- }
- }
-
- public void sendNearMessage(String text) {
- List players = this.worldObj.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(this.xCoord, this.yCoord, this.zCoord, (this.xCoord + 1), (this.yCoord + 1), (this.zCoord + 1)).expand(3.5f, 3.5f, 3.5f));
- for(EntityPlayer player : players) {
- if(player != null)
- player.addChatMessage((new ChatComponentTranslation(text, new Object[] {})).setChatStyle((new ChatStyle()).setColor(EnumChatFormatting.DARK_GREEN)));
- }
- }
-
- public void resetGame() {
- playersName[0] = "";
- playersName[1] = "";
- for(int i = 0; i < slotChance.length; i++)
- slotChance[i] = 0;
- requestUpdate = true;
- botTick = -1;
- endGameTick = -1;
- }
-
- public void writeCustomNBT(NBTTagCompound cmp) {
- super.writeCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- cmp.setString("playerName" + i, playersName[i]);
- cmp.setByteArray("slotChance", slotChance);
- cmp.setInteger("botTick", botTick);
- cmp.setInteger("endGameTick", endGameTick);
- cmp.setBoolean("requestUpdate", requestUpdate);
- cmp.setBoolean("isSingleGame", isSingleGame);
- }
-
- public void readCustomNBT(NBTTagCompound cmp) {
- super.readCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- playersName[i] = cmp.getString("playerName" + i);
- botTick = cmp.getInteger("botTick");
- endGameTick = cmp.getInteger("endGameTick");
- slotChance = cmp.getByteArray("slotChance");
- requestUpdate = cmp.getBoolean("requestUpdate");
- isSingleGame = cmp.getBoolean("isSingleGame");
- }
-
- public int getInventoryStackLimit() {
- return 1;
- }
-
- public int getSizeInventory() {
- return 4;
- }
-
- public String getInventoryName() {
- return "inv.gameBoard";
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/5a/902bd4a59db1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/5a/902bd4a59db1001c19bf8a91ac37238b
deleted file mode 100644
index 10a449a..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/5a/902bd4a59db1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,84 +0,0 @@
-package ab.client.core.handler;
-
-import java.awt.Color;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.armor.ItemNebulaArmor;
-import ab.common.item.equipment.armor.ItemNebulaHelm;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.ItemRenderer;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.texture.TextureMap;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraftforge.client.event.RenderPlayerEvent;
-import vazkii.botania.api.item.IPhantomInkable;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class PlayerRendererHandler {
-
- @SubscribeEvent
- public void onPlayerRender(RenderPlayerEvent.Specials.Pre event) {
- EntityPlayer player = event.entityPlayer;
- ItemStack item = player.getCurrentArmor(3);
- if(item != null && item.getItem() instanceof ItemNebulaHelm) {
- Item helm = player.getCurrentArmor(3).getItem();
- boolean hasPhantomInk = helm instanceof IPhantomInkable && ((IPhantomInkable)helm).hasPhantomInk(item);
- if(!hasPhantomInk && ((ItemNebulaHelm)helm).enableCosmicFace(item)) {
- float angelX = event.renderer.modelBipedMain.bipedHead.rotateAngleX * 180.0F / (float)Math.PI;
- float angelY = event.renderer.modelBipedMain.bipedHead.rotateAngleY * 180.0F / (float)Math.PI;
- GL11.glPushMatrix();
- if(player.isSneaking())
- GL11.glTranslatef(event.renderer.modelBipedMain.bipedHead.rotationPointX * 0.0625f, event.renderer.modelBipedMain.bipedHead.rotationPointY * 0.0625f, 0.0f);
- GL11.glRotatef(angelY, 0.0F, 1.0F, 0.0F);
- GL11.glRotatef(angelX, 1.0F, 0.0F, 0.0F);
- renderCosmicFace();
- GL11.glPopMatrix();
- }
- }
- }
-
- private void renderCosmicFace() {
- double worldTime = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- GL11.glPushMatrix();
- GL11.glEnable(GL11.GL_TEXTURE_2D);
- GL11.glDisable(2884);
-
- GL11.glPushMatrix();
- GL11.glScalef(0.5f, 0.4f, 0.4f);
- GL11.glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
- GL11.glTranslatef(-0.5f, -0.8675f, 0.0f);
- GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
- ClientHelper.renderCosmicBackground();
- GL11.glPopMatrix();
-
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- (Minecraft.getMinecraft()).renderEngine.bindTexture(TextureMap.locationItemsTexture);
- GL11.glTranslatef(-0.2F, -0.35F, -0.25F);
- GL11.glScalef(0.4f, 0.4f, 0.4f);
- float f = ItemNebulaArmor.nebulaEyes.getMinU();
- float f1 = ItemNebulaArmor.nebulaEyes.getMaxU();
- float f2 = ItemNebulaArmor.nebulaEyes.getMinV();
- float f3 = ItemNebulaArmor.nebulaEyes.getMaxV();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float r = color.getRed() / 510.0F;
- float g = color.getGreen() / 510.0F;
- float b = color.getBlue() / 510.0F;
- GL11.glColor4f(0.5f + r, 0.5f + g, 0.5f + b, 0.685f + (float)Math.sin(worldTime / 50.0D) * 0.175F);
- ItemRenderer.renderItemIn2D(Tessellator.instance, f1, f2, f, f3, ItemNebulaArmor.nebulaEyes.getIconWidth(), ItemNebulaArmor.nebulaEyes.getIconHeight(), 0.03125F);
- GL11.glDisable(3042);
- GL11.glEnable(2884);
- GL11.glEnable(32826);
- GL11.glPopMatrix();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/5a/b0027ef0deac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/5a/b0027ef0deac001c1d59e42be7477558
deleted file mode 100644
index a0c99d0..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/5a/b0027ef0deac001c1d59e42be7477558
+++ /dev/null
@@ -1,90 +0,0 @@
-package ab.client.render.tile;
-
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.model.ModelDiceFate;
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.ResourceLocation;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class RenderTileGameBoard extends TileEntitySpecialRenderer {
-
- private static final ModelDiceFate model = new ModelDiceFate();
- private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/gameDice.png");
- private static final ResourceLocation textureEnemy = new ResourceLocation("ab:textures/model/gameDice_enemy.png");
-
- public void renderTileEntityAt(TileEntity tile, double x, double y, double z, float ticks) {
- double time = (tile.getWorldObj() == null) ? 0.0D : (ClientTickHandler.ticksInGame + ticks);
- if(tile != null)
- time += (new Random((tile.xCoord ^ tile.yCoord ^ tile.zCoord))).nextInt(360);
- TileGameBoard board = (TileGameBoard)tile;
- GL11.glEnable(3042);
- GL11.glEnable(32826);
- for(int i = 0; i < board.slotChance.length; i++) {
- if(board.slotChance[i] == 0)
- continue;
- time += i * 65;
- GL11.glPushMatrix();
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- float posX = 0.0f;
- float posY = 0.0f;
- float dropAnim = (1.0f - (Math.min(100.0f, board.clientTick[i] * board.clientTick[i] * 1.125f) / 100.0f));
- dropAnim = Math.min(1.0f, Math.max(dropAnim, 0));
- // GL11.glColor4f(1.0F, 1.0F, 1.0F, Math.min(Math.max(1.0f, 1.0f - (dropAnim * 0.25f)), 0.0f));
- switch(i) {
- case 0:
- posX = 0.16f + 0.08f * dropAnim;
- posY = 0.16f + 0.08f * dropAnim;
- break;
- case 1:
- posX = -0.16f - 0.08f * dropAnim;
- posY = 0.16f + 0.08f * dropAnim;
- break;
- case 2:
- posX = 0.16f + 0.08f * dropAnim;
- posY = -0.16f - 0.08f * dropAnim;
- break;
- case 3:
- posX = -0.16f - 0.08f * dropAnim;
- posY = -0.16f - 0.08f * dropAnim;
- break;
- }
- GL11.glTranslated(x, y, z);
- GL11.glTranslated(0.5f + posX, 0.02f + Math.sin(time / 12.0D) / 48.0D + (0.28f * dropAnim), 0.5f + posY);
- GL11.glScalef(0.25f, 0.25f, 0.25f);
- Minecraft.getMinecraft().renderEngine.bindTexture(i > 1 ? textureEnemy : texture);
- float dropAngel = 70.0f * dropAnim;
- switch(board.slotChance[i]) {
- case 1:
- model.render(180.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 2:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 3:
- model.render(90.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 4:
- model.render(270.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 5:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 270.0f);
- break;
- case 6:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 90.0f);
- break;
- default:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- }
- GL11.glPopMatrix();
- }
- GL11.glEnable(32826);
- GL11.glDisable(3042);
- }
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/5a/d09d16273db0001c1746c57a5fe46fd3 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/5a/d09d16273db0001c1746c57a5fe46fd3
deleted file mode 100644
index 09f1d54..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/5a/d09d16273db0001c1746c57a5fe46fd3
+++ /dev/null
@@ -1,30 +0,0 @@
-package ab.common.item.relic;
-
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import cpw.mods.fml.relauncher.ReflectionHelper;
-import net.minecraft.entity.EntityLivingBase;
-import net.minecraftforge.common.MinecraftForge;
-import net.minecraftforge.event.entity.living.LivingDeathEvent;
-
-public class ItemSehrimnirHide extends ItemModRelic {
-
- public static final String[] DROP_FEW_ITEMS = new String[] { "dropFewItems", "func_70628_a" };
-
- public ItemSehrimnirHide() {
- super("sehrimnirHide");
- MinecraftForge.EVENT_BUS.register(this);
- }
-
- @SubscribeEvent
- public void onPlayerAttack(LivingDeathEvent event) {
- if(event != null && event.entityLiving != null) {
- EntityLivingBase liv = event.entityLiving;
- try {
- for(int i = 0; i < 1000; i++)
- ReflectionHelper.findMethod(EntityLivingBase.class, liv, DROP_FEW_ITEMS, new Class[] { boolean.class, int.class }).invoke(liv, new Object[] { true, 3 });
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/5b/50e66cd005c0001c1965b122d2f8f403 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/5b/50e66cd005c0001c1965b122d2f8f403
new file mode 100644
index 0000000..55ea75b
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/5b/50e66cd005c0001c1965b122d2f8f403
@@ -0,0 +1,158 @@
+package ab.common.item.relic;
+
+import java.awt.Color;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.common.core.handler.NetworkHandler;
+import ab.common.lib.register.ItemListAB;
+import net.minecraft.block.Block;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.util.MathHelper;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.api.mana.ManaItemHandler;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class ItemSphereNavigation extends ItemModRelic {
+
+ public static final int rangeSearch = 16;
+ public static final int maxCooldown = 112;
+ public static final int manaCost = 1750;
+
+ public ItemSphereNavigation() {
+ super("sphereNavigation");
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int pos, boolean equipped) {
+ super.onUpdate(stack, world, entity, pos, equipped);
+ if(entity instanceof EntityPlayer) {
+ EntityPlayer player = (EntityPlayer)entity;
+ if(!world.isRemote && getFindBlock(stack) != null && canWork(stack) && ManaItemHandler.requestManaExactForTool(stack, player, manaCost, true)) {
+ setMaxTick(stack);
+ NetworkHandler.sendPacketToFindBlocks((EntityPlayerMP)player, getFindBlock(stack), getFindMeta(stack));
+ }
+ }
+ }
+
+ public static void findBlocks(World world, Block findBlock, int findMeta, EntityPlayer player) {
+ if(world.isRemote) {
+ ItemStack renderStack = null;
+ int maxFindedBlocks = 32;
+ int findedBlocks = 0;
+ label1703:
+ for(int y = -rangeSearch * 2; y < rangeSearch; y++) {
+ for(int x = -rangeSearch; x < rangeSearch; x++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks)) || world.rand.nextBoolean())
+ continue;
+ for(int z = -rangeSearch; z < rangeSearch; z++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks)) || world.rand.nextBoolean())
+ continue;
+ else if(findedBlocks >= maxFindedBlocks)
+ break label1703;
+ int posX = MathHelper.floor_double(player.posX) + x;
+ int posY = MathHelper.floor_double(player.posY) + y;
+ int posZ = MathHelper.floor_double(player.posZ) + z;
+ if(posY < 0)
+ continue;
+ Block block = world.getBlock(posX, posY, posZ);
+ if(!Block.isEqualTo(block, findBlock))
+ continue;
+ int meta = world.getBlockMetadata(posX, posY, posZ);
+ if(meta == findMeta) {
+ if(renderStack == null)
+ renderStack = getRenderStackForBlock(world, block, meta, posX, posY, posZ);
+ findedBlocks++;
+ float maxAge = 2.7f + (0.5f * (float)(Math.random()));
+ Botania.proxy.setWispFXDepthTest(false);
+ Botania.proxy.setWispFXDistanceLimit(false);
+ float far = 120.0f - (((Math.abs(x) + Math.min(rangeSearch, Math.abs(y)) + Math.abs(z)) / (rangeSearch * 4.0f)) * 120.0f);
+ if(far <= 70)
+ far *= 0.2f;
+ Color color = new Color(Color.HSBtoRGB(far / 360.0f, 0.9f + (float)(Math.random() * 0.1f), 1.0f));
+ for(int i = 0; i < 11; i++)
+ Botania.proxy.wispFX(world, posX + 0.5f + (Math.random() - 0.5f), posY + 0.5f + (Math.random() - 0.5f), posZ + 0.5f + (Math.random() - 0.5f), color.getRed() / 100.0f, color.getGreen() / 100.0f, color.getBlue() / 100.0f, 0.3f + (float)(Math.random() * 0.25f), 0.0f, maxAge);
+ Botania.proxy.setWispFXDistanceLimit(true);
+ Botania.proxy.setWispFXDepthTest(true);
+ }
+ }
+ }
+ }
+ if(renderStack != null)
+ ItemsRemainingRender.set(renderStack, "íàéäåíî: " + findedBlocks);
+ }
+ }
+
+ public static ItemStack getRenderStackForBlock(World world, Block block, int meta, int x, int y, int z) {
+ if(block != null) {
+ Item item = Item.getItemFromBlock(block);
+ if(item != null) {
+ ItemStack findStack = new ItemStack(block, 1, meta);
+ if(findStack != null)
+ return findStack;
+ } else {
+ Item item1 = block.getItem(world, x, y, z);
+ if(item1 != null) {
+ ItemStack findStack = new ItemStack(item1, 1, meta);
+ if(findStack != null)
+ return findStack;
+ }
+ }
+ }
+ return null;
+ }
+
+ public boolean onItemUse(ItemStack stack, EntityPlayer p, World world, int x, int y, int z, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
+ if(p.isSneaking()) {
+ Block block = world.getBlock(x, y, z);
+ if(block != null) {
+ int meta = world.getBlockMetadata(x, y, z);
+ ItemStack findStack = getRenderStackForBlock(world, block, meta, x, y, z);
+ if(findStack != null) {
+ setFindBlock(stack, block, meta);
+ if(world.isRemote)
+ ItemsRemainingRender.set(findStack, findStack.getDisplayName());
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public boolean canWork(ItemStack stack) {
+ int tick = ItemNBTHelper.getInt(stack, "cooldown", 0);
+ if(tick == 0)
+ return true;
+ else if(tick > 0)
+ ItemNBTHelper.setInt(stack, "cooldown", tick - 1);
+ return false;
+ }
+
+ public void setMaxTick(ItemStack stack) {
+ ItemNBTHelper.setInt(stack, "cooldown", maxCooldown);
+ }
+
+ public static void setFindBlock(ItemStack stack, Block block, int meta) {
+ ItemNBTHelper.setInt(stack, "findBlockID", Block.getIdFromBlock(block));
+ ItemNBTHelper.setInt(stack, "findBlockMeta", meta);
+ }
+
+ public static Block getFindBlock(ItemStack stack) {
+ int blockID = ItemNBTHelper.getInt(stack, "findBlockID", 0);
+ if(blockID == 0)
+ return null;
+ else
+ return Block.getBlockById(blockID);
+ }
+
+ public static int getFindMeta(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "findBlockMeta", -1);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/5c/c094e01cb7bc001c1a9f99005529f322 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/5c/c094e01cb7bc001c1a9f99005529f322
new file mode 100644
index 0000000..4131a2c
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/5c/c094e01cb7bc001c1a9f99005529f322
@@ -0,0 +1,108 @@
+package ab.client.render.tile;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Random;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.client.model.ModelNidavellirForge;
+import ab.common.block.tile.TileNidavellirForge;
+import net.minecraft.client.Minecraft;
+import net.minecraft.client.renderer.OpenGlHelper;
+import net.minecraft.client.renderer.Tessellator;
+import net.minecraft.client.renderer.entity.Render;
+import net.minecraft.client.renderer.entity.RenderManager;
+import net.minecraft.client.renderer.texture.TextureMap;
+import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.ResourceLocation;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.client.core.helper.ShaderHelper;
+import vazkii.botania.common.block.mana.BlockTerraPlate;
+
+public class RenderTileNidavellirForge extends TileEntitySpecialRenderer {
+
+ private List entityList = null;
+ private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/nidavellirForge.png");
+ private static final ModelNidavellirForge model = new ModelNidavellirForge();
+
+ public void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float f) {
+ TileNidavellirForge tile = (TileNidavellirForge)tileentity;
+ double worldTime = 0.0D;
+ int meta = 0;
+ if(tileentity != null && tileentity.getWorldObj() != null) {
+ worldTime = ClientTickHandler.ticksInGame + f + (new Random((tileentity.xCoord ^ tileentity.yCoord ^ tileentity.zCoord))).nextInt(360);
+ meta = tileentity.getWorldObj().getBlockMetadata(tileentity.xCoord, tileentity.yCoord, tileentity.zCoord);
+ }
+ float indetY = (float)(Math.sin(worldTime / 18.0D) / 24.0D);
+ GL11.glPushMatrix();
+ GL11.glEnable(32826);
+ GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
+ GL11.glTranslated(x, y, z);
+ GL11.glTranslatef(0.5f, 1.5f, 0.5f);
+ GL11.glRotatef(180.0f, 1.0f, 0.0f, 1.0f);
+ float angelForSide = 0.0f;
+ switch(meta) {
+ case 1: angelForSide = 90.0f;
+ break;
+ case 4: angelForSide = 270.0f;
+ break;
+ case 8: angelForSide = 180.0f;
+ break;
+ }
+ GL11.glRotatef(angelForSide, 0.0f, 1.0f, 0.0f);
+ Minecraft.getMinecraft().renderEngine.bindTexture(texture);
+ model.renderBottom();
+ GL11.glTranslatef(0.0f, indetY, 0.0f);
+ model.renderTop();
+ GL11.glEnable(32826);
+ GL11.glPopMatrix();
+ if(entityList == null) {
+ List list = new ArrayList();
+ for(int i = 0; i < tile.getSizeInventory(); i++) {
+ list.add(new EntityItem(tile.getWorldObj(), tile.xCoord, tile.yCoord, tile.zCoord));
+ }
+ entityList = list;
+ }
+ GL11.glPushMatrix();
+ GL11.glTranslated(x + 0.5f, y + 0.675f - indetY, z + 0.5f);
+ GL11.glScalef(0.2F, 0.225F, 0.225F);
+ for(int i = 1; i < entityList.size(); i++) {
+ GL11.glPushMatrix();
+ ItemStack stack = tile.getStackInSlot(i);
+ if(stack != null) {
+ switch(i) {
+ case 1:
+ GL11.glTranslated(0.15f, 0.0f, 0.0f);
+ break;
+ case 2:
+ GL11.glTranslated(-0.15f, 0.0f, -0.15f);
+ break;
+ case 3:
+ GL11.glTranslated(-0.15f, 0.0f, 0.15f);
+ break;
+ }
+ entityList.get(i).setEntityItemStack(stack);
+ entityList.get(i).age = ClientTickHandler.ticksInGame;
+ ((Render)RenderManager.instance.entityRenderMap.get(EntityItem.class)).doRender((Entity)entityList.get(i), 0.0D, 0.0D, 0.0D, 1.0F, f);
+ }
+ GL11.glPopMatrix();
+ }
+ GL11.glPopMatrix();
+ if(tile.getStackInSlot(0) != null) {
+ GL11.glPushMatrix();
+ GL11.glTranslated(x + 0.5, y + 0.915f - indetY, z + 0.5);
+ GL11.glScalef(0.45f, 0.45f, 0.45f);
+ entityList.get(0).setEntityItemStack(tile.getStackInSlot(0));
+ entityList.get(0).age = ClientTickHandler.ticksInGame;
+ ((Render)RenderManager.instance.entityRenderMap.get(EntityItem.class)).doRender((Entity)entityList.get(0), 0.0D, 0.0D, 0.0D, 1.0F, f);
+ GL11.glPopMatrix();
+ }
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/5d/80d89033edac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/5d/80d89033edac001c1d59e42be7477558
deleted file mode 100644
index 9cf94b0..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/5d/80d89033edac001c1d59e42be7477558
+++ /dev/null
@@ -1,111 +0,0 @@
-package ab.common.block;
-
-import java.util.List;
-
-import ab.AdvancedBotany;
-import ab.common.block.tile.TileBoardFate;
-import ab.common.block.tile.TileGameBoard;
-import ab.common.block.tile.TileInventory;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockContainer;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.renderer.texture.IIconRegister;
-import net.minecraft.creativetab.CreativeTabs;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.IIcon;
-import net.minecraft.world.World;
-
-public class BlockBoardFate extends BlockContainer {
-
- protected IIcon[] iconsFate;
- protected IIcon[] iconsBoard;
-
- public BlockBoardFate() {
- super(Material.iron);
- this.setCreativeTab(AdvancedBotany.tabAB);
- this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.1875F, 1.0F);
- this.setHardness(3.0F);
- this.setResistance(10.0F);
- this.setStepSound(soundTypeMetal);
- this.setBlockName("boardFate");
- }
-
- public void getSubBlocks(Item par1, CreativeTabs par2CreativeTabs, List list) {
- for(int i = 0; i < 2; i++)
- list.add(new ItemStack(par1, 1, i));
- }
-
- public void registerBlockIcons(IIconRegister ir) {
- this.iconsFate = new IIcon[3];
- this.iconsBoard = new IIcon[3];
- for(int i = 0; i < iconsFate.length; i++)
- this.iconsFate[i] = ir.registerIcon("ab:boardFate_" + i);
- for(int i = 0; i < iconsBoard.length; i++)
- this.iconsBoard[i] = ir.registerIcon("ab:gameBoard_" + i);
- }
-
- public IIcon getIcon(int side, int meta) {
- if(meta == 0)
- return this.iconsBoard[Math.min(2, side)];
- else
- return this.iconsFate[Math.min(2, side)];
- }
-
- public boolean isOpaqueCube() {
- return false;
- }
-
- public boolean renderAsNormalBlock() {
- return false;
- }
-
- public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float par7, float par8, float par9) {
- int meta = world.getBlockMetadata(x, y, z);
- if(meta == 0) {
- TileGameBoard tile = (TileGameBoard)world.getTileEntity(x, y, z);
- if(!tile.hasGame())
- tile.setPlayer(player);
- else {
- return tile.dropDice(player);
- }
- return false;
- } else {
- TileBoardFate tile = (TileBoardFate)world.getTileEntity(x, y, z);
- return tile.spawnRelic(player);
- }
- }
-
- public TileEntity createNewTileEntity(World world, int meta) {
- return meta == 0 ? new TileGameBoard() : new TileBoardFate();
- }
-
- public void breakBlock(World world, int x, int y, int z, Block block, int meta) {
- if(!world.isRemote && meta == 1) {
- TileInventory inv = (TileInventory)world.getTileEntity(x, y, z);
- if (inv != null) {
- for (int i = 0; i < inv.getSizeInventory(); i++) {
- ItemStack stack = inv.getStackInSlot(i);
- if (stack != null) {
- float f = world.rand.nextFloat() * 0.8F + 0.1F;
- float f1 = world.rand.nextFloat() * 0.8F + 0.1F;
- float f2 = world.rand.nextFloat() * 0.8F + 0.1F;
- EntityItem entityitem = new EntityItem(world, (x + f), (y + f1), (z + f2), stack.copy());
- float f3 = 0.05F;
- entityitem.motionX = ((float)world.rand.nextGaussian() * f3);
- entityitem.motionY = ((float)world.rand.nextGaussian() * f3 + 0.2F);
- entityitem.motionZ = ((float)world.rand.nextGaussian() * f3);
- if (stack.hasTagCompound())
- entityitem.getEntityItem().setTagCompound((NBTTagCompound)stack.getTagCompound().copy());
- world.spawnEntityInWorld(entityitem);
- }
- }
- }
- }
- super.breakBlock(world, x, y, z, block, meta);
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/5d/c022e123a5b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/5d/c022e123a5b1001c19bf8a91ac37238b
deleted file mode 100644
index db1b3a1..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/5d/c022e123a5b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,315 +0,0 @@
-package ab.common.item.relic;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.AdvancedBotany;
-import ab.client.core.ClientHelper;
-import ab.common.entity.EntityAnonymousSteve;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.entity.AbstractClientPlayer;
-import net.minecraft.client.entity.EntityClientPlayerMP;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.entity.RenderManager;
-import net.minecraft.entity.Entity;
-import net.minecraft.entity.EntityLivingBase;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.nbt.NBTTagList;
-import net.minecraft.util.MathHelper;
-import net.minecraft.util.ResourceLocation;
-import net.minecraft.world.World;
-import net.minecraftforge.client.event.RenderWorldLastEvent;
-import net.minecraftforge.common.MinecraftForge;
-import net.minecraftforge.event.entity.living.LivingAttackEvent;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-import vazkii.botania.common.core.helper.ItemNBTHelper;
-
-public class ItemPocketWardrobe extends ItemModRelic {
-
- protected static final ResourceLocation glowPriorityTexture = new ResourceLocation("ab:textures/misc/glow2.png");
- protected static final ResourceLocation glowTexture = new ResourceLocation("ab:textures/misc/glow1.png");
- protected static final int segmentCount = 5;
- protected static final int maxSegmentCount = 12;
-
- public ItemPocketWardrobe() {
- super("autoPocketWardrobe");
- MinecraftForge.EVENT_BUS.register(this);
- }
-
- public void onUpdate(ItemStack pocketWardrobe, World world, Entity entity, int pos, boolean equipped) {
- boolean eqLastTick = wasEquipped(pocketWardrobe);
- if(!equipped && eqLastTick)
- setEquipped(pocketWardrobe, equipped);
- if(!eqLastTick && equipped && entity instanceof EntityLivingBase) {
- setEquipped(pocketWardrobe, equipped);
- int angles = 360;
- int segAngles = angles / maxSegmentCount;
- float shift = segAngles / 2.0f * segmentCount;
- setRotationBase(pocketWardrobe, getCheckingAngle((EntityLivingBase)entity) - shift);
- }
- int tick = getFightingTick(pocketWardrobe);
- if(tick > 0)
- setFightingTick(pocketWardrobe, tick - 1);
- else if(!world.isRemote && tick == 0 && getFightingMode(pocketWardrobe) && entity != null && entity instanceof EntityPlayer) {
- EntityPlayer player = (EntityPlayer)entity;
- setFightingMode(pocketWardrobe, false);
- swapArmorSet(pocketWardrobe, player, getPrioritySet(pocketWardrobe));
- }
- }
-
- public void setArmorSet(ItemStack pocketWardrobe, ItemStack[] armorSet, int segment) {
- NBTTagList nbtList = new NBTTagList();
- int i = -1;
- for(ItemStack armor : armorSet) {
- i++;
- if(armor == null)
- continue;
- NBTTagCompound cmp = new NBTTagCompound();
- cmp.setByte("slot", (byte)i);
- armor.copy().writeToNBT(cmp);
- nbtList.appendTag(cmp);
- }
- ItemNBTHelper.setList(pocketWardrobe, "armorSet" + segment, nbtList);
- }
-
- public static ItemStack[] getArmorSet(ItemStack pocketWardrobe, int segment) {
- if(segment >= segmentCount)
- return null;
- ItemStack[] armorSet = new ItemStack[4];
- NBTTagList nbtList = ItemNBTHelper.getList(pocketWardrobe, "armorSet" + segment, 10, false);
- for(int i = 0; i < nbtList.tagCount(); i++) {
- NBTTagCompound cmp = nbtList.getCompoundTagAt(i);
- byte slotCount = cmp.getByte("slot");
- if(slotCount >= 0 && slotCount <= segmentCount)
- armorSet[slotCount] = ItemStack.loadItemStackFromNBT(cmp);
- }
- return armorSet;
- }
-
- public ItemStack onItemRightClick(ItemStack pocketWardrobe, World world, EntityPlayer player) {
- int segment = getSegmentLookedAt(pocketWardrobe, player);
- if(segment == -1)
- return pocketWardrobe;
- if(player.isSneaking()) {
- setPrioritySet(pocketWardrobe, segment);
- } else {
- swapArmorSet(pocketWardrobe, player, segment);
- }
- return pocketWardrobe;
- }
-
- public void swapArmorSet(ItemStack stack, EntityPlayer player, int segment) {
- ItemStack[] playerSet = player.inventory.armorInventory;
- player.inventory.armorInventory = getArmorSet(stack, segment);
- setArmorSet(stack, playerSet, segment);
- }
-
- @SubscribeEvent
- public void onPlayerAttack(LivingAttackEvent event) {
- if(event.entityLiving != null && event.entityLiving instanceof EntityPlayer) {
- EntityPlayer player = (EntityPlayer)event.entityLiving;
- if(player.capabilities.isCreativeMode)
- return;
- for(int i = 0; i < player.inventory.getSizeInventory(); i++) {
- ItemStack stack = player.inventory.getStackInSlot(i);
- if(stack != null && stack.getItem() instanceof ItemPocketWardrobe) {
- ItemPocketWardrobe item = (ItemPocketWardrobe)stack.getItem();
- if(!item.getFightingMode(stack)) {
- int armorPriorirySlot = item.getPrioritySet(stack);
- ItemStack[] armorSet = item.getArmorSet(stack, armorPriorirySlot);
- boolean hasArmor = false;
- for(int j = 0; j < armorSet.length; j++)
- if(armorSet[j] != null) {
- hasArmor = true;
- break;
- }
- if(hasArmor) {
- item.setFightingTick(stack, 32);
- item.setFightingMode(stack, true);
- item.swapArmorSet(stack, player, armorPriorirySlot);
- return;
- }
- } else {
- item.setFightingTick(stack, 32);
- return;
- }
- }
- }
- }
- }
-
- public ResourceLocation getGlowTexture(ItemStack stack, int segment) {
- return getPrioritySet(stack) == segment ? glowPriorityTexture : glowTexture;
- }
-
- @SideOnly(Side.CLIENT)
- @SubscribeEvent
- public void onRenderWorldLast(RenderWorldLastEvent event) {
- EntityClientPlayerMP entityClientPlayerMP = (Minecraft.getMinecraft()).thePlayer;
- ItemStack stack = entityClientPlayerMP.getCurrentEquippedItem();
- if(stack != null && stack.getItem() instanceof ItemPocketWardrobe)
- render(stack, (EntityPlayer)entityClientPlayerMP, event.partialTicks);
- }
-
- @SideOnly(Side.CLIENT)
- public void render(ItemStack stack, EntityPlayer player, float partialTicks) {
- Minecraft mc = Minecraft.getMinecraft();
- Tessellator tess = Tessellator.instance;
- Tessellator.renderingWorldRenderer = false;
- GL11.glPushMatrix();
- float alpha = ((float)Math.sin(((ClientTickHandler.ticksInGame + partialTicks) * 0.2F)) * 0.5F + 0.5F) * 0.4F + 0.3F;
- double posX = player.prevPosX + (player.posX - player.prevPosX) * partialTicks;
- double posY = player.prevPosY + (player.posY - player.prevPosY) * partialTicks;
- double posZ = player.prevPosZ + (player.posZ - player.prevPosZ) * partialTicks;
- GL11.glTranslated(posX - RenderManager.renderPosX, posY - RenderManager.renderPosY, posZ - RenderManager.renderPosZ);
- float base = getRotationBase(stack);
- int angles = 360;
- int segAngles = angles / maxSegmentCount;
- float shift = base - ((segAngles / 2.0f) * segmentCount);
- float u = 1.0F;
- float v = 0.25F;
- float s = 3.6F;
- float m = 0.8F;
- float y = v * 6.0F;
- float y0 = 0.0F;
- int segmentLookedAt = getSegmentLookedAt(stack, (EntityLivingBase)player);
- for(int seg = 0; seg < segmentCount; seg++) {
- ClientHelper.setLightmapTextureCoords();
- float rotationAngle = (seg + 0.5F) * segAngles + shift;
- GL11.glPushMatrix();
- GL11.glDisable(GL11.GL_LIGHTING);
- GL11.glDisable(2912);
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- GL11.glRotatef(180.0F, 1.0F, 0.0F, 0.0F);
- GL11.glDisable(GL11.GL_CULL_FACE);
- float a = alpha;
- if(segmentLookedAt == seg) {
- a += 0.3F;
- y0 = -y;
- }
- if(seg % 2 == 0) {
- GL11.glColor4f(0.6F, 0.6F, 0.6F, a);
- } else {
- GL11.glColor4f(1.0F, 1.0F, 1.0F, a);
- }
- ItemPocketWardrobe item = (ItemPocketWardrobe)stack.getItem();
- mc.renderEngine.bindTexture(item.getGlowTexture(stack, seg));
- tess.startDrawingQuads();
- for(int i = 0; i < segAngles; i++) {
- float ang = (i + seg * segAngles) + shift;
- double xp = Math.cos(ang * Math.PI / 180.0D) * s;
- double zp = Math.sin(ang * Math.PI / 180.0D) * s;
- tess.addVertexWithUV(xp * m, y, zp * m, u, v);
- tess.addVertexWithUV(xp, y0, zp, u, 0.0D);
- xp = Math.cos((ang + 1.0F) * Math.PI / 180.0D) * s;
- zp = Math.sin((ang + 1.0F) * Math.PI / 180.0D) * s;
- tess.addVertexWithUV(xp, y0, zp, 0.0D, 0.0D);
- tess.addVertexWithUV(xp * m, y, zp * m, 0.0D, v);
- }
- y0 = 0.0F;
- tess.draw();
- GL11.glPopMatrix();
- AbstractClientPlayer steve = new EntityAnonymousSteve(player.worldObj);
- steve.inventory.armorInventory = getArmorSet(stack, seg);
- boolean hasArmor = false;
- for(int l = 0; l < steve.inventory.armorInventory.length; l++)
- if(steve.inventory.armorItemInSlot(l) != null) {
- hasArmor = true;
- break;
- }
- if(hasArmor) {
- GL11.glPushMatrix();
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- GL11.glRotatef(rotationAngle, 0.0F, 1.0F, 0.0F);
- GL11.glTranslatef(s * m, -0.75F, 0.0F);
- float scale = 0.6F;
- GL11.glRotatef(-90.0f, 0.0f, 1.0f, 0.0f);
- GL11.glTranslatef(0.0f, 0.8125f, 0.0f);
- GL11.glScalef(scale, scale, scale);
- steve.setPositionAndRotation(player.posX, player.posY, player.posZ, 0.0f, 10.0f);
- RenderManager.instance.renderEntityWithPosYaw(steve, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f);
- Minecraft.getMinecraft().entityRenderer.disableLightmap(partialTicks);
- GL11.glPopMatrix();
- }
- ClientHelper.setLightmapTextureCoords();
- GL11.glEnable(GL11.GL_CULL_FACE);
- GL11.glDisable(3042);
- }
- GL11.glPopMatrix();
- }
-
- protected static int getSegmentLookedAt(ItemStack stack, EntityLivingBase player) {
- float yaw = getCheckingAngle(player, getRotationBase(stack));
- int angles = 360;
- int segAngles = angles / maxSegmentCount;
- for(int seg = 0; seg < segmentCount; seg++) {
- float calcAngle = seg * segAngles;
- if(yaw >= calcAngle && yaw < calcAngle + segAngles)
- return seg;
- }
- return -1;
- }
-
- protected static float getCheckingAngle(EntityLivingBase player, float base) {
- float yaw = MathHelper.wrapAngleTo180_float(player.rotationYaw) + 90.0f;
- int angles = 360;
- int segAngles = angles / maxSegmentCount;
- float shift = segAngles / 2.0f * segmentCount;
- if(yaw < 0.0f)
- yaw = 360.0F + yaw;
- yaw -= 360.0F - base;
- float angle = 360.0F - yaw + shift;
- if(angle > 360.0F)
- angle %= 360.0F;
- return angle;
- }
-
- protected static float getCheckingAngle(EntityLivingBase player) {
- return getCheckingAngle(player, 0.0F);
- }
-
- public static void setEquipped(ItemStack stack, boolean equipped) {
- ItemNBTHelper.setBoolean(stack, "equipped", equipped);
- }
-
- public static boolean wasEquipped(ItemStack stack) {
- return ItemNBTHelper.getBoolean(stack, "equipped", false);
- }
-
- public static void setRotationBase(ItemStack stack, float rotation) {
- ItemNBTHelper.setFloat(stack, "rotationBase", rotation);
- }
-
- public static float getRotationBase(ItemStack stack) {
- return ItemNBTHelper.getFloat(stack, "rotationBase", 0.0F);
- }
-
- public static void setFightingMode(ItemStack stack, boolean mode) {
- ItemNBTHelper.setBoolean(stack, "fightingMode", mode);
- }
-
- public static boolean getFightingMode(ItemStack stack) {
- return ItemNBTHelper.getBoolean(stack, "fightingMode", false);
- }
-
- public static void setFightingTick(ItemStack stack, int tick) {
- ItemNBTHelper.setInt(stack, "fightingTick", tick);
- }
-
- public static int getFightingTick(ItemStack stack) {
- return ItemNBTHelper.getInt(stack, "fightingTick", 0);
- }
-
- public static void setPrioritySet(ItemStack stack, int segment) {
- ItemNBTHelper.setInt(stack, "prioritySet", segment);
- }
-
- public static int getPrioritySet(ItemStack stack) {
- return ItemNBTHelper.getInt(stack, "prioritySet", 2);
- }
-}
\ No newline at end of file
diff --git a/1.7.10/src/main/java/ab/common/block/BlockAgglomerationPlate.java b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/5e/40ff8183b5bc001c1a9f99005529f322
similarity index 87%
rename from 1.7.10/src/main/java/ab/common/block/BlockAgglomerationPlate.java
rename to 1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/5e/40ff8183b5bc001c1a9f99005529f322
index 3b4d67b..de52655 100644
--- a/1.7.10/src/main/java/ab/common/block/BlockAgglomerationPlate.java
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/5e/40ff8183b5bc001c1a9f99005529f322
@@ -1,7 +1,7 @@
package ab.common.block;
import ab.AdvancedBotany;
-import ab.common.block.tile.TileAgglomerationPlate;
+import ab.common.block.tile.TileNidavellirForge;
import ab.common.block.tile.TileInventory;
import ab.common.lib.register.RecipeListAB;
import net.minecraft.block.Block;
@@ -22,11 +22,9 @@ import vazkii.botania.api.BotaniaAPI;
import vazkii.botania.api.lexicon.ILexiconable;
import vazkii.botania.api.lexicon.LexiconEntry;
-public class BlockAgglomerationPlate extends BlockContainer implements ILexiconable {
-
- private IIcon[] icons;
+public class BlockNidavellirForge extends BlockContainer implements ILexiconable {
- public BlockAgglomerationPlate() {
+ public BlockNidavellirForge() {
super(Material.iron);
this.setCreativeTab(AdvancedBotany.tabAB);
this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.1875F, 1.0F);
@@ -37,7 +35,7 @@ public class BlockAgglomerationPlate extends BlockContainer implements ILexicona
}
public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int par6, float par7, float par8, float par9) {
- TileAgglomerationPlate tile = (TileAgglomerationPlate)world.getTileEntity(x, y, z);
+ TileNidavellirForge tile = (TileNidavellirForge)world.getTileEntity(x, y, z);
if(player.isSneaking()) {
if(tile.getStackInSlot(0) != null) {
ItemStack copy = tile.getStackInSlot(0).copy();
@@ -95,14 +93,8 @@ public class BlockAgglomerationPlate extends BlockContainer implements ILexicona
super.breakBlock(world, x, y, z, block, meta);
}
- public void registerBlockIcons(IIconRegister ir) {
- this.icons = new IIcon[3];
- for (int i = 0; i < this.icons.length; i++)
- this.icons[i] = ir.registerIcon("ab:advancedPlate_" + i);
- }
-
- public IIcon getIcon(int par1, int par2) {
- return this.icons[Math.min(2, par1)];
+ public int getRenderType() {
+ return -1;
}
public boolean renderAsNormalBlock() {
@@ -118,7 +110,7 @@ public class BlockAgglomerationPlate extends BlockContainer implements ILexicona
}
public TileEntity createNewTileEntity(World world, int meta) {
- return new TileAgglomerationPlate();
+ return new TileNidavellirForge();
}
public LexiconEntry getEntry(World arg0, int arg1, int arg2, int arg3, EntityPlayer arg4, ItemStack arg5) {
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/5e/504ff562cabd001c1664fb18d0506bc0 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/5e/504ff562cabd001c1664fb18d0506bc0
new file mode 100644
index 0000000..d8b3878
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/5e/504ff562cabd001c1664fb18d0506bc0
@@ -0,0 +1,5 @@
+package ab.common.core.proxy.packet;
+
+public class S01PacketFindNearBlocks {
+
+}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/5e/d04d90ade0ac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/5e/d04d90ade0ac001c1d59e42be7477558
deleted file mode 100644
index 6a0c65f..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/5e/d04d90ade0ac001c1d59e42be7477558
+++ /dev/null
@@ -1,165 +0,0 @@
-package ab.common.block.tile;
-
-import java.util.List;
-
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.ChatComponentTranslation;
-import net.minecraft.util.ChatStyle;
-import net.minecraft.util.EnumChatFormatting;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-
-public class TileGameBoard extends TileInventory {
-
- protected String[] playersName = new String[] { "", "" };
- public byte[] slotChance = new byte[] { 0, 0, 0, 0 };
- protected int botTick = -1;
- public int endGameTick = -1;
- protected boolean requestUpdate;
- public boolean isSingleGame = true;
- public int clientTick[] = new int[] { 0, 0, 0, 0};
-
- public void updateEntity() {
- System.out.println(hasGame());
- if(botTick > 0)
- botTick--;
- if(endGameTick > 0)
- endGameTick--;
- if(!worldObj.isRemote)
- updateServer();
- else
- updateClient();
- }
-
- protected void updateClient() {
- for(int i = 0; i < slotChance.length; i++)
- if(slotChance[i] > 0)
- clientTick[i]++;
- else
- clientTick[i] = 0;
- }
-
- protected void updateServer() {
- if(requestUpdate)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- boolean hasUpdate = false;
- if(isSingleGame && botTick == 0 && hasGame()) {
- for(int i = 2; i < 4; i++) {
- if(slotChance[i] == 0) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = -1;
- hasUpdate = true;
- break;
- }
- }
- }
- if(hasGame() && endGameTick == 0)
- finishGame();
- requestUpdate = hasUpdate;
- }
-
- public void setPlayer(EntityPlayer player) {
- if(isSingleGame) {
- playersName[0] = player.getCommandSenderName();
- playersName[1] = "";
- requestUpdate = true;
- botTick = 8;
- }
- }
-
- public boolean dropDice(EntityPlayer player) {
- if(isSingleGame) {
- if(player.getCommandSenderName() == playersName[0] && botTick <= 0) {
- boolean isLastDice = false;
- for(int i = 0; i < 2; i++) {
- if(slotChance[i] == 0 && !worldObj.isRemote) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = 18;
- requestUpdate = true;
- if(i == 1)
- isLastDice = true;
- break;
- }
- }
- if(isLastDice)
- endGameTick = 28;
- return true;
- }
- }
- return false;
- }
-
- public boolean hasGame() {
- if(isSingleGame)
- return !playersName[0].isEmpty();
- return !playersName[0].isEmpty() && !playersName[1].isEmpty();
- }
-
- public void finishGame() {
- if(worldObj.isRemote)
- return;
- if(isSingleGame) {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won");
- else
- sendNearMessage(playersName[0] + " you Lose!");
- resetGame();
- requestUpdate = true;
- }
- }
-
- public void sendNearMessage(String text) {
- List players = this.worldObj.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(this.xCoord, this.yCoord, this.zCoord, (this.xCoord + 1), (this.yCoord + 1), (this.zCoord + 1)).expand(3.5f, 3.5f, 3.5f));
- for(EntityPlayer player : players) {
- if(player != null)
- player.addChatMessage((new ChatComponentTranslation(text, new Object[] {})).setChatStyle((new ChatStyle()).setColor(EnumChatFormatting.DARK_GREEN)));
- }
- }
-
- public void resetGame() {
- playersName[0] = "";
- playersName[1] = "";
- for(int i = 0; i < slotChance.length; i++)
- slotChance[i] = 0;
- requestUpdate = true;
- botTick = -1;
- endGameTick = -1;
- }
-
- public void writeCustomNBT(NBTTagCompound cmp) {
- super.writeCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- cmp.setString("playerName" + i, playersName[i]);
- cmp.setByteArray("slotChance", slotChance);
- cmp.setInteger("botTick", botTick);
- cmp.setInteger("endGameTick", endGameTick);
- cmp.setBoolean("requestUpdate", requestUpdate);
- cmp.setBoolean("isSingleGame", isSingleGame);
- }
-
- public void readCustomNBT(NBTTagCompound cmp) {
- super.readCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- playersName[i] = cmp.getString("playerName" + i);
- botTick = cmp.getInteger("botTick");
- endGameTick = cmp.getInteger("endGameTick");
- slotChance = cmp.getByteArray("slotChance");
- requestUpdate = cmp.getBoolean("requestUpdate");
- isSingleGame = cmp.getBoolean("isSingleGame");
- }
-
- public int getInventoryStackLimit() {
- return 1;
- }
-
- public int getSizeInventory() {
- return 4;
- }
-
- public String getInventoryName() {
- return "inv.gameBoard";
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/6/709482aae7ac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/6/709482aae7ac001c1d59e42be7477558
deleted file mode 100644
index 19839a7..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/6/709482aae7ac001c1d59e42be7477558
+++ /dev/null
@@ -1,177 +0,0 @@
-package ab.common.block.tile;
-
-import java.util.List;
-
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.ChatComponentTranslation;
-import net.minecraft.util.ChatStyle;
-import net.minecraft.util.EnumChatFormatting;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.common.block.tile.TileMod;
-
-public class TileGameBoard extends TileMod {
-
- protected String[] playersName = new String[] { "", "" };
- public byte[] slotChance = new byte[] { 0, 0, 0, 0 };
- protected int botTick = -1;
- public int endGameTick = -1;
- protected boolean requestUpdate;
- public boolean isSingleGame = false;
- public int clientTick[] = new int[] { 0, 0, 0, 0};
-
- public void updateEntity() {
- if(botTick > 0)
- botTick--;
- if(endGameTick > 0)
- endGameTick--;
- if(!worldObj.isRemote)
- updateServer();
- else
- updateClient();
- }
-
- protected void updateClient() {
- for(int i = 0; i < slotChance.length; i++)
- if(slotChance[i] > 0)
- clientTick[i]++;
- else
- clientTick[i] = 0;
- }
-
- protected void updateServer() {
- if(requestUpdate)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- boolean hasUpdate = false;
- if(isSingleGame && botTick == 0 && hasGame()) {
- for(int i = 2; i < 4; i++) {
- if(slotChance[i] == 0) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = -1;
- hasUpdate = true;
- break;
- }
- }
- }
- if(hasGame() && endGameTick == 0)
- finishGame();
- requestUpdate = hasUpdate;
- }
-
- public void setPlayer(EntityPlayer player) {
- if(isSingleGame) {
- playersName[0] = player.getCommandSenderName();
- playersName[1] = "";
- requestUpdate = true;
- botTick = 8;
- } else {
- if(playersName[0].isEmpty()) {
- playersName[0] = player.getCommandSenderName();
- requestUpdate = true;
- } else if(!playersName[0].equals(player.getCommandSenderName())) {
- playersName[1] = player.getCommandSenderName();
- requestUpdate = true;
- }
- }
- }
-
- public boolean dropDice(EntityPlayer player) {
- if(isSingleGame) {
- if(player.getCommandSenderName().equals(playersName[0]) && botTick == -1) {
- boolean isLastDice = false;
- for(int i = 0; i < 2; i++) {
- if(slotChance[i] == 0 && !worldObj.isRemote) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = 18;
- requestUpdate = true;
- if(i == 1)
- isLastDice = true;
- break;
- }
- }
- if(isLastDice)
- endGameTick = 28;
- return true;
- }
- } else {
- for(int i = 0; i < playersName.length; i++) {
- if(player.getCommandSenderName().equals(playersName[i])) {
- for(int j = i * 2; j < (i + 1) * 2; j++) {
- System.out.println(j + " " + i);
- if(slotChance[i] == 0 && !worldObj.isRemote) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- requestUpdate = true;
- break;
- }
- }
- return true;
- }
- }
- }
- return false;
- }
-
- public boolean hasGame() {
- if(isSingleGame)
- return !playersName[0].isEmpty();
- return !playersName[0].isEmpty() && !playersName[1].isEmpty();
- }
-
- public void finishGame() {
- if(worldObj.isRemote)
- return;
- if(isSingleGame) {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won");
- else if((slotChance[0] + slotChance[1]) == (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " not win");
- else
- sendNearMessage(playersName[0] + " you Lose!");
- resetGame();
- requestUpdate = true;
- }
- }
-
- public void sendNearMessage(String text) {
- List players = this.worldObj.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(this.xCoord, this.yCoord, this.zCoord, (this.xCoord + 1), (this.yCoord + 1), (this.zCoord + 1)).expand(3.5f, 3.5f, 3.5f));
- for(EntityPlayer player : players) {
- if(player != null)
- player.addChatMessage((new ChatComponentTranslation(text, new Object[] {})).setChatStyle((new ChatStyle()).setColor(EnumChatFormatting.DARK_GREEN)));
- }
- }
-
- public void resetGame() {
- playersName[0] = "";
- playersName[1] = "";
- for(int i = 0; i < slotChance.length; i++)
- slotChance[i] = 0;
- requestUpdate = true;
- botTick = -1;
- endGameTick = -1;
- }
-
- public void writeCustomNBT(NBTTagCompound cmp) {
- super.writeCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- cmp.setString("playerName" + i, playersName[i]);
- cmp.setByteArray("slotChance", slotChance);
- cmp.setInteger("botTick", botTick);
- cmp.setInteger("endGameTick", endGameTick);
- cmp.setBoolean("requestUpdate", requestUpdate);
- cmp.setBoolean("isSingleGame", isSingleGame);
- }
-
- public void readCustomNBT(NBTTagCompound cmp) {
- super.readCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- playersName[i] = cmp.getString("playerName" + i);
- botTick = cmp.getInteger("botTick");
- endGameTick = cmp.getInteger("endGameTick");
- slotChance = cmp.getByteArray("slotChance");
- requestUpdate = cmp.getBoolean("requestUpdate");
- isSingleGame = cmp.getBoolean("isSingleGame");
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/60/108cb1e9a5b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/60/108cb1e9a5b1001c19bf8a91ac37238b
deleted file mode 100644
index 90efe6b..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/60/108cb1e9a5b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,86 +0,0 @@
-package ab.client.core.handler;
-
-import java.awt.Color;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.armor.ItemNebulaArmor;
-import ab.common.item.equipment.armor.ItemNebulaHelm;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.ItemRenderer;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.texture.TextureMap;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraftforge.client.event.RenderPlayerEvent;
-import vazkii.botania.api.item.IPhantomInkable;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class PlayerRendererHandler {
-
- @SubscribeEvent
- public void onPlayerRender(RenderPlayerEvent.Specials.Post event) {
- EntityPlayer player = event.entityPlayer;
- ItemStack item = player.getCurrentArmor(3);
- if(item != null && item.getItem() instanceof ItemNebulaHelm) {
- Item helm = player.getCurrentArmor(3).getItem();
- boolean hasPhantomInk = helm instanceof IPhantomInkable && ((IPhantomInkable)helm).hasPhantomInk(item);
- if(!hasPhantomInk && ((ItemNebulaHelm)helm).enableCosmicFace(item)) {
- float angelX = event.renderer.modelBipedMain.bipedHead.rotateAngleX * 180.0F / (float)Math.PI;
- float angelY = event.renderer.modelBipedMain.bipedHead.rotateAngleY * 180.0F / (float)Math.PI;
- GL11.glPushMatrix();
- if(player.isSneaking())
- GL11.glTranslatef(event.renderer.modelBipedMain.bipedHead.rotationPointX * 0.0625f, event.renderer.modelBipedMain.bipedHead.rotationPointY * 0.0625f, 0.0f);
- GL11.glRotatef(angelY, 0.0F, 1.0F, 0.0F);
- GL11.glRotatef(angelX, 1.0F, 0.0F, 0.0F);
- renderCosmicFace();
- GL11.glPopMatrix();
- }
- }
- }
-
- private void renderCosmicFace() {
- double worldTime = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- GL11.glPushMatrix();
- GL11.glEnable(GL11.GL_TEXTURE_2D);
- GL11.glDisable(2884);
-
- GL11.glPushMatrix();
- GL11.glScalef(0.5f, 0.4f, 0.4f);
- GL11.glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
- GL11.glTranslatef(-0.5f, -0.8675f, 0.0f);
- GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
- System.out.println(GL11.glGetBoolean(2912));
- GL11.glDisable(2912);
- ClientHelper.renderCosmicBackground();
- GL11.glEnable(2912);
- GL11.glPopMatrix();
-
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- (Minecraft.getMinecraft()).renderEngine.bindTexture(TextureMap.locationItemsTexture);
- GL11.glTranslatef(-0.2F, -0.35F, -0.25F);
- GL11.glScalef(0.4f, 0.4f, 0.4f);
- float f = ItemNebulaArmor.nebulaEyes.getMinU();
- float f1 = ItemNebulaArmor.nebulaEyes.getMaxU();
- float f2 = ItemNebulaArmor.nebulaEyes.getMinV();
- float f3 = ItemNebulaArmor.nebulaEyes.getMaxV();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float r = color.getRed() / 510.0F;
- float g = color.getGreen() / 510.0F;
- float b = color.getBlue() / 510.0F;
- GL11.glColor4f(0.5f + r, 0.5f + g, 0.5f + b, 0.685f + (float)Math.sin(worldTime / 50.0D) * 0.175F);
- ItemRenderer.renderItemIn2D(Tessellator.instance, f1, f2, f, f3, ItemNebulaArmor.nebulaEyes.getIconWidth(), ItemNebulaArmor.nebulaEyes.getIconHeight(), 0.03125F);
- GL11.glDisable(3042);
- GL11.glEnable(32826);
- GL11.glPopMatrix();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/61/60a3c302faac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/61/60a3c302faac001c1d59e42be7477558
deleted file mode 100644
index 57b6983..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/61/60a3c302faac001c1d59e42be7477558
+++ /dev/null
@@ -1,205 +0,0 @@
-package ab.common.block.tile;
-
-import java.util.List;
-
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.ChatComponentTranslation;
-import net.minecraft.util.ChatStyle;
-import net.minecraft.util.EnumChatFormatting;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.common.block.tile.TileMod;
-
-public class TileGameBoard extends TileMod {
-
- public String[] playersName = new String[] { "", "" };
- public byte[] slotChance = new byte[] { 0, 0, 0, 0 };
- protected int botTick = -1;
- public int endGameTick = -1;
- protected boolean requestUpdate;
- public boolean isSingleGame = false;
- public int clientTick[] = new int[] { 0, 0, 0, 0 };
-
- public void updateEntity() {
- if(botTick > 0)
- botTick--;
- if(endGameTick > 0)
- endGameTick--;
- if(!worldObj.isRemote)
- updateServer();
- else
- updateAnimationTicks();
- }
-
- public void updateAnimationTicks() {
- for(int i = 0; i < slotChance.length; i++)
- if(slotChance[i] > 0)
- clientTick[i]++;
- else
- clientTick[i] = 0;
- }
-
- protected void updateServer() {
- if(hasGame() && endGameTick == 0)
- finishGame();
- if(requestUpdate)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- boolean hasUpdate = false;
- if(isSingleGame && botTick == 0 && hasGame()) {
- for(int i = 2; i < 4; i++) {
- if(slotChance[i] == 0) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = -1;
- hasUpdate = true;
- break;
- }
- }
- }
- requestUpdate = hasUpdate;
- }
-
- public void setPlayer(EntityPlayer player) {
- if(isSingleGame) {
- playersName[0] = player.getCommandSenderName();
- playersName[1] = "";
- requestUpdate = true;
- botTick = 8;
- } else {
- if(playersName[0].isEmpty())
- playersName[0] = player.getCommandSenderName();
- else if(!playersName[0].equals(player.getCommandSenderName()))
- playersName[1] = player.getCommandSenderName();
- requestUpdate = true;
- }
- }
-
- public boolean dropDice(EntityPlayer player) {
- if(isSingleGame) {
- if(player.getCommandSenderName().equals(playersName[0]) && botTick == -1) {
- boolean isLastDice = false;
- boolean hasDrop = false;
- for(int i = 0; i < 2; i++) {
- if(slotChance[i] == 0) {
- hasDrop = true;
- if(!worldObj.isRemote) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = 18;
- requestUpdate = true;
- if(i == 1)
- isLastDice = true;
- }
- break;
- }
- }
- if(isLastDice)
- endGameTick = 28;
- return hasDrop;
- }
- } else {
- for(int i = 0; i < playersName.length; i++) {
- if(player.getCommandSenderName().equals(playersName[i])) {
- boolean hasDrop = false;
- for(int j = i * 2; j < (i + 1) * 2; j++) {
- if(slotChance[j] == 0) {
- hasDrop = true;
- if(!worldObj.isRemote) {
- slotChance[j] = (byte)(worldObj.rand.nextInt(6) + 1);
- requestUpdate = true;
- if(hasFullDice())
- endGameTick = 28;
- }
- break;
- }
- }
- return hasDrop;
- }
- }
- }
- return false;
- }
-
- public boolean hasFullDice() {
- boolean hasFull = false;
- for(int i = 0; i < slotChance.length; i++) {
- if(!(slotChance[i] > 0))
- return false;
- hasFull = slotChance[i] > 0;
- }
- return hasFull;
- }
-
- public boolean hasGame() {
- if(isSingleGame)
- return !playersName[0].isEmpty();
- else
- for(int i = 0; i < playersName.length; i++)
- if(!playersName[i].isEmpty())
- return true;
- return false;
- }
-
- public void finishGame() {
- if(worldObj.isRemote)
- return;
- if(isSingleGame) {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won");
- else if((slotChance[0] + slotChance[1]) == (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " not win");
- else
- sendNearMessage(playersName[0] + " you Lose!");
- resetGame();
- } else {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won!");
- else if((slotChance[0] + slotChance[1]) == (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " " + playersName[1] + "we are not win");
- else
- sendNearMessage(playersName[1] + " you Won!");
- resetGame();
- }
- }
-
- public void sendNearMessage(String text) {
- List players = this.worldObj.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(this.xCoord, this.yCoord, this.zCoord, (this.xCoord + 1), (this.yCoord + 1), (this.zCoord + 1)).expand(3.5f, 3.5f, 3.5f));
- for(EntityPlayer player : players) {
- if(player != null)
- player.addChatMessage((new ChatComponentTranslation(text, new Object[] {})).setChatStyle((new ChatStyle()).setColor(EnumChatFormatting.DARK_GREEN)));
- }
- }
-
- public void resetGame() {
- playersName[0] = "";
- playersName[1] = "";
- for(int i = 0; i < slotChance.length; i++)
- slotChance[i] = 0;
- botTick = -1;
- endGameTick = -1;
- requestUpdate = true;
- }
-
- public void writeCustomNBT(NBTTagCompound cmp) {
- super.writeCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- cmp.setString("playerName" + i, playersName[i]);
- cmp.setByteArray("slotChance", slotChance);
- cmp.setInteger("botTick", botTick);
- cmp.setInteger("endGameTick", endGameTick);
- cmp.setBoolean("requestUpdate", requestUpdate);
- cmp.setBoolean("isSingleGame", isSingleGame);
- }
-
- public void readCustomNBT(NBTTagCompound cmp) {
- super.readCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- playersName[i] = cmp.getString("playerName" + i);
- botTick = cmp.getInteger("botTick");
- endGameTick = cmp.getInteger("endGameTick");
- slotChance = cmp.getByteArray("slotChance");
- requestUpdate = cmp.getBoolean("requestUpdate");
- isSingleGame = cmp.getBoolean("isSingleGame");
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/b2/d08cb13484ae001c1bd4eaa9a9be6b81 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/61/80a0a30793c1001c11e398ea97007cb4
similarity index 52%
rename from 1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/b2/d08cb13484ae001c1bd4eaa9a9be6b81
rename to 1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/61/80a0a30793c1001c11e398ea97007cb4
index 9a73229..606ef62 100644
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/b2/d08cb13484ae001c1bd4eaa9a9be6b81
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/61/80a0a30793c1001c11e398ea97007cb4
@@ -18,14 +18,16 @@ public class AchievementRegister {
public static Achievement relicPocketArmor;
public static Achievement relicItemChest;
public static Achievement fateBoard;
+ public static Achievement hornPlenty;
+ public static Achievement sphereNavigation;
public static void init() {
- if(ConfigHandler.relicsEnabled) {
- relicSlingshot = new AchievementAB("relicSlingshot", 0, 2, new ItemStack(ItemListAB.itemFreyrSlingshot), null);
- relicPocketArmor = new AchievementAB("relicPocketArmor", 0, -2, new ItemStack(ItemListAB.itemPocketWardrobe), null);
- relicItemChest = new AchievementAB("relicItemChest", 2, 1, new ItemStack(ItemListAB.itemTalismanHiddenRiches), null);
- fateBoard = new AchievementAB("fateBoard", 0, 0, new ItemStack(BlockListAB.blockBoardFate, 1, 1), null).setSpecial();
- }
+ relicSlingshot = new AchievementAB("relicSlingshot", 0, 2, new ItemStack(ItemListAB.itemFreyrSlingshot), null);
+ relicPocketArmor = new AchievementAB("relicPocketArmor", 0, -2, new ItemStack(ItemListAB.itemPocketWardrobe), null);
+ relicItemChest = new AchievementAB("relicItemChest", 2, 1, new ItemStack(ItemListAB.itemTalismanHiddenRiches), null);
+ hornPlenty = new AchievementAB("relicHornPlenty", 2, 2, new ItemStack(ItemListAB.itemTalismanHiddenRiches), null);
+ sphereNavigation = new AchievementAB("relicSphereNavigation", -2, 1, new ItemStack(ItemListAB.itemTalismanHiddenRiches), null);
+ fateBoard = new AchievementAB("fateBoard", 0, 0, new ItemStack(BlockListAB.blockBoardFate, 1, 1), null).setSpecial();
AchievementPage page = new AchievementPage("Advanced Botany", AdvancedBotanyAPI.achievements.toArray(new Achievement[AdvancedBotanyAPI.achievements.size()]));
AchievementPage.registerAchievementPage(page);
}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/61/9070511561c1001c11e398ea97007cb4 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/61/9070511561c1001c11e398ea97007cb4
new file mode 100644
index 0000000..a142c08
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/61/9070511561c1001c11e398ea97007cb4
@@ -0,0 +1,56 @@
+package ab.client.render.item;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.common.item.relic.ItemSphereNavigation;
+import net.minecraft.client.Minecraft;
+import net.minecraft.client.renderer.ItemRenderer;
+import net.minecraft.client.renderer.OpenGlHelper;
+import net.minecraft.client.renderer.Tessellator;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.IIcon;
+import net.minecraftforge.client.IItemRenderer;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class RenderItemSphereNavigation implements IItemRenderer {
+
+ public boolean handleRenderType(ItemStack item, IItemRenderer.ItemRenderType type) {
+ return true;
+ }
+
+ public boolean shouldUseRenderHelper(IItemRenderer.ItemRenderType type, ItemStack item, IItemRenderer.ItemRendererHelper helper) {
+ return (helper == IItemRenderer.ItemRendererHelper.ENTITY_ROTATION || helper == IItemRenderer.ItemRendererHelper.ENTITY_BOBBING);
+ }
+
+ public void renderItem(IItemRenderer.ItemRenderType type, ItemStack stack, Object... data) {
+ GL11.glPushMatrix();
+ if(type == type.INVENTORY) {
+ GL11.glScalef(16, 16, 16);
+ GL11.glRotatef(180, 0, 0, 1);
+ GL11.glTranslatef(-1.0f, -1.0f, 0);
+ } else if(type == type.ENTITY) {
+ GL11.glTranslatef(-0.5F, 0.0F, 0.0F);
+ if(stack.isOnItemFrame())
+ GL11.glTranslatef(0.0F, -0.3F, 0.01F);
+ }
+ GL11.glEnable(GL11.GL_BLEND);
+ OpenGlHelper.glBlendFunc(770, 771, 1, 0);
+ GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
+ IIcon icon = ItemSphereNavigation.icons[0];
+ ItemRenderer.renderItemIn2D(Tessellator.instance, icon.getMaxU(), icon.getMinV(), icon.getMinU(), icon.getMaxV(), icon.getIconWidth(), icon.getIconHeight(), 0.0625F);
+ IIcon iconEnable = ItemSphereNavigation.icons[stack.getItemDamage() == 0 ? 4 : 3];
+ ItemRenderer.renderItemIn2D(Tessellator.instance, iconEnable.getMaxU(), iconEnable.getMinV(), iconEnable.getMinU(), iconEnable.getMaxV(), iconEnable.getIconWidth(), iconEnable.getIconHeight(), 0.0625F);
+ double time = (double) Minecraft.getSystemTime();
+ if(type != type.INVENTORY) {
+ GL11.glScalef(1.0f, 1.0f, 1.05f);
+ GL11.glTranslated(0.0f, 0.0f, 0.0015625f);
+ }
+ IIcon iconBlock = ItemSphereNavigation.icons[ItemSphereNavigation.getFindBlock(stack) != null ? 1 : 2];
+ if(ItemSphereNavigation.getFindBlock(stack) != null) {
+ GL11.glTranslated(0, Math.cos(time / 650.0) * 0.0075, 0.0f);
+ }
+ ItemRenderer.renderItemIn2D(Tessellator.instance, iconBlock.getMaxU(), iconBlock.getMinV(), iconBlock.getMinU(), iconBlock.getMaxV(), iconBlock.getIconWidth(), iconBlock.getIconHeight(), 0.0625F);
+ GL11.glDisable(GL11.GL_BLEND);
+ GL11.glPopMatrix();
+ }
+}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/63/40be4a31bdb1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/63/40be4a31bdb1001c19bf8a91ac37238b
deleted file mode 100644
index a4afc77..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/63/40be4a31bdb1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,236 +0,0 @@
-package ab.common.block.tile;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.api.IRenderHud;
-import ab.common.core.CommonHelper;
-import ab.common.lib.register.BlockListAB;
-import net.minecraft.block.Block;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.gui.Gui;
-import net.minecraft.client.gui.ScaledResolution;
-import net.minecraft.client.renderer.RenderHelper;
-import net.minecraft.client.renderer.entity.RenderItem;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.ItemBlock;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.world.World;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.api.lexicon.multiblock.Multiblock;
-import vazkii.botania.api.lexicon.multiblock.MultiblockSet;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.block.ModBlocks;
-import vazkii.botania.common.block.ModFluffBlocks;
-import vazkii.botania.common.block.tile.TileMod;
-import vazkii.botania.common.core.handler.ConfigHandler;
-
-public class TileLebethronCore extends TileMod implements IRenderHud {
-
- protected int tick;
- protected Block block;
- protected int meta;
- protected boolean validTree;
- private String playerName;
-
- public static MultiblockSet makeMultiblockSet() {
- Multiblock mb = new Multiblock();
- mb.addComponent(0, 1, 0, BlockListAB.blockLebethron, 4);
- mb.addComponent(0, 0, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 2, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 3, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 4, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 5, 0, BlockListAB.blockLebethron, 0);
- mb.setRenderOffset(0, 1, 0);
- return mb.makeSet();
- }
-
- public void updateEntity() {
- if(tick <= 0) {
- updateStructure();
- if(validTree && getBlock() != null) {
- spawnLeaves();
- tick = 40;
- }
- } else
- tick--;
- if(worldObj.isRemote && worldObj.rand.nextBoolean() && this.worldObj.isRemote)
- Botania.proxy.sparkleFX(this.worldObj, this.xCoord + Math.random(), this.yCoord + Math.random(), this.zCoord + Math.random(), 0.5F, 1.0F, 0.5F, (float)Math.random() * 2, 2);
- }
-
- public boolean getValidTree() {
- return this.validTree;
- }
-
- public void updateStructure() {
- boolean oldValidTree = validTree;
- validTree = hasValidTree();
- if(oldValidTree != validTree)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- }
-
- public void setPlayerName(String name) {
- if(playerName.isEmpty())
- playerName = name;
- }
-
- public void writeToNBT(NBTTagCompound nbtt) {
- super.writeToNBT(nbtt);
- nbtt.setString("playerName", playerName);
- }
-
- public void readFromNBT(NBTTagCompound nbtt) {
- super.readFromNBT(nbtt);
- playerName = nbtt.getString("playerName");
- }
-
- public void writeCustomNBT(NBTTagCompound nbtt) {
- nbtt.setInteger("blockID", Block.getIdFromBlock(block));
- nbtt.setInteger("blockMeta", this.meta);
- nbtt.setInteger("tick", this.tick);
- nbtt.setBoolean("validTree", validTree);
- }
-
- public void readCustomNBT(NBTTagCompound nbtt) {
- this.block = Block.getBlockById(nbtt.getInteger("blockID"));
- this.meta = nbtt.getInteger("blockMeta");
- this.tick = nbtt.getInteger("tick");
- this.validTree = nbtt.getBoolean("validTree");
- }
-
- public boolean setBlock(Block block, int meta) {
- if(this.block == null) {
- this.block = block;
- this.meta = meta;
- return true;
- } else {
- if(Block.isEqualTo(this.block, block) && this.meta == meta) {
- return false;
- }
- if(!this.worldObj.isRemote) {
- EntityItem entity = new EntityItem(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- entity.setEntityItemStack(new ItemStack(this.block, 1, this.meta));
- this.worldObj.spawnEntityInWorld(entity);
- }
- this.block = block;
- this.meta = meta;
- return true;
- }
- }
-
- public Block getBlock() {
- if(!Block.isEqualTo(block, Blocks.air) && block != null)
- return this.block;
- return null;
- }
-
- public int getMeta() {
- return this.meta;
- }
-
- public boolean hasValidTree() {
- if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord - 1, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord - 1, this.zCoord))) {
- return false;
- }
- for(int i = 1; i <= 4; i++) {
- if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord + i, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord + i, this.zCoord))) {
- return false;
- }
- }
- return true;
- }
-
- boolean checkBlock(Block block, int meta) {
- return block == BlockListAB.blockLebethron && meta == 0;
- }
-
- private void spawnLeaves() {
- for(int x = -1; x <= 1; x++) {
- for(int z = -1; z <= 1; z++) {
- for(int y = 0; y < 5; y++) {
- this.setBlock(worldObj, this.xCoord + x, this.yCoord + y + 2, this.zCoord + z);
- }
- }
- }
- this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 1, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 1, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord + 1);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord - 1);
- this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 7, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 7, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord + 1);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord - 1);
- for(int i = 0; i <= 3; i++)
- this.setBlock(worldObj, this.xCoord, this.yCoord + 6 + i, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord - 2);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord - 2);
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord - 2);
- }
- this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord - 2);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord + 2);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord + 2);
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord + 2);
- }
- this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord + 2);
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 2, this.zCoord);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 3, this.zCoord + i);
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 4, this.zCoord + i);
- }
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 5, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 2, this.zCoord);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 3, this.zCoord + i);
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 4, this.zCoord + i);
- }
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 5, this.zCoord);
- }
-
- private void setBlock(World world, int x, int y, int z) {
- if(!world.isRemote) {
- EntityPlayer player = worldObj.getPlayerEntityByName(playerName);
- if(player != null) {
- if(world.rand.nextInt(10) <= 8)
- return;
- else
- CommonHelper.setBlock(world, block, meta, x, y, z, (EntityPlayerMP)player, true);
- }
- }
- }
-
- public void renderHud(Minecraft mc, ScaledResolution res) {
- if(!validTree)
- return;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- ItemStack stack = getBlock() != null ? new ItemStack(block, 1, meta) : new ItemStack(Blocks.leaves);
- int x = res.getScaledWidth() / 2 - 7;
- int y = res.getScaledHeight() / 2 + 12;
- Gui.drawRect(x - 2, y - 2, x + 18, y + 18, 1140850688);
- Gui.drawRect(x, y, x + 16, y + 16, 1140850688);
- RenderHelper.enableGUIStandardItemLighting();
- GL11.glEnable(32826);
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, stack, x, y);
- RenderHelper.disableStandardItemLighting();
- GL11.glDisable(2929);
- boolean unicode = mc.fontRenderer.getUnicodeFlag();
- mc.fontRenderer.setUnicodeFlag(true);
- if(getBlock() != null) {
- mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 9, 19456);
- mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 8, 774669);
- } else {
- mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 9, 4980736);
- mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 8, 13764621);
- }
- mc.fontRenderer.setUnicodeFlag(unicode);
- GL11.glEnable(2929);
- GL11.glDisable(3042);
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/63/608ffaf32ebe001c1965b122d2f8f403 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/63/608ffaf32ebe001c1965b122d2f8f403
new file mode 100644
index 0000000..dccdf2e
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/63/608ffaf32ebe001c1965b122d2f8f403
@@ -0,0 +1,159 @@
+package ab.common.item.relic;
+
+import java.awt.Color;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.common.core.handler.NetworkHandler;
+import ab.common.lib.register.ItemListAB;
+import net.minecraft.block.Block;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.util.MathHelper;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.api.mana.ManaItemHandler;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class ItemSphereNavigation extends ItemModRelic {
+
+ public static final int rangeSearch = 17;
+ public static final int maxCooldown = 112;
+ public static final int manaCost = 1750;
+
+ public ItemSphereNavigation() {
+ super("sphereNavigation");
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int pos, boolean equipped) {
+ super.onUpdate(stack, world, entity, pos, equipped);
+ if(entity instanceof EntityPlayer) {
+ EntityPlayer player = (EntityPlayer)entity;
+ if(!world.isRemote && getFindBlock(stack) != null && canWork(stack) && ManaItemHandler.requestManaExactForTool(stack, player, manaCost, true)) {
+ setMaxTick(stack);
+ NetworkHandler.sendPacketToFindBlocks((EntityPlayerMP)player, getFindBlock(stack), getFindMeta(stack));
+ }
+ }
+ }
+
+ public static void findBlocks(World world, Block findBlock, int findMeta, EntityPlayer player) {
+ if(world.isRemote) {
+ ItemStack renderStack = null;
+ int findedBlocks = 0;
+ label1703:
+ for(int x = -rangeSearch; x < rangeSearch; x++) {
+ if(world.rand.nextBoolean())
+ continue;
+ for(int y = -rangeSearch * 4; y < rangeSearch; y++) {
+ if(world.rand.nextBoolean())
+ continue;
+ for(int z = -rangeSearch; z < rangeSearch; z++) {
+ if(world.rand.nextBoolean())
+ continue;
+ else if(findedBlocks > 24)
+ break label1703;
+ int posX = MathHelper.floor_double(player.posX) + x;
+ int posY = MathHelper.floor_double(player.posY) + y;
+ int posZ = MathHelper.floor_double(player.posZ) + z;
+ if(posY < 0)
+ continue;
+ Block block = world.getBlock(posX, posY, posZ);
+ if(!Block.isEqualTo(block, findBlock))
+ continue;
+ int meta = world.getBlockMetadata(posX, posY, posZ);
+ if(meta == findMeta) {
+ if(renderStack == null)
+ renderStack = getRenderStackForBlock(world, block, meta, posX, posY, posZ);
+ findedBlocks++;
+ float maxAge = 2.7f + (0.5f * (float)(Math.random()));
+ Botania.proxy.setWispFXDepthTest(false);
+ Botania.proxy.setWispFXDistanceLimit(false);
+ float far = 120.0f - (((Math.abs(x) + Math.min(rangeSearch * 2.0f, Math.abs(y)) + Math.abs(z)) / (rangeSearch * 4.0f)) * 120.0f);
+ if(far <= 60)
+ far *= 0.15f;
+ Color color = new Color(Color.HSBtoRGB(far / 360.0f, 0.9f + (float)(Math.random() * 0.1f), 1.0f));
+ for(int i = 0; i < 11; i++)
+ Botania.proxy.wispFX(world, posX + 0.5f + (Math.random() - 0.5f), posY + 0.5f + (Math.random() - 0.5f), posZ + 0.5f + (Math.random() - 0.5f), color.getRed() / 100.0f, color.getGreen() / 100.0f, color.getBlue() / 100.0f, 0.3f + (float)(Math.random() * 0.25f), 0.0f, maxAge);
+ Botania.proxy.setWispFXDistanceLimit(true);
+ Botania.proxy.setWispFXDepthTest(true);
+ }
+ }
+ }
+ }
+ if(renderStack != null)
+ ItemsRemainingRender.set(renderStack, "íàéäåíî: " + findedBlocks);
+ }
+ }
+
+ public static ItemStack getRenderStackForBlock(World world, Block block, int meta, int x, int y, int z) {
+ if(block != null) {
+ Item item = Item.getItemFromBlock(block);
+ if(item != null) {
+ ItemStack findStack = new ItemStack(block, 1, meta);
+ if(findStack != null)
+ return findStack;
+ } else {
+ Item item1 = block.getItem(world, x, y, z);
+ if(item1 != null) {
+ ItemStack findStack = new ItemStack(item1, 1, meta);
+ if(findStack != null)
+ return findStack;
+ }
+ }
+ }
+ return null;
+ }
+
+ public boolean onItemUse(ItemStack stack, EntityPlayer p, World world, int x, int y, int z, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
+ if(p.isSneaking()) {
+ Block block = world.getBlock(x, y, z);
+ if(block != null) {
+ int meta = world.getBlockMetadata(x, y, z);
+ ItemStack findStack = getRenderStackForBlock(world, block, meta, x, y, z);
+ if(findStack != null) {
+ setFindBlock(stack, block, meta);
+ if(world.isRemote)
+ ItemsRemainingRender.set(findStack, findStack.getDisplayName());
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public boolean canWork(ItemStack stack) {
+ int tick = ItemNBTHelper.getInt(stack, "cooldown", 0);
+ if(tick == 0)
+ return true;
+ else if(tick > 0)
+ ItemNBTHelper.setInt(stack, "cooldown", tick - 1);
+ return false;
+ }
+
+ public void setMaxTick(ItemStack stack) {
+ ItemNBTHelper.setInt(stack, "cooldown", maxCooldown);
+ }
+
+ public static void setFindBlock(ItemStack stack, Block block, int meta) {
+ ItemNBTHelper.setInt(stack, "findBlockID", Block.getIdFromBlock(block));
+ ItemNBTHelper.setInt(stack, "findBlockMeta", meta);
+ }
+
+ public static Block getFindBlock(ItemStack stack) {
+ int blockID = ItemNBTHelper.getInt(stack, "findBlockID", 0);
+ if(blockID == 0)
+ return null;
+ else
+ return Block.getBlockById(blockID);
+ }
+
+ public static int getFindMeta(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "findBlockMeta", -1);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/64/1057ce84ebac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/64/1057ce84ebac001c1d59e42be7477558
deleted file mode 100644
index f655fbe..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/64/1057ce84ebac001c1d59e42be7477558
+++ /dev/null
@@ -1,194 +0,0 @@
-package ab.common.block.tile;
-
-import java.util.List;
-
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.ChatComponentTranslation;
-import net.minecraft.util.ChatStyle;
-import net.minecraft.util.EnumChatFormatting;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.common.block.tile.TileMod;
-
-public class TileGameBoard extends TileMod {
-
- protected String[] playersName = new String[] { "", "" };
- public byte[] slotChance = new byte[] { 0, 0, 0, 0 };
- protected int botTick = -1;
- public int endGameTick = -1;
- protected boolean requestUpdate;
- public boolean isSingleGame = false;
- public int clientTick[] = new int[] { 0, 0, 0, 0};
-
- public void updateEntity() {
- if(botTick > 0)
- botTick--;
- if(endGameTick > 0)
- endGameTick--;
- if(!worldObj.isRemote)
- updateServer();
- else
- updateClient();
- }
-
- protected void updateClient() {
- for(int i = 0; i < slotChance.length; i++)
- if(slotChance[i] > 0)
- clientTick[i]++;
- else
- clientTick[i] = 0;
- }
-
- protected void updateServer() {
- if(requestUpdate)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- boolean hasUpdate = false;
- if(isSingleGame && botTick == 0 && hasGame()) {
- for(int i = 2; i < 4; i++) {
- if(slotChance[i] == 0) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = -1;
- hasUpdate = true;
- break;
- }
- }
- }
- if(hasGame() && endGameTick == 0)
- finishGame();
- requestUpdate = hasUpdate;
- }
-
- public void setPlayer(EntityPlayer player) {
- if(isSingleGame) {
- playersName[0] = player.getCommandSenderName();
- playersName[1] = "";
- requestUpdate = true;
- botTick = 8;
- } else {
- if(playersName[0].isEmpty()) {
- playersName[0] = player.getCommandSenderName();
- requestUpdate = true;
- } else if(!playersName[0].equals(player.getCommandSenderName())) {
- playersName[1] = player.getCommandSenderName();
- requestUpdate = true;
- }
- }
- }
-
- public boolean dropDice(EntityPlayer player) {
- if(isSingleGame) {
- if(player.getCommandSenderName().equals(playersName[0]) && botTick == -1) {
- boolean isLastDice = false;
- for(int i = 0; i < 2; i++) {
- if(slotChance[i] == 0 && !worldObj.isRemote) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = 18;
- requestUpdate = true;
- if(i == 1)
- isLastDice = true;
- break;
- }
- }
- if(isLastDice)
- endGameTick = 28;
- return true;
- }
- } else {
- for(int i = 0; i < playersName.length; i++) {
- if(player.getCommandSenderName().equals(playersName[i])) {
- for(int j = i * 2; j < (i + 1) * 2; j++) {
- if(slotChance[j] == 0 && !worldObj.isRemote) {
- slotChance[j] = (byte)(worldObj.rand.nextInt(6) + 1);
- requestUpdate = true;
- if(hasFullDice())
- endGameTick = 28;
- break;
- }
- }
- return true;
- }
- }
- }
- return false;
- }
-
- public boolean hasFullDice() {
- boolean hasFull = false;
- for(int i = 0; i < slotChance.length; i++)
- hasFull = slotChance[i] > 0;
- return hasFull;
- }
-
- public boolean hasGame() {
- if(isSingleGame)
- return !playersName[0].isEmpty();
- return !playersName[0].isEmpty() && !playersName[1].isEmpty();
- }
-
- public void finishGame() {
- if(worldObj.isRemote)
- return;
- if(isSingleGame) {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won");
- else if((slotChance[0] + slotChance[1]) == (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " not win");
- else
- sendNearMessage(playersName[0] + " you Lose!");
- resetGame();
- requestUpdate = true;
- } else {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won!");
- else if((slotChance[0] + slotChance[1]) == (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " " + playersName[1] + "we are not win");
- else
- sendNearMessage(playersName[1] + " you Won!");
- resetGame();
- requestUpdate = true;
- }
- }
-
- public void sendNearMessage(String text) {
- List players = this.worldObj.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(this.xCoord, this.yCoord, this.zCoord, (this.xCoord + 1), (this.yCoord + 1), (this.zCoord + 1)).expand(3.5f, 3.5f, 3.5f));
- for(EntityPlayer player : players) {
- if(player != null)
- player.addChatMessage((new ChatComponentTranslation(text, new Object[] {})).setChatStyle((new ChatStyle()).setColor(EnumChatFormatting.DARK_GREEN)));
- }
- }
-
- public void resetGame() {
- playersName[0] = "";
- playersName[1] = "";
- for(int i = 0; i < slotChance.length; i++)
- slotChance[i] = 0;
- requestUpdate = true;
- botTick = -1;
- endGameTick = -1;
- }
-
- public void writeCustomNBT(NBTTagCompound cmp) {
- super.writeCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- cmp.setString("playerName" + i, playersName[i]);
- cmp.setByteArray("slotChance", slotChance);
- cmp.setInteger("botTick", botTick);
- cmp.setInteger("endGameTick", endGameTick);
- cmp.setBoolean("requestUpdate", requestUpdate);
- cmp.setBoolean("isSingleGame", isSingleGame);
- }
-
- public void readCustomNBT(NBTTagCompound cmp) {
- super.readCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- playersName[i] = cmp.getString("playerName" + i);
- botTick = cmp.getInteger("botTick");
- endGameTick = cmp.getInteger("endGameTick");
- slotChance = cmp.getByteArray("slotChance");
- requestUpdate = cmp.getBoolean("requestUpdate");
- isSingleGame = cmp.getBoolean("isSingleGame");
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/64/20531b5991b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/64/20531b5991b1001c19bf8a91ac37238b
deleted file mode 100644
index 335e11e..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/64/20531b5991b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,85 +0,0 @@
-package ab.client.core.handler;
-
-import java.awt.Color;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.armor.ItemNebulaArmor;
-import ab.common.item.equipment.armor.ItemNebulaHelm;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.ItemRenderer;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.texture.TextureMap;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraftforge.client.event.RenderPlayerEvent;
-import vazkii.botania.api.item.IPhantomInkable;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class PlayerRendererHandler {
-
- @SubscribeEvent
- public void onPlayerRender(RenderPlayerEvent.Specials.Post event) {
- EntityPlayer player = event.entityPlayer;
- ItemStack item = player.getCurrentArmor(3);
- if(item != null && item.getItem() instanceof ItemNebulaHelm) {
- Item helm = player.getCurrentArmor(3).getItem();
- boolean hasPhantomInk = helm instanceof IPhantomInkable && ((IPhantomInkable)helm).hasPhantomInk(item);
- if(!hasPhantomInk && ((ItemNebulaHelm)helm).enableCosmicFace(item)) {
- float angelX = event.renderer.modelBipedMain.bipedHead.rotateAngleX * 180.0F / (float)Math.PI;
- float angelY = event.renderer.modelBipedMain.bipedHead.rotateAngleY * 180.0F / (float)Math.PI;
- GL11.glPushMatrix();
- if(player.isSneaking())
- GL11.glTranslatef(event.renderer.modelBipedMain.bipedHead.rotationPointX * 0.0625f, event.renderer.modelBipedMain.bipedHead.rotationPointY * 0.0625f, 0.0f);
- GL11.glRotatef(angelY, 0.0F, 1.0F, 0.0F);
- GL11.glRotatef(angelX, 1.0F, 0.0F, 0.0F);
- renderCosmicFace();
- GL11.glPopMatrix();
- }
- }
- }
-
- private void renderCosmicFace() {
- double worldTime = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- GL11.glPushMatrix();
- GL11.glEnable(GL11.GL_TEXTURE_2D);
-// GL11.glDisable(2912);
- GL11.glDisable(2884);
-
- GL11.glPushMatrix();
- GL11.glScalef(0.5f, 0.4f, 0.4f);
- GL11.glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
- GL11.glTranslatef(-0.5f, -0.8675f, 0.0f);
- GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
- ClientHelper.renderCosmicBackground();
- GL11.glPopMatrix();
-
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- (Minecraft.getMinecraft()).renderEngine.bindTexture(TextureMap.locationItemsTexture);
- GL11.glTranslatef(-0.2F, -0.35F, -0.25F);
- GL11.glScalef(0.4f, 0.4f, 0.4f);
- float f = ItemNebulaArmor.nebulaEyes.getMinU();
- float f1 = ItemNebulaArmor.nebulaEyes.getMaxU();
- float f2 = ItemNebulaArmor.nebulaEyes.getMinV();
- float f3 = ItemNebulaArmor.nebulaEyes.getMaxV();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float r = color.getRed() / 510.0F;
- float g = color.getGreen() / 510.0F;
- float b = color.getBlue() / 510.0F;
- GL11.glColor4f(0.5f + r, 0.5f + g, 0.5f + b, 0.685f + (float)Math.sin(worldTime / 50.0D) * 0.175F);
- ItemRenderer.renderItemIn2D(Tessellator.instance, f1, f2, f, f3, ItemNebulaArmor.nebulaEyes.getIconWidth(), ItemNebulaArmor.nebulaEyes.getIconHeight(), 0.03125F);
- GL11.glDisable(3042);
- GL11.glEnable(2884);
- GL11.glEnable(32826);
- GL11.glPopMatrix();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/64/40637abbb7bc001c1a9f99005529f322 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/64/40637abbb7bc001c1a9f99005529f322
new file mode 100644
index 0000000..04903f6
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/64/40637abbb7bc001c1a9f99005529f322
@@ -0,0 +1,109 @@
+package ab.client.render.tile;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Random;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.client.model.ModelNidavellirForge;
+import ab.common.block.tile.TileNidavellirForge;
+import net.minecraft.client.Minecraft;
+import net.minecraft.client.renderer.OpenGlHelper;
+import net.minecraft.client.renderer.Tessellator;
+import net.minecraft.client.renderer.entity.Render;
+import net.minecraft.client.renderer.entity.RenderManager;
+import net.minecraft.client.renderer.texture.TextureMap;
+import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.ResourceLocation;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.client.core.helper.ShaderHelper;
+import vazkii.botania.common.block.mana.BlockTerraPlate;
+
+public class RenderTileNidavellirForge extends TileEntitySpecialRenderer {
+
+ private List entityList = null;
+ private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/nidavellirForge.png");
+ private static final ModelNidavellirForge model = new ModelNidavellirForge();
+
+ public void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float f) {
+ TileNidavellirForge tile = (TileNidavellirForge)tileentity;
+ double worldTime = 0.0D;
+ int meta = 0;
+ if(tileentity != null && tileentity.getWorldObj() != null) {
+ worldTime = ClientTickHandler.ticksInGame + f + (new Random((tileentity.xCoord ^ tileentity.yCoord ^ tileentity.zCoord))).nextInt(360);
+ meta = tileentity.getWorldObj().getBlockMetadata(tileentity.xCoord, tileentity.yCoord, tileentity.zCoord);
+ }
+ float indetY = (float)(Math.sin(worldTime / 18.0D) / 24.0D);
+ GL11.glPushMatrix();
+ GL11.glEnable(32826);
+ GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
+ GL11.glTranslated(x, y, z);
+ GL11.glTranslatef(0.5f, 1.5f, 0.5f);
+ GL11.glRotatef(180.0f, 1.0f, 0.0f, 1.0f);
+ float angelForSide = 0.0f;
+ System.out.println(meta);
+ switch(meta) {
+ case 1: angelForSide = 180.0f;
+ break;
+ case 2: angelForSide = 90.0f;
+ break;
+ case 3: angelForSide = 270.0f;
+ break;
+ }
+ GL11.glRotatef(angelForSide, 0.0f, 1.0f, 0.0f);
+ Minecraft.getMinecraft().renderEngine.bindTexture(texture);
+ model.renderBottom();
+ GL11.glTranslatef(0.0f, indetY, 0.0f);
+ model.renderTop();
+ GL11.glEnable(32826);
+ GL11.glPopMatrix();
+ if(entityList == null) {
+ List list = new ArrayList();
+ for(int i = 0; i < tile.getSizeInventory(); i++) {
+ list.add(new EntityItem(tile.getWorldObj(), tile.xCoord, tile.yCoord, tile.zCoord));
+ }
+ entityList = list;
+ }
+ GL11.glPushMatrix();
+ GL11.glTranslated(x + 0.5f, y + 0.675f - indetY, z + 0.5f);
+ GL11.glScalef(0.2F, 0.225F, 0.225F);
+ for(int i = 1; i < entityList.size(); i++) {
+ GL11.glPushMatrix();
+ ItemStack stack = tile.getStackInSlot(i);
+ if(stack != null) {
+ switch(i) {
+ case 1:
+ GL11.glTranslated(0.15f, 0.0f, 0.0f);
+ break;
+ case 2:
+ GL11.glTranslated(-0.15f, 0.0f, -0.15f);
+ break;
+ case 3:
+ GL11.glTranslated(-0.15f, 0.0f, 0.15f);
+ break;
+ }
+ entityList.get(i).setEntityItemStack(stack);
+ entityList.get(i).age = ClientTickHandler.ticksInGame;
+ ((Render)RenderManager.instance.entityRenderMap.get(EntityItem.class)).doRender((Entity)entityList.get(i), 0.0D, 0.0D, 0.0D, 1.0F, f);
+ }
+ GL11.glPopMatrix();
+ }
+ GL11.glPopMatrix();
+ if(tile.getStackInSlot(0) != null) {
+ GL11.glPushMatrix();
+ GL11.glTranslated(x + 0.5, y + 0.915f - indetY, z + 0.5);
+ GL11.glScalef(0.45f, 0.45f, 0.45f);
+ entityList.get(0).setEntityItemStack(tile.getStackInSlot(0));
+ entityList.get(0).age = ClientTickHandler.ticksInGame;
+ ((Render)RenderManager.instance.entityRenderMap.get(EntityItem.class)).doRender((Entity)entityList.get(0), 0.0D, 0.0D, 0.0D, 1.0F, f);
+ GL11.glPopMatrix();
+ }
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/64/501bdb8d28b0001c18a5eba32f24fffa b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/64/501bdb8d28b0001c18a5eba32f24fffa
deleted file mode 100644
index 7923bb5..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/64/501bdb8d28b0001c18a5eba32f24fffa
+++ /dev/null
@@ -1,22 +0,0 @@
-package ab.common.item.relic;
-
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraftforge.common.MinecraftForge;
-import net.minecraftforge.event.entity.living.LivingDeathEvent;
-import net.minecraftforge.event.entity.living.LivingDropsEvent;
-
-public class ItemSehrimnirHide extends ItemModRelic {
-
- public ItemSehrimnirHide() {
- super("sehrimnirHide");
- MinecraftForge.EVENT_BUS.register(this);
- }
-
- @SubscribeEvent
- public void onPlayerAttack(LivingDeathEvent event) {
- for(EntityItem item : event.entityLiving.capturedDrops) {
- System.out.println(item.getEntityItem());
- }
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/64/7074224425b0001c18a5eba32f24fffa b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/64/7074224425b0001c18a5eba32f24fffa
deleted file mode 100644
index 15e890f..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/64/7074224425b0001c18a5eba32f24fffa
+++ /dev/null
@@ -1,80 +0,0 @@
-package ab.common.block.subtile;
-
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.world.World;
-import vazkii.botania.api.subtile.SubTileGenerating;
-
-public class SubTileArdentAzarcissus extends SubTileGenerating {
-
- public static final String playerName = "ArdentAzarcissus#21sda2gaj91*21df#111sfq3jrns@#";
- int cooldown;
- int workMana = 400;
-
- public void onUpdate() {
- super.onUpdate();
- World world = this.supertile.getWorldObj();
- int posX = this.supertile.xCoord;
- int posY = this.supertile.yCoord;
- int posZ = this.supertile.zCoord;
- if(world.isRemote)
- return;
- if(cooldown > 0) {
- cooldown--;
- return;
- } else if (this.mana == this.getMaxMana())
- return;
- boolean needSync = false;
- for(int i = -1; i <= 1; i++)
- for(int j = -1; j <= 1; j++) {
- int x = posX + i;
- int z = posZ + j;
- TileEntity tile = world.getTileEntity(x, posY, z);
- if(tile != null && tile instanceof TileGameBoard) {
- TileGameBoard board = (TileGameBoard)tile;
- if(board.isSingleGame) {
- if(!board.hasGame()) {
- board.setPlayer(playerName, true);
- cooldown = 120;
- } else {
- if(!board.playersName[0].equals(playerName))
- board.playersName[0] = playerName;
- if(!board.isCustomGame)
- board.isCustomGame = true;
- if(board.endGameTick == 0) {
- int winCount = (board.slotChance[0] + board.slotChance[1]) - (board.slotChance[2] + board.slotChance[3]);
- if(winCount > 0) {
- mana = Math.min(this.getMaxMana(), this.mana + (workMana * winCount));
- needSync = true;
- }
- board.finishGame(false);
- } else
- board.dropDice(playerName);
- cooldown = 120;
- }
- }
- }
- }
- if(needSync)
- sync();
- }
-
- public int getMaxMana() {
- return 16000;
- }
-
- public int getColor() {
- return this.supertile.getWorldObj().rand.nextBoolean() ? 0x35d1df : 0xdf3596;
- }
-
- public void writeToPacketNBT(NBTTagCompound cmp) {
- super.writeToPacketNBT(cmp);
- cmp.setInteger("cooldown", this.cooldown);
- }
-
- public void readFromPacketNBT(NBTTagCompound cmp) {
- super.readFromPacketNBT(cmp);
- this.cooldown = cmp.getInteger("cooldown");
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/65/10910faa2fbe001c1965b122d2f8f403 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/65/10910faa2fbe001c1965b122d2f8f403
new file mode 100644
index 0000000..11a5a4d
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/65/10910faa2fbe001c1965b122d2f8f403
@@ -0,0 +1,159 @@
+package ab.common.item.relic;
+
+import java.awt.Color;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.common.core.handler.NetworkHandler;
+import ab.common.lib.register.ItemListAB;
+import net.minecraft.block.Block;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.util.MathHelper;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.api.mana.ManaItemHandler;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class ItemSphereNavigation extends ItemModRelic {
+
+ public static final int rangeSearch = 17;
+ public static final int maxCooldown = 112;
+ public static final int manaCost = 1750;
+
+ public ItemSphereNavigation() {
+ super("sphereNavigation");
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int pos, boolean equipped) {
+ super.onUpdate(stack, world, entity, pos, equipped);
+ if(entity instanceof EntityPlayer) {
+ EntityPlayer player = (EntityPlayer)entity;
+ if(!world.isRemote && getFindBlock(stack) != null && canWork(stack) && ManaItemHandler.requestManaExactForTool(stack, player, manaCost, true)) {
+ setMaxTick(stack);
+ NetworkHandler.sendPacketToFindBlocks((EntityPlayerMP)player, getFindBlock(stack), getFindMeta(stack));
+ }
+ }
+ }
+
+ public static void findBlocks(World world, Block findBlock, int findMeta, EntityPlayer player) {
+ if(world.isRemote) {
+ ItemStack renderStack = null;
+ int findedBlocks = 0;
+ label1703:
+ for(int x = -rangeSearch; x < rangeSearch; x++) {
+ if(world.rand.nextBoolean())
+ continue;
+ for(int y = -rangeSearch * 4; y < rangeSearch; y++) {
+ if(world.rand.nextBoolean())
+ continue;
+ for(int z = -rangeSearch; z < rangeSearch; z++) {
+ if(world.rand.nextBoolean())
+ continue;
+ else if(findedBlocks > 24)
+ break label1703;
+ int posX = MathHelper.floor_double(player.posX) + x;
+ int posY = MathHelper.floor_double(player.posY) + y;
+ int posZ = MathHelper.floor_double(player.posZ) + z;
+ if(posY < 0)
+ continue;
+ Block block = world.getBlock(posX, posY, posZ);
+ if(!Block.isEqualTo(block, findBlock))
+ continue;
+ int meta = world.getBlockMetadata(posX, posY, posZ);
+ if(meta == findMeta) {
+ if(renderStack == null)
+ renderStack = getRenderStackForBlock(world, block, meta, posX, posY, posZ);
+ findedBlocks++;
+ float maxAge = 2.7f + (0.5f * (float)(Math.random()));
+ Botania.proxy.setWispFXDepthTest(false);
+ Botania.proxy.setWispFXDistanceLimit(false);
+ float far = 120.0f - (((Math.abs(x) + Math.min(rangeSearch * 2.0f, Math.abs(y)) + Math.abs(z)) / (rangeSearch * 4.0f)) * 120.0f);
+ if(far <= 60)
+ far *= 0.15f;
+ Color color = new Color(Color.HSBtoRGB(far / 360.0f, 0.9f + (float)(Math.random() * 0.1f), 1.0f));
+ for(int i = 0; i < 11; i++)
+ Botania.proxy.wispFX(world, posX + 0.5f + (Math.random() - 0.5f), posY + 0.5f + (Math.random() - 0.5f), posZ + 0.5f + (Math.random() - 0.5f), color.getRed() / 100.0f, color.getGreen() / 100.0f, color.getBlue() / 100.0f, 0.3f + (float)(Math.random() * 0.25f), 0.0f, maxAge);
+ Botania.proxy.setWispFXDistanceLimit(true);
+ Botania.proxy.setWispFXDepthTest(true);
+ }
+ }
+ }
+ }
+ if(renderStack != null)
+ ItemsRemainingRender.set(renderStack, "íàéäåíî: " + findedBlocks);
+ }
+ }
+
+ public static ItemStack getRenderStackForBlock(World world, Block block, int meta, int x, int y, int z) {
+ if(block != null) {
+ Item item = Item.getItemFromBlock(block);
+ if(item != null) {
+ ItemStack findStack = new ItemStack(block, 1, meta);
+ if(findStack != null)
+ return findStack;
+ } else {
+ Item item1 = block.getItem(world, x, y, z);
+ if(item1 != null) {
+ ItemStack findStack = new ItemStack(item1, 1, meta);
+ if(findStack != null)
+ return findStack;
+ }
+ }
+ }
+ return null;
+ }
+
+ public boolean onItemUse(ItemStack stack, EntityPlayer p, World world, int x, int y, int z, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
+ if(p.isSneaking()) {
+ Block block = world.getBlock(x, y, z);
+ if(block != null) {
+ int meta = world.getBlockMetadata(x, y, z);
+ ItemStack findStack = getRenderStackForBlock(world, block, meta, x, y, z);
+ if(findStack != null) {
+ setFindBlock(stack, block, meta);
+ if(world.isRemote)
+ ItemsRemainingRender.set(findStack, findStack.getDisplayName());
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public boolean canWork(ItemStack stack) {
+ int tick = ItemNBTHelper.getInt(stack, "cooldown", 24);
+ if(tick == 0)
+ return true;
+ else if(tick > 0)
+ ItemNBTHelper.setInt(stack, "cooldown", tick - 1);
+ return false;
+ }
+
+ public void setMaxTick(ItemStack stack) {
+ ItemNBTHelper.setInt(stack, "cooldown", maxCooldown);
+ }
+
+ public static void setFindBlock(ItemStack stack, Block block, int meta) {
+ ItemNBTHelper.setInt(stack, "findBlockID", Block.getIdFromBlock(block));
+ ItemNBTHelper.setInt(stack, "findBlockMeta", meta);
+ }
+
+ public static Block getFindBlock(ItemStack stack) {
+ int blockID = ItemNBTHelper.getInt(stack, "findBlockID", 0);
+ if(blockID == 0)
+ return null;
+ else
+ return Block.getBlockById(blockID);
+ }
+
+ public static int getFindMeta(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "findBlockMeta", -1);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/65/6081a9922ab0001c18a5eba32f24fffa b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/65/6081a9922ab0001c18a5eba32f24fffa
deleted file mode 100644
index 2714682..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/65/6081a9922ab0001c18a5eba32f24fffa
+++ /dev/null
@@ -1,32 +0,0 @@
-package ab.common.item.relic;
-
-import java.util.List;
-
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.world.World;
-import net.minecraftforge.common.MinecraftForge;
-import net.minecraftforge.event.entity.living.LivingDropsEvent;
-
-public class ItemSehrimnirHide extends ItemModRelic {
-
- public ItemSehrimnirHide() {
- super("sehrimnirHide");
- MinecraftForge.EVENT_BUS.register(this);
- }
-
- @SubscribeEvent
- public void onPlayerAttack(LivingDropsEvent event) {
- List items = event.drops;
- World world = event.entityLiving.worldObj;
- double posX = event.entityLiving.posX;
- double posY = event.entityLiving.posY;
- double posZ = event.entityLiving.posZ;
- for(EntityItem entity : items) {
- if(!world.isRemote) {
- EntityItem item = new EntityItem(world, posX, posY, posZ, entity.getEntityItem());
- world.spawnEntityInWorld(item);
- }
- }
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/65/70a3d2168fc1001c11e398ea97007cb4 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/65/70a3d2168fc1001c11e398ea97007cb4
new file mode 100644
index 0000000..d8e2629
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/65/70a3d2168fc1001c11e398ea97007cb4
@@ -0,0 +1,11 @@
+package ab.common.item;
+
+public class ItemEngineerLens extends ItemMod {
+
+ public ItemEngineerLens() {
+ super("itemEngineerLens");
+ this.setMaxStackSize(1);
+ this.setNoRepair();
+ }
+
+}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/66/60a01c1fa6b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/66/60a01c1fa6b1001c19bf8a91ac37238b
deleted file mode 100644
index db1b3a1..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/66/60a01c1fa6b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,315 +0,0 @@
-package ab.common.item.relic;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.AdvancedBotany;
-import ab.client.core.ClientHelper;
-import ab.common.entity.EntityAnonymousSteve;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.entity.AbstractClientPlayer;
-import net.minecraft.client.entity.EntityClientPlayerMP;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.entity.RenderManager;
-import net.minecraft.entity.Entity;
-import net.minecraft.entity.EntityLivingBase;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.nbt.NBTTagList;
-import net.minecraft.util.MathHelper;
-import net.minecraft.util.ResourceLocation;
-import net.minecraft.world.World;
-import net.minecraftforge.client.event.RenderWorldLastEvent;
-import net.minecraftforge.common.MinecraftForge;
-import net.minecraftforge.event.entity.living.LivingAttackEvent;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-import vazkii.botania.common.core.helper.ItemNBTHelper;
-
-public class ItemPocketWardrobe extends ItemModRelic {
-
- protected static final ResourceLocation glowPriorityTexture = new ResourceLocation("ab:textures/misc/glow2.png");
- protected static final ResourceLocation glowTexture = new ResourceLocation("ab:textures/misc/glow1.png");
- protected static final int segmentCount = 5;
- protected static final int maxSegmentCount = 12;
-
- public ItemPocketWardrobe() {
- super("autoPocketWardrobe");
- MinecraftForge.EVENT_BUS.register(this);
- }
-
- public void onUpdate(ItemStack pocketWardrobe, World world, Entity entity, int pos, boolean equipped) {
- boolean eqLastTick = wasEquipped(pocketWardrobe);
- if(!equipped && eqLastTick)
- setEquipped(pocketWardrobe, equipped);
- if(!eqLastTick && equipped && entity instanceof EntityLivingBase) {
- setEquipped(pocketWardrobe, equipped);
- int angles = 360;
- int segAngles = angles / maxSegmentCount;
- float shift = segAngles / 2.0f * segmentCount;
- setRotationBase(pocketWardrobe, getCheckingAngle((EntityLivingBase)entity) - shift);
- }
- int tick = getFightingTick(pocketWardrobe);
- if(tick > 0)
- setFightingTick(pocketWardrobe, tick - 1);
- else if(!world.isRemote && tick == 0 && getFightingMode(pocketWardrobe) && entity != null && entity instanceof EntityPlayer) {
- EntityPlayer player = (EntityPlayer)entity;
- setFightingMode(pocketWardrobe, false);
- swapArmorSet(pocketWardrobe, player, getPrioritySet(pocketWardrobe));
- }
- }
-
- public void setArmorSet(ItemStack pocketWardrobe, ItemStack[] armorSet, int segment) {
- NBTTagList nbtList = new NBTTagList();
- int i = -1;
- for(ItemStack armor : armorSet) {
- i++;
- if(armor == null)
- continue;
- NBTTagCompound cmp = new NBTTagCompound();
- cmp.setByte("slot", (byte)i);
- armor.copy().writeToNBT(cmp);
- nbtList.appendTag(cmp);
- }
- ItemNBTHelper.setList(pocketWardrobe, "armorSet" + segment, nbtList);
- }
-
- public static ItemStack[] getArmorSet(ItemStack pocketWardrobe, int segment) {
- if(segment >= segmentCount)
- return null;
- ItemStack[] armorSet = new ItemStack[4];
- NBTTagList nbtList = ItemNBTHelper.getList(pocketWardrobe, "armorSet" + segment, 10, false);
- for(int i = 0; i < nbtList.tagCount(); i++) {
- NBTTagCompound cmp = nbtList.getCompoundTagAt(i);
- byte slotCount = cmp.getByte("slot");
- if(slotCount >= 0 && slotCount <= segmentCount)
- armorSet[slotCount] = ItemStack.loadItemStackFromNBT(cmp);
- }
- return armorSet;
- }
-
- public ItemStack onItemRightClick(ItemStack pocketWardrobe, World world, EntityPlayer player) {
- int segment = getSegmentLookedAt(pocketWardrobe, player);
- if(segment == -1)
- return pocketWardrobe;
- if(player.isSneaking()) {
- setPrioritySet(pocketWardrobe, segment);
- } else {
- swapArmorSet(pocketWardrobe, player, segment);
- }
- return pocketWardrobe;
- }
-
- public void swapArmorSet(ItemStack stack, EntityPlayer player, int segment) {
- ItemStack[] playerSet = player.inventory.armorInventory;
- player.inventory.armorInventory = getArmorSet(stack, segment);
- setArmorSet(stack, playerSet, segment);
- }
-
- @SubscribeEvent
- public void onPlayerAttack(LivingAttackEvent event) {
- if(event.entityLiving != null && event.entityLiving instanceof EntityPlayer) {
- EntityPlayer player = (EntityPlayer)event.entityLiving;
- if(player.capabilities.isCreativeMode)
- return;
- for(int i = 0; i < player.inventory.getSizeInventory(); i++) {
- ItemStack stack = player.inventory.getStackInSlot(i);
- if(stack != null && stack.getItem() instanceof ItemPocketWardrobe) {
- ItemPocketWardrobe item = (ItemPocketWardrobe)stack.getItem();
- if(!item.getFightingMode(stack)) {
- int armorPriorirySlot = item.getPrioritySet(stack);
- ItemStack[] armorSet = item.getArmorSet(stack, armorPriorirySlot);
- boolean hasArmor = false;
- for(int j = 0; j < armorSet.length; j++)
- if(armorSet[j] != null) {
- hasArmor = true;
- break;
- }
- if(hasArmor) {
- item.setFightingTick(stack, 32);
- item.setFightingMode(stack, true);
- item.swapArmorSet(stack, player, armorPriorirySlot);
- return;
- }
- } else {
- item.setFightingTick(stack, 32);
- return;
- }
- }
- }
- }
- }
-
- public ResourceLocation getGlowTexture(ItemStack stack, int segment) {
- return getPrioritySet(stack) == segment ? glowPriorityTexture : glowTexture;
- }
-
- @SideOnly(Side.CLIENT)
- @SubscribeEvent
- public void onRenderWorldLast(RenderWorldLastEvent event) {
- EntityClientPlayerMP entityClientPlayerMP = (Minecraft.getMinecraft()).thePlayer;
- ItemStack stack = entityClientPlayerMP.getCurrentEquippedItem();
- if(stack != null && stack.getItem() instanceof ItemPocketWardrobe)
- render(stack, (EntityPlayer)entityClientPlayerMP, event.partialTicks);
- }
-
- @SideOnly(Side.CLIENT)
- public void render(ItemStack stack, EntityPlayer player, float partialTicks) {
- Minecraft mc = Minecraft.getMinecraft();
- Tessellator tess = Tessellator.instance;
- Tessellator.renderingWorldRenderer = false;
- GL11.glPushMatrix();
- float alpha = ((float)Math.sin(((ClientTickHandler.ticksInGame + partialTicks) * 0.2F)) * 0.5F + 0.5F) * 0.4F + 0.3F;
- double posX = player.prevPosX + (player.posX - player.prevPosX) * partialTicks;
- double posY = player.prevPosY + (player.posY - player.prevPosY) * partialTicks;
- double posZ = player.prevPosZ + (player.posZ - player.prevPosZ) * partialTicks;
- GL11.glTranslated(posX - RenderManager.renderPosX, posY - RenderManager.renderPosY, posZ - RenderManager.renderPosZ);
- float base = getRotationBase(stack);
- int angles = 360;
- int segAngles = angles / maxSegmentCount;
- float shift = base - ((segAngles / 2.0f) * segmentCount);
- float u = 1.0F;
- float v = 0.25F;
- float s = 3.6F;
- float m = 0.8F;
- float y = v * 6.0F;
- float y0 = 0.0F;
- int segmentLookedAt = getSegmentLookedAt(stack, (EntityLivingBase)player);
- for(int seg = 0; seg < segmentCount; seg++) {
- ClientHelper.setLightmapTextureCoords();
- float rotationAngle = (seg + 0.5F) * segAngles + shift;
- GL11.glPushMatrix();
- GL11.glDisable(GL11.GL_LIGHTING);
- GL11.glDisable(2912);
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- GL11.glRotatef(180.0F, 1.0F, 0.0F, 0.0F);
- GL11.glDisable(GL11.GL_CULL_FACE);
- float a = alpha;
- if(segmentLookedAt == seg) {
- a += 0.3F;
- y0 = -y;
- }
- if(seg % 2 == 0) {
- GL11.glColor4f(0.6F, 0.6F, 0.6F, a);
- } else {
- GL11.glColor4f(1.0F, 1.0F, 1.0F, a);
- }
- ItemPocketWardrobe item = (ItemPocketWardrobe)stack.getItem();
- mc.renderEngine.bindTexture(item.getGlowTexture(stack, seg));
- tess.startDrawingQuads();
- for(int i = 0; i < segAngles; i++) {
- float ang = (i + seg * segAngles) + shift;
- double xp = Math.cos(ang * Math.PI / 180.0D) * s;
- double zp = Math.sin(ang * Math.PI / 180.0D) * s;
- tess.addVertexWithUV(xp * m, y, zp * m, u, v);
- tess.addVertexWithUV(xp, y0, zp, u, 0.0D);
- xp = Math.cos((ang + 1.0F) * Math.PI / 180.0D) * s;
- zp = Math.sin((ang + 1.0F) * Math.PI / 180.0D) * s;
- tess.addVertexWithUV(xp, y0, zp, 0.0D, 0.0D);
- tess.addVertexWithUV(xp * m, y, zp * m, 0.0D, v);
- }
- y0 = 0.0F;
- tess.draw();
- GL11.glPopMatrix();
- AbstractClientPlayer steve = new EntityAnonymousSteve(player.worldObj);
- steve.inventory.armorInventory = getArmorSet(stack, seg);
- boolean hasArmor = false;
- for(int l = 0; l < steve.inventory.armorInventory.length; l++)
- if(steve.inventory.armorItemInSlot(l) != null) {
- hasArmor = true;
- break;
- }
- if(hasArmor) {
- GL11.glPushMatrix();
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- GL11.glRotatef(rotationAngle, 0.0F, 1.0F, 0.0F);
- GL11.glTranslatef(s * m, -0.75F, 0.0F);
- float scale = 0.6F;
- GL11.glRotatef(-90.0f, 0.0f, 1.0f, 0.0f);
- GL11.glTranslatef(0.0f, 0.8125f, 0.0f);
- GL11.glScalef(scale, scale, scale);
- steve.setPositionAndRotation(player.posX, player.posY, player.posZ, 0.0f, 10.0f);
- RenderManager.instance.renderEntityWithPosYaw(steve, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f);
- Minecraft.getMinecraft().entityRenderer.disableLightmap(partialTicks);
- GL11.glPopMatrix();
- }
- ClientHelper.setLightmapTextureCoords();
- GL11.glEnable(GL11.GL_CULL_FACE);
- GL11.glDisable(3042);
- }
- GL11.glPopMatrix();
- }
-
- protected static int getSegmentLookedAt(ItemStack stack, EntityLivingBase player) {
- float yaw = getCheckingAngle(player, getRotationBase(stack));
- int angles = 360;
- int segAngles = angles / maxSegmentCount;
- for(int seg = 0; seg < segmentCount; seg++) {
- float calcAngle = seg * segAngles;
- if(yaw >= calcAngle && yaw < calcAngle + segAngles)
- return seg;
- }
- return -1;
- }
-
- protected static float getCheckingAngle(EntityLivingBase player, float base) {
- float yaw = MathHelper.wrapAngleTo180_float(player.rotationYaw) + 90.0f;
- int angles = 360;
- int segAngles = angles / maxSegmentCount;
- float shift = segAngles / 2.0f * segmentCount;
- if(yaw < 0.0f)
- yaw = 360.0F + yaw;
- yaw -= 360.0F - base;
- float angle = 360.0F - yaw + shift;
- if(angle > 360.0F)
- angle %= 360.0F;
- return angle;
- }
-
- protected static float getCheckingAngle(EntityLivingBase player) {
- return getCheckingAngle(player, 0.0F);
- }
-
- public static void setEquipped(ItemStack stack, boolean equipped) {
- ItemNBTHelper.setBoolean(stack, "equipped", equipped);
- }
-
- public static boolean wasEquipped(ItemStack stack) {
- return ItemNBTHelper.getBoolean(stack, "equipped", false);
- }
-
- public static void setRotationBase(ItemStack stack, float rotation) {
- ItemNBTHelper.setFloat(stack, "rotationBase", rotation);
- }
-
- public static float getRotationBase(ItemStack stack) {
- return ItemNBTHelper.getFloat(stack, "rotationBase", 0.0F);
- }
-
- public static void setFightingMode(ItemStack stack, boolean mode) {
- ItemNBTHelper.setBoolean(stack, "fightingMode", mode);
- }
-
- public static boolean getFightingMode(ItemStack stack) {
- return ItemNBTHelper.getBoolean(stack, "fightingMode", false);
- }
-
- public static void setFightingTick(ItemStack stack, int tick) {
- ItemNBTHelper.setInt(stack, "fightingTick", tick);
- }
-
- public static int getFightingTick(ItemStack stack) {
- return ItemNBTHelper.getInt(stack, "fightingTick", 0);
- }
-
- public static void setPrioritySet(ItemStack stack, int segment) {
- ItemNBTHelper.setInt(stack, "prioritySet", segment);
- }
-
- public static int getPrioritySet(ItemStack stack) {
- return ItemNBTHelper.getInt(stack, "prioritySet", 2);
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/af/4014a80009b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/67/3010ef32c5bc001c1a9f99005529f322
similarity index 82%
rename from 1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/af/4014a80009b1001c19bf8a91ac37238b
rename to 1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/67/3010ef32c5bc001c1a9f99005529f322
index eb30198..4452787 100644
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/af/4014a80009b1001c19bf8a91ac37238b
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/67/3010ef32c5bc001c1a9f99005529f322
@@ -1,16 +1,22 @@
package ab.common.block.subtile;
import ab.common.block.tile.TileGameBoard;
+import ab.common.lib.register.RecipeListAB;
+import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
+import vazkii.botania.api.lexicon.LexiconEntry;
import vazkii.botania.api.subtile.SubTileGenerating;
+import vazkii.botania.common.item.block.ItemBlockSpecialFlower;
public class SubTileArdentAzarcissus extends SubTileGenerating {
public static final String playerName = "ArdentAzarcissus#21sda2gaj91*21df#111sfq3jrns@#";
+ public static final ItemStack flowerStack = ItemBlockSpecialFlower.ofType("ardentAzarcissus");
+
int cooldown;
- int workMana = 400;
+ int workMana = 320;
public void onUpdate() {
super.onUpdate();
@@ -40,8 +46,10 @@ public class SubTileArdentAzarcissus extends SubTileGenerating {
} else {
if(!board.playersName[0].equals(playerName))
board.playersName[0] = playerName;
- if(!board.isCustomGame)
+ if(!board.isCustomGame) {
board.isCustomGame = true;
+ board.customStack = flowerStack;
+ }
if(board.endGameTick == 0) {
int winCount = (board.slotChance[0] + board.slotChance[1]) - (board.slotChance[2] + board.slotChance[3]);
if(winCount > 0) {
@@ -68,6 +76,10 @@ public class SubTileArdentAzarcissus extends SubTileGenerating {
return 0xdf3596;
}
+ public LexiconEntry getEntry() {
+ return RecipeListAB.azartFlower;
+ }
+
public void writeToPacketNBT(NBTTagCompound cmp) {
super.writeToPacketNBT(cmp);
cmp.setInteger("cooldown", this.cooldown);
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/68/604db76f32b0001c1746c57a5fe46fd3 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/68/604db76f32b0001c1746c57a5fe46fd3
deleted file mode 100644
index 4793b9c..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/68/604db76f32b0001c1746c57a5fe46fd3
+++ /dev/null
@@ -1,43 +0,0 @@
-package ab.common.item.relic;
-
-import java.util.List;
-
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import cpw.mods.fml.relauncher.ReflectionHelper;
-import net.minecraft.entity.EntityLivingBase;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.item.ItemStack;
-import net.minecraft.world.World;
-import net.minecraftforge.common.MinecraftForge;
-import net.minecraftforge.event.entity.living.LivingDropsEvent;
-
-public class ItemSehrimnirHide extends ItemModRelic {
-
- public static final String[] dropFewItems = new String[] { "dropFewItems", "field_75307_b", "a" };
-
- public ItemSehrimnirHide() {
- super("sehrimnirHide");
- MinecraftForge.EVENT_BUS.register(this);
- }
-
- @SubscribeEvent
- public void onPlayerAttack(LivingDropsEvent event) {
-
- ReflectionHelper.findMethod(EntityLivingBase.class, event.entityLiving, dropFewItems, new Class[0]);
-
-
-// List items = event.drops;
-// World world = event.entityLiving.worldObj;
-// double posX = event.entityLiving.posX;
-// double posY = event.entityLiving.posY;
-// double posZ = event.entityLiving.posZ;
-// for(EntityItem entity : items) {
-// if(!world.isRemote) {
-// ItemStack loot = entity.getEntityItem().copy();
-// loot.stackSize = Math.max(1, (int)(loot.stackSize / 1.5f));
-// EntityItem item = new EntityItem(world, posX, posY, posZ, loot);
-// world.spawnEntityInWorld(item);
-// }
-// }
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/69/30c4012fb3b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/69/30c4012fb3b1001c19bf8a91ac37238b
deleted file mode 100644
index 16b32f3..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/69/30c4012fb3b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,80 +0,0 @@
-package ab.common.item;
-
-import java.util.List;
-
-import ab.common.core.CommonHelper;
-import ab.common.lib.register.BlockListAB;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.renderer.texture.IIconRegister;
-import net.minecraft.entity.Entity;
-import net.minecraft.entity.item.EntityFallingBlock;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.IIcon;
-import net.minecraft.util.MathHelper;
-import net.minecraft.world.World;
-import vazkii.botania.common.core.helper.ItemNBTHelper;
-
-public class ItemAntigravityCharm extends ItemMod {
-
- public static IIcon[] icons;
-
- public ItemAntigravityCharm() {
- super("antigravityCharm");
- this.setMaxStackSize(1);
- this.setNoRepair();
- }
-
- public void registerIcons(IIconRegister ir) {
- icons = new IIcon[2];
- for(int i = 0; i < icons.length; i++) {
- icons[i] = icons[i] = ir.registerIcon("ab:" + "itemAntigravityCharm_" + i);
- }
- }
-
- @SideOnly(Side.CLIENT)
- public IIcon getIcon(ItemStack stack, int pass) {
- int iconID = Math.min(1, pass);
- return this.icons[iconID];
- }
-
- public boolean requiresMultipleRenderPasses() {
- return true;
- }
-
- public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
- if(player.isSneaking())
- ItemNBTHelper.setBoolean(stack, "isActive", !ItemNBTHelper.getBoolean(stack, "isActive", true));
- return stack;
- }
-
- public void onUpdate(ItemStack stack, World world, Entity entity, int par4, boolean inHand) {
- if(entity instanceof EntityPlayer) {
- EntityPlayer player = (EntityPlayer)entity;
- if(ItemNBTHelper.getBoolean(stack, "isActive", true)) {
- double posX = entity.posX;
- double posY = entity.posY;
- double posZ = entity.posZ;
- final AxisAlignedBB asis = AxisAlignedBB.getBoundingBox(posX, posY, posZ, posX + 1, posY + 1, posZ + 1).expand(8, 8, 8);
- final List listEntity = (List)world.getEntitiesWithinAABB((Class)EntityFallingBlock.class, asis);
- for(EntityFallingBlock fallBlock : listEntity) {
- int x = (int) (fallBlock.posX >= 0 ? fallBlock.posX : fallBlock.posX - 1);
- int y = (int) fallBlock.posY;
- int z = (int) (fallBlock.posZ >= 0 ? fallBlock.posZ : fallBlock.posZ - 1);
- Block block = fallBlock.func_145805_f();
- fallBlock.setDead();
- if(!world.isRemote) {
- CommonHelper.setBlock(world, BlockListAB.blockAntigravitation, 0, x, y - 1, z, (EntityPlayerMP)player, true);
- CommonHelper.setBlock(world, block, fallBlock.field_145814_a, x, y, z, (EntityPlayerMP)player, true);
- }
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/69/c0c68083b5bc001c1a9f99005529f322 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/69/c0c68083b5bc001c1a9f99005529f322
new file mode 100644
index 0000000..2f1f040
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/69/c0c68083b5bc001c1a9f99005529f322
@@ -0,0 +1,145 @@
+package ab.common.item.relic;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.client.core.handler.PlayerItemUsingSound.ClientSoundHandler;
+import ab.common.core.handler.ConfigABHandler;
+import ab.common.core.handler.NetworkHandler;
+import cpw.mods.fml.common.eventhandler.SubscribeEvent;
+import cpw.mods.fml.relauncher.ReflectionHelper;
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.entity.boss.IBossDisplayData;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.EnumAction;
+import net.minecraft.item.ItemStack;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import net.minecraftforge.event.entity.living.LivingDropsEvent;
+import vazkii.botania.api.mana.ManaItemHandler;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class ItemHornPlenty extends ItemModRelic {
+
+ public static final String[] dropFewItems = new String[] { "dropFewItems", "func_70628_a" };
+ private static final short maxChargeLoot = 16;
+ private static final int manaCost = 64000;
+
+ public ItemHornPlenty() {
+ super("hornPlenty");
+ MinecraftForge.EVENT_BUS.register(this);
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int pos, boolean equipped) {
+ super.onUpdate(stack, world, entity, pos, equipped);
+ if(!world.isRemote && entity instanceof EntityPlayer) {
+ EntityPlayer player = (EntityPlayer)entity;
+ short lastChargeLoot = getLastChargeLoot(stack);
+ short chargeLoot = getChargeLoot(stack);
+ if(lastChargeLoot != chargeLoot) {
+ setLastChargeLoot(stack, chargeLoot);
+ NetworkHandler.sendPacketToHornHud((EntityPlayerMP)player, chargeLoot);
+ }
+ }
+ }
+
+ public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
+ if(!hasChargeLoot(stack) && ManaItemHandler.requestManaExactForTool(stack, player, manaCost, false))
+ player.setItemInUse(stack, getMaxItemUseDuration(stack));
+ return stack;
+ }
+
+ public void onUsingTick(ItemStack stack, EntityPlayer player, int time) {
+ time = this.getMaxItemUseDuration(stack) - time;
+ if(time > 48) {
+ if(!player.worldObj.isRemote && ManaItemHandler.requestManaExactForTool(stack, player, manaCost, true)) {
+ setChargeLoot(stack, maxChargeLoot);
+ player.worldObj.playSoundAtEntity(player, "random.orb", 1.2F, 4.0F);
+ }
+ player.stopUsingItem();
+ } else if(player.worldObj.isRemote)
+ ClientSoundHandler.playSound(player, "ab:hornPlentyUsing", 2.4f, 2.47F, 19, false);
+ }
+
+ @SideOnly(Side.CLIENT)
+ public boolean showDurabilityBar(ItemStack stack) {
+ return hasChargeLoot(stack);
+ }
+
+ @SideOnly(Side.CLIENT)
+ public double getDurabilityForDisplay(ItemStack stack) {
+ return 1.0f - (double)(getChargeLoot(stack)) / (double)maxChargeLoot;
+ }
+
+ public int getMaxItemUseDuration(ItemStack stack) {
+ return 42000;
+ }
+
+ public boolean isFull3D() {
+ return true;
+ }
+
+ public EnumAction getItemUseAction(ItemStack stack) {
+ return EnumAction.bow;
+ }
+
+ @SubscribeEvent
+ public void onPlayerAttack(LivingDropsEvent event) {
+ if(event != null && event.source != null && event.source.getSourceOfDamage() instanceof EntityPlayer) {
+ EntityPlayer player = (EntityPlayer)event.source.getSourceOfDamage();
+ ItemStack horn = null;
+ for(int i = 0; i < player.inventory.getSizeInventory(); i++) {
+ ItemStack stack = player.inventory.getStackInSlot(i);
+ if(stack == null)
+ continue;
+ else if(stack.getItem() instanceof ItemHornPlenty) {
+ if(!hasChargeLoot(stack))
+ continue;
+ horn = stack;
+ break;
+ }
+ }
+ if(!player.worldObj.isRemote && horn != null && hasChargeLoot(horn)) {
+ if(player.worldObj.rand.nextInt(100) < 20 && event.entityLiving != null && !(event.entityLiving instanceof IBossDisplayData) && isVallidEntity(event.entityLiving)) {
+ try {
+ EntityLivingBase liv = event.entityLiving;
+ ReflectionHelper.findMethod(EntityLivingBase.class, liv, dropFewItems, new Class[] { boolean.class, int.class } ).invoke(liv, new Object[] { true, (int)(event.lootingLevel * 1.5f) });
+ setChargeLoot(horn, (short)(getChargeLoot(horn) - 1));
+ player.worldObj.playSoundAtEntity(player, "random.orb", 1.2F, 0.8F);
+ } catch(Exception e) {
+ e.printStackTrace();
+ }
+ }
+ }
+ }
+ }
+
+ public void setLastChargeLoot(ItemStack stack, short count) {
+ ItemNBTHelper.setShort(stack, "lastChargeLoot", count);
+ }
+
+ public short getLastChargeLoot(ItemStack stack) {
+ return ItemNBTHelper.getShort(stack, "lastChargeLoot", (short)0);
+ }
+
+ public void setChargeLoot(ItemStack stack, short count) {
+ ItemNBTHelper.setShort(stack, "chargeLoot", count);
+ }
+
+ public short getChargeLoot(ItemStack stack) {
+ return ItemNBTHelper.getShort(stack, "chargeLoot", (short)0);
+ }
+
+ public boolean hasChargeLoot(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "chargeLoot", 0) > 0;
+ }
+
+ public static boolean isVallidEntity(EntityLivingBase liv) {
+ for(String entityName : ConfigABHandler.lockEntityListToHorn)
+ if(liv.getClass().getSimpleName().equals(entityName))
+ return false;
+ return true;
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/6a/00561ae50bb0001c18a5eba32f24fffa b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/6a/00561ae50bb0001c18a5eba32f24fffa
deleted file mode 100644
index 26ddec1..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/6a/00561ae50bb0001c18a5eba32f24fffa
+++ /dev/null
@@ -1,68 +0,0 @@
-package ab.common.block.subtile;
-
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.world.World;
-import vazkii.botania.api.subtile.SubTileGenerating;
-
-public class SubTileArdentAzarcissus extends SubTileGenerating {
-
- public static final String playerName = "ArdentAzarcissus#21sda2gaj91*21df#111sfq3jrns@#";
- int cooldown;
- int workMana = 400;
-
- public void onUpdate() {
- super.onUpdate();
- World world = this.supertile.getWorldObj();
- int posX = this.supertile.xCoord;
- int posY = this.supertile.yCoord;
- int posZ = this.supertile.zCoord;
- if(world.isRemote)
- return;
- if(cooldown > 0) {
- cooldown--;
- return;
- }
- for(int i = -1; i <= 1; i++)
- for(int f = 0; f < 2; f++)
- for(int j = -1; j <= 1; j++) {
- int x = posX + i;
- int y = posY + f;
- int z = posZ + j;
- TileEntity tile = world.getTileEntity(x, y, z);
- if(tile != null && tile instanceof TileGameBoard) {
- TileGameBoard board = (TileGameBoard)tile;
- if(board.isSingleGame) {
- if(!board.hasGame()) {
- board.setPlayer(playerName, true);
- cooldown = 20;
- } else {
- if(!board.playersName[0].equals(playerName))
- board.playersName[0] = playerName;
- board.dropDice(playerName);
- cooldown = 20;
- }
- }
- }
- }
- }
-
- public int getMaxMana() {
- return 15000;
- }
-
- public int getColor() {
- return 0xd2cdb2;
- }
-
- public void writeToPacketNBT(NBTTagCompound cmp) {
- super.writeToPacketNBT(cmp);
- cmp.setInteger("cooldown", this.cooldown);
- }
-
- public void readFromPacketNBT(NBTTagCompound cmp) {
- super.readFromPacketNBT(cmp);
- this.cooldown = cmp.getInteger("cooldown");
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/6a/904fb187e7ac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/6a/904fb187e7ac001c1d59e42be7477558
deleted file mode 100644
index 6662a03..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/6a/904fb187e7ac001c1d59e42be7477558
+++ /dev/null
@@ -1,176 +0,0 @@
-package ab.common.block.tile;
-
-import java.util.List;
-
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.ChatComponentTranslation;
-import net.minecraft.util.ChatStyle;
-import net.minecraft.util.EnumChatFormatting;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.common.block.tile.TileMod;
-
-public class TileGameBoard extends TileMod {
-
- protected String[] playersName = new String[] { "", "" };
- public byte[] slotChance = new byte[] { 0, 0, 0, 0 };
- protected int botTick = -1;
- public int endGameTick = -1;
- protected boolean requestUpdate;
- public boolean isSingleGame = false;
- public int clientTick[] = new int[] { 0, 0, 0, 0};
-
- public void updateEntity() {
- if(botTick > 0)
- botTick--;
- if(endGameTick > 0)
- endGameTick--;
- if(!worldObj.isRemote)
- updateServer();
- else
- updateClient();
- }
-
- protected void updateClient() {
- for(int i = 0; i < slotChance.length; i++)
- if(slotChance[i] > 0)
- clientTick[i]++;
- else
- clientTick[i] = 0;
- }
-
- protected void updateServer() {
- if(requestUpdate)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- boolean hasUpdate = false;
- if(isSingleGame && botTick == 0 && hasGame()) {
- for(int i = 2; i < 4; i++) {
- if(slotChance[i] == 0) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = -1;
- hasUpdate = true;
- break;
- }
- }
- }
- if(hasGame() && endGameTick == 0)
- finishGame();
- requestUpdate = hasUpdate;
- }
-
- public void setPlayer(EntityPlayer player) {
- if(isSingleGame) {
- playersName[0] = player.getCommandSenderName();
- playersName[1] = "";
- requestUpdate = true;
- botTick = 8;
- } else {
- if(playersName[0].isEmpty()) {
- playersName[0] = player.getCommandSenderName();
- requestUpdate = true;
- } else if(!playersName[0].equals(player.getCommandSenderName())) {
- playersName[1] = player.getCommandSenderName();
- requestUpdate = true;
- }
- }
- }
-
- public boolean dropDice(EntityPlayer player) {
- if(isSingleGame) {
- if(player.getCommandSenderName().equals(playersName[0]) && botTick == -1) {
- boolean isLastDice = false;
- for(int i = 0; i < 2; i++) {
- if(slotChance[i] == 0 && !worldObj.isRemote) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = 18;
- requestUpdate = true;
- if(i == 1)
- isLastDice = true;
- break;
- }
- }
- if(isLastDice)
- endGameTick = 28;
- return true;
- }
- } else {
- for(int i = 0; i < playersName.length; i++) {
- if(player.getCommandSenderName().equals(playersName[i])) {
- for(int j = i * 2; j < (i + 1) * 2; j++) {
- if(slotChance[i] == 0 && !worldObj.isRemote) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- requestUpdate = true;
- break;
- }
- }
- return true;
- }
- }
- }
- return false;
- }
-
- public boolean hasGame() {
- if(isSingleGame)
- return !playersName[0].isEmpty();
- return !playersName[0].isEmpty() && !playersName[1].isEmpty();
- }
-
- public void finishGame() {
- if(worldObj.isRemote)
- return;
- if(isSingleGame) {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won");
- else if((slotChance[0] + slotChance[1]) == (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " not win");
- else
- sendNearMessage(playersName[0] + " you Lose!");
- resetGame();
- requestUpdate = true;
- }
- }
-
- public void sendNearMessage(String text) {
- List players = this.worldObj.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(this.xCoord, this.yCoord, this.zCoord, (this.xCoord + 1), (this.yCoord + 1), (this.zCoord + 1)).expand(3.5f, 3.5f, 3.5f));
- for(EntityPlayer player : players) {
- if(player != null)
- player.addChatMessage((new ChatComponentTranslation(text, new Object[] {})).setChatStyle((new ChatStyle()).setColor(EnumChatFormatting.DARK_GREEN)));
- }
- }
-
- public void resetGame() {
- playersName[0] = "";
- playersName[1] = "";
- for(int i = 0; i < slotChance.length; i++)
- slotChance[i] = 0;
- requestUpdate = true;
- botTick = -1;
- endGameTick = -1;
- }
-
- public void writeCustomNBT(NBTTagCompound cmp) {
- super.writeCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- cmp.setString("playerName" + i, playersName[i]);
- cmp.setByteArray("slotChance", slotChance);
- cmp.setInteger("botTick", botTick);
- cmp.setInteger("endGameTick", endGameTick);
- cmp.setBoolean("requestUpdate", requestUpdate);
- cmp.setBoolean("isSingleGame", isSingleGame);
- }
-
- public void readCustomNBT(NBTTagCompound cmp) {
- super.readCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- playersName[i] = cmp.getString("playerName" + i);
- botTick = cmp.getInteger("botTick");
- endGameTick = cmp.getInteger("endGameTick");
- slotChance = cmp.getByteArray("slotChance");
- requestUpdate = cmp.getBoolean("requestUpdate");
- isSingleGame = cmp.getBoolean("isSingleGame");
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/6b/50a60e2bf8ac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/6b/50a60e2bf8ac001c1d59e42be7477558
deleted file mode 100644
index ddda3fe..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/6b/50a60e2bf8ac001c1d59e42be7477558
+++ /dev/null
@@ -1,93 +0,0 @@
-package ab.client.render.tile;
-
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.model.ModelDiceFate;
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.ResourceLocation;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class RenderTileGameBoard extends TileEntitySpecialRenderer {
-
- private static final ModelDiceFate model = new ModelDiceFate();
- private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/gameDice.png");
- private static final ResourceLocation textureEnemy = new ResourceLocation("ab:textures/model/gameDice_enemy.png");
-
- public void renderTileEntityAt(TileEntity tile, double x, double y, double z, float ticks) {
- double time = (tile.getWorldObj() == null) ? 0.0D : (ClientTickHandler.ticksInGame + ticks);
- if(tile != null)
- time += (new Random((tile.xCoord ^ tile.yCoord ^ tile.zCoord))).nextInt(360);
- TileGameBoard board = (TileGameBoard)tile;
- System.out.println(time);
- GL11.glEnable(3042);
- GL11.glEnable(32826);
- GL11.glBlendFunc(770, 771);
- for(int i = 0; i < board.slotChance.length; i++) {
- if(board.slotChance[i] == 0)
- continue;
- time += i * 65;
- GL11.glPushMatrix();
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- float posX = 0.0f;
- float posY = 0.0f;
- float dropAnim = (1.0f - (Math.min(100.0f, board.clientTick[i] * board.clientTick[i] * 1.25f) / 100.0f));
- dropAnim = Math.min(1.0f, Math.max(dropAnim, 0));
- float alpha = (float)Math.cos(dropAnim);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, alpha);
- switch(i) {
- case 0:
- posX = 0.16f + 0.08f * dropAnim;
- posY = 0.16f + 0.08f * dropAnim;
- break;
- case 1:
- posX = -0.16f - 0.08f * dropAnim;
- posY = 0.16f + 0.08f * dropAnim;
- break;
- case 2:
- posX = 0.16f + 0.08f * dropAnim;
- posY = -0.16f - 0.08f * dropAnim;
- break;
- case 3:
- posX = -0.16f - 0.08f * dropAnim;
- posY = -0.16f - 0.08f * dropAnim;
- break;
- }
- GL11.glTranslated(x, y, z);
- GL11.glTranslated(0.5f + posX, 0.02f + Math.sin(time / 12.0D) / 48.0D + (0.28f * dropAnim), 0.5f + posY);
- GL11.glScalef(0.25f, 0.25f, 0.25f);
- Minecraft.getMinecraft().renderEngine.bindTexture(i > 1 ? textureEnemy : texture);
- float dropAngel = 70.0f * dropAnim;
- switch(board.slotChance[i]) {
- case 1:
- model.render(180.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 2:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 3:
- model.render(90.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 4:
- model.render(270.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 5:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 270.0f);
- break;
- case 6:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 90.0f);
- break;
- default:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- }
- GL11.glPopMatrix();
- }
- GL11.glEnable(32826);
- GL11.glDisable(3042);
- }
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/6b/d00c2f1248b0001c1746c57a5fe46fd3 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/6b/d00c2f1248b0001c1746c57a5fe46fd3
deleted file mode 100644
index 839438e..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/6b/d00c2f1248b0001c1746c57a5fe46fd3
+++ /dev/null
@@ -1,92 +0,0 @@
-package ab.common.core.handler;
-
-import java.io.File;
-
-import ab.AdvancedBotany;
-import cpw.mods.fml.client.event.ConfigChangedEvent;
-import cpw.mods.fml.common.FMLCommonHandler;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraftforge.common.config.Configuration;
-import net.minecraftforge.common.config.Property;
-
-public class ConfigABHandler {
-
- public static Configuration config;
- public static boolean useManaChargerAnimation = true;
- public static int maxContainerMana = 64000000;
- public static double protectionFactorNebula = 1.0f;
- public static double damageFactorSpaceSword = 1.0f;
- public static int nebulaWandCooldownTick = 18;
- public static boolean hasManaCharger = true;
- public static boolean hasAbPlate = true;
- public static int spreaderMaxMana = 128000;
- public static int spreaderBurstMana = 32000;
- public static String[] lockEntityListToHide = new String[] { };
-
- public static void loadConfig(File configFile) {
- config = new Configuration(configFile);
- config.load();
- load();
- FMLCommonHandler.instance().bus().register(new ChangeListener());
- }
-
- public static void load() {
- String desc = "Maximum mana capacity for Mana Container (Diluted Mana Container will receive an eighth of the set value)";
- maxContainerMana = loadPropInt("Mana Container capacity", desc, maxContainerMana);
- desc = "Activating the charging animation for the Mana Charger";
- useManaChargerAnimation = loadPropBool("Mana Charger lighting", desc, useManaChargerAnimation);
- desc = "Protection factor for nebula armour";
- protectionFactorNebula = loadPropDouble("Nebula Armor Protection Factor", desc, protectionFactorNebula);
- desc = "Damage factor for Space Blade";
- damageFactorSpaceSword = loadPropDouble("Space Sword Damage Factor", desc, damageFactorSpaceSword);
- desc = "The number of ticks needed to restore 1 unit of the Rod of Nebula strength.";
- nebulaWandCooldownTick = loadPropInt("Rod of Nebula Cooldown", desc, nebulaWandCooldownTick);
- desc = "Switching the Mana Charger on or off in the game";
- hasManaCharger = loadPropBool("Enable Mana Charger", desc, hasManaCharger);
- desc = "Enables or disables Advanced Agglomeration Plate in the game. When switched off, you need to set up recipes, for resources";
- hasAbPlate = loadPropBool("Enable Adv. Agg. Plate", desc, hasAbPlate);
- desc = "Maximum amount of mana held in a mana spreader";
- spreaderMaxMana = loadPropInt("Spreader Max Mana", desc, spreaderMaxMana);
- desc = "Amount of Mana in a Mana Burst";
- spreaderBurstMana = loadPropInt("Spreader Burst Mana", desc, spreaderBurstMana);
- if(config.hasChanged())
- config.save();
- }
-
- public static void loadPostInit() {
- if(config.hasChanged())
- config.save();
- }
-
- public static String[] loadPropString(String propName, String desc, String[] default_) {
- Property prop = config.get("general", propName, default_);
- prop.comment = desc;
- return prop.getStringList();
- }
-
- public static boolean loadPropBool(String propName, String desc, boolean default_) {
- Property prop = config.get("general", propName, default_);
- prop.comment = desc;
- return prop.getBoolean(default_);
- }
-
- public static int loadPropInt(String propName, String desc, int default_) {
- Property prop = config.get("general", propName, default_);
- prop.comment = desc;
- return prop.getInt(default_);
- }
-
- public static double loadPropDouble(String propName, String desc, double default_) {
- Property prop = config.get("general", propName, default_);
- prop.comment = desc;
- return prop.getDouble(default_);
- }
-
- public static class ChangeListener {
- @SubscribeEvent
- public void onConfigChanged(ConfigChangedEvent.OnConfigChangedEvent eventArgs) {
- if(eventArgs.modID.equals(AdvancedBotany.modid))
- ConfigABHandler.load();
- }
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/6c/d0cc116e08b0001c18a5eba32f24fffa b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/6c/d0cc116e08b0001c18a5eba32f24fffa
deleted file mode 100644
index 21099ac..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/6c/d0cc116e08b0001c18a5eba32f24fffa
+++ /dev/null
@@ -1,68 +0,0 @@
-package ab.common.block.subtile;
-
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.world.World;
-import vazkii.botania.api.subtile.SubTileGenerating;
-
-public class SubTileArdentAzarcissus extends SubTileGenerating {
-
- public static final String playerName = "ArdentAzarcissus#21sda2gaj91*21df#111sfq3jrns@#";
- int cooldown;
- int workMana = 400;
-
- public void onUpdate() {
- super.onUpdate();
- int posX = this.supertile.xCoord;
- int posY = this.supertile.yCoord;
- int posZ = this.supertile.zCoord;
- World world = this.supertile.getWorldObj();
- if(cooldown > 0) {
- cooldown--;
- return;
- }
- label666:
- for(int i = -1; i <= 1; i++)
- for(int j = -1; j <= 1; j++) {
-// if(i == 0 || j == 0)
-// continue;
- int x = posX + i;
- int z = posZ + j;
- TileEntity tile = world.getTileEntity(x, posY, z);
- if(tile != null && tile instanceof TileGameBoard) {
- TileGameBoard board = (TileGameBoard)tile;
- if(board.isSingleGame) {
- if(!board.hasGame()) {
- board.setPlayer(playerName);
- cooldown = 20;
- break label666;
- }
- else {
- board.dropDice(playerName);
- cooldown = 20;
- break label666;
- }
- }
- }
- }
- }
-
- public int getMaxMana() {
- return 15000;
- }
-
- public int getColor() {
- return 0xd2cdb2;
- }
-
- public void writeToPacketNBT(NBTTagCompound cmp) {
- super.writeToPacketNBT(cmp);
- cmp.setInteger("cooldown", this.cooldown);
- }
-
- public void readFromPacketNBT(NBTTagCompound cmp) {
- super.readFromPacketNBT(cmp);
- this.cooldown = cmp.getInteger("cooldown");
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/6d/308e2214a2b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/6d/308e2214a2b1001c19bf8a91ac37238b
deleted file mode 100644
index d90d372..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/6d/308e2214a2b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,84 +0,0 @@
-package ab.client.core.handler;
-
-import java.awt.Color;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.armor.ItemNebulaArmor;
-import ab.common.item.equipment.armor.ItemNebulaHelm;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.ItemRenderer;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.texture.TextureMap;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraftforge.client.event.RenderPlayerEvent;
-import vazkii.botania.api.item.IPhantomInkable;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class PlayerRendererHandler {
-
- @SubscribeEvent
- public void onPlayerRender(RenderPlayerEvent.Specials.Post event) {
- EntityPlayer player = event.entityPlayer;
- ItemStack item = player.getCurrentArmor(3);
- if(item != null && item.getItem() instanceof ItemNebulaHelm) {
- Item helm = player.getCurrentArmor(3).getItem();
- boolean hasPhantomInk = helm instanceof IPhantomInkable && ((IPhantomInkable)helm).hasPhantomInk(item);
- if(!hasPhantomInk && ((ItemNebulaHelm)helm).enableCosmicFace(item)) {
- float angelX = event.renderer.modelBipedMain.bipedHead.rotateAngleX * 180.0F / (float)Math.PI;
- float angelY = event.renderer.modelBipedMain.bipedHead.rotateAngleY * 180.0F / (float)Math.PI;
- GL11.glPushMatrix();
- if(player.isSneaking())
- GL11.glTranslatef(event.renderer.modelBipedMain.bipedHead.rotationPointX * 0.0625f, event.renderer.modelBipedMain.bipedHead.rotationPointY * 0.0625f, 0.0f);
- GL11.glRotatef(angelY, 0.0F, 1.0F, 0.0F);
- GL11.glRotatef(angelX, 1.0F, 0.0F, 0.0F);
- renderCosmicFace();
- GL11.glPopMatrix();
- }
- }
- }
-
- private void renderCosmicFace() {
- double worldTime = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- GL11.glPushMatrix();
- GL11.glEnable(GL11.GL_TEXTURE_2D);
- GL11.glDisable(2884);
-
- GL11.glPushMatrix();
- GL11.glScalef(0.5f, 0.4f, 0.4f);
- GL11.glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
- GL11.glTranslatef(-0.5f, -0.8675f, 0.0f);
- GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
- ClientHelper.renderCosmicBackground();
- GL11.glPopMatrix();
-
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- (Minecraft.getMinecraft()).renderEngine.bindTexture(TextureMap.locationItemsTexture);
- GL11.glTranslatef(-0.2F, -0.35F, -0.25F);
- GL11.glScalef(0.4f, 0.4f, 0.4f);
- float f = ItemNebulaArmor.nebulaEyes.getMinU();
- float f1 = ItemNebulaArmor.nebulaEyes.getMaxU();
- float f2 = ItemNebulaArmor.nebulaEyes.getMinV();
- float f3 = ItemNebulaArmor.nebulaEyes.getMaxV();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float r = color.getRed() / 510.0F;
- float g = color.getGreen() / 510.0F;
- float b = color.getBlue() / 510.0F;
- GL11.glColor4f(0.5f + r, 0.5f + g, 0.5f + b, 0.685f + (float)Math.sin(worldTime / 50.0D) * 0.175F);
- ItemRenderer.renderItemIn2D(Tessellator.instance, f1, f2, f, f3, ItemNebulaArmor.nebulaEyes.getIconWidth(), ItemNebulaArmor.nebulaEyes.getIconHeight(), 0.03125F);
- GL11.glDisable(3042);
- GL11.glEnable(2884);
- GL11.glEnable(32826);
- GL11.glPopMatrix();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/6d/404ab0f3b7ad001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/6d/404ab0f3b7ad001c1d59e42be7477558
deleted file mode 100644
index 44e430a..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/6d/404ab0f3b7ad001c1d59e42be7477558
+++ /dev/null
@@ -1,96 +0,0 @@
-package ab.client.render.tile;
-
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.model.ModelDiceFate;
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.entity.RenderManager;
-import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.ResourceLocation;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class RenderTileGameBoard extends TileEntitySpecialRenderer {
-
- private static final ModelDiceFate model = new ModelDiceFate();
- private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/gameDice.png");
- private static final ResourceLocation textureEnemy = new ResourceLocation("ab:textures/model/gameDice_enemy.png");
-
- public void renderTileEntityAt(TileEntity tile, double x, double y, double z, float ticks) {
- double time = (tile.getWorldObj() == null) ? 0.0D : (ClientTickHandler.ticksInGame + ticks);
- if(tile != null)
- time += (new Random((tile.xCoord ^ tile.yCoord ^ tile.zCoord))).nextInt(360);
- TileGameBoard board = (TileGameBoard)tile;
- GL11.glEnable(3042);
- GL11.glEnable(32826);
- GL11.glBlendFunc(770, 771);
- GL11.glPushMatrix();
- GL11.glTranslated(x + 0.5f, y, z + 0.5f);
- GL11.glRotatef(90.0f - RenderManager.instance.playerViewY, 0.0f, 1.0f, 0.0f);
- for(int i = 0; i < board.slotChance.length; i++) {
- if(board.slotChance[i] == 0)
- continue;
- time += i * 83.256f;
- GL11.glPushMatrix();
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- float posX = 0.0f;
- float posZ = 0.0f;
- float dropAnim = (1.0f - (Math.min(120.0f, (board.clientTick[i] * board.clientTick[i] * 1.25f) + ticks) / 120.0f));
- dropAnim = Math.min(1.0f, Math.max(dropAnim, 0));
- float alpha = (float)Math.cos(dropAnim);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, alpha);
- switch(i) {
- case 0:
- posX = 0.16f + 0.08f * dropAnim;
- posZ = 0.16f + 0.08f * dropAnim;
- break;
- case 1:
- posX = -0.16f - 0.08f * dropAnim;
- posZ = 0.16f + 0.08f * dropAnim;
- break;
- case 2:
- posX = 0.16f + 0.08f * dropAnim;
- posZ = -0.16f - 0.08f * dropAnim;
- break;
- case 3:
- posX = -0.16f - 0.08f * dropAnim;
- posZ = -0.16f - 0.08f * dropAnim;
- break;
- }
- GL11.glTranslated(posX, 0.02f + Math.sin(time / 12.0D) / 48.0D + (0.28f * dropAnim), posZ);
- GL11.glScalef(0.25f, 0.25f, 0.25f);
- Minecraft.getMinecraft().renderEngine.bindTexture(i > 1 ? textureEnemy : texture);
- float dropAngel = 70.0f * dropAnim;
- switch(board.slotChance[i]) {
- case 1:
- model.render(180.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 2:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 3:
- model.render(90.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 4:
- model.render(270.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 5:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 270.0f);
- break;
- case 6:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 90.0f);
- break;
- default:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- }
- GL11.glPopMatrix();
- }
- GL11.glPopMatrix();
- GL11.glEnable(32826);
- GL11.glDisable(3042);
- }
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/6d/80cc5ce8faac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/6d/80cc5ce8faac001c1d59e42be7477558
deleted file mode 100644
index 018de3f..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/6d/80cc5ce8faac001c1d59e42be7477558
+++ /dev/null
@@ -1,92 +0,0 @@
-package ab.client.render.tile;
-
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.model.ModelDiceFate;
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.ResourceLocation;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class RenderTileGameBoard extends TileEntitySpecialRenderer {
-
- private static final ModelDiceFate model = new ModelDiceFate();
- private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/gameDice.png");
- private static final ResourceLocation textureEnemy = new ResourceLocation("ab:textures/model/gameDice_enemy.png");
-
- public void renderTileEntityAt(TileEntity tile, double x, double y, double z, float ticks) {
- double time = (tile.getWorldObj() == null) ? 0.0D : (ClientTickHandler.ticksInGame + ticks);
- if(tile != null)
- time += (new Random((tile.xCoord ^ tile.yCoord ^ tile.zCoord))).nextInt(360);
- TileGameBoard board = (TileGameBoard)tile;
- GL11.glEnable(3042);
- GL11.glEnable(32826);
- GL11.glBlendFunc(770, 771);
- for(int i = 0; i < board.slotChance.length; i++) {
- if(board.slotChance[i] == 0)
- continue;
- time += i * 65;
- GL11.glPushMatrix();
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- float posX = 0.0f;
- float posY = 0.0f;
- float dropAnim = (1.0f - (Math.min(100.0f, (board.clientTick[i] * board.clientTick[i] * 1.25f) + ticks) / 100.0f));
- dropAnim = Math.min(1.0f, Math.max(dropAnim, 0));
- float alpha = (float)Math.cos(dropAnim);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, alpha);
- switch(i) {
- case 0:
- posX = 0.16f + 0.08f * dropAnim;
- posY = 0.16f + 0.08f * dropAnim;
- break;
- case 1:
- posX = -0.16f - 0.08f * dropAnim;
- posY = 0.16f + 0.08f * dropAnim;
- break;
- case 2:
- posX = 0.16f + 0.08f * dropAnim;
- posY = -0.16f - 0.08f * dropAnim;
- break;
- case 3:
- posX = -0.16f - 0.08f * dropAnim;
- posY = -0.16f - 0.08f * dropAnim;
- break;
- }
- GL11.glTranslated(x, y, z);
- GL11.glTranslated(0.5f + posX, 0.02f + Math.sin(time / 12.0D) / 48.0D + (0.28f * dropAnim), 0.5f + posY);
- GL11.glScalef(0.25f, 0.25f, 0.25f);
- Minecraft.getMinecraft().renderEngine.bindTexture(i > 1 ? textureEnemy : texture);
- float dropAngel = 70.0f * dropAnim;
- switch(board.slotChance[i]) {
- case 1:
- model.render(180.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 2:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 3:
- model.render(90.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 4:
- model.render(270.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 5:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 270.0f);
- break;
- case 6:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 90.0f);
- break;
- default:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- }
- GL11.glPopMatrix();
- }
- GL11.glEnable(32826);
- GL11.glDisable(3042);
- }
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/6e/801a0081bbad001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/6e/801a0081bbad001c1d59e42be7477558
deleted file mode 100644
index 1941266..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/6e/801a0081bbad001c1d59e42be7477558
+++ /dev/null
@@ -1,77 +0,0 @@
-package ab.client.render.tile;
-
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.model.ModelDiceFate;
-import ab.common.block.tile.TileBoardFate;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.entity.RenderManager;
-import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.ResourceLocation;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class RenderTileBoardFate extends TileEntitySpecialRenderer {
-
- private static final ModelDiceFate model = new ModelDiceFate();
- private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/diceFate.png");
-
- public void renderTileEntityAt(TileEntity tile, double x, double y, double z, float ticks) {
- double time = (tile.getWorldObj() == null) ? 0.0D : (ClientTickHandler.ticksInGame + ticks);
- if(tile != null)
- time += (new Random((tile.xCoord ^ tile.yCoord ^ tile.zCoord))).nextInt(360);
- TileBoardFate board = (TileBoardFate)tile;
- GL11.glEnable(3042);
- GL11.glEnable(32826);
- GL11.glBlendFunc(770, 771);
- GL11.glPushMatrix();
- GL11.glTranslated(x + 0.5f, y, z + 0.5f);
- GL11.glRotatef(90.0f - RenderManager.instance.playerViewY, 0.0f, 1.0f, 0.0f);
- for(int i = 0; i < board.getSizeInventory(); i++) {
- if(board.getStackInSlot(i) == null)
- continue;
- time += i * 83.256f;
- GL11.glPushMatrix();
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- float dropAnim = (1.0f - (Math.min(100.0f, (board.clientTick[i] * board.clientTick[i] * 1.25f) + ticks) / 100.0f));
- dropAnim = Math.min(1.0f, Math.max(dropAnim, 0.0f));
- float alpha = (float)Math.cos(dropAnim);
- float indet = i == 0 ? 0.16f + (0.08f * dropAnim) : -0.16f - (0.08f * dropAnim);
- GL11.glTranslated(indet, 0.02f + Math.sin(time / 12.0D) / 48.0D + (0.28f * dropAnim), indet);
- GL11.glScalef(0.25f, 0.25f, 0.25f);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, alpha);
- Minecraft.getMinecraft().renderEngine.bindTexture(texture);
- float dropAngel = 70.0f * dropAnim;
- switch(board.slotChance[i]) {
- case 1:
- model.render(180.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 2:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 3:
- model.render(90.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 4:
- model.render(270.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 5:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 270.0f);
- break;
- case 6:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 90.0f);
- break;
- default:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- }
- GL11.glEnable(32826);
- GL11.glPopMatrix();
- }
- GL11.glPopMatrix();
- GL11.glEnable(32826);
- GL11.glDisable(3042);
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/6e/909dfd0bb5b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/6e/909dfd0bb5b1001c19bf8a91ac37238b
deleted file mode 100644
index e7d2feb..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/6e/909dfd0bb5b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,88 +0,0 @@
-package ab.common.item;
-
-import java.util.List;
-
-import ab.common.core.CommonHelper;
-import ab.common.lib.register.BlockListAB;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.renderer.texture.IIconRegister;
-import net.minecraft.entity.Entity;
-import net.minecraft.entity.item.EntityFallingBlock;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.IIcon;
-import net.minecraft.world.World;
-import vazkii.botania.common.core.helper.ItemNBTHelper;
-
-public class ItemAntigravityCharm extends ItemMod {
-
- public static IIcon[] icons;
-
- public ItemAntigravityCharm() {
- super("antigravityCharm");
- this.setMaxStackSize(1);
- this.setNoRepair();
- }
-
- public void registerIcons(IIconRegister ir) {
- icons = new IIcon[2];
- for(int i = 0; i < icons.length; i++) {
- icons[i] = icons[i] = ir.registerIcon("ab:" + "itemAntigravityCharm_" + i);
- }
- }
-
- @SideOnly(Side.CLIENT)
- public IIcon getIcon(ItemStack stack, int pass) {
- int iconID = Math.min(1, pass);
- return this.icons[iconID];
- }
-
- public boolean requiresMultipleRenderPasses() {
- return true;
- }
-
- public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
- if(player.isSneaking())
- ItemNBTHelper.setBoolean(stack, "isActive", !ItemNBTHelper.getBoolean(stack, "isActive", true));
- return stack;
- }
-
- public void onUpdate(ItemStack stack, World world, Entity entity, int par4, boolean inHand) {
- if(entity instanceof EntityPlayer) {
- EntityPlayer player = (EntityPlayer)entity;
- if(ItemNBTHelper.getBoolean(stack, "isActive", true)) {
- double posX = player.posX;
- double posY = player.posY;
- double posZ = player.posZ;
- final AxisAlignedBB asis = AxisAlignedBB.getBoundingBox(posX, posY, posZ, posX + 1, posY + 1, posZ + 1).expand(8, 8, 8);
- final List listEntity = world.getEntitiesWithinAABB(EntityFallingBlock.class, asis);
- for(EntityFallingBlock fallBlock : listEntity) {
- int x = (int) (fallBlock.posX >= 0 ? fallBlock.posX : fallBlock.posX - 1);
- int y = (int) fallBlock.posY;
- int z = (int) (fallBlock.posZ >= 0 ? fallBlock.posZ : fallBlock.posZ - 1);
- Block block = fallBlock.func_145805_f();
- fallBlock.setInvisible(true);
- if(!world.isRemote) {
- if(CommonHelper.setBlock(world, BlockListAB.blockAntigravitation, 0, x, y - 1, z, (EntityPlayerMP)player, true));
- CommonHelper.setBlock(world, block, fallBlock.field_145814_a, x, y, z, (EntityPlayerMP)player, true);
- // setBlock(world, x, y, z, block, fallBlock.field_145814_a);
-// setBlock(world, x, y - 1, z, BlockListAB.blockAntigravitation, 0);
- }
- fallBlock.setDead();
- }
- }
- }
- }
-
- private void setBlock(World world, int x, int y, int z, Block block, int meta) {
- if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256) {
- world.setBlock(x, y, z, block, meta, 3);
- }
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/6e/b01e5b7cbdbc001c1a9f99005529f322 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/6e/b01e5b7cbdbc001c1a9f99005529f322
new file mode 100644
index 0000000..ee1d219
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/6e/b01e5b7cbdbc001c1a9f99005529f322
@@ -0,0 +1,38 @@
+package ab.client.render.block;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.client.render.tile.RenderTileManaContainer;
+import ab.common.block.tile.TileNidavellirForge;
+import ab.common.lib.register.BlockListAB;
+import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
+import net.minecraft.block.Block;
+import net.minecraft.client.renderer.RenderBlocks;
+import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.world.IBlockAccess;
+
+public class RenderBlockNidavellirForge implements ISimpleBlockRenderingHandler {
+
+ public void renderInventoryBlock(Block block, int metadata, int modelID, RenderBlocks renderer) {
+ GL11.glPushMatrix();
+ GL11.glTranslatef(-0.5F, -0.3325F, -0.5F);
+ GL11.glScalef(1.25f, 1.25f, 1.25f);
+ TileNidavellirForge forge = new TileNidavellirForge();
+ RenderTileManaContainer.metadata = metadata;
+ TileEntityRendererDispatcher.instance.renderTileEntityAt((TileEntity)forge, 0.0D, 0.0D, 0.0D, 0.0F);
+ GL11.glPopMatrix();
+ }
+
+ public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId, RenderBlocks renderer) {
+ return false;
+ }
+
+ public int getRenderId() {
+ return BlockListAB.blockABPlateRI;
+ }
+
+ public boolean shouldRender3DInInventory(int modelId) {
+ return true;
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/6f/40cc937797c1001c11e398ea97007cb4 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/6f/40cc937797c1001c11e398ea97007cb4
new file mode 100644
index 0000000..df7cd2c
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/6f/40cc937797c1001c11e398ea97007cb4
@@ -0,0 +1,201 @@
+package ab.common.item.relic;
+
+import java.awt.Color;
+import java.util.List;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.common.core.handler.NetworkHandler;
+import ab.common.lib.register.ItemListAB;
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
+import net.minecraft.block.Block;
+import net.minecraft.client.renderer.texture.IIconRegister;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.util.EnumChatFormatting;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.MathHelper;
+import net.minecraft.util.StatCollector;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.api.mana.ManaItemHandler;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class ItemSphereNavigation extends ItemModRelic {
+
+ public static IIcon[] icons;
+ public static final int rangeSearch = 16;
+ public static final int maxCooldown = 158;
+ public static final int manaCost = 1750;
+
+ public ItemSphereNavigation() {
+ super("sphereNavigation");
+ }
+
+ public void registerIcons(IIconRegister ir) {
+ icons = new IIcon[5];
+ icons[0] = ir.registerIcon("ab:sphereNavigation");
+ icons[1] = ir.registerIcon("ab:sphereNavigation_hasblock");
+ icons[2] = ir.registerIcon("ab:sphereNavigation_nonBlock");
+ icons[3] = ir.registerIcon("ab:sphereNavigation_off");
+ icons[4] = ir.registerIcon("ab:sphereNavigation_on");
+ }
+
+ public String getItemStackDisplayName(ItemStack stack) {
+ Block block = getFindBlock(stack);
+ int meta = getFindMeta(stack);
+ ItemStack rStack = new ItemStack(block, 1, meta);
+ return super.getItemStackDisplayName(stack) + ((rStack == null || rStack.getItem() == null) ? "" : (EnumChatFormatting.RESET + " (" + EnumChatFormatting.GREEN + rStack.getDisplayName() + EnumChatFormatting.RESET + ")"));
+ }
+
+ @SideOnly(Side.CLIENT)
+ public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean par4) {
+ super.addInformation(stack, player, list, par4);
+ addStringToTooltip(StatCollector.translateToLocal(stack.getItemDamage() == 0 ? "botaniamisc.active" : "botaniamisc.inactive"), list);
+ }
+
+ void addStringToTooltip(String s, List tooltip) {
+ tooltip.add(s.replaceAll("&", "\u00A7"));
+ }
+
+ public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
+ if(getFindBlock(stack) != null && player.isSneaking()) {
+ int dmg = stack.getItemDamage();
+ stack.setItemDamage((dmg ^ 0xFFFFFFFF) & 0x1);
+ world.playSoundAtEntity(player, "random.orb", 0.3F, 0.1F);
+ }
+ return stack;
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int pos, boolean equipped) {
+ super.onUpdate(stack, world, entity, pos, equipped);
+ if(entity instanceof EntityPlayer) {
+ EntityPlayer player = (EntityPlayer)entity;
+ if(!world.isRemote && stack.getItemDamage() == 0 && getFindBlock(stack) != null && canWork(stack) && ManaItemHandler.requestManaExactForTool(stack, player, manaCost, true)) {
+ setMaxTick(stack);
+ NetworkHandler.sendPacketToFindBlocks((EntityPlayerMP)player, getFindBlock(stack), getFindMeta(stack));
+ }
+ }
+ }
+
+ public static void findBlocks(World world, Block findBlock, int findMeta, EntityPlayer player) {
+ if(world.isRemote) {
+ ItemStack renderStack = null;
+ int maxFindedBlocks = 32;
+ int findedBlocks = 0;
+ label1703:
+ for(int y = -rangeSearch * 2; y < rangeSearch; y++) {
+ for(int x = -rangeSearch; x < rangeSearch; x++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks)) || world.rand.nextBoolean())
+ continue;
+ for(int z = -rangeSearch; z < rangeSearch; z++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks)) || world.rand.nextBoolean())
+ continue;
+ else if(findedBlocks >= maxFindedBlocks)
+ break label1703;
+ int posX = MathHelper.floor_double(player.posX) + x;
+ int posY = MathHelper.floor_double(player.posY) + y;
+ int posZ = MathHelper.floor_double(player.posZ) + z;
+ if(posY < 0)
+ continue;
+ Block block = world.getBlock(posX, posY, posZ);
+ if(!Block.isEqualTo(block, findBlock))
+ continue;
+ int meta = world.getBlockMetadata(posX, posY, posZ);
+ if(meta == findMeta) {
+ if(renderStack == null)
+ renderStack = getRenderStackForBlock(world, block, meta, posX, posY, posZ);
+ findedBlocks++;
+ float maxAge = 2.7f + (0.5f * (float)(Math.random()));
+ Botania.proxy.setWispFXDepthTest(false);
+ Botania.proxy.setWispFXDistanceLimit(false);
+ float far = 120.0f - (((Math.abs(x) + Math.min(rangeSearch, Math.abs(y)) + Math.abs(z)) / (rangeSearch * 4.0f)) * 120.0f);
+ if(far <= 70)
+ far *= 0.1f;
+ Color color = new Color(Color.HSBtoRGB(far / 360.0f, 0.9f + (float)(Math.random() * 0.1f), 1.0f));
+ for(int i = 0; i < 11; i++)
+ Botania.proxy.wispFX(world, posX + 0.5f + (Math.random() - 0.5f), posY + 0.5f + (Math.random() - 0.5f), posZ + 0.5f + (Math.random() - 0.5f), color.getRed() / 100.0f, color.getGreen() / 100.0f, color.getBlue() / 100.0f, 0.3f + (float)(Math.random() * 0.25f), 0.0f, maxAge);
+ Botania.proxy.setWispFXDistanceLimit(true);
+ Botania.proxy.setWispFXDepthTest(true);
+ }
+ }
+ }
+ }
+ if(renderStack != null)
+ ItemsRemainingRender.set(renderStack, "íàéäåíî: " + findedBlocks);
+ }
+ }
+
+ public static ItemStack getRenderStackForBlock(World world, Block block, int meta, int x, int y, int z) {
+ if(block != null) {
+ Item item = Item.getItemFromBlock(block);
+ if(item != null) {
+ ItemStack findStack = new ItemStack(block, 1, meta);
+ if(findStack != null)
+ return findStack;
+ } else {
+ Item item1 = block.getItem(world, x, y, z);
+ if(item1 != null) {
+ ItemStack findStack = new ItemStack(item1, 1, meta);
+ if(findStack != null)
+ return findStack;
+ }
+ }
+ }
+ return null;
+ }
+
+ public boolean onItemUse(ItemStack stack, EntityPlayer p, World world, int x, int y, int z, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
+ if(p.isSneaking()) {
+ Block block = world.getBlock(x, y, z);
+ if(block != null) {
+ int meta = world.getBlockMetadata(x, y, z);
+ ItemStack findStack = getRenderStackForBlock(world, block, meta, x, y, z);
+ if(findStack != null) {
+ setFindBlock(stack, block, meta);
+ if(world.isRemote)
+ ItemsRemainingRender.set(findStack, findStack.getDisplayName());
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public boolean canWork(ItemStack stack) {
+ int tick = ItemNBTHelper.getInt(stack, "cooldown", 0);
+ if(tick == 0)
+ return true;
+ else if(tick > 0)
+ ItemNBTHelper.setInt(stack, "cooldown", tick - 1);
+ return false;
+ }
+
+ public void setMaxTick(ItemStack stack) {
+ ItemNBTHelper.setInt(stack, "cooldown", maxCooldown);
+ }
+
+ public static void setFindBlock(ItemStack stack, Block block, int meta) {
+ ItemNBTHelper.setInt(stack, "findBlockID", Block.getIdFromBlock(block));
+ ItemNBTHelper.setInt(stack, "findBlockMeta", meta);
+ }
+
+ public static Block getFindBlock(ItemStack stack) {
+ int blockID = ItemNBTHelper.getInt(stack, "findBlockID", 0);
+ if(blockID == 0)
+ return null;
+ else
+ return Block.getBlockById(blockID);
+ }
+
+ public static int getFindMeta(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "findBlockMeta", -1);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/6f/7029d9ec06b0001c18a5eba32f24fffa b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/6f/7029d9ec06b0001c18a5eba32f24fffa
deleted file mode 100644
index e0168e9..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/6f/7029d9ec06b0001c18a5eba32f24fffa
+++ /dev/null
@@ -1,225 +0,0 @@
-package ab.common.block.tile;
-
-import java.util.List;
-
-import ab.api.IRenderHud;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.gui.ScaledResolution;
-import net.minecraft.client.renderer.RenderHelper;
-import net.minecraft.client.renderer.entity.RenderItem;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.init.Items;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.ChatComponentTranslation;
-import net.minecraft.util.ChatStyle;
-import net.minecraft.util.EnumChatFormatting;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.common.block.tile.TileMod;
-
-public class TileGameBoard extends TileMod implements IRenderHud {
-
- public String[] playersName = new String[] { "", "" };
- public byte[] slotChance = new byte[] { 0, 0, 0, 0 };
- protected int botTick = -1;
- public int endGameTick = -1;
- protected boolean requestUpdate;
- public boolean isSingleGame = true;
- public int clientTick[] = new int[] { 0, 0, 0, 0 };
- public static final ItemStack headRender = new ItemStack(Items.skull, 1, 3);
-
- public void updateEntity() {
- if(botTick > 0)
- botTick--;
- if(endGameTick > 0)
- endGameTick--;
- if(!worldObj.isRemote)
- updateServer();
- else
- updateAnimationTicks();
- }
-
- public void updateAnimationTicks() {
- for(int i = 0; i < slotChance.length; i++)
- if(slotChance[i] > 0)
- clientTick[i]++;
- else
- clientTick[i] = 0;
- }
-
- protected void updateServer() {
- if(hasGame() && endGameTick == 0)
- finishGame();
- if(requestUpdate)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- boolean hasUpdate = false;
- if(isSingleGame) {
- if(botTick == 0 && hasGame()) {
- for(int i = 2; i < 4; i++) {
- if(slotChance[i] == 0) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = -1;
- hasUpdate = true;
- break;
- }
- }
- }
- } else {
- if(botTick == 0 && hasGame())
- endGameTick = 0;
- }
- requestUpdate = hasUpdate;
- }
-
- public void setPlayer(EntityPlayer player) {
- if(isSingleGame) {
- playersName[0] = player.getCommandSenderName();
- playersName[1] = "";
- requestUpdate = true;
- botTick = 8;
- } else {
- if(playersName[0].isEmpty())
- playersName[0] = player.getCommandSenderName();
- else if(!playersName[0].equals(player.getCommandSenderName()))
- playersName[1] = player.getCommandSenderName();
- requestUpdate = true;
- }
- }
-
- public boolean dropDice(EntityPlayer player) {
- if(isSingleGame) {
- if(player.getCommandSenderName().equals(playersName[0]) && botTick == -1) {
- boolean isLastDice = false;
- boolean hasDrop = false;
- for(int i = 0; i < 2; i++) {
- if(slotChance[i] == 0) {
- hasDrop = true;
- if(!worldObj.isRemote) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = 18;
- requestUpdate = true;
- if(i == 1)
- isLastDice = true;
- }
- break;
- }
- }
- if(isLastDice)
- endGameTick = 28;
- return hasDrop;
- }
- } else {
- for(int i = 0; i < playersName.length; i++) {
- if(player.getCommandSenderName().equals(playersName[i])) {
- boolean hasDrop = false;
- for(int j = i * 2; j < (i + 1) * 2; j++) {
- if(slotChance[j] == 0) {
- hasDrop = true;
- if(!worldObj.isRemote) {
- slotChance[j] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = playersName[1].isEmpty() ? 240 : 1200;
- if(hasFullDice())
- endGameTick = 28;
- requestUpdate = true;
- }
- break;
- }
- }
- return hasDrop;
- }
- }
- }
- return false;
- }
-
- public boolean hasFullDice() {
- boolean hasFull = false;
- for(int i = 0; i < slotChance.length; i++) {
- if(!(slotChance[i] > 0))
- return false;
- hasFull = slotChance[i] > 0;
- }
- return hasFull;
- }
-
- public boolean hasGame() {
- if(isSingleGame)
- return !playersName[0].isEmpty();
- else
- for(int i = 0; i < playersName.length; i++)
- if(!playersName[i].isEmpty())
- return true;
- return false;
- }
-
- public void finishGame() {
- if(worldObj.isRemote)
- return;
- if(!hasFullDice()) {
- sendNearMessage("ab.gameBoard.misc.notPlayer", new Object[] {});
- resetGame();
- return;
- }
- String str = isSingleGame ? "" : ".mult";
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage("ab.gameBoard.misc.0" + str, new Object[] { playersName[0] });
- else if((slotChance[0] + slotChance[1]) == (slotChance[2] + slotChance[3]))
- sendNearMessage("ab.gameBoard.misc.1" + str, new Object[] {});
- else
- sendNearMessage("ab.gameBoard.misc.2" + str, new Object[] { playersName[isSingleGame ? 0 : 1] });
- resetGame();
- }
-
- public void sendNearMessage(String text, Object[] obj) {
- List players = this.worldObj.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(this.xCoord, this.yCoord, this.zCoord, (this.xCoord + 1), (this.yCoord + 1), (this.zCoord + 1)).expand(3.5f, 3.5f, 3.5f));
- for(EntityPlayer player : players) {
- if(player != null)
- player.addChatMessage((new ChatComponentTranslation(text, obj)).setChatStyle((new ChatStyle()).setColor(EnumChatFormatting.DARK_GREEN)));
- }
- }
-
- public void resetGame() {
- playersName[0] = "";
- playersName[1] = "";
- for(int i = 0; i < slotChance.length; i++)
- slotChance[i] = 0;
- botTick = -1;
- endGameTick = -1;
- requestUpdate = true;
- }
-
- public void renderHud(Minecraft mc, ScaledResolution res) {
- int x = res.getScaledWidth() / 2 - 7;
- int y = res.getScaledHeight() / 2 + 12;
- RenderHelper.enableGUIStandardItemLighting();
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, headRender, x - (!isSingleGame ? 1 : 0), y - (!isSingleGame ? 1 : 0));
- if(!isSingleGame)
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, headRender, x + 3, y + 3);
- RenderHelper.disableStandardItemLighting();
- }
-
- public void writeCustomNBT(NBTTagCompound cmp) {
- super.writeCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- cmp.setString("playerName" + i, playersName[i]);
- cmp.setByteArray("slotChance", slotChance);
- cmp.setInteger("botTick", botTick);
- cmp.setInteger("endGameTick", endGameTick);
- cmp.setBoolean("requestUpdate", requestUpdate);
- cmp.setBoolean("isSingleGame", isSingleGame);
- }
-
- public void readCustomNBT(NBTTagCompound cmp) {
- super.readCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- playersName[i] = cmp.getString("playerName" + i);
- botTick = cmp.getInteger("botTick");
- endGameTick = cmp.getInteger("endGameTick");
- slotChance = cmp.getByteArray("slotChance");
- requestUpdate = cmp.getBoolean("requestUpdate");
- isSingleGame = cmp.getBoolean("isSingleGame");
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/6f/90c3dcc8fcac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/6f/90c3dcc8fcac001c1d59e42be7477558
deleted file mode 100644
index a0fc832..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/6f/90c3dcc8fcac001c1d59e42be7477558
+++ /dev/null
@@ -1,96 +0,0 @@
-package ab.client.render.tile;
-
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.model.ModelDiceFate;
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.entity.RenderManager;
-import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.ResourceLocation;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class RenderTileGameBoard extends TileEntitySpecialRenderer {
-
- private static final ModelDiceFate model = new ModelDiceFate();
- private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/gameDice.png");
- private static final ResourceLocation textureEnemy = new ResourceLocation("ab:textures/model/gameDice_enemy.png");
-
- public void renderTileEntityAt(TileEntity tile, double x, double y, double z, float ticks) {
- double time = (tile.getWorldObj() == null) ? 0.0D : (ClientTickHandler.ticksInGame + ticks);
- if(tile != null)
- time += (new Random((tile.xCoord ^ tile.yCoord ^ tile.zCoord))).nextInt(360);
- TileGameBoard board = (TileGameBoard)tile;
- GL11.glEnable(3042);
- GL11.glEnable(32826);
- GL11.glBlendFunc(770, 771);
- GL11.glPushMatrix();
- GL11.glTranslated(x + 0.5f, y, z + 0.5f);
- GL11.glRotatef(90.0f - RenderManager.instance.playerViewY, 0.0f, 1.0f, 0.0f);
- for(int i = 0; i < board.slotChance.length; i++) {
- if(board.slotChance[i] == 0)
- continue;
- time += (i * 2) * 85;
- GL11.glPushMatrix();
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- float posX = 0.0f;
- float posZ = 0.0f;
- float dropAnim = (1.0f - (Math.min(120.0f, (board.clientTick[i] * board.clientTick[i] * 1.25f) + ticks) / 120.0f));
- dropAnim = Math.min(1.0f, Math.max(dropAnim, 0));
- float alpha = (float)Math.cos(dropAnim);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, alpha);
- switch(i) {
- case 0:
- posX = 0.16f + 0.08f * dropAnim;
- posZ = 0.16f + 0.08f * dropAnim;
- break;
- case 1:
- posX = -0.16f - 0.08f * dropAnim;
- posZ = 0.16f + 0.08f * dropAnim;
- break;
- case 2:
- posX = 0.16f + 0.08f * dropAnim;
- posZ = -0.16f - 0.08f * dropAnim;
- break;
- case 3:
- posX = -0.16f - 0.08f * dropAnim;
- posZ = -0.16f - 0.08f * dropAnim;
- break;
- }
- GL11.glTranslated(posX, 0.02f + Math.sin(time / 12.0D) / 48.0D + (0.28f * dropAnim), posZ);
- GL11.glScalef(0.25f, 0.25f, 0.25f);
- Minecraft.getMinecraft().renderEngine.bindTexture(i > 1 ? textureEnemy : texture);
- float dropAngel = 70.0f * dropAnim;
- switch(board.slotChance[i]) {
- case 1:
- model.render(180.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 2:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 3:
- model.render(90.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 4:
- model.render(270.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 5:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 270.0f);
- break;
- case 6:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 90.0f);
- break;
- default:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- }
- GL11.glPopMatrix();
- }
- GL11.glPopMatrix();
- GL11.glEnable(32826);
- GL11.glDisable(3042);
- }
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/5d/6029ee2b83ae001c1bd4eaa9a9be6b81 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/6f/d0ec1b5c93c1001c11e398ea97007cb4
similarity index 77%
rename from 1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/5d/6029ee2b83ae001c1bd4eaa9a9be6b81
rename to 1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/6f/d0ec1b5c93c1001c11e398ea97007cb4
index be96ee9..f27fded 100644
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/5d/6029ee2b83ae001c1bd4eaa9a9be6b81
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/6f/d0ec1b5c93c1001c11e398ea97007cb4
@@ -9,6 +9,7 @@ import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.stats.Achievement;
import net.minecraftforge.common.AchievementPage;
+import vazkii.botania.common.core.handler.ConfigHandler;
import vazkii.botania.common.item.ModItems;
public class AchievementRegister {
@@ -17,11 +18,15 @@ public class AchievementRegister {
public static Achievement relicPocketArmor;
public static Achievement relicItemChest;
public static Achievement fateBoard;
+ public static Achievement hornPlenty;
+ public static Achievement sphereNavigation;
public static void init() {
relicSlingshot = new AchievementAB("relicSlingshot", 0, 2, new ItemStack(ItemListAB.itemFreyrSlingshot), null);
relicPocketArmor = new AchievementAB("relicPocketArmor", 0, -2, new ItemStack(ItemListAB.itemPocketWardrobe), null);
relicItemChest = new AchievementAB("relicItemChest", 2, 1, new ItemStack(ItemListAB.itemTalismanHiddenRiches), null);
+ hornPlenty = new AchievementAB("relicHornPlenty", 2, 0, new ItemStack(ItemListAB.itemHornPlenty), null);
+ sphereNavigation = new AchievementAB("relicSphereNavigation", -2, 1, new ItemStack(ItemListAB.itemSphereNavigation), null);
fateBoard = new AchievementAB("fateBoard", 0, 0, new ItemStack(BlockListAB.blockBoardFate, 1, 1), null).setSpecial();
AchievementPage page = new AchievementPage("Advanced Botany", AdvancedBotanyAPI.achievements.toArray(new Achievement[AdvancedBotanyAPI.achievements.size()]));
AchievementPage.registerAchievementPage(page);
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/6f/f0cec1f3b3b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/6f/f0cec1f3b3b1001c19bf8a91ac37238b
deleted file mode 100644
index 3f46330..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/6f/f0cec1f3b3b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,88 +0,0 @@
-package ab.common.item;
-
-import java.util.List;
-
-import ab.common.core.CommonHelper;
-import ab.common.lib.register.BlockListAB;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.renderer.texture.IIconRegister;
-import net.minecraft.entity.Entity;
-import net.minecraft.entity.item.EntityFallingBlock;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.IIcon;
-import net.minecraft.world.World;
-import vazkii.botania.common.core.helper.ItemNBTHelper;
-
-public class ItemAntigravityCharm extends ItemMod {
-
- public static IIcon[] icons;
-
- public ItemAntigravityCharm() {
- super("antigravityCharm");
- this.setMaxStackSize(1);
- this.setNoRepair();
- }
-
- public void registerIcons(IIconRegister ir) {
- icons = new IIcon[2];
- for(int i = 0; i < icons.length; i++) {
- icons[i] = icons[i] = ir.registerIcon("ab:" + "itemAntigravityCharm_" + i);
- }
- }
-
- @SideOnly(Side.CLIENT)
- public IIcon getIcon(ItemStack stack, int pass) {
- int iconID = Math.min(1, pass);
- return this.icons[iconID];
- }
-
- public boolean requiresMultipleRenderPasses() {
- return true;
- }
-
- public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
- if(player.isSneaking())
- ItemNBTHelper.setBoolean(stack, "isActive", !ItemNBTHelper.getBoolean(stack, "isActive", true));
- return stack;
- }
-
- public void onUpdate(ItemStack stack, World world, Entity entity, int par4, boolean inHand) {
- if(entity instanceof EntityPlayer) {
- EntityPlayer player = (EntityPlayer)entity;
- if(ItemNBTHelper.getBoolean(stack, "isActive", true)) {
- double posX = player.posX;
- double posY = player.posY;
- double posZ = player.posZ;
- final AxisAlignedBB asis = AxisAlignedBB.getBoundingBox(posX, posY, posZ, posX + 1, posY + 1, posZ + 1).expand(8, 8, 8);
- final List listEntity = world.getEntitiesWithinAABB(EntityFallingBlock.class, asis);
- for(EntityFallingBlock fallBlock : listEntity) {
- int x = (int) (fallBlock.posX >= 0 ? fallBlock.posX : fallBlock.posX - 1);
- int y = (int) fallBlock.posY;
- int z = (int) (fallBlock.posZ >= 0 ? fallBlock.posZ : fallBlock.posZ - 1);
- Block block = fallBlock.func_145805_f();
- fallBlock.setInvisible(true);
- if(!world.isRemote) {
-// CommonHelper.setBlock(world, block, fallBlock.field_145814_a, x, y, z, (EntityPlayerMP)player, true);
-// CommonHelper.setBlock(world, BlockListAB.blockAntigravitation, 0, x, y - 1, z, (EntityPlayerMP)player, true);
- setBlock(world, x, y, z, block, fallBlock.field_145814_a);
- setBlock(world, x, y, z, BlockListAB.blockAntigravitation, 0);
- }
- fallBlock.setDead();
- }
- }
- }
- }
-
- private void setBlock(World world, int x, int y, int z, Block block, int meta) {
- if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256) {
- world.setBlock(x, y, z, block, meta, 3);
- }
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/7/00be7b04b8b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/7/00be7b04b8b1001c19bf8a91ac37238b
deleted file mode 100644
index 0e384a3..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/7/00be7b04b8b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,73 +0,0 @@
-package ab.common.item.relic;
-
-import java.util.List;
-
-import ab.AdvancedBotany;
-import ab.common.entity.EntityManaVine;
-import ab.common.item.ItemMod;
-import net.minecraft.client.particle.EntityFX;
-import net.minecraft.client.renderer.ActiveRenderInfo;
-import net.minecraft.entity.Entity;
-import net.minecraft.entity.EntityLivingBase;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.EnumAction;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.stats.Achievement;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.world.World;
-import vazkii.botania.api.mana.IManaItem;
-import vazkii.botania.api.mana.IManaTooltipDisplay;
-import vazkii.botania.api.mana.IManaUsingItem;
-import vazkii.botania.api.mana.ManaItemHandler;
-import vazkii.botania.common.achievement.AchievementMod;
-import vazkii.botania.common.core.helper.ItemNBTHelper;
-
-public class ItemFreyrSlingshot extends ItemModRelic implements IManaUsingItem {
-
- protected static final int MAX_MANA = 50000;
-
- private static final String TAG_MANA = "mana";
-
- public ItemFreyrSlingshot() {
- super("freyrSlingshot");
- }
-
- public void onPlayerStoppedUsing(ItemStack stack, World world, EntityPlayer player, int par4) {
- int j = getMaxItemUseDuration(stack) - par4;
- float f = j / 20.0F;
- f = (f * f + f * 2.0F) / 3.0F;
- if(f < 1.0F)
- return;
- if(!world.isRemote && ManaItemHandler.requestManaExactForTool(stack, player, 5000, true)) {
- EntityManaVine ball = new EntityManaVine(world, player);
- ball.motionX *= 0.9D;
- ball.motionY *= 0.9D;
- ball.motionZ *= 0.9D;
- world.spawnEntityInWorld(ball);
- }
- }
-
- public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
- if(ManaItemHandler.requestManaExactForTool(stack, player, 5000, false))
- player.setItemInUse(stack, getMaxItemUseDuration(stack));
- return stack;
- }
-
- public int getMaxItemUseDuration(ItemStack par1ItemStack) {
- return 42000;
- }
-
- public ItemStack onEaten(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer) {
- return par1ItemStack;
- }
-
- public EnumAction getItemUseAction(ItemStack par1ItemStack) {
- return EnumAction.bow;
- }
-
- public boolean usesMana(ItemStack stack) {
- return true;
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/7/00bffae2bcbc001c1a9f99005529f322 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/7/00bffae2bcbc001c1a9f99005529f322
new file mode 100644
index 0000000..bcb7bef
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/7/00bffae2bcbc001c1a9f99005529f322
@@ -0,0 +1,38 @@
+package ab.client.render.block;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.client.render.tile.RenderTileManaContainer;
+import ab.common.block.tile.TileNidavellirForge;
+import ab.common.lib.register.BlockListAB;
+import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
+import net.minecraft.block.Block;
+import net.minecraft.client.renderer.RenderBlocks;
+import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.world.IBlockAccess;
+
+public class RenderBlockNidavellirForge implements ISimpleBlockRenderingHandler {
+
+ public void renderInventoryBlock(Block block, int metadata, int modelID, RenderBlocks renderer) {
+ GL11.glPushMatrix();
+ GL11.glTranslatef(-0.5F, -0.6F, -0.5F);
+ GL11.glScalef(1.4f, 1.4f, 1.4f);
+ TileNidavellirForge forge = new TileNidavellirForge();
+ RenderTileManaContainer.metadata = metadata;
+ TileEntityRendererDispatcher.instance.renderTileEntityAt((TileEntity)forge, 0.0D, 0.0D, 0.0D, 0.0F);
+ GL11.glPopMatrix();
+ }
+
+ public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId, RenderBlocks renderer) {
+ return false;
+ }
+
+ public int getRenderId() {
+ return BlockListAB.blockABPlateRI;
+ }
+
+ public boolean shouldRender3DInInventory(int modelId) {
+ return true;
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/7/10255eaafeac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/7/10255eaafeac001c1d59e42be7477558
deleted file mode 100644
index 4c91727..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/7/10255eaafeac001c1d59e42be7477558
+++ /dev/null
@@ -1,123 +0,0 @@
-package ab.common.block;
-
-import java.util.List;
-
-import ab.AdvancedBotany;
-import ab.common.block.tile.TileBoardFate;
-import ab.common.block.tile.TileGameBoard;
-import ab.common.block.tile.TileInventory;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockContainer;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.renderer.texture.IIconRegister;
-import net.minecraft.creativetab.CreativeTabs;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.IIcon;
-import net.minecraft.world.World;
-import vazkii.botania.api.wand.IWandable;
-
-public class BlockBoardFate extends BlockContainer implements IWandable {
-
- protected IIcon[] iconsFate;
- protected IIcon[] iconsBoard;
-
- public BlockBoardFate() {
- super(Material.iron);
- this.setCreativeTab(AdvancedBotany.tabAB);
- this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.1875F, 1.0F);
- this.setHardness(3.0F);
- this.setResistance(10.0F);
- this.setStepSound(soundTypeMetal);
- this.setBlockName("boardFate");
- }
-
- public void getSubBlocks(Item par1, CreativeTabs par2CreativeTabs, List list) {
- for(int i = 0; i < 2; i++)
- list.add(new ItemStack(par1, 1, i));
- }
-
- public void registerBlockIcons(IIconRegister ir) {
- this.iconsFate = new IIcon[3];
- this.iconsBoard = new IIcon[3];
- for(int i = 0; i < iconsFate.length; i++)
- this.iconsFate[i] = ir.registerIcon("ab:boardFate_" + i);
- for(int i = 0; i < iconsBoard.length; i++)
- this.iconsBoard[i] = ir.registerIcon("ab:gameBoard_" + i);
- }
-
- public IIcon getIcon(int side, int meta) {
- if(meta == 0)
- return this.iconsBoard[Math.min(2, side)];
- else
- return this.iconsFate[Math.min(2, side)];
- }
-
- public boolean isOpaqueCube() {
- return false;
- }
-
- public boolean renderAsNormalBlock() {
- return false;
- }
-
- public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float par7, float par8, float par9) {
- int meta = world.getBlockMetadata(x, y, z);
- if(meta == 0) {
- TileGameBoard tile = (TileGameBoard)world.getTileEntity(x, y, z);
- if(!tile.hasGame())
- tile.setPlayer(player);
- else if(!tile.isSingleGame && tile.playersName[1].isEmpty() && !tile.playersName[0].equals(player.getCommandSenderName()))
- tile.setPlayer(player);
- else {
- return tile.dropDice(player);
- }
- return false;
- } else {
- TileBoardFate tile = (TileBoardFate)world.getTileEntity(x, y, z);
- return tile.spawnRelic(player);
- }
- }
-
- public TileEntity createNewTileEntity(World world, int meta) {
- return meta == 0 ? new TileGameBoard() : new TileBoardFate();
- }
-
- public void breakBlock(World world, int x, int y, int z, Block block, int meta) {
- if(!world.isRemote && meta == 1) {
- TileInventory inv = (TileInventory)world.getTileEntity(x, y, z);
- if (inv != null) {
- for (int i = 0; i < inv.getSizeInventory(); i++) {
- ItemStack stack = inv.getStackInSlot(i);
- if (stack != null) {
- float f = world.rand.nextFloat() * 0.8F + 0.1F;
- float f1 = world.rand.nextFloat() * 0.8F + 0.1F;
- float f2 = world.rand.nextFloat() * 0.8F + 0.1F;
- EntityItem entityitem = new EntityItem(world, (x + f), (y + f1), (z + f2), stack.copy());
- float f3 = 0.05F;
- entityitem.motionX = ((float)world.rand.nextGaussian() * f3);
- entityitem.motionY = ((float)world.rand.nextGaussian() * f3 + 0.2F);
- entityitem.motionZ = ((float)world.rand.nextGaussian() * f3);
- if (stack.hasTagCompound())
- entityitem.getEntityItem().setTagCompound((NBTTagCompound)stack.getTagCompound().copy());
- world.spawnEntityInWorld(entityitem);
- }
- }
- }
- }
- super.breakBlock(world, x, y, z, block, meta);
- }
-
- public boolean onUsedByWand(EntityPlayer player, ItemStack stack, World world, int x, int y, int z, int side) {
- if(world.getBlockMetadata(x, y, z) == 0 && player.isSneaking()) {
- TileGameBoard tile = (TileGameBoard)world.getTileEntity(x, y, z);
- tile.isSingleGame = !tile.isSingleGame;
- return true;
- }
- return false;
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/7/1066ed2b83ae001c1bd4eaa9a9be6b81 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/7/1066ed2b83ae001c1bd4eaa9a9be6b81
deleted file mode 100644
index feacb1d..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/7/1066ed2b83ae001c1bd4eaa9a9be6b81
+++ /dev/null
@@ -1,129 +0,0 @@
-package ab.common.block;
-
-import java.util.List;
-
-import ab.AdvancedBotany;
-import ab.common.block.tile.TileBoardFate;
-import ab.common.block.tile.TileGameBoard;
-import ab.common.block.tile.TileInventory;
-import ab.common.lib.register.AchievementRegister;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockContainer;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.renderer.texture.IIconRegister;
-import net.minecraft.creativetab.CreativeTabs;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.stats.Achievement;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.IIcon;
-import net.minecraft.world.World;
-import vazkii.botania.api.wand.IWandable;
-import vazkii.botania.common.achievement.IPickupAchievement;
-
-public class BlockBoardFate extends BlockContainer implements IPickupAchievement {
-
- protected IIcon[] iconsFate;
- protected IIcon[] iconsBoard;
-
- public BlockBoardFate() {
- super(Material.iron);
- this.setCreativeTab(AdvancedBotany.tabAB);
- this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.1875F, 1.0F);
- this.setHardness(3.0F);
- this.setResistance(10.0F);
- this.setStepSound(soundTypeMetal);
- this.setBlockName("boardFate");
- }
-
- public void getSubBlocks(Item par1, CreativeTabs par2CreativeTabs, List list) {
- for(int i = 0; i < 2; i++)
- list.add(new ItemStack(par1, 1, i));
- }
-
- public void registerBlockIcons(IIconRegister ir) {
- this.iconsFate = new IIcon[3];
- this.iconsBoard = new IIcon[3];
- for(int i = 0; i < iconsFate.length; i++)
- this.iconsFate[i] = ir.registerIcon("ab:boardFate_" + i);
- for(int i = 0; i < iconsBoard.length; i++)
- this.iconsBoard[i] = ir.registerIcon("ab:gameBoard_" + i);
- }
-
- public IIcon getIcon(int side, int meta) {
- if(meta == 0)
- return this.iconsBoard[Math.min(2, side)];
- else
- return this.iconsFate[Math.min(2, side)];
- }
-
- public boolean isOpaqueCube() {
- return false;
- }
-
- public boolean renderAsNormalBlock() {
- return false;
- }
-
- public int damageDropped(int par1) {
- return par1;
- }
-
- public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float par7, float par8, float par9) {
- int meta = world.getBlockMetadata(x, y, z);
- if(meta == 0) {
- TileGameBoard tile = (TileGameBoard)world.getTileEntity(x, y, z);
- if(player.isSneaking() && !tile.hasGame()) {
- tile.isSingleGame = !tile.isSingleGame;
- return true;
- }
- if(!tile.hasGame())
- tile.setPlayer(player);
- else if(!tile.isSingleGame && tile.playersName[1].isEmpty() && !tile.playersName[0].equals(player.getCommandSenderName()))
- tile.setPlayer(player);
- else {
- return tile.dropDice(player);
- }
- return false;
- } else {
- TileBoardFate tile = (TileBoardFate)world.getTileEntity(x, y, z);
- return tile.spawnRelic(player);
- }
- }
-
- public TileEntity createNewTileEntity(World world, int meta) {
- return meta == 0 ? new TileGameBoard() : new TileBoardFate();
- }
-
- public void breakBlock(World world, int x, int y, int z, Block block, int meta) {
- if(!world.isRemote && meta == 1) {
- TileInventory inv = (TileInventory)world.getTileEntity(x, y, z);
- if (inv != null) {
- for (int i = 0; i < inv.getSizeInventory(); i++) {
- ItemStack stack = inv.getStackInSlot(i);
- if (stack != null) {
- float f = world.rand.nextFloat() * 0.8F + 0.1F;
- float f1 = world.rand.nextFloat() * 0.8F + 0.1F;
- float f2 = world.rand.nextFloat() * 0.8F + 0.1F;
- EntityItem entityitem = new EntityItem(world, (x + f), (y + f1), (z + f2), stack.copy());
- float f3 = 0.05F;
- entityitem.motionX = ((float)world.rand.nextGaussian() * f3);
- entityitem.motionY = ((float)world.rand.nextGaussian() * f3 + 0.2F);
- entityitem.motionZ = ((float)world.rand.nextGaussian() * f3);
- if (stack.hasTagCompound())
- entityitem.getEntityItem().setTagCompound((NBTTagCompound)stack.getTagCompound().copy());
- world.spawnEntityInWorld(entityitem);
- }
- }
- }
- }
- super.breakBlock(world, x, y, z, block, meta);
- }
-
- public Achievement getAchievementOnPickup(ItemStack stack, EntityPlayer player, EntityItem item) {
- return stack.getItemDamage() == 1 ? AchievementRegister.fateBoard : null;
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/7/70591cc714be001c1965b122d2f8f403 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/7/70591cc714be001c1965b122d2f8f403
new file mode 100644
index 0000000..e85b869
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/7/70591cc714be001c1965b122d2f8f403
@@ -0,0 +1,134 @@
+package ab.common.item.relic;
+
+import java.awt.Color;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.common.core.handler.NetworkHandler;
+import net.minecraft.block.Block;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.MathHelper;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.api.mana.ManaItemHandler;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class ItemSphereNavigation extends ItemModRelic {
+
+ public static final int rangeSearch = 24;
+ public static final int maxCooldown = 88;
+ public static final int manaCost = 8750;
+
+ public ItemSphereNavigation() {
+ super("sphereNavigation");
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int pos, boolean equipped) {
+ super.onUpdate(stack, world, entity, pos, equipped);
+ if(entity instanceof EntityPlayer) {
+ EntityPlayer player = (EntityPlayer)entity;
+ if(!world.isRemote && getFindBlock(stack) != null && canWork(stack) && ManaItemHandler.requestManaExactForTool(stack, player, manaCost, true)) {
+ setMaxTick(stack);
+ NetworkHandler.sendPacketToFindBlocks((EntityPlayerMP)player, getFindBlock(stack), getFindMeta(stack));
+ }
+ }
+ }
+
+ public static void findBlocks(World world, Block findBlock, int findMeta, EntityPlayer player) {
+ if(world.isRemote) {
+ int findedBlocks = 0;
+ label1703:
+ for(int x = -rangeSearch; x < rangeSearch; x++) {
+ if(world.rand.nextBoolean())
+ continue;
+ for(int y = -rangeSearch * 4; y < rangeSearch; y++) {
+ if(world.rand.nextBoolean())
+ continue;
+ for(int z = -rangeSearch; z < rangeSearch; z++) {
+ if(world.rand.nextBoolean())
+ continue;
+ else if(findedBlocks > 16)
+ break label1703;
+ int posX = MathHelper.floor_double(player.posX) + x;
+ int posY = MathHelper.floor_double(player.posY) + y;
+ int posZ = MathHelper.floor_double(player.posZ) + z;
+ if(posY < 0)
+ continue;
+ Block block = world.getBlock(posX, posY, posZ);
+ if(!Block.isEqualTo(block, findBlock))
+ continue;
+ int meta = world.getBlockMetadata(posX, posY, posZ);
+ if(meta == findMeta) {
+ findedBlocks++;
+ float maxAge = 2.7f + (0.5f * (float)(Math.random()));
+ Botania.proxy.setWispFXDepthTest(false);
+ float far = 120.0f - (((Math.abs(x) + Math.min(rangeSearch * 2.0f, Math.abs(y)) + Math.abs(z)) / (rangeSearch * 4.0f)) * 120.0f);
+ if(far <= 60)
+ far *= 0.15f;
+ Color color = new Color(Color.HSBtoRGB(far / 360.0f, 0.9f + (float)(Math.random() * 0.1f), 1.0f));
+ for(int i = 0; i < 11; i++)
+ Botania.proxy.wispFX(world, posX + 0.5f + (Math.random() - 0.5f), posY + 0.5f + (Math.random() - 0.5f), posZ + 0.5f + (Math.random() - 0.5f), color.getRed() / 100.0f, color.getGreen() / 100.0f, color.getBlue() / 100.0f, 0.3f + (float)(Math.random() * 0.25f), 0.0f, maxAge);
+ Botania.proxy.setWispFXDepthTest(true);
+ }
+ }
+ }
+ }
+ }
+ }
+
+ public boolean onItemUse(ItemStack stack, EntityPlayer p, World world, int x, int y, int z, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
+ if(p.isSneaking()) {
+ Block block = world.getBlock(x, y, z);
+ if(block != null) {
+ int meta = world.getBlockMetadata(x, y, z);
+ Item item = Item.getItemFromBlock(block);
+ if(item != null) {
+ ItemStack findStack = new ItemStack(block, 1, meta);
+ if(findStack != null) {
+ setFindBlock(stack, block, meta);
+ if(world.isRemote)
+ ItemsRemainingRender.set(findStack, findStack.getDisplayName());
+ }
+ }
+ return true;
+ }
+ }
+ return false;
+ }
+
+ public boolean canWork(ItemStack stack) {
+ int tick = ItemNBTHelper.getInt(stack, "cooldown", 0);
+ if(tick == 0)
+ return true;
+ else if(tick > 0)
+ ItemNBTHelper.setInt(stack, "cooldown", tick - 1);
+ return false;
+ }
+
+ public void setMaxTick(ItemStack stack) {
+ ItemNBTHelper.setInt(stack, "cooldown", maxCooldown);
+ }
+
+ public static void setFindBlock(ItemStack stack, Block block, int meta) {
+ ItemNBTHelper.setInt(stack, "findBlockID", Block.getIdFromBlock(block));
+ ItemNBTHelper.setInt(stack, "findBlockMeta", meta);
+ }
+
+ public static Block getFindBlock(ItemStack stack) {
+ int blockID = ItemNBTHelper.getInt(stack, "findBlockID", 0);
+ if(blockID == 0)
+ return null;
+ else
+ return Block.getBlockById(blockID);
+ }
+
+ public static int getFindMeta(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "findBlockMeta", -1);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/3/c01b5b7f9ab1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/7/c0e9d7c076c1001c11e398ea97007cb4
similarity index 91%
rename from 1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/3/c01b5b7f9ab1001c19bf8a91ac37238b
rename to 1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/7/c0e9d7c076c1001c11e398ea97007cb4
index 2511c78..bb04c19 100644
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/3/c01b5b7f9ab1001c19bf8a91ac37238b
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/7/c0e9d7c076c1001c11e398ea97007cb4
@@ -10,7 +10,7 @@ import ab.api.recipe.RecipeAdvancedPlate;
import ab.api.recipe.RecipeAncientAlphirine;
import ab.api.recipe.lexicon.AdvancedPlateCraftPage;
import ab.api.recipe.lexicon.AlphirineCraftPage;
-import ab.common.block.tile.TileAgglomerationPlate;
+import ab.common.block.tile.TileNidavellirForge;
import ab.common.block.tile.TileLebethronCore;
import ab.common.block.tile.TileMagicCraftCrate;
import ab.common.core.handler.ConfigABHandler;
@@ -122,7 +122,7 @@ public class RecipeListAB {
if(ConfigABHandler.hasAbPlate) {
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockABPlate), new Object[] { " ", "MPM", "BRB", Character.valueOf('M'), new ItemStack(ModBlocks.storage), Character.valueOf('P'), new ItemStack(ModBlocks.terraPlate), Character.valueOf('B'), new ItemStack(ItemListAB.itemABResource, 1, 3), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 3)});
advandedAgglomerationPlate = new BLexiconEntry("advancedPlate", categoryForgotten);
- advandedAgglomerationPlate.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] {new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()), BotaniaAPI.internalHandler.multiblockPage(".structure", TileAgglomerationPlate.makeMultiblockSet()), new AdvancedPlateCraftPage(advandedAgglomerationPlate, terrasteelRecipe.getOutput(), ".abCraft0"), new AdvancedPlateCraftPage(advandedAgglomerationPlate, manaStarRecipe.getOutput(), ".abCraft1") }).setIcon(new ItemStack(BlockListAB.blockABPlate));
+ advandedAgglomerationPlate.setPriority().setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] {new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()), new AdvancedPlateCraftPage(advandedAgglomerationPlate, terrasteelRecipe.getOutput(), ".abCraft0"), new AdvancedPlateCraftPage(advandedAgglomerationPlate, manaStarRecipe.getOutput(), ".abCraft1") }).setIcon(new ItemStack(BlockListAB.blockABPlate));
}
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockABSpreader), new Object[] { "WMW", "PSP", "WMW", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource, 1, 2), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('S'), new ItemStack(ModBlocks.spreader, 1, 3), Character.valueOf('W'), new ItemStack(BlockListAB.blockLebethron, 1, 4)});
@@ -245,6 +245,8 @@ public class RecipeListAB {
sprawlRod.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
azartFlowerRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("ardentAzarcissus"), new ItemStack(ItemListAB.itemABResource, 1, 4), new ItemStack(ModItems.petal, 1, 11), new ItemStack(ModItems.petal, 1, 11), new ItemStack(ModItems.petal, 1, 14), new ItemStack(ModItems.petal, 1, 14), new ItemStack(ModItems.petal, 1, 13), new ItemStack(ModItems.manaResource, 1, 5));
+ azartFlower = new BLexiconEntry("azartFlower", BotaniaAPI.categoryGenerationFlowers);
+ azartFlower.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", azartFlowerRecipe)});
if(Botania.thaumcraftLoaded)
thaumcraft();
@@ -261,23 +263,27 @@ public class RecipeListAB {
aspecolusRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("aspecolus"), new ItemStack(ModItems.manaResource, 1, 6), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.rune, 1, 1), new ItemStack(ModItems.rune), new ItemStack(ItemListAB.itemABResource, 1, 2), new ItemStack(ModItems.petal, 1, 10), new ItemStack(ModItems.petal, 1, 13));
aspecolus.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", aspecolusRecipe) }).setIcon(ItemBlockSpecialFlower.ofType("aspecolus"));
addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemNebulaHelmReveal), new Object[] { new ItemStack(ItemListAB.itemNebulaHelm), new ItemStack(ConfigItems.itemGoggles)});
- List recipes = new ArrayList();
- for(int i = 1; i < 10; i++) {
- boolean[][] patterns = ItemCraftingPattern.getPattern(i);
- List str = new ArrayList();
- for(int j = 0; j < patterns.length; j++) {
- String str1 = "";
- for(int k = 0; k < patterns[j].length; k++)
- str1 += patterns[j][k] ? "T" : "H";
- str.add(str1);
- }
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemCraftingPattern, 1, i), new Object[] { str.get(0), str.get(1), str.get(2), Character.valueOf('T'), new ItemStack(ItemListAB.itemCraftingPattern), Character.valueOf('H'), new ItemStack(ConfigItems.itemNugget, 1, 6)});
- recipes.add(getLastRecipe());
+
+ if(ConfigABHandler.hasAutoThaum) {
+ List recipes = new ArrayList();
+ for(int i = 1; i < 10; i++) {
+ boolean[][] patterns = ItemCraftingPattern.getPattern(i);
+ List str = new ArrayList();
+ for(int j = 0; j < patterns.length; j++) {
+ String str1 = "";
+ for(int k = 0; k < patterns[j].length; k++)
+ str1 += patterns[j][k] ? "T" : "H";
+ str.add(str1);
+ }
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemCraftingPattern, 1, i), new Object[] { str.get(0), str.get(1), str.get(2), Character.valueOf('T'), new ItemStack(ItemListAB.itemCraftingPattern), Character.valueOf('H'), new ItemStack(ConfigItems.itemNugget, 1, 6)});
+ recipes.add(getLastRecipe());
+ }
+ IRecipe crate = GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockMagicCraftCrate), new Object[] { "TST", "WCW", "W W", Character.valueOf('W'), new ItemStack(ConfigBlocks.blockMagicalLog), Character.valueOf('S'), new ItemStack(ConfigItems.itemResource, 1, 14), Character.valueOf('T'), new ItemStack(ConfigItems.itemResource, 1, 7), Character.valueOf('C'), new ItemStack(ModBlocks.openCrate, 1, 1)});
+ addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemCraftingPattern, 48), new Object[] { new ItemStack(Blocks.crafting_table), new ItemStack(ModBlocks.livingrock), new ItemStack(ConfigItems.itemResource, 1, 14)});
+ thaumAutoCraft = new BLexiconEntry("thaumAutoCraft", BotaniaAPI.categoryDevices);
+ thaumAutoCraft.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", crate) , BotaniaAPI.internalHandler.craftingRecipePage(".craft0", getLastRecipe()), BotaniaAPI.internalHandler.craftingRecipesPage(".craft1", recipes)});
+
}
- IRecipe crate = GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockMagicCraftCrate), new Object[] { "TST", "WCW", "W W", Character.valueOf('W'), new ItemStack(ConfigBlocks.blockMagicalLog), Character.valueOf('S'), new ItemStack(ConfigItems.itemResource, 1, 14), Character.valueOf('T'), new ItemStack(ConfigItems.itemResource, 1, 7), Character.valueOf('C'), new ItemStack(ModBlocks.openCrate, 1, 1)});
- addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemCraftingPattern, 48), new Object[] { new ItemStack(Blocks.crafting_table), new ItemStack(ModBlocks.livingrock), new ItemStack(ConfigItems.itemResource, 1, 14)});
- thaumAutoCraft = new BLexiconEntry("thaumAutoCraft", BotaniaAPI.categoryDevices);
- thaumAutoCraft.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", crate) , BotaniaAPI.internalHandler.craftingRecipePage(".craft0", getLastRecipe()), BotaniaAPI.internalHandler.craftingRecipesPage(".craft1", recipes)});
pureGladRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("pureGladiolus"), new ItemStack(ItemListAB.itemABResource, 1, 4), new ItemStack(ModItems.rune, 1, 8), new ItemStack(ModItems.petal, 1, 8), new ItemStack(ModItems.petal, 1, 4), new ItemStack(ModItems.petal, 1, 14), new ItemStack(ModItems.petal, 1, 5), new ItemStack(ModItems.petal, 1, 13), new ItemStack(ModItems.petal, 1, 11));
gladious = new BLexiconEntry("gladious", BotaniaAPI.categoryFunctionalFlowers);
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/7/f01e899015b0001c18a5eba32f24fffa b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/7/f01e899015b0001c18a5eba32f24fffa
deleted file mode 100644
index 01d08e4..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/7/f01e899015b0001c18a5eba32f24fffa
+++ /dev/null
@@ -1,79 +0,0 @@
-package ab.common.block.subtile;
-
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.world.World;
-import vazkii.botania.api.subtile.SubTileGenerating;
-
-public class SubTileArdentAzarcissus extends SubTileGenerating {
-
- public static final String playerName = "ArdentAzarcissus#21sda2gaj91*21df#111sfq3jrns@#";
- int cooldown;
- int workMana = 400;
-
- public void onUpdate() {
- super.onUpdate();
- World world = this.supertile.getWorldObj();
- int posX = this.supertile.xCoord;
- int posY = this.supertile.yCoord;
- int posZ = this.supertile.zCoord;
- if(world.isRemote)
- return;
- if(cooldown > 0) {
- cooldown--;
- return;
- }
- boolean needSync = false;
- for(int i = -1; i <= 1; i++)
- for(int f = 0; f < 2; f++)
- for(int j = -1; j <= 1; j++) {
- int x = posX + i;
- int y = posY + f;
- int z = posZ + j;
- TileEntity tile = world.getTileEntity(x, y, z);
- if(tile != null && tile instanceof TileGameBoard) {
- TileGameBoard board = (TileGameBoard)tile;
- if(board.isSingleGame) {
- if(!board.hasGame()) {
- board.setPlayer(playerName, true);
- cooldown = 100;
- } else {
- if(!board.playersName[0].equals(playerName))
- board.playersName[0] = playerName;
- if(board.endGameTick == 0) {
- int winCount = (board.slotChance[0] + board.slotChance[1]) - (board.slotChance[2] + board.slotChance[3]);
- if(winCount > 0) {
- this.mana = Math.min(this.getMaxMana(), this.mana + (workMana * winCount));
- needSync = true;
- }
- board.finishGame(false);
- } else
- board.dropDice(playerName);
- cooldown = 100;
- }
- }
- }
- }
- if(needSync)
- sync();
- }
-
- public int getMaxMana() {
- return 15000;
- }
-
- public int getColor() {
- return 0xd2cdb2;
- }
-
- public void writeToPacketNBT(NBTTagCompound cmp) {
- super.writeToPacketNBT(cmp);
- cmp.setInteger("cooldown", this.cooldown);
- }
-
- public void readFromPacketNBT(NBTTagCompound cmp) {
- super.readFromPacketNBT(cmp);
- this.cooldown = cmp.getInteger("cooldown");
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/70/400faa9027b0001c18a5eba32f24fffa b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/70/400faa9027b0001c18a5eba32f24fffa
deleted file mode 100644
index 523c00c..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/70/400faa9027b0001c18a5eba32f24fffa
+++ /dev/null
@@ -1,18 +0,0 @@
-package ab.common.item.relic;
-
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraftforge.common.MinecraftForge;
-import net.minecraftforge.event.entity.living.LivingDropsEvent;
-
-public class ItemSehrimnirHide extends ItemModRelic {
-
- public ItemSehrimnirHide() {
- super("sehrimnirHide");
- MinecraftForge.EVENT_BUS.register(this);
- }
-
- @SubscribeEvent
- public void onPlayerAttack(LivingDropsEvent event) {
- System.out.println(event.specialDropValue);
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/70/70a2b03484ae001c1bd4eaa9a9be6b81 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/70/70a2b03484ae001c1bd4eaa9a9be6b81
deleted file mode 100644
index 4438370..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/70/70a2b03484ae001c1bd4eaa9a9be6b81
+++ /dev/null
@@ -1,130 +0,0 @@
-package ab.common.block;
-
-import java.util.List;
-
-import ab.AdvancedBotany;
-import ab.common.block.tile.TileBoardFate;
-import ab.common.block.tile.TileGameBoard;
-import ab.common.block.tile.TileInventory;
-import ab.common.lib.register.AchievementRegister;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockContainer;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.renderer.texture.IIconRegister;
-import net.minecraft.creativetab.CreativeTabs;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.stats.Achievement;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.IIcon;
-import net.minecraft.world.World;
-import vazkii.botania.api.wand.IWandable;
-import vazkii.botania.common.achievement.IPickupAchievement;
-import vazkii.botania.common.core.handler.ConfigHandler;
-
-public class BlockBoardFate extends BlockContainer implements IPickupAchievement {
-
- protected IIcon[] iconsFate;
- protected IIcon[] iconsBoard;
-
- public BlockBoardFate() {
- super(Material.iron);
- this.setCreativeTab(AdvancedBotany.tabAB);
- this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.1875F, 1.0F);
- this.setHardness(3.0F);
- this.setResistance(10.0F);
- this.setStepSound(soundTypeMetal);
- this.setBlockName("boardFate");
- }
-
- public void getSubBlocks(Item par1, CreativeTabs par2CreativeTabs, List list) {
- for(int i = 0; i < (ConfigHandler.relicsEnabled ? 2 : 1); i++)
- list.add(new ItemStack(par1, 1, i));
- }
-
- public void registerBlockIcons(IIconRegister ir) {
- this.iconsFate = new IIcon[3];
- this.iconsBoard = new IIcon[3];
- for(int i = 0; i < iconsFate.length; i++)
- this.iconsFate[i] = ir.registerIcon("ab:boardFate_" + i);
- for(int i = 0; i < iconsBoard.length; i++)
- this.iconsBoard[i] = ir.registerIcon("ab:gameBoard_" + i);
- }
-
- public IIcon getIcon(int side, int meta) {
- if(meta == 0)
- return this.iconsBoard[Math.min(2, side)];
- else
- return this.iconsFate[Math.min(2, side)];
- }
-
- public boolean isOpaqueCube() {
- return false;
- }
-
- public boolean renderAsNormalBlock() {
- return false;
- }
-
- public int damageDropped(int par1) {
- return par1;
- }
-
- public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float par7, float par8, float par9) {
- int meta = world.getBlockMetadata(x, y, z);
- if(meta == 0) {
- TileGameBoard tile = (TileGameBoard)world.getTileEntity(x, y, z);
- if(player.isSneaking() && !tile.hasGame()) {
- tile.isSingleGame = !tile.isSingleGame;
- return true;
- }
- if(!tile.hasGame())
- tile.setPlayer(player);
- else if(!tile.isSingleGame && tile.playersName[1].isEmpty() && !tile.playersName[0].equals(player.getCommandSenderName()))
- tile.setPlayer(player);
- else {
- return tile.dropDice(player);
- }
- return false;
- } else {
- TileBoardFate tile = (TileBoardFate)world.getTileEntity(x, y, z);
- return tile.spawnRelic(player);
- }
- }
-
- public TileEntity createNewTileEntity(World world, int meta) {
- return meta == 0 ? new TileGameBoard() : new TileBoardFate();
- }
-
- public void breakBlock(World world, int x, int y, int z, Block block, int meta) {
- if(!world.isRemote && meta == 1) {
- TileInventory inv = (TileInventory)world.getTileEntity(x, y, z);
- if (inv != null) {
- for (int i = 0; i < inv.getSizeInventory(); i++) {
- ItemStack stack = inv.getStackInSlot(i);
- if (stack != null) {
- float f = world.rand.nextFloat() * 0.8F + 0.1F;
- float f1 = world.rand.nextFloat() * 0.8F + 0.1F;
- float f2 = world.rand.nextFloat() * 0.8F + 0.1F;
- EntityItem entityitem = new EntityItem(world, (x + f), (y + f1), (z + f2), stack.copy());
- float f3 = 0.05F;
- entityitem.motionX = ((float)world.rand.nextGaussian() * f3);
- entityitem.motionY = ((float)world.rand.nextGaussian() * f3 + 0.2F);
- entityitem.motionZ = ((float)world.rand.nextGaussian() * f3);
- if (stack.hasTagCompound())
- entityitem.getEntityItem().setTagCompound((NBTTagCompound)stack.getTagCompound().copy());
- world.spawnEntityInWorld(entityitem);
- }
- }
- }
- }
- super.breakBlock(world, x, y, z, block, meta);
- }
-
- public Achievement getAchievementOnPickup(ItemStack stack, EntityPlayer player, EntityItem item) {
- return stack.getItemDamage() == 1 ? AchievementRegister.fateBoard : null;
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/70/e024b43484ae001c1bd4eaa9a9be6b81 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/70/e024b43484ae001c1bd4eaa9a9be6b81
deleted file mode 100644
index dd5d99d..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/70/e024b43484ae001c1bd4eaa9a9be6b81
+++ /dev/null
@@ -1,95 +0,0 @@
-package ab.common.lib.register;
-
-import ab.common.item.*;
-import ab.common.item.equipment.*;
-import ab.common.item.equipment.armor.ItemNebulaBoots;
-import ab.common.item.equipment.armor.ItemNebulaChest;
-import ab.common.item.equipment.armor.ItemNebulaHelm;
-import ab.common.item.equipment.armor.ItemNebulaHelmRevealing;
-import ab.common.item.equipment.armor.ItemNebulaLegs;
-import ab.common.item.relic.ItemFreyrSlingshot;
-import ab.common.item.relic.ItemPocketWardrobe;
-import ab.common.item.relic.ItemSpiritJar;
-import ab.common.item.relic.ItemTalismanHiddenRiches;
-import cpw.mods.fml.common.registry.GameRegistry;
-import net.minecraft.item.Item;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.core.handler.ConfigHandler;
-
-public class ItemListAB {
-
- public static Item itemABResource;
- public static Item itemMithrillRing;
- public static Item itemMihrillMultiTool;
- public static Item itemNebulaRing;
- public static Item itemAdvancedSpark;
- public static Item itemMithrillSword;
- public static Item itemTerraHoe;
- public static Item itemManaFlower;
- public static Item itemBlackHalo;
- public static Item itemNebulaBlaze;
- public static Item itemAntigravityCharm;
- public static Item itemNebulaHelm;
- public static Item itemNebulaHelmReveal;
- public static Item itemNebulaChest;
- public static Item itemNebulaLegs;
- public static Item itemNebulaBoots;
- public static Item itemFreyrSlingshot;
- public static Item itemNebulaRod;
- public static Item itemCraftingPattern;
- public static Item itemSprawlRod;
- public static Item itemPocketWardrobe;
- public static Item itemTalismanHiddenRiches;
- public static Item itemSpiritJar;
-
- public static void init() {
- ItemListAB.itemABResource = new ItemABResource();
- GameRegistry.registerItem(itemABResource, "itemABResource");
- ItemListAB.itemMithrillRing = new ItemMithrillRing("mithrillManaRing");
- GameRegistry.registerItem(itemMithrillRing, "itemMithrillRing");
- ItemListAB.itemNebulaRing = new ItemNebulaRing("nebulaManaRing");
- GameRegistry.registerItem(itemNebulaRing, "itemNebulaRing");
- ItemListAB.itemMihrillMultiTool = new ItemMithrillMultiTool();
- GameRegistry.registerItem(itemMihrillMultiTool, "itemMihrillMultiTool");
- ItemListAB.itemAdvancedSpark = new ItemAdvancedSpark();
- GameRegistry.registerItem(itemAdvancedSpark, "itemAdvancedSpark");
- ItemListAB.itemMithrillSword = new ItemSpaceBlade();
- GameRegistry.registerItem(itemMithrillSword, "itemMithrillSword");
- ItemListAB.itemTerraHoe = new ItemTerraHoe();
- GameRegistry.registerItem(itemTerraHoe, "itemTerraHoe");
- ItemListAB.itemManaFlower = new ItemManaFlower();
- GameRegistry.registerItem(itemManaFlower, "itemManaFlower");
- ItemListAB.itemBlackHalo = new ItemBlackHalo();
- GameRegistry.registerItem(itemBlackHalo, "itemBlackHalo");
- ItemListAB.itemNebulaBlaze = new ItemNebulaBlaze();
- GameRegistry.registerItem(itemNebulaBlaze, "itemNebulaBlaze");
- ItemListAB.itemAntigravityCharm = new ItemAntigravityCharm();
- GameRegistry.registerItem(itemAntigravityCharm, "itemAntigravityCharm");
-
- ItemListAB.itemNebulaRod = new ItemNebulaRod();
- GameRegistry.registerItem(itemNebulaRod, "itemNebulaRod");
- ItemListAB.itemSprawlRod = new ItemSprawlRod();
- GameRegistry.registerItem(itemSprawlRod, "itemSprawlRod");
-
- if(ConfigHandler.relicsEnabled) {
- ItemListAB.itemPocketWardrobe = new ItemPocketWardrobe();
- ItemListAB.itemTalismanHiddenRiches = new ItemTalismanHiddenRiches();
- ItemListAB.itemFreyrSlingshot = new ItemFreyrSlingshot();
- }
-// ItemListAB.itemSpiritJar = new ItemSpiritJar();
-
- ItemListAB.itemNebulaHelm = new ItemNebulaHelm();
- ItemListAB.itemNebulaChest = new ItemNebulaChest();
- ItemListAB.itemNebulaLegs = new ItemNebulaLegs();
- ItemListAB.itemNebulaBoots = new ItemNebulaBoots();
- if(Botania.thaumcraftLoaded)
- thaumcraft();
-
- }
-
- public static void thaumcraft() {
- ItemListAB.itemNebulaHelmReveal = new ItemNebulaHelmRevealing();
- ItemListAB.itemCraftingPattern = new ItemCraftingPattern();
- GameRegistry.registerItem(itemCraftingPattern, "itemCraftingPattern");
- }
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/72/00abb63eb4ad001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/72/00abb63eb4ad001c1d59e42be7477558
deleted file mode 100644
index e2c6199..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/72/00abb63eb4ad001c1d59e42be7477558
+++ /dev/null
@@ -1,229 +0,0 @@
-package ab.common.block.tile;
-
-import java.util.List;
-
-import ab.api.IRenderHud;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.gui.ScaledResolution;
-import net.minecraft.client.renderer.RenderHelper;
-import net.minecraft.client.renderer.entity.RenderItem;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.init.Items;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.ChatComponentTranslation;
-import net.minecraft.util.ChatStyle;
-import net.minecraft.util.EnumChatFormatting;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.common.block.tile.TileMod;
-
-public class TileGameBoard extends TileMod implements IRenderHud {
-
- public String[] playersName = new String[] { "", "" };
- public byte[] slotChance = new byte[] { 0, 0, 0, 0 };
- protected int botTick = -1;
- public int endGameTick = -1;
- protected boolean requestUpdate;
- public boolean isSingleGame = true;
- public int clientTick[] = new int[] { 0, 0, 0, 0 };
- public static final ItemStack headRender = new ItemStack(Items.skull, 1, 3);
-
- public void updateEntity() {
- if(botTick > 0)
- botTick--;
- if(endGameTick > 0)
- endGameTick--;
- if(!worldObj.isRemote)
- updateServer();
- else
- updateAnimationTicks();
- }
-
- public void updateAnimationTicks() {
- for(int i = 0; i < slotChance.length; i++)
- if(slotChance[i] > 0)
- clientTick[i]++;
- else
- clientTick[i] = 0;
- }
-
- protected void updateServer() {
- if(hasGame() && endGameTick == 0)
- finishGame();
- if(requestUpdate)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- boolean hasUpdate = false;
- if(isSingleGame) {
- if(botTick == 0 && hasGame()) {
- for(int i = 2; i < 4; i++) {
- if(slotChance[i] == 0) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = -1;
- hasUpdate = true;
- break;
- }
- }
- }
- } else {
- if(botTick == 0 && hasGame())
- endGameTick = 0;
- }
- requestUpdate = hasUpdate;
- }
-
- public void setPlayer(EntityPlayer player) {
- if(isSingleGame) {
- playersName[0] = player.getCommandSenderName();
- playersName[1] = "";
- requestUpdate = true;
- botTick = 8;
- } else {
- if(playersName[0].isEmpty())
- playersName[0] = player.getCommandSenderName();
- else if(!playersName[0].equals(player.getCommandSenderName()))
- playersName[1] = player.getCommandSenderName();
- requestUpdate = true;
- }
- }
-
- public boolean dropDice(EntityPlayer player) {
- if(isSingleGame) {
- if(player.getCommandSenderName().equals(playersName[0]) && botTick == -1) {
- boolean isLastDice = false;
- boolean hasDrop = false;
- for(int i = 0; i < 2; i++) {
- if(slotChance[i] == 0) {
- hasDrop = true;
- if(!worldObj.isRemote) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = 18;
- requestUpdate = true;
- if(i == 1)
- isLastDice = true;
- }
- break;
- }
- }
- if(isLastDice)
- endGameTick = 28;
- return hasDrop;
- }
- } else {
- for(int i = 0; i < playersName.length; i++) {
- if(player.getCommandSenderName().equals(playersName[i])) {
- boolean hasDrop = false;
- for(int j = i * 2; j < (i + 1) * 2; j++) {
- if(slotChance[j] == 0) {
- hasDrop = true;
- if(!worldObj.isRemote) {
- slotChance[j] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = playersName[1].isEmpty() ? 240 : 1200;
- if(hasFullDice())
- endGameTick = 28;
- requestUpdate = true;
- }
- break;
- }
- }
- return hasDrop;
- }
- }
- }
- return false;
- }
-
- public boolean hasFullDice() {
- boolean hasFull = false;
- for(int i = 0; i < slotChance.length; i++) {
- if(!(slotChance[i] > 0))
- return false;
- hasFull = slotChance[i] > 0;
- }
- return hasFull;
- }
-
- public boolean hasGame() {
- if(isSingleGame)
- return !playersName[0].isEmpty();
- else
- for(int i = 0; i < playersName.length; i++)
- if(!playersName[i].isEmpty())
- return true;
- return false;
- }
-
- public void finishGame() {
- if(worldObj.isRemote)
- return;
- if(isSingleGame) {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " ïîáåæäàåò ñ îòðûâîì: " + ((slotChance[0] + slotChance[1]) - (slotChance[2] + slotChance[3])));
- else if((slotChance[0] + slotChance[1]) == (slotChance[2] + slotChance[3]))
- sendNearMessage("Èãðà çàêàí÷èâàåòñÿ íè÷üåé");
- else
- sendNearMessage(playersName[0] + " ïðîèãðûâàåò");
- resetGame();
- } else {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won!");
- else if((slotChance[0] + slotChance[1]) == (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " " + playersName[1] + "we are not win");
- else
- sendNearMessage(playersName[1] + " you Won!");
- resetGame();
- }
- }
-
- public void sendNearMessage(String text) {
- List players = this.worldObj.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(this.xCoord, this.yCoord, this.zCoord, (this.xCoord + 1), (this.yCoord + 1), (this.zCoord + 1)).expand(3.5f, 3.5f, 3.5f));
- for(EntityPlayer player : players) {
- if(player != null)
- player.addChatMessage((new ChatComponentTranslation(text, new Object[] {})).setChatStyle((new ChatStyle()).setColor(EnumChatFormatting.DARK_GREEN)));
- }
- }
-
- public void resetGame() {
- playersName[0] = "";
- playersName[1] = "";
- for(int i = 0; i < slotChance.length; i++)
- slotChance[i] = 0;
- botTick = -1;
- endGameTick = -1;
- requestUpdate = true;
- }
-
- public void renderHud(Minecraft mc, ScaledResolution res) {
- int x = res.getScaledWidth() / 2 - 7;
- int y = res.getScaledHeight() / 2 + 12;
- RenderHelper.enableGUIStandardItemLighting();
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, headRender, x - (!isSingleGame ? 1 : 0), y - (!isSingleGame ? 1 : 0));
- if(!isSingleGame)
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, headRender, x + 3, y + 3);
- RenderHelper.disableStandardItemLighting();
- }
-
- public void writeCustomNBT(NBTTagCompound cmp) {
- super.writeCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- cmp.setString("playerName" + i, playersName[i]);
- cmp.setByteArray("slotChance", slotChance);
- cmp.setInteger("botTick", botTick);
- cmp.setInteger("endGameTick", endGameTick);
- cmp.setBoolean("requestUpdate", requestUpdate);
- cmp.setBoolean("isSingleGame", isSingleGame);
- }
-
- public void readCustomNBT(NBTTagCompound cmp) {
- super.readCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- playersName[i] = cmp.getString("playerName" + i);
- botTick = cmp.getInteger("botTick");
- endGameTick = cmp.getInteger("endGameTick");
- slotChance = cmp.getByteArray("slotChance");
- requestUpdate = cmp.getBoolean("requestUpdate");
- isSingleGame = cmp.getBoolean("isSingleGame");
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/72/703855d18fc1001c11e398ea97007cb4 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/72/703855d18fc1001c11e398ea97007cb4
new file mode 100644
index 0000000..ef06e82
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/72/703855d18fc1001c11e398ea97007cb4
@@ -0,0 +1,333 @@
+package ab.common.block.tile;
+
+import java.util.List;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.api.IBoundRender;
+import ab.client.core.ClientHelper;
+import net.minecraft.block.Block;
+import net.minecraft.block.BlockChest;
+import net.minecraft.block.BlockHopper;
+import net.minecraft.client.Minecraft;
+import net.minecraft.client.gui.Gui;
+import net.minecraft.client.gui.ScaledResolution;
+import net.minecraft.client.renderer.RenderHelper;
+import net.minecraft.client.renderer.entity.RenderItem;
+import net.minecraft.command.IEntitySelector;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.init.Blocks;
+import net.minecraft.inventory.IInventory;
+import net.minecraft.inventory.ISidedInventory;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.tileentity.IHopper;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.tileentity.TileEntityChest;
+import net.minecraft.tileentity.TileEntityHopper;
+import net.minecraft.util.AxisAlignedBB;
+import net.minecraft.util.ChunkCoordinates;
+import net.minecraft.util.Facing;
+import net.minecraft.util.MathHelper;
+import net.minecraft.util.MovingObjectPosition;
+import net.minecraft.world.World;
+import net.minecraftforge.common.util.ForgeDirection;
+import vazkii.botania.api.wand.IWandBindable;
+import vazkii.botania.client.core.handler.HUDHandler;
+import vazkii.botania.common.core.helper.Vector3;
+import vazkii.botania.common.item.ModItems;
+
+public class TileEngineerHopper extends TileInventory implements IHopper, IBoundRender {
+
+ private int cooldown;
+ private int[] invPosX = new int[] {0, 0};
+ private int[] invPosY = new int[] {-1, -1};
+ private int[] invPosZ = new int[] {0, 0};
+ private int[] invSide = new int[] {-1, -1};
+ private boolean bindType;
+ public int redstoneSignal = 0;
+
+ public void updateEntity() {
+ this.redstoneSignal = 0;
+ for(ForgeDirection dir : ForgeDirection.VALID_DIRECTIONS) {
+ int redstoneSide = getWorldObj().getIndirectPowerLevelTo(xCoord + dir.offsetX, yCoord + dir.offsetY, zCoord + dir.offsetZ, dir.ordinal());
+ this.redstoneSignal = Math.max(this.redstoneSignal, redstoneSide);
+ }
+ if(redstoneSignal > 0)
+ return;
+ else if(this.worldObj != null) {
+ if(!this.worldObj.isRemote) {
+ if(cooldown > 0)
+ --cooldown;
+ else if(cooldown == 0) {
+ if(worldObj != null && !worldObj.isRemote) {
+ boolean hasUpdate = false;
+ ItemStack stack = getStackInSlot(0);
+ if(stack != null)
+ hasUpdate = canExtractStack();
+ if(stack == null || stack.stackSize != stack.getMaxStackSize())
+ hasUpdate = canInsertStack() || hasUpdate;
+ if(hasUpdate)
+ this.cooldown = 8;
+ this.markDirty();
+ }
+ }
+ }
+ }
+ }
+
+ public boolean bindTo(EntityPlayer player, ItemStack wand, int x, int y, int z, int side) {
+ TileEntity tile = player.getEntityWorld().getTileEntity(x, y, z);
+ boolean isFar = Math.abs(this.xCoord - x) >= 10 || Math.abs(this.yCoord - y) >= 10 || Math.abs(this.zCoord - z) >= 10;
+ if(isFar)
+ return false;
+ int invCount = bindType ? 0 : 1;
+ if(tile instanceof TileEngineerHopper)
+ return false;
+ else if(tile != null && tile instanceof IInventory) {
+ setDistantInventory(invCount, x, y, z);
+ invSide[invCount] = side;
+ return true;
+ } else {
+ setDistantInventory(invCount, 0, -1, 0);
+ invSide[invCount] = -1;
+ return false;
+ }
+ }
+
+ public void changeBindType() {
+ bindType = !bindType;
+ }
+
+ public void setDistantInventory(int count, int posX, int posY, int posZ) {
+ invPosX[count] = posX;
+ invPosY[count] = posY;
+ invPosZ[count] = posZ;
+ }
+
+ public IInventory getDistantInventory(int count) {
+ IInventory inv = TileEntityHopper.func_145893_b(this.getWorldObj(), invPosX[count], invPosY[count], invPosZ[count]);
+ if(inv == null)
+ setDistantInventory(count, 0, -1, 0);
+ return inv;
+ }
+
+ public boolean canSelect(EntityPlayer player, ItemStack wand, int x, int y, int z, int side) {
+ return true;
+ }
+
+ public ChunkCoordinates[] getBlocksCoord() {
+ return new ChunkCoordinates[] { new ChunkCoordinates(invPosX[0], invPosY[0], invPosZ[0]), new ChunkCoordinates(invPosX[1], invPosY[1], invPosZ[1]) };
+ }
+
+ public ChunkCoordinates getBinding() {
+ return null;
+ }
+
+ public void renderHUD(Minecraft mc, ScaledResolution res) {
+ int x = res.getScaledWidth() / 2 - 7;
+ int y = res.getScaledHeight() / 2 + 16;
+ GL11.glEnable(3042);
+ GL11.glBlendFunc(770, 771);
+ ClientHelper.drawArrow(x - 2, y, false);
+ for(int i = 0; i < 2; i++) {
+ ItemStack stack = null;
+ boolean hasInv = false;
+ int posX = x + (i == 0 ? 32 : -32);
+ if(getDistantInventory(i) != null && (TileEntity)getDistantInventory(i) != null) {
+ TileEntity tile = (TileEntity)getDistantInventory(i);
+ Block block = tile.getWorldObj().getBlock(tile.xCoord, tile.yCoord, tile.zCoord);
+ int meta = tile.getWorldObj().getBlockMetadata(tile.xCoord, tile.yCoord, tile.zCoord);
+ stack = new ItemStack(block, 1, meta);
+ hasInv = true;
+ }
+ Gui.drawRect(posX - 4, y - 4, posX + 20, y + 20, 1140850688);
+ Gui.drawRect(posX - 2, y - 2, posX + 18, y + 18, 1140850688);
+ if(stack != null) {
+ RenderHelper.enableGUIStandardItemLighting();
+ GL11.glEnable(32826);
+ RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, stack, posX, y);
+ RenderHelper.disableStandardItemLighting();
+ GL11.glDisable(2929);
+ }
+ int invCount = bindType ? 0 : 1;
+ if(invCount == i) {
+ GL11.glTranslatef(0.0f, 0.0f, 300.0f);
+ RenderHelper.enableGUIStandardItemLighting();
+ GL11.glEnable(32826);
+ RenderItem.getInstance().renderItemIntoGUI(mc.fontRenderer, mc.renderEngine, new ItemStack(ModItems.twigWand), posX + 10, y + 7);
+ RenderHelper.disableStandardItemLighting();
+ GL11.glDisable(2929);
+ GL11.glTranslatef(0.0f, 0.0f, -300.0f);
+ }
+ boolean unicode = mc.fontRenderer.getUnicodeFlag();
+ mc.fontRenderer.setUnicodeFlag(true);
+ if(!hasInv) {
+ mc.fontRenderer.drawStringWithShadow("\u2717", posX + 5, y + 6, 4980736);
+ mc.fontRenderer.drawStringWithShadow("\u2717", posX + 5, y + 5, 13764621);
+ }
+ mc.fontRenderer.setUnicodeFlag(unicode);
+ GL11.glEnable(2929);
+ }
+ GL11.glDisable(3042);
+ }
+
+ public void writeCustomNBT(NBTTagCompound nbtt) {
+ super.writeCustomNBT(nbtt);
+ nbtt.setInteger("cooldown", this.cooldown);
+ nbtt.setBoolean("bindType", this.bindType);
+ nbtt.setIntArray("bindingX", this.invPosX);
+ nbtt.setIntArray("bindingY", this.invPosY);
+ nbtt.setIntArray("bindingZ", this.invPosZ);
+ nbtt.setIntArray("bindingSide", this.invSide);
+ }
+
+ public void readCustomNBT(NBTTagCompound nbtt) {
+ super.readCustomNBT(nbtt);
+ this.cooldown = nbtt.getInteger("cooldown");
+ this.bindType = nbtt.getBoolean("bindType");
+ this.invPosX = nbtt.getIntArray("bindingX");
+ this.invPosY = nbtt.getIntArray("bindingY");
+ this.invPosZ = nbtt.getIntArray("bindingZ");
+ this.invSide = nbtt.getIntArray("bindingSide");
+ }
+
+ private boolean canExtractStack() {
+ IInventory inv = getDistantInventory(0);
+ if(inv == null)
+ return false;
+ else {
+ int side = invSide[0];
+ int pullCount = getPullCount(inv, side);
+ System.out.println(pullCount);
+ if(pullCount <= 0)
+ return false;
+ else {
+ if(getStackInSlot(0) != null) {
+ ItemStack itemstack = getStackInSlot(0).copy();
+ ItemStack itemstack1 = TileEntityHopper.func_145889_a(inv, decrStackSize(0, pullCount), side);
+ if(itemstack1 == null || itemstack1.stackSize == 0) {
+ inv.markDirty();
+ return true;
+ }
+ setInventorySlotContents(0, itemstack);
+ }
+ return false;
+ }
+ }
+ }
+
+ private int getPullCount(IInventory inv, int side) {
+ if(inv instanceof ISidedInventory && side > -1) {
+ ISidedInventory sideInv = (ISidedInventory)inv;
+ int[] slots = sideInv.getAccessibleSlotsFromSide(side);
+ for(int i = 0; i < slots.length; ++i) {
+ ItemStack stack = sideInv.getStackInSlot(slots[i]);
+ if(stack == null)
+ return inv.getInventoryStackLimit();
+ else if(inv.getInventoryStackLimit() != stack.stackSize && stack.stackSize != stack.getMaxStackSize() && TileNidavellirForge.isItemEqual(stack, getStackInSlot(0)))
+ return inv.getInventoryStackLimit() - stack.stackSize;
+ }
+ } else {
+ int size = inv.getSizeInventory();
+ for(int i = 0; i < size; ++i) {
+ ItemStack stack = inv.getStackInSlot(i);
+ if(stack == null)
+ return inv.getInventoryStackLimit();
+ else if(inv.getInventoryStackLimit() != stack.stackSize && stack.stackSize != stack.getMaxStackSize() && TileNidavellirForge.isItemEqual(stack, getStackInSlot(0)))
+ return inv.getInventoryStackLimit() - stack.stackSize;
+ }
+ }
+ return 0;
+ }
+
+ private boolean canInsertStack() {
+ IInventory inv = getDistantInventory(1);
+ if(inv != null) {
+ int side = invSide[1];
+ int takeCount = getTakeCount(inv, side);
+ if(takeCount <= 0)
+ return false;
+ System.out.println("take " + takeCount);
+ if(inv instanceof ISidedInventory && side > -1) {
+ ISidedInventory sidedInv = (ISidedInventory)inv;
+ int[] slots = sidedInv.getAccessibleSlotsFromSide(side);
+ for(int k = 0; k < slots.length; ++k) {
+ if(func_145892_a(inv, slots[k], side, takeCount))
+ return true;
+ }
+ } else {
+ int i = inv.getSizeInventory();
+ for(int j = 0; j < i; ++j) {
+ if(func_145892_a(inv, j, side, takeCount))
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ private int getTakeCount(IInventory inv, int side) {
+ if(inv instanceof ISidedInventory && side > -1) {
+ ISidedInventory sideInv = (ISidedInventory)inv;
+ int[] slots = sideInv.getAccessibleSlotsFromSide(side);
+ for(int i = 0; i < slots.length; ++i) {
+ ItemStack stack = sideInv.getStackInSlot(slots[i]);
+ if(stack != null)
+ if(getStackInSlot(0) == null)
+ return getInventoryStackLimit();
+ else if(getInventoryStackLimit() != getStackInSlot(0).stackSize && getStackInSlot(0).stackSize != getStackInSlot(0).getMaxStackSize() && TileNidavellirForge.isItemEqual(stack, getStackInSlot(0)))
+ return getInventoryStackLimit() - getStackInSlot(0).stackSize;
+ }
+ } else {
+ for(int i = 0; i < inv.getSizeInventory(); ++i) {
+ ItemStack stack = inv.getStackInSlot(i);
+ if(stack != null)
+ if(getStackInSlot(0) == null)
+ return getInventoryStackLimit();
+ else if(getInventoryStackLimit() != getStackInSlot(0).stackSize && getStackInSlot(0).stackSize != getStackInSlot(0).getMaxStackSize() && TileNidavellirForge.isItemEqual(stack, getStackInSlot(0)))
+ return getInventoryStackLimit() - getStackInSlot(0).stackSize;
+ }
+ }
+ return 0;
+ }
+
+ private boolean func_145892_a(IInventory inv, int slot, int side, int takeCount) {
+ ItemStack itemstack = inv.getStackInSlot(slot);
+ if(itemstack != null && func_145890_b(inv, itemstack, slot, side)) {
+ ItemStack itemstack1 = itemstack.copy();
+ ItemStack itemstack2 = TileEntityHopper.func_145889_a(this, inv.decrStackSize(slot, takeCount), side);
+ if(itemstack2 == null || itemstack2.stackSize == 0) {
+ inv.markDirty();
+ return true;
+ }
+ inv.setInventorySlotContents(slot, itemstack1);
+ }
+ return false;
+ }
+
+ private static boolean func_145890_b(IInventory inv, ItemStack stack, int slot, int side) {
+ return !(inv instanceof ISidedInventory) || ((ISidedInventory)inv).canExtractItem(slot, stack, side);
+ }
+
+ public int getSizeInventory() {
+ return 1;
+ }
+
+ public String getInventoryName() {
+ return "engineerHopper";
+ }
+
+ public double getXPos() {
+ return this.xCoord;
+ }
+
+ public double getYPos() {
+ return this.yCoord;
+ }
+
+ public double getZPos() {
+ return this.zCoord;
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/72/b0ce27a6b2bc001c1a9f99005529f322 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/72/b0ce27a6b2bc001c1a9f99005529f322
new file mode 100644
index 0000000..6015299
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/72/b0ce27a6b2bc001c1a9f99005529f322
@@ -0,0 +1,145 @@
+package ab.common.item.relic;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.client.core.handler.PlayerItemUsingSound.ClientSoundHandler;
+import ab.common.core.handler.ConfigABHandler;
+import ab.common.core.handler.NetworkHandler;
+import cpw.mods.fml.common.eventhandler.SubscribeEvent;
+import cpw.mods.fml.relauncher.ReflectionHelper;
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.entity.boss.IBossDisplayData;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.EnumAction;
+import net.minecraft.item.ItemStack;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import net.minecraftforge.event.entity.living.LivingDropsEvent;
+import vazkii.botania.api.mana.ManaItemHandler;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class ItemHornPlenty extends ItemModRelic {
+
+ public static final String[] dropFewItems = new String[] { "dropFewItems", "func_70628_a" };
+ private static final short maxChargeLoot = 16;
+ private static final int manaCost = 64000;
+
+ public ItemHornPlenty() {
+ super("hornPlenty");
+ MinecraftForge.EVENT_BUS.register(this);
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int pos, boolean equipped) {
+ super.onUpdate(stack, world, entity, pos, equipped);
+ if(!world.isRemote && entity instanceof EntityPlayer) {
+ EntityPlayer player = (EntityPlayer)entity;
+ short lastChargeLoot = getLastChargeLoot(stack);
+ short chargeLoot = getChargeLoot(stack);
+ if(lastChargeLoot != chargeLoot) {
+ setLastChargeLoot(stack, chargeLoot);
+ NetworkHandler.sendPacketToHornHud((EntityPlayerMP)player, chargeLoot);
+ }
+ }
+ }
+
+ public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
+ if(!hasChargeLoot(stack) && ManaItemHandler.requestManaExactForTool(stack, player, manaCost, false))
+ player.setItemInUse(stack, getMaxItemUseDuration(stack));
+ return stack;
+ }
+
+ public void onUsingTick(ItemStack stack, EntityPlayer player, int time) {
+ time = this.getMaxItemUseDuration(stack) - time;
+ if(time > 48) {
+ if(!player.worldObj.isRemote && ManaItemHandler.requestManaExactForTool(stack, player, manaCost, true)) {
+ setChargeLoot(stack, maxChargeLoot);
+ player.worldObj.playSoundAtEntity(player, "random.orb", 1.2F, 4.0F);
+ }
+ player.stopUsingItem();
+ } else if(player.worldObj.isRemote)
+ ClientSoundHandler.playSound(player, "ab:hornPlentyUsing", 2.4f, 2.47F, 19, false);
+ }
+
+ @SideOnly(Side.CLIENT)
+ public boolean showDurabilityBar(ItemStack stack) {
+ return hasChargeLoot(stack);
+ }
+
+ @SideOnly(Side.CLIENT)
+ public double getDurabilityForDisplay(ItemStack stack) {
+ return 1.0f - (double)(getChargeLoot(stack)) / (double)maxChargeLoot;
+ }
+
+ public int getMaxItemUseDuration(ItemStack stack) {
+ return 42000;
+ }
+
+ public boolean isFull3D() {
+ return true;
+ }
+
+ public EnumAction getItemUseAction(ItemStack stack) {
+ return EnumAction.bow;
+ }
+
+ @SubscribeEvent
+ public void onPlayerAttack(LivingDropsEvent event) {
+ if(event != null && event.source != null && event.source.getSourceOfDamage() instanceof EntityPlayer) {
+ EntityPlayer player = (EntityPlayer)event.source.getSourceOfDamage();
+ ItemStack horn = null;
+ for(int i = 0; i < player.inventory.getSizeInventory(); i++) {
+ ItemStack stack = player.inventory.getStackInSlot(i);
+ if(stack == null)
+ continue;
+ else if(stack.getItem() instanceof ItemHornPlenty) {
+ if(!hasChargeLoot(stack))
+ continue;
+ horn = stack;
+ break;
+ }
+ }
+ if(!player.worldObj.isRemote && horn != null && hasChargeLoot(horn)) {
+ if(player.worldObj.rand.nextInt(100) < 20 && event.entityLiving != null && !(event.entityLiving instanceof IBossDisplayData) && isVallidEntity(event.entityLiving)) {
+ try {
+ EntityLivingBase liv = event.entityLiving;
+ ReflectionHelper.findMethod(EntityLivingBase.class, liv, dropFewItems, new Class[] { boolean.class, int.class } ).invoke(liv, new Object[] { true, (int)(event.lootingLevel * 1.5f) });
+ setChargeLoot(horn, (short)(getChargeLoot(horn) - 1));
+ player.worldObj.playSoundAtEntity(player, "random.orb", 1.2F, 4.8F);
+ } catch(Exception e) {
+ e.printStackTrace();
+ }
+ }
+ }
+ }
+ }
+
+ public void setLastChargeLoot(ItemStack stack, short count) {
+ ItemNBTHelper.setShort(stack, "lastChargeLoot", count);
+ }
+
+ public short getLastChargeLoot(ItemStack stack) {
+ return ItemNBTHelper.getShort(stack, "lastChargeLoot", (short)0);
+ }
+
+ public void setChargeLoot(ItemStack stack, short count) {
+ ItemNBTHelper.setShort(stack, "chargeLoot", count);
+ }
+
+ public short getChargeLoot(ItemStack stack) {
+ return ItemNBTHelper.getShort(stack, "chargeLoot", (short)0);
+ }
+
+ public boolean hasChargeLoot(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "chargeLoot", 0) > 0;
+ }
+
+ public static boolean isVallidEntity(EntityLivingBase liv) {
+ for(String entityName : ConfigABHandler.lockEntityListToHorn)
+ if(liv.getClass().getSimpleName().equals(entityName))
+ return false;
+ return true;
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/ee/a0ac47b8dfad001c1bd4eaa9a9be6b81 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/72/c0b44efa96c1001c11e398ea97007cb4
similarity index 62%
rename from 1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/ee/a0ac47b8dfad001c1bd4eaa9a9be6b81
rename to 1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/72/c0b44efa96c1001c11e398ea97007cb4
index 7a77551..0494461 100644
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/ee/a0ac47b8dfad001c1bd4eaa9a9be6b81
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/72/c0b44efa96c1001c11e398ea97007cb4
@@ -9,6 +9,7 @@ import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.stats.Achievement;
import net.minecraftforge.common.AchievementPage;
+import vazkii.botania.common.core.handler.ConfigHandler;
import vazkii.botania.common.item.ModItems;
public class AchievementRegister {
@@ -17,11 +18,15 @@ public class AchievementRegister {
public static Achievement relicPocketArmor;
public static Achievement relicItemChest;
public static Achievement fateBoard;
+ public static Achievement hornPlenty;
+ public static Achievement sphereNavigation;
public static void init() {
- relicSlingshot = new AchievementAB("relicSlingshot", 1, 0, new ItemStack(ItemListAB.itemFreyrSlingshot), null);
- relicPocketArmor = new AchievementAB("relicPocketArmor", 0, 1, new ItemStack(ItemListAB.itemPocketWardrobe), null);
- relicItemChest = new AchievementAB("relicItemChest", 1, 1, new ItemStack(ItemListAB.itemTalismanHiddenRiches), null);
+ relicSlingshot = new AchievementAB("relicSlingshot", 0, 2, new ItemStack(ItemListAB.itemFreyrSlingshot), null);
+ relicPocketArmor = new AchievementAB("relicPocketArmor", 0, -2, new ItemStack(ItemListAB.itemPocketWardrobe), null);
+ relicItemChest = new AchievementAB("relicItemChest", 2, 1, new ItemStack(ItemListAB.itemTalismanHiddenRiches), null);
+ hornPlenty = new AchievementAB("relicHornPlenty", 2, -1, new ItemStack(ItemListAB.itemHornPlenty), null);
+ sphereNavigation = new AchievementAB("relicSphereNavigation", -2, 1, new ItemStack(ItemListAB.itemSphereNavigation), null);
fateBoard = new AchievementAB("fateBoard", 0, 0, new ItemStack(BlockListAB.blockBoardFate, 1, 1), null).setSpecial();
AchievementPage page = new AchievementPage("Advanced Botany", AdvancedBotanyAPI.achievements.toArray(new Achievement[AdvancedBotanyAPI.achievements.size()]));
AchievementPage.registerAchievementPage(page);
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/74/30f839d09bb1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/74/30f839d09bb1001c19bf8a91ac37238b
deleted file mode 100644
index 10a449a..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/74/30f839d09bb1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,84 +0,0 @@
-package ab.client.core.handler;
-
-import java.awt.Color;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.armor.ItemNebulaArmor;
-import ab.common.item.equipment.armor.ItemNebulaHelm;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.ItemRenderer;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.texture.TextureMap;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraftforge.client.event.RenderPlayerEvent;
-import vazkii.botania.api.item.IPhantomInkable;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class PlayerRendererHandler {
-
- @SubscribeEvent
- public void onPlayerRender(RenderPlayerEvent.Specials.Pre event) {
- EntityPlayer player = event.entityPlayer;
- ItemStack item = player.getCurrentArmor(3);
- if(item != null && item.getItem() instanceof ItemNebulaHelm) {
- Item helm = player.getCurrentArmor(3).getItem();
- boolean hasPhantomInk = helm instanceof IPhantomInkable && ((IPhantomInkable)helm).hasPhantomInk(item);
- if(!hasPhantomInk && ((ItemNebulaHelm)helm).enableCosmicFace(item)) {
- float angelX = event.renderer.modelBipedMain.bipedHead.rotateAngleX * 180.0F / (float)Math.PI;
- float angelY = event.renderer.modelBipedMain.bipedHead.rotateAngleY * 180.0F / (float)Math.PI;
- GL11.glPushMatrix();
- if(player.isSneaking())
- GL11.glTranslatef(event.renderer.modelBipedMain.bipedHead.rotationPointX * 0.0625f, event.renderer.modelBipedMain.bipedHead.rotationPointY * 0.0625f, 0.0f);
- GL11.glRotatef(angelY, 0.0F, 1.0F, 0.0F);
- GL11.glRotatef(angelX, 1.0F, 0.0F, 0.0F);
- renderCosmicFace();
- GL11.glPopMatrix();
- }
- }
- }
-
- private void renderCosmicFace() {
- double worldTime = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- GL11.glPushMatrix();
- GL11.glEnable(GL11.GL_TEXTURE_2D);
- GL11.glDisable(2884);
-
- GL11.glPushMatrix();
- GL11.glScalef(0.5f, 0.4f, 0.4f);
- GL11.glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
- GL11.glTranslatef(-0.5f, -0.8675f, 0.0f);
- GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
- ClientHelper.renderCosmicBackground();
- GL11.glPopMatrix();
-
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- (Minecraft.getMinecraft()).renderEngine.bindTexture(TextureMap.locationItemsTexture);
- GL11.glTranslatef(-0.2F, -0.35F, -0.25F);
- GL11.glScalef(0.4f, 0.4f, 0.4f);
- float f = ItemNebulaArmor.nebulaEyes.getMinU();
- float f1 = ItemNebulaArmor.nebulaEyes.getMaxU();
- float f2 = ItemNebulaArmor.nebulaEyes.getMinV();
- float f3 = ItemNebulaArmor.nebulaEyes.getMaxV();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float r = color.getRed() / 510.0F;
- float g = color.getGreen() / 510.0F;
- float b = color.getBlue() / 510.0F;
- GL11.glColor4f(0.5f + r, 0.5f + g, 0.5f + b, 0.685f + (float)Math.sin(worldTime / 50.0D) * 0.175F);
- ItemRenderer.renderItemIn2D(Tessellator.instance, f1, f2, f, f3, ItemNebulaArmor.nebulaEyes.getIconWidth(), ItemNebulaArmor.nebulaEyes.getIconHeight(), 0.03125F);
- GL11.glDisable(3042);
- GL11.glEnable(2884);
- GL11.glEnable(32826);
- GL11.glPopMatrix();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/74/70fb228acfb0001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/74/70fb228acfb0001c19bf8a91ac37238b
deleted file mode 100644
index 521112d..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/74/70fb228acfb0001c19bf8a91ac37238b
+++ /dev/null
@@ -1,130 +0,0 @@
-package ab.common.item.equipment;
-
-import java.awt.Color;
-
-import ab.client.core.ClientHelper;
-import ab.common.core.handler.ConfigABHandler;
-import ab.common.item.ItemMod;
-import net.minecraft.block.Block;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.Minecraft;
-import net.minecraft.entity.Entity;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.EnumAction;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.ChunkCoordinates;
-import net.minecraft.util.MathHelper;
-import net.minecraft.util.Vec3;
-import net.minecraft.world.World;
-import net.minecraft.world.chunk.Chunk;
-import vazkii.botania.api.mana.IManaUsingItem;
-import vazkii.botania.api.mana.ManaItemHandler;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.core.helper.Vector3;
-
-public class ItemNebulaRod extends ItemMod implements IManaUsingItem {
-
- public ItemNebulaRod() {
- super("nebulaRod");
- this.setMaxStackSize(1);
- this.setNoRepair();
- this.setMaxDamage(100);
- }
-
- public boolean usesMana(ItemStack stack) {
- return true;
- }
-
- public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
- if(stack.getItemDamage() == 0)
- player.setItemInUse(stack, getMaxItemUseDuration(stack));
- return stack;
- }
-
- public EnumAction getItemUseAction(ItemStack par1ItemStack) {
- return EnumAction.bow;
- }
-
- public void onUpdate(ItemStack stack, World world, Entity player, int par4, boolean par5) {
- if(!world.isRemote && player instanceof EntityPlayer && player.ticksExisted % ConfigABHandler.nebulaWandCooldownTick == 0 && stack.getItemDamage() > 0 && ManaItemHandler.requestManaExactForTool(stack, (EntityPlayer)player, 140, true))
- stack.setItemDamage(stack.getItemDamage() - 1);
- }
-
- public void onUsingTick(ItemStack stack, EntityPlayer p, int time) {
- time = this.getMaxItemUseDuration(stack) - time;
- if(time > 110 && !p.isSneaking()) {
- Vec3 vec3 = p.getLook(1.0F).normalize();
- MathHelper.floor_double(time);
- int limitXZ = ConfigABHandler.limitXZCoords;
- int posX = MathHelper.floor_double(p.posX + vec3.xCoord * 256);
- int posY = MathHelper.floor_double(p.posY);
- int posZ = MathHelper.floor_double(p.posZ + vec3.zCoord * 256);
- ChunkCoordinates chunkcoordinates = new ChunkCoordinates(Math.min(Math.max(posX, -(limitXZ - 1)), limitXZ - 1), posY, Math.min(Math.max(posZ, -(limitXZ - 1)), limitXZ - 1));
- int topY = getTopBlock(p.worldObj, posX, posZ);
- if(topY == -1) {
- p.stopUsingItem();
- return;
- }
- chunkcoordinates.posY = topY;
- if(!p.worldObj.isRemote)
- ((EntityPlayerMP)p).playerNetServerHandler.setPlayerLocation(chunkcoordinates.posX + 0.5D, chunkcoordinates.posY + 1.6D, chunkcoordinates.posZ + 0.5D, p.rotationYaw, p.rotationPitch);
- if(!p.capabilities.isCreativeMode)
- stack.setItemDamage(100);
- p.stopUsingItem();
- }
- spawnPortalParticle(p.worldObj, p, time);
- }
-
- public void spawnPortalParticle(World world, EntityPlayer p, int time) {
- if(world.isRemote) {
- boolean isFinish = time > 80;
- int ticks = Math.min(100, time);
- int totalSpiritCount = (int)Math.max(3, ticks / 100.0f * 18);
- double tickIncrement = 360.0D / totalSpiritCount;
- int speed = 8;
- double wticks = (ticks * speed) - tickIncrement;
- double r = Math.sin((ticks) / 100.0D) * Math.max(0.75f, 1.4D * ticks / 100.0f);
- Vec3 look = p.getLookVec();
- float yawOffset = Minecraft.getMinecraft().thePlayer.getDisplayName() == p.getDisplayName() ? 0.0f : 1.62f;
- Vector3 l = new Vector3(look.xCoord, look.yCoord + yawOffset, look.zCoord);
- Vector3 player = Vector3.fromEntity(p).add(0.0f, 0.0f, 0.0f);
- Vector3 v3 = new Vector3();
- for(int i = 0; i < totalSpiritCount; i++) {
- float size = Math.max(0.215f, ticks / 100.0f);
- v3.set(Math.sin(wticks * Math.PI / 180.0D) / 1.825f * r, Math.cos(wticks * Math.PI / 180.0D) * r, 0.8f);
- ClientHelper.setRotation(p.rotationPitch, 1.0f, 0.0f, 0.0f, v3);
- ClientHelper.setRotation(-p.rotationYaw, 0.0f, 1.0f, 0.0f, v3);
- v3.add(l.multiply(1.0f)).add(player);
- wticks += tickIncrement;
- int color = world.rand.nextBoolean() ? 0x931fec : 0x4b1682;
- float hsb[] = Color.RGBtoHSB(color & 255, color >> 8 & 255, color >> 16 & 255, null);
- int color1 = Color.HSBtoRGB(hsb[0], hsb[1], ticks / 100.0f);
- float[] colorsfx = { (color1 & 255) / 255.0f, (color1 >> 8 & 255) / 255.0f, (color1 >> 16 & 255) / 255.0f };
- float motionSpeed = 0.25f * Math.min(1.0f, (time - 80) / 30.0f);
- Botania.proxy.wispFX(world, v3.x, v3.y, v3.z, colorsfx[0], colorsfx[1], colorsfx[2], 0.3F * size, isFinish ? (float)(look.xCoord * -1) * motionSpeed : 0.0f, isFinish ? (float)(look.yCoord * -1) * motionSpeed : 0.0f, isFinish ? (float)(look.zCoord * -1) * motionSpeed : 0.0f, 0.3F);
- Botania.proxy.wispFX(world, v3.x, v3.y, v3.z, colorsfx[0], colorsfx[1], colorsfx[2], (float)(Math.random() * 0.1F + 0.05F) * size, (float)(Math.random() - 0.5D) * 0.05F, (float)(Math.random() - 0.5D) * 0.05F, (float)(Math.random() - 0.5D) * 0.05F, 0.4F);
- }
- }
- }
-
- public int getMaxItemUseDuration(ItemStack par1ItemStack) {
- return 72000;
- }
-
- public boolean isFull3D() {
- return true;
- }
-
- public int getTopBlock(World world, int posX, int posZ) {
- Chunk chunk = world.getChunkFromBlockCoords(posX, posZ);
- int k = chunk.getTopFilledSegment() + 15;
- for(; k > 0; --k) {
- Block block = chunk.getBlock(posX, k, posZ);
- if(!block.isAir(world, posX, k, posZ) && block != Blocks.bedrock && block.isAir(world, posX, k + 1, posZ) && block.isAir(world, posX, k + 2, posZ))
- return k + 1;
- }
- return -1;
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/74/809ba74b05ad001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/74/809ba74b05ad001c1d59e42be7477558
deleted file mode 100644
index 3ea3916..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/74/809ba74b05ad001c1d59e42be7477558
+++ /dev/null
@@ -1,229 +0,0 @@
-package ab.common.block.tile;
-
-import java.util.List;
-
-import ab.api.IRenderHud;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.gui.ScaledResolution;
-import net.minecraft.client.renderer.RenderHelper;
-import net.minecraft.client.renderer.entity.RenderItem;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.init.Items;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.ChatComponentTranslation;
-import net.minecraft.util.ChatStyle;
-import net.minecraft.util.EnumChatFormatting;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.common.block.tile.TileMod;
-
-public class TileGameBoard extends TileMod implements IRenderHud {
-
- public String[] playersName = new String[] { "", "" };
- public byte[] slotChance = new byte[] { 0, 0, 0, 0 };
- protected int botTick = -1;
- public int endGameTick = -1;
- protected boolean requestUpdate;
- public boolean isSingleGame = true;
- public int clientTick[] = new int[] { 0, 0, 0, 0 };
- public static final ItemStack headRender = new ItemStack(Items.skull, 1, 3);
-
- public void updateEntity() {
- if(botTick > 0)
- botTick--;
- if(endGameTick > 0)
- endGameTick--;
- if(!worldObj.isRemote)
- updateServer();
- else
- updateAnimationTicks();
- }
-
- public void updateAnimationTicks() {
- for(int i = 0; i < slotChance.length; i++)
- if(slotChance[i] > 0)
- clientTick[i]++;
- else
- clientTick[i] = 0;
- }
-
- protected void updateServer() {
- if(hasGame() && endGameTick == 0)
- finishGame();
- if(requestUpdate)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- boolean hasUpdate = false;
- if(isSingleGame) {
- if(botTick == 0 && hasGame()) {
- for(int i = 2; i < 4; i++) {
- if(slotChance[i] == 0) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = -1;
- hasUpdate = true;
- break;
- }
- }
- }
- } else {
- if(botTick == 0 && hasGame())
- endGameTick = 0;
- }
- requestUpdate = hasUpdate;
- }
-
- public void setPlayer(EntityPlayer player) {
- if(isSingleGame) {
- playersName[0] = player.getCommandSenderName();
- playersName[1] = "";
- requestUpdate = true;
- botTick = 8;
- } else {
- if(playersName[0].isEmpty())
- playersName[0] = player.getCommandSenderName();
- else if(!playersName[0].equals(player.getCommandSenderName()))
- playersName[1] = player.getCommandSenderName();
- requestUpdate = true;
- }
- }
-
- public boolean dropDice(EntityPlayer player) {
- if(isSingleGame) {
- if(player.getCommandSenderName().equals(playersName[0]) && botTick == -1) {
- boolean isLastDice = false;
- boolean hasDrop = false;
- for(int i = 0; i < 2; i++) {
- if(slotChance[i] == 0) {
- hasDrop = true;
- if(!worldObj.isRemote) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = 18;
- requestUpdate = true;
- if(i == 1)
- isLastDice = true;
- }
- break;
- }
- }
- if(isLastDice)
- endGameTick = 28;
- return hasDrop;
- }
- } else {
- for(int i = 0; i < playersName.length; i++) {
- if(player.getCommandSenderName().equals(playersName[i])) {
- boolean hasDrop = false;
- for(int j = i * 2; j < (i + 1) * 2; j++) {
- if(slotChance[j] == 0) {
- hasDrop = true;
- if(!worldObj.isRemote) {
- slotChance[j] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = 1200;
- if(hasFullDice())
- endGameTick = 28;
- requestUpdate = true;
- }
- break;
- }
- }
- return hasDrop;
- }
- }
- }
- return false;
- }
-
- public boolean hasFullDice() {
- boolean hasFull = false;
- for(int i = 0; i < slotChance.length; i++) {
- if(!(slotChance[i] > 0))
- return false;
- hasFull = slotChance[i] > 0;
- }
- return hasFull;
- }
-
- public boolean hasGame() {
- if(isSingleGame)
- return !playersName[0].isEmpty();
- else
- for(int i = 0; i < playersName.length; i++)
- if(!playersName[i].isEmpty())
- return true;
- return false;
- }
-
- public void finishGame() {
- if(worldObj.isRemote)
- return;
- if(isSingleGame) {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won");
- else if((slotChance[0] + slotChance[1]) == (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " not win");
- else
- sendNearMessage(playersName[0] + " you Lose!");
- resetGame();
- } else {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won!");
- else if((slotChance[0] + slotChance[1]) == (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " " + playersName[1] + "we are not win");
- else
- sendNearMessage(playersName[1] + " you Won!");
- resetGame();
- }
- }
-
- public void sendNearMessage(String text) {
- List players = this.worldObj.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(this.xCoord, this.yCoord, this.zCoord, (this.xCoord + 1), (this.yCoord + 1), (this.zCoord + 1)).expand(3.5f, 3.5f, 3.5f));
- for(EntityPlayer player : players) {
- if(player != null)
- player.addChatMessage((new ChatComponentTranslation(text, new Object[] {})).setChatStyle((new ChatStyle()).setColor(EnumChatFormatting.DARK_GREEN)));
- }
- }
-
- public void resetGame() {
- playersName[0] = "";
- playersName[1] = "";
- for(int i = 0; i < slotChance.length; i++)
- slotChance[i] = 0;
- botTick = -1;
- endGameTick = -1;
- requestUpdate = true;
- }
-
- public void renderHud(Minecraft mc, ScaledResolution res) {
- int x = res.getScaledWidth() / 2 - 7;
- int y = res.getScaledHeight() / 2 + 12;
- RenderHelper.enableGUIStandardItemLighting();
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, headRender, x, y);
- if(isSingleGame)
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, headRender, x + 4, y + 4);
- RenderHelper.disableStandardItemLighting();
- }
-
- public void writeCustomNBT(NBTTagCompound cmp) {
- super.writeCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- cmp.setString("playerName" + i, playersName[i]);
- cmp.setByteArray("slotChance", slotChance);
- cmp.setInteger("botTick", botTick);
- cmp.setInteger("endGameTick", endGameTick);
- cmp.setBoolean("requestUpdate", requestUpdate);
- cmp.setBoolean("isSingleGame", isSingleGame);
- }
-
- public void readCustomNBT(NBTTagCompound cmp) {
- super.readCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- playersName[i] = cmp.getString("playerName" + i);
- botTick = cmp.getInteger("botTick");
- endGameTick = cmp.getInteger("endGameTick");
- slotChance = cmp.getByteArray("slotChance");
- requestUpdate = cmp.getBoolean("requestUpdate");
- isSingleGame = cmp.getBoolean("isSingleGame");
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/74/d077e51305ad001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/74/d077e51305ad001c1d59e42be7477558
deleted file mode 100644
index f021173..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/74/d077e51305ad001c1d59e42be7477558
+++ /dev/null
@@ -1,227 +0,0 @@
-package ab.common.block.tile;
-
-import java.util.List;
-
-import ab.api.IRenderHud;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.gui.ScaledResolution;
-import net.minecraft.client.renderer.RenderHelper;
-import net.minecraft.client.renderer.entity.RenderItem;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.init.Items;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.ChatComponentTranslation;
-import net.minecraft.util.ChatStyle;
-import net.minecraft.util.EnumChatFormatting;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.common.block.tile.TileMod;
-
-public class TileGameBoard extends TileMod implements IRenderHud {
-
- public String[] playersName = new String[] { "", "" };
- public byte[] slotChance = new byte[] { 0, 0, 0, 0 };
- protected int botTick = -1;
- public int endGameTick = -1;
- protected boolean requestUpdate;
- public boolean isSingleGame = true;
- public int clientTick[] = new int[] { 0, 0, 0, 0 };
- public static final ItemStack headRender = new ItemStack(Items.skull, 1, 3);
-
- public void updateEntity() {
- if(botTick > 0)
- botTick--;
- if(endGameTick > 0)
- endGameTick--;
- if(!worldObj.isRemote)
- updateServer();
- else
- updateAnimationTicks();
- }
-
- public void updateAnimationTicks() {
- for(int i = 0; i < slotChance.length; i++)
- if(slotChance[i] > 0)
- clientTick[i]++;
- else
- clientTick[i] = 0;
- }
-
- protected void updateServer() {
- if(hasGame() && endGameTick == 0)
- finishGame();
- if(requestUpdate)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- boolean hasUpdate = false;
- if(isSingleGame) {
- if(botTick == 0 && hasGame()) {
- for(int i = 2; i < 4; i++) {
- if(slotChance[i] == 0) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = -1;
- hasUpdate = true;
- break;
- }
- }
- }
- } else {
- if(botTick == 0 && hasGame())
- endGameTick = 0;
- }
- requestUpdate = hasUpdate;
- }
-
- public void setPlayer(EntityPlayer player) {
- if(isSingleGame) {
- playersName[0] = player.getCommandSenderName();
- playersName[1] = "";
- requestUpdate = true;
- botTick = 8;
- } else {
- if(playersName[0].isEmpty())
- playersName[0] = player.getCommandSenderName();
- else if(!playersName[0].equals(player.getCommandSenderName()))
- playersName[1] = player.getCommandSenderName();
- requestUpdate = true;
- }
- }
-
- public boolean dropDice(EntityPlayer player) {
- if(isSingleGame) {
- if(player.getCommandSenderName().equals(playersName[0]) && botTick == -1) {
- boolean isLastDice = false;
- boolean hasDrop = false;
- for(int i = 0; i < 2; i++) {
- if(slotChance[i] == 0) {
- hasDrop = true;
- if(!worldObj.isRemote) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = 18;
- requestUpdate = true;
- if(i == 1)
- isLastDice = true;
- }
- break;
- }
- }
- if(isLastDice)
- endGameTick = 28;
- return hasDrop;
- }
- } else {
- for(int i = 0; i < playersName.length; i++) {
- if(player.getCommandSenderName().equals(playersName[i])) {
- boolean hasDrop = false;
- for(int j = i * 2; j < (i + 1) * 2; j++) {
- if(slotChance[j] == 0) {
- hasDrop = true;
- if(!worldObj.isRemote) {
- slotChance[j] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = 1200;
- if(hasFullDice())
- endGameTick = 28;
- requestUpdate = true;
- }
- break;
- }
- }
- return hasDrop;
- }
- }
- }
- return false;
- }
-
- public boolean hasFullDice() {
- boolean hasFull = false;
- for(int i = 0; i < slotChance.length; i++) {
- if(!(slotChance[i] > 0))
- return false;
- hasFull = slotChance[i] > 0;
- }
- return hasFull;
- }
-
- public boolean hasGame() {
- if(isSingleGame)
- return !playersName[0].isEmpty();
- else
- for(int i = 0; i < playersName.length; i++)
- if(!playersName[i].isEmpty())
- return true;
- return false;
- }
-
- public void finishGame() {
- if(worldObj.isRemote)
- return;
- if(isSingleGame) {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won");
- else if((slotChance[0] + slotChance[1]) == (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " not win");
- else
- sendNearMessage(playersName[0] + " you Lose!");
- resetGame();
- } else {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won!");
- else if((slotChance[0] + slotChance[1]) == (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " " + playersName[1] + "we are not win");
- else
- sendNearMessage(playersName[1] + " you Won!");
- resetGame();
- }
- }
-
- public void sendNearMessage(String text) {
- List players = this.worldObj.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(this.xCoord, this.yCoord, this.zCoord, (this.xCoord + 1), (this.yCoord + 1), (this.zCoord + 1)).expand(3.5f, 3.5f, 3.5f));
- for(EntityPlayer player : players) {
- if(player != null)
- player.addChatMessage((new ChatComponentTranslation(text, new Object[] {})).setChatStyle((new ChatStyle()).setColor(EnumChatFormatting.DARK_GREEN)));
- }
- }
-
- public void resetGame() {
- playersName[0] = "";
- playersName[1] = "";
- for(int i = 0; i < slotChance.length; i++)
- slotChance[i] = 0;
- botTick = -1;
- endGameTick = -1;
- requestUpdate = true;
- }
-
- public void renderHud(Minecraft mc, ScaledResolution res) {
- int x = res.getScaledWidth() / 2 - 7;
- int y = res.getScaledHeight() / 2 + 12;
- RenderHelper.enableGUIStandardItemLighting();
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, headRender, x, y);
- RenderHelper.disableStandardItemLighting();
- }
-
- public void writeCustomNBT(NBTTagCompound cmp) {
- super.writeCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- cmp.setString("playerName" + i, playersName[i]);
- cmp.setByteArray("slotChance", slotChance);
- cmp.setInteger("botTick", botTick);
- cmp.setInteger("endGameTick", endGameTick);
- cmp.setBoolean("requestUpdate", requestUpdate);
- cmp.setBoolean("isSingleGame", isSingleGame);
- }
-
- public void readCustomNBT(NBTTagCompound cmp) {
- super.readCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- playersName[i] = cmp.getString("playerName" + i);
- botTick = cmp.getInteger("botTick");
- endGameTick = cmp.getInteger("endGameTick");
- slotChance = cmp.getByteArray("slotChance");
- requestUpdate = cmp.getBoolean("requestUpdate");
- isSingleGame = cmp.getBoolean("isSingleGame");
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/74/e04cb910ffac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/74/e04cb910ffac001c1d59e42be7477558
deleted file mode 100644
index 5a3e199..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/74/e04cb910ffac001c1d59e42be7477558
+++ /dev/null
@@ -1,127 +0,0 @@
-package ab.common.block;
-
-import java.util.List;
-
-import ab.AdvancedBotany;
-import ab.common.block.tile.TileBoardFate;
-import ab.common.block.tile.TileGameBoard;
-import ab.common.block.tile.TileInventory;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockContainer;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.renderer.texture.IIconRegister;
-import net.minecraft.creativetab.CreativeTabs;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.IIcon;
-import net.minecraft.world.World;
-import vazkii.botania.api.wand.IWandable;
-
-public class BlockBoardFate extends BlockContainer implements IWandable {
-
- protected IIcon[] iconsFate;
- protected IIcon[] iconsBoard;
-
- public BlockBoardFate() {
- super(Material.iron);
- this.setCreativeTab(AdvancedBotany.tabAB);
- this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.1875F, 1.0F);
- this.setHardness(3.0F);
- this.setResistance(10.0F);
- this.setStepSound(soundTypeMetal);
- this.setBlockName("boardFate");
- }
-
- public void getSubBlocks(Item par1, CreativeTabs par2CreativeTabs, List list) {
- for(int i = 0; i < 2; i++)
- list.add(new ItemStack(par1, 1, i));
- }
-
- public void registerBlockIcons(IIconRegister ir) {
- this.iconsFate = new IIcon[3];
- this.iconsBoard = new IIcon[3];
- for(int i = 0; i < iconsFate.length; i++)
- this.iconsFate[i] = ir.registerIcon("ab:boardFate_" + i);
- for(int i = 0; i < iconsBoard.length; i++)
- this.iconsBoard[i] = ir.registerIcon("ab:gameBoard_" + i);
- }
-
- public IIcon getIcon(int side, int meta) {
- if(meta == 0)
- return this.iconsBoard[Math.min(2, side)];
- else
- return this.iconsFate[Math.min(2, side)];
- }
-
- public boolean isOpaqueCube() {
- return false;
- }
-
- public boolean renderAsNormalBlock() {
- return false;
- }
-
- public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float par7, float par8, float par9) {
- int meta = world.getBlockMetadata(x, y, z);
- if(meta == 0) {
- TileGameBoard tile = (TileGameBoard)world.getTileEntity(x, y, z);
- if(player.isSneaking() && tile.playersName[0].equals(player.getCommandSenderName()))
- tile.resetGame();
- if(!tile.hasGame())
- tile.setPlayer(player);
- else if(!tile.isSingleGame && tile.playersName[1].isEmpty() && !tile.playersName[0].equals(player.getCommandSenderName()))
- tile.setPlayer(player);
- else {
- return tile.dropDice(player);
- }
- return false;
- } else {
- TileBoardFate tile = (TileBoardFate)world.getTileEntity(x, y, z);
- return tile.spawnRelic(player);
- }
- }
-
- public TileEntity createNewTileEntity(World world, int meta) {
- return meta == 0 ? new TileGameBoard() : new TileBoardFate();
- }
-
- public void breakBlock(World world, int x, int y, int z, Block block, int meta) {
- if(!world.isRemote && meta == 1) {
- TileInventory inv = (TileInventory)world.getTileEntity(x, y, z);
- if (inv != null) {
- for (int i = 0; i < inv.getSizeInventory(); i++) {
- ItemStack stack = inv.getStackInSlot(i);
- if (stack != null) {
- float f = world.rand.nextFloat() * 0.8F + 0.1F;
- float f1 = world.rand.nextFloat() * 0.8F + 0.1F;
- float f2 = world.rand.nextFloat() * 0.8F + 0.1F;
- EntityItem entityitem = new EntityItem(world, (x + f), (y + f1), (z + f2), stack.copy());
- float f3 = 0.05F;
- entityitem.motionX = ((float)world.rand.nextGaussian() * f3);
- entityitem.motionY = ((float)world.rand.nextGaussian() * f3 + 0.2F);
- entityitem.motionZ = ((float)world.rand.nextGaussian() * f3);
- if (stack.hasTagCompound())
- entityitem.getEntityItem().setTagCompound((NBTTagCompound)stack.getTagCompound().copy());
- world.spawnEntityInWorld(entityitem);
- }
- }
- }
- }
- super.breakBlock(world, x, y, z, block, meta);
- }
-
- public boolean onUsedByWand(EntityPlayer player, ItemStack stack, World world, int x, int y, int z, int side) {
- if(world.getBlockMetadata(x, y, z) == 0 && player.isSneaking()) {
- TileGameBoard tile = (TileGameBoard)world.getTileEntity(x, y, z);
- if(tile != null && !tile.hasGame()) {
- tile.isSingleGame = !tile.isSingleGame;
- return true;
- }
- }
- return false;
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/74/e0d24448e7bc001c1a9f99005529f322 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/74/e0d24448e7bc001c1a9f99005529f322
new file mode 100644
index 0000000..1400c56
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/74/e0d24448e7bc001c1a9f99005529f322
@@ -0,0 +1,99 @@
+package ab.client.render.tile;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Random;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.client.model.ModelNidavellirForge;
+import ab.common.block.tile.TileNidavellirForge;
+import net.minecraft.client.Minecraft;
+import net.minecraft.client.renderer.OpenGlHelper;
+import net.minecraft.client.renderer.Tessellator;
+import net.minecraft.client.renderer.entity.Render;
+import net.minecraft.client.renderer.entity.RenderManager;
+import net.minecraft.client.renderer.texture.TextureMap;
+import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.ResourceLocation;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.client.core.helper.ShaderHelper;
+import vazkii.botania.common.block.mana.BlockTerraPlate;
+
+public class RenderTileNidavellirForge extends TileEntitySpecialRenderer {
+
+ private List entityList = null;
+ private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/nidavellirForge.png");
+ private static final ModelNidavellirForge model = new ModelNidavellirForge();
+
+ public void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float f) {
+ TileNidavellirForge tile = (TileNidavellirForge)tileentity;
+ double worldTime = 0.0D;
+ int meta = 2;
+ if(tileentity != null && tileentity.getWorldObj() != null) {
+ worldTime = ClientTickHandler.ticksInGame + f + (new Random((tileentity.xCoord ^ tileentity.yCoord ^ tileentity.zCoord))).nextInt(360);
+ meta = tileentity.getWorldObj().getBlockMetadata(tileentity.xCoord, tileentity.yCoord, tileentity.zCoord);
+ }
+ float indetY = (float)(Math.sin(worldTime / 18.0D) / 24.0D);
+ GL11.glPushMatrix();
+ GL11.glEnable(32826);
+ GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
+ GL11.glTranslated(x, y, z);
+ GL11.glTranslatef(0.5f, 1.5f, 0.5f);
+ GL11.glRotatef(180.0f, 1.0f, 0.0f, 1.0f);
+ GL11.glRotatef(90.0f * meta, 0.0f, 1.0f, 0.0f);
+ Minecraft.getMinecraft().renderEngine.bindTexture(texture);
+ model.renderBottom();
+ GL11.glTranslatef(0.0f, indetY, 0.0f);
+ model.renderTop();
+ GL11.glEnable(32826);
+ GL11.glPopMatrix();
+ if(entityList == null) {
+ List list = new ArrayList();
+ for(int i = 0; i < tile.getSizeInventory(); i++) {
+ list.add(new EntityItem(tile.getWorldObj(), tile.xCoord, tile.yCoord, tile.zCoord));
+ }
+ entityList = list;
+ }
+ GL11.glPushMatrix();
+ GL11.glTranslated(x + 0.5f, y + 0.675f - indetY, z + 0.5f);
+ GL11.glScalef(0.2F, 0.225F, 0.225F);
+ for(int i = 1; i < entityList.size(); i++) {
+ GL11.glPushMatrix();
+ ItemStack stack = tile.getStackInSlot(i);
+ if(stack != null) {
+ switch(i) {
+ case 1:
+ GL11.glTranslated(0.15f, 0.0f, 0.0f);
+ break;
+ case 2:
+ GL11.glTranslated(-0.15f, 0.0f, -0.15f);
+ break;
+ case 3:
+ GL11.glTranslated(-0.15f, 0.0f, 0.15f);
+ break;
+ }
+ entityList.get(i).setEntityItemStack(stack);
+ entityList.get(i).age = ClientTickHandler.ticksInGame;
+ ((Render)RenderManager.instance.entityRenderMap.get(EntityItem.class)).doRender((Entity)entityList.get(i), 0.0D, 0.0D, 0.0D, 1.0F, f);
+ }
+ GL11.glPopMatrix();
+ }
+ GL11.glPopMatrix();
+ if(tile.getStackInSlot(0) != null) {
+ GL11.glPushMatrix();
+ GL11.glTranslated(x + 0.5, y + 0.915f - indetY, z + 0.5);
+ GL11.glScalef(0.45f, 0.45f, 0.45f);
+ entityList.get(0).setEntityItemStack(tile.getStackInSlot(0));
+ entityList.get(0).age = ClientTickHandler.ticksInGame;
+ ((Render)RenderManager.instance.entityRenderMap.get(EntityItem.class)).doRender((Entity)entityList.get(0), 0.0D, 0.0D, 0.0D, 1.0F, f);
+ GL11.glPopMatrix();
+ }
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/75/3085ea05b9bc001c1a9f99005529f322 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/75/3085ea05b9bc001c1a9f99005529f322
new file mode 100644
index 0000000..b6d9bea
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/75/3085ea05b9bc001c1a9f99005529f322
@@ -0,0 +1,132 @@
+package ab.common.block;
+
+import ab.AdvancedBotany;
+import ab.common.block.tile.TileNidavellirForge;
+import ab.common.block.tile.TileInventory;
+import ab.common.lib.register.RecipeListAB;
+import net.minecraft.block.Block;
+import net.minecraft.block.BlockContainer;
+import net.minecraft.block.material.Material;
+import net.minecraft.client.renderer.texture.IIconRegister;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.MathHelper;
+import net.minecraft.util.Vec3;
+import net.minecraft.world.IBlockAccess;
+import net.minecraft.world.World;
+import vazkii.botania.api.BotaniaAPI;
+import vazkii.botania.api.lexicon.ILexiconable;
+import vazkii.botania.api.lexicon.LexiconEntry;
+
+public class BlockNidavellirForge extends BlockContainer implements ILexiconable {
+
+ public BlockNidavellirForge() {
+ super(Material.iron);
+ this.setCreativeTab(AdvancedBotany.tabAB);
+ this.setHardness(3.0F);
+ this.setResistance(10.0F);
+ this.setStepSound(soundTypeMetal);
+ this.setBlockName("ABPlate");
+ }
+
+ public void setBlockBoundsBasedOnState(IBlockAccess world, int x, int y, int z) {
+ if(world.getBlockMetadata(x, y, z) % 2 == 0)
+ this.setBlockBounds(0.125F, 0.0F, 0.0F, 0.875F, 1.0F, 1.0F);
+ else
+ this.setBlockBounds(0.0F, 0.0F, 0.125F, 1.0F, 1.0F, 0.875F);
+ }
+
+ public void onBlockPlacedBy(World world, int x, int y, int z, EntityLivingBase liv, ItemStack stack) {
+ int meta = MathHelper.floor_double((double)(liv.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3;
+ world.setBlockMetadataWithNotify(x, y, z, meta, 3);
+ }
+
+ public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int par6, float par7, float par8, float par9) {
+ TileNidavellirForge tile = (TileNidavellirForge)world.getTileEntity(x, y, z);
+ if(player.isSneaking()) {
+ if(tile.getStackInSlot(0) != null) {
+ ItemStack copy = tile.getStackInSlot(0).copy();
+ if(!world.isRemote) {
+ Vec3 vec3 = player.getLook(1.0F).normalize();
+ EntityItem entityitem = new EntityItem(world, player.posX + vec3.xCoord, player.posY + 1.2f, player.posZ + vec3.zCoord, copy);
+ world.spawnEntityInWorld(entityitem);
+ tile.requestUpdate = true;
+ }
+ tile.setInventorySlotContents(0, null);
+ world.func_147453_f(x, y, z, (Block)this);
+ return true;
+ }
+ for(int i = tile.getSizeInventory() - 1; i > 0; i--) {
+ ItemStack stack = tile.getStackInSlot(i);
+ if(stack != null) {
+ ItemStack copy = stack.copy();
+ if(!world.isRemote) {
+ Vec3 vec3 = player.getLook(1.0F).normalize();
+ EntityItem entityitem = new EntityItem(world, player.posX + vec3.xCoord, player.posY + 1.2f, player.posZ + vec3.zCoord, copy);
+ world.spawnEntityInWorld(entityitem);
+ tile.requestUpdate = true;
+ }
+ tile.setInventorySlotContents(i, null);
+ world.func_147453_f(x, y, z, (Block)this);
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public void breakBlock(World world, int x, int y, int z, Block block, int meta) {
+ if(!world.isRemote) {
+ TileInventory inv = (TileInventory)world.getTileEntity(x, y, z);
+ if (inv != null) {
+ for (int i = 0; i < inv.getSizeInventory(); i++) {
+ ItemStack stack = inv.getStackInSlot(i);
+ if (stack != null) {
+ float f = world.rand.nextFloat() * 0.8F + 0.1F;
+ float f1 = world.rand.nextFloat() * 0.8F + 0.1F;
+ float f2 = world.rand.nextFloat() * 0.8F + 0.1F;
+ EntityItem entityitem = new EntityItem(world, (x + f), (y + f1), (z + f2), stack.copy());
+ float f3 = 0.05F;
+ entityitem.motionX = ((float)world.rand.nextGaussian() * f3);
+ entityitem.motionY = ((float)world.rand.nextGaussian() * f3 + 0.2F);
+ entityitem.motionZ = ((float)world.rand.nextGaussian() * f3);
+ if (stack.hasTagCompound())
+ entityitem.getEntityItem().setTagCompound((NBTTagCompound)stack.getTagCompound().copy());
+ world.spawnEntityInWorld(entityitem);
+ }
+ }
+ }
+ }
+ super.breakBlock(world, x, y, z, block, meta);
+ }
+
+ public int getRenderType() {
+ return -1;
+ }
+
+ public boolean renderAsNormalBlock() {
+ return false;
+ }
+
+ public boolean isOpaqueCube() {
+ return false;
+ }
+
+ public boolean getBlocksMovement(IBlockAccess p_149655_1_, int p_149655_2_, int p_149655_3_, int p_149655_4_) {
+ return false;
+ }
+
+ public TileEntity createNewTileEntity(World world, int meta) {
+ return new TileNidavellirForge();
+ }
+
+ public LexiconEntry getEntry(World arg0, int arg1, int arg2, int arg3, EntityPlayer arg4, ItemStack arg5) {
+ return RecipeListAB.advandedAgglomerationPlate;
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/75/b068e30221b0001c18a5eba32f24fffa b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/75/b068e30221b0001c18a5eba32f24fffa
deleted file mode 100644
index ed92856..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/75/b068e30221b0001c18a5eba32f24fffa
+++ /dev/null
@@ -1,80 +0,0 @@
-package ab.common.block.subtile;
-
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.world.World;
-import vazkii.botania.api.subtile.SubTileGenerating;
-
-public class SubTileArdentAzarcissus extends SubTileGenerating {
-
- public static final String playerName = "ArdentAzarcissus#21sda2gaj91*21df#111sfq3jrns@#";
- int cooldown;
- int workMana = 400;
-
- public void onUpdate() {
- super.onUpdate();
- World world = this.supertile.getWorldObj();
- int posX = this.supertile.xCoord;
- int posY = this.supertile.yCoord;
- int posZ = this.supertile.zCoord;
- if(world.isRemote)
- return;
- if(cooldown > 0) {
- cooldown--;
- return;
- } else if (this.mana == this.getMaxMana())
- return;
- boolean needSync = false;
- for(int i = -1; i <= 1; i++)
- for(int j = -1; j <= 1; j++) {
- int x = posX + i;
- int z = posZ + j;
- TileEntity tile = world.getTileEntity(x, posY, z);
- if(tile != null && tile instanceof TileGameBoard) {
- TileGameBoard board = (TileGameBoard)tile;
- if(board.isSingleGame) {
- if(!board.hasGame()) {
- board.setPlayer(playerName, true);
- cooldown = 120;
- } else {
- if(!board.playersName[0].equals(playerName))
- board.playersName[0] = playerName;
- if(!board.isCustomGame)
- board.isCustomGame = true;
- if(board.endGameTick == 0) {
- int winCount = (board.slotChance[0] + board.slotChance[1]) - (board.slotChance[2] + board.slotChance[3]);
- if(winCount > 0) {
- mana = Math.min(this.getMaxMana(), this.mana + (workMana * winCount));
- needSync = true;
- }
- board.finishGame(false);
- } else
- board.dropDice(playerName);
- cooldown = 120;
- }
- }
- }
- }
- if(needSync)
- sync();
- }
-
- public int getMaxMana() {
- return 16000;
- }
-
- public int getColor() {
- return 0xd2cdb2;
- }
-
- public void writeToPacketNBT(NBTTagCompound cmp) {
- super.writeToPacketNBT(cmp);
- cmp.setInteger("cooldown", this.cooldown);
- }
-
- public void readFromPacketNBT(NBTTagCompound cmp) {
- super.readFromPacketNBT(cmp);
- this.cooldown = cmp.getInteger("cooldown");
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/76/408b6a3c9db1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/76/408b6a3c9db1001c19bf8a91ac37238b
deleted file mode 100644
index 7e81e3b..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/76/408b6a3c9db1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,84 +0,0 @@
-package ab.client.core.handler;
-
-import java.awt.Color;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.armor.ItemNebulaArmor;
-import ab.common.item.equipment.armor.ItemNebulaHelm;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.ItemRenderer;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.texture.TextureMap;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraftforge.client.event.RenderPlayerEvent;
-import vazkii.botania.api.item.IPhantomInkable;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class PlayerRendererHandler {
-
- @SubscribeEvent
- public void onPlayerRender(RenderPlayerEvent.Specials.Pre event) {
- EntityPlayer player = event.entityPlayer;
- ItemStack item = player.getCurrentArmor(3);
- if(item != null && item.getItem() instanceof ItemNebulaHelm) {
- Item helm = player.getCurrentArmor(3).getItem();
- boolean hasPhantomInk = helm instanceof IPhantomInkable && ((IPhantomInkable)helm).hasPhantomInk(item);
- if(!hasPhantomInk && ((ItemNebulaHelm)helm).enableCosmicFace(item)) {
- float angelX = event.renderer.modelBipedMain.bipedHead.rotateAngleX * 180.0F / (float)Math.PI;
- float angelY = event.renderer.modelBipedMain.bipedHead.rotateAngleY * 180.0F / (float)Math.PI;
- GL11.glPushMatrix();
- if(player.isSneaking())
- GL11.glTranslatef(event.renderer.modelBipedMain.bipedHead.rotationPointX * 0.0625f, event.renderer.modelBipedMain.bipedHead.rotationPointY * 0.0625f, 0.0f);
- GL11.glRotatef(angelY, 0.0F, 1.0F, 0.0F);
- GL11.glRotatef(angelX, 1.0F, 0.0F, 0.0F);
- renderCosmicFace();
- GL11.glPopMatrix();
- }
- }
- }
-
- private void renderCosmicFace() {
- double worldTime = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- GL11.glPushMatrix();
- GL11.glEnable(GL11.GL_TEXTURE_2D);
- GL11.glDisable(2884);
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
-
- GL11.glPushMatrix();
- GL11.glScalef(0.5f, 0.4f, 0.4f);
- GL11.glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
- GL11.glTranslatef(-0.5f, -0.8675f, 0.0f);
- GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
- ClientHelper.renderCosmicBackground();
- GL11.glPopMatrix();
-
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- (Minecraft.getMinecraft()).renderEngine.bindTexture(TextureMap.locationItemsTexture);
- GL11.glTranslatef(-0.2F, -0.35F, -0.25F);
- GL11.glScalef(0.4f, 0.4f, 0.4f);
- float f = ItemNebulaArmor.nebulaEyes.getMinU();
- float f1 = ItemNebulaArmor.nebulaEyes.getMaxU();
- float f2 = ItemNebulaArmor.nebulaEyes.getMinV();
- float f3 = ItemNebulaArmor.nebulaEyes.getMaxV();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float r = color.getRed() / 510.0F;
- float g = color.getGreen() / 510.0F;
- float b = color.getBlue() / 510.0F;
- GL11.glColor4f(0.5f + r, 0.5f + g, 0.5f + b, 0.685f + (float)Math.sin(worldTime / 50.0D) * 0.175F);
- ItemRenderer.renderItemIn2D(Tessellator.instance, f1, f2, f, f3, ItemNebulaArmor.nebulaEyes.getIconWidth(), ItemNebulaArmor.nebulaEyes.getIconHeight(), 0.03125F);
- GL11.glDisable(3042);
- GL11.glEnable(2884);
- GL11.glEnable(32826);
- GL11.glPopMatrix();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/76/60213d8e3cb0001c1746c57a5fe46fd3 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/76/60213d8e3cb0001c1746c57a5fe46fd3
deleted file mode 100644
index 26fba7a..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/76/60213d8e3cb0001c1746c57a5fe46fd3
+++ /dev/null
@@ -1,53 +0,0 @@
-package ab.common.item.relic;
-
-import java.lang.reflect.InvocationTargetException;
-import java.util.List;
-
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import cpw.mods.fml.relauncher.ReflectionHelper;
-import net.minecraft.entity.EntityLivingBase;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.item.ItemStack;
-import net.minecraft.world.World;
-import net.minecraftforge.common.MinecraftForge;
-import net.minecraftforge.event.entity.living.LivingDropsEvent;
-
-public class ItemSehrimnirHide extends ItemModRelic {
-
- public static final String[] dropFewItems = new String[] { "dropFewItems", "func_70628_a" };
-
- public ItemSehrimnirHide() {
- super("sehrimnirHide");
- MinecraftForge.EVENT_BUS.register(this);
- }
-
- @SubscribeEvent
- public void onPlayerAttack(LivingDropsEvent event) {
-
-// .invoke(event.entityLiving, new Object[] {true, 5});
-
-
-
- EntityLivingBase liv = event.entityLiving;
- try {
- ReflectionHelper.findMethod(EntityLivingBase.class, liv, dropFewItems, new Class[] {boolean.class, int.class} ).invoke(liv, new Object[] {true, 3});
- } catch (Exception e) {
- e.printStackTrace();
- }
-
-
-// List items = event.drops;
-// World world = event.entityLiving.worldObj;
-// double posX = event.entityLiving.posX;
-// double posY = event.entityLiving.posY;
-// double posZ = event.entityLiving.posZ;
-// for(EntityItem entity : items) {
-// if(!world.isRemote) {
-// ItemStack loot = entity.getEntityItem().copy();
-// loot.stackSize = Math.max(1, (int)(loot.stackSize / 1.5f));
-// EntityItem item = new EntityItem(world, posX, posY, posZ, loot);
-// world.spawnEntityInWorld(item);
-// }
-// }
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/76/7095f902f5b0001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/76/7095f902f5b0001c19bf8a91ac37238b
deleted file mode 100644
index 2eaec94..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/76/7095f902f5b0001c19bf8a91ac37238b
+++ /dev/null
@@ -1,84 +0,0 @@
-package ab.client.core.handler;
-
-import java.awt.Color;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.armor.ItemNebulaArmor;
-import ab.common.item.equipment.armor.ItemNebulaHelm;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.ItemRenderer;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.texture.TextureMap;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraftforge.client.event.RenderPlayerEvent;
-import vazkii.botania.api.item.IPhantomInkable;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class PlayerRendererHandler {
-
- @SubscribeEvent
- public void onPlayerRender(RenderPlayerEvent.Specials.Post event) {
- EntityPlayer player = event.entityPlayer;
- ItemStack item = player.getCurrentArmor(3);
- if(item != null && item.getItem() instanceof ItemNebulaHelm) {
- Item helm = player.getCurrentArmor(3).getItem();
- boolean hasPhantomInk = helm instanceof IPhantomInkable && ((IPhantomInkable)helm).hasPhantomInk(item);
- if(!hasPhantomInk && ((ItemNebulaHelm)helm).enableCosmicFace(item)) {
- float angelX = event.renderer.modelBipedMain.bipedHead.rotateAngleX * 180.0F / (float)Math.PI;
- float angelY = event.renderer.modelBipedMain.bipedHead.rotateAngleY * 180.0F / (float)Math.PI;
- GL11.glPushMatrix();
- if(player.isSneaking())
- GL11.glTranslatef(event.renderer.modelBipedMain.bipedHead.rotationPointX * 0.0625f, event.renderer.modelBipedMain.bipedHead.rotationPointY * 0.0625f, 0.0f);
- GL11.glRotatef(angelY, 0.0F, 1.0F, 0.0F);
- GL11.glRotatef(angelX, 1.0F, 0.0F, 0.0F);
- renderCosmicFace();
- GL11.glPopMatrix();
- }
- }
- }
-
- private void renderCosmicFace() {
- double worldTime = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- GL11.glPushMatrix();
- GL11.glEnable(GL11.GL_TEXTURE_2D);
- GL11.glDisable(2912);
- GL11.glDisable(2884);
-
- GL11.glPushMatrix();
- GL11.glScalef(0.5f, 0.4f, 0.4f);
- GL11.glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
- GL11.glTranslatef(-0.5f, -0.8675f, 0.0f);
- GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
- ClientHelper.renderCosmicBackground();
- GL11.glPopMatrix();
-
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- (Minecraft.getMinecraft()).renderEngine.bindTexture(TextureMap.locationItemsTexture);
- GL11.glTranslatef(-0.2F, -0.35F, -0.25F);
- GL11.glScalef(0.4f, 0.4f, 0.4f);
- float f = ItemNebulaArmor.nebulaEyes.getMinU();
- float f1 = ItemNebulaArmor.nebulaEyes.getMaxU();
- float f2 = ItemNebulaArmor.nebulaEyes.getMinV();
- float f3 = ItemNebulaArmor.nebulaEyes.getMaxV();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float r = color.getRed() / 510.0F;
- float g = color.getGreen() / 510.0F;
- float b = color.getBlue() / 510.0F;
- GL11.glColor4f(0.5f + r, 0.5f + g, 0.5f + b, 0.685f + (float)Math.sin(worldTime / 50.0D) * 0.175F);
- ItemRenderer.renderItemIn2D(Tessellator.instance, f1, f2, f, f3, ItemNebulaArmor.nebulaEyes.getIconWidth(), ItemNebulaArmor.nebulaEyes.getIconHeight(), 0.03125F);
- GL11.glDisable(3042);
- GL11.glEnable(32826);
- GL11.glPopMatrix();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/76/70ea129a07ad001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/76/70ea129a07ad001c1d59e42be7477558
deleted file mode 100644
index 27796a7..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/76/70ea129a07ad001c1d59e42be7477558
+++ /dev/null
@@ -1,229 +0,0 @@
-package ab.common.block.tile;
-
-import java.util.List;
-
-import ab.api.IRenderHud;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.gui.ScaledResolution;
-import net.minecraft.client.renderer.RenderHelper;
-import net.minecraft.client.renderer.entity.RenderItem;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.init.Items;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.ChatComponentTranslation;
-import net.minecraft.util.ChatStyle;
-import net.minecraft.util.EnumChatFormatting;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.common.block.tile.TileMod;
-
-public class TileGameBoard extends TileMod implements IRenderHud {
-
- public String[] playersName = new String[] { "", "" };
- public byte[] slotChance = new byte[] { 0, 0, 0, 0 };
- protected int botTick = -1;
- public int endGameTick = -1;
- protected boolean requestUpdate;
- public boolean isSingleGame = true;
- public int clientTick[] = new int[] { 0, 0, 0, 0 };
- public static final ItemStack headRender = new ItemStack(Items.skull, 1, 3);
-
- public void updateEntity() {
- if(botTick > 0)
- botTick--;
- if(endGameTick > 0)
- endGameTick--;
- if(!worldObj.isRemote)
- updateServer();
- else
- updateAnimationTicks();
- }
-
- public void updateAnimationTicks() {
- for(int i = 0; i < slotChance.length; i++)
- if(slotChance[i] > 0)
- clientTick[i]++;
- else
- clientTick[i] = 0;
- }
-
- protected void updateServer() {
- if(hasGame() && endGameTick == 0)
- finishGame();
- if(requestUpdate)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- boolean hasUpdate = false;
- if(isSingleGame) {
- if(botTick == 0 && hasGame()) {
- for(int i = 2; i < 4; i++) {
- if(slotChance[i] == 0) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = -1;
- hasUpdate = true;
- break;
- }
- }
- }
- } else {
- if(botTick == 0 && hasGame())
- endGameTick = 0;
- }
- requestUpdate = hasUpdate;
- }
-
- public void setPlayer(EntityPlayer player) {
- if(isSingleGame) {
- playersName[0] = player.getCommandSenderName();
- playersName[1] = "";
- requestUpdate = true;
- botTick = 8;
- } else {
- if(playersName[0].isEmpty())
- playersName[0] = player.getCommandSenderName();
- else if(!playersName[0].equals(player.getCommandSenderName()))
- playersName[1] = player.getCommandSenderName();
- requestUpdate = true;
- }
- }
-
- public boolean dropDice(EntityPlayer player) {
- if(isSingleGame) {
- if(player.getCommandSenderName().equals(playersName[0]) && botTick == -1) {
- boolean isLastDice = false;
- boolean hasDrop = false;
- for(int i = 0; i < 2; i++) {
- if(slotChance[i] == 0) {
- hasDrop = true;
- if(!worldObj.isRemote) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = 18;
- requestUpdate = true;
- if(i == 1)
- isLastDice = true;
- }
- break;
- }
- }
- if(isLastDice)
- endGameTick = 28;
- return hasDrop;
- }
- } else {
- for(int i = 0; i < playersName.length; i++) {
- if(player.getCommandSenderName().equals(playersName[i])) {
- boolean hasDrop = false;
- for(int j = i * 2; j < (i + 1) * 2; j++) {
- if(slotChance[j] == 0) {
- hasDrop = true;
- if(!worldObj.isRemote) {
- slotChance[j] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = 1200;
- if(hasFullDice())
- endGameTick = 28;
- requestUpdate = true;
- }
- break;
- }
- }
- return hasDrop;
- }
- }
- }
- return false;
- }
-
- public boolean hasFullDice() {
- boolean hasFull = false;
- for(int i = 0; i < slotChance.length; i++) {
- if(!(slotChance[i] > 0))
- return false;
- hasFull = slotChance[i] > 0;
- }
- return hasFull;
- }
-
- public boolean hasGame() {
- if(isSingleGame)
- return !playersName[0].isEmpty();
- else
- for(int i = 0; i < playersName.length; i++)
- if(!playersName[i].isEmpty())
- return true;
- return false;
- }
-
- public void finishGame() {
- if(worldObj.isRemote)
- return;
- if(isSingleGame) {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won");
- else if((slotChance[0] + slotChance[1]) == (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " not win");
- else
- sendNearMessage(playersName[0] + " you Lose!");
- resetGame();
- } else {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won!");
- else if((slotChance[0] + slotChance[1]) == (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " " + playersName[1] + "we are not win");
- else
- sendNearMessage(playersName[1] + " you Won!");
- resetGame();
- }
- }
-
- public void sendNearMessage(String text) {
- List players = this.worldObj.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(this.xCoord, this.yCoord, this.zCoord, (this.xCoord + 1), (this.yCoord + 1), (this.zCoord + 1)).expand(3.5f, 3.5f, 3.5f));
- for(EntityPlayer player : players) {
- if(player != null)
- player.addChatMessage((new ChatComponentTranslation(text, new Object[] {})).setChatStyle((new ChatStyle()).setColor(EnumChatFormatting.DARK_GREEN)));
- }
- }
-
- public void resetGame() {
- playersName[0] = "";
- playersName[1] = "";
- for(int i = 0; i < slotChance.length; i++)
- slotChance[i] = 0;
- botTick = -1;
- endGameTick = -1;
- requestUpdate = true;
- }
-
- public void renderHud(Minecraft mc, ScaledResolution res) {
- int x = res.getScaledWidth() / 2 - 7;
- int y = res.getScaledHeight() / 2 + 12;
- RenderHelper.enableGUIStandardItemLighting();
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, headRender, x - (!isSingleGame ? 1 : 0), y - (!isSingleGame ? 1 : 0));
- if(!isSingleGame)
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, headRender, x + 3, y + 3);
- RenderHelper.disableStandardItemLighting();
- }
-
- public void writeCustomNBT(NBTTagCompound cmp) {
- super.writeCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- cmp.setString("playerName" + i, playersName[i]);
- cmp.setByteArray("slotChance", slotChance);
- cmp.setInteger("botTick", botTick);
- cmp.setInteger("endGameTick", endGameTick);
- cmp.setBoolean("requestUpdate", requestUpdate);
- cmp.setBoolean("isSingleGame", isSingleGame);
- }
-
- public void readCustomNBT(NBTTagCompound cmp) {
- super.readCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- playersName[i] = cmp.getString("playerName" + i);
- botTick = cmp.getInteger("botTick");
- endGameTick = cmp.getInteger("endGameTick");
- slotChance = cmp.getByteArray("slotChance");
- requestUpdate = cmp.getBoolean("requestUpdate");
- isSingleGame = cmp.getBoolean("isSingleGame");
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/76/e02bbef6caad001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/76/e02bbef6caad001c1d59e42be7477558
deleted file mode 100644
index 3c87522..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/76/e02bbef6caad001c1d59e42be7477558
+++ /dev/null
@@ -1,159 +0,0 @@
-package ab.common.entity;
-
-import java.awt.Color;
-import java.util.List;
-import java.util.Random;
-
-import ab.client.core.ClientHelper;
-import ab.common.core.CommonHelper;
-import ab.common.lib.register.BlockListAB;
-import cpw.mods.fml.relauncher.ReflectionHelper;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockBush;
-import net.minecraft.block.BlockCrops;
-import net.minecraft.block.BlockGrass;
-import net.minecraft.block.BlockSapling;
-import net.minecraft.block.IGrowable;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.EntityLivingBase;
-import net.minecraft.entity.passive.EntityAnimal;
-import net.minecraft.entity.projectile.EntityThrowable;
-import net.minecraft.init.Blocks;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.potion.PotionEffect;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.MathHelper;
-import net.minecraft.util.MovingObjectPosition;
-import net.minecraft.util.Vec3;
-import net.minecraft.world.World;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.core.handler.ConfigHandler;
-import vazkii.botania.common.lib.LibObfuscation;
-
-public class EntityManaVine extends EntityThrowable {
-
- int maxAge = 240;
- int age;
-
- public EntityManaVine(World world) {
- super(world);
- }
-
- public EntityManaVine(World world, EntityLivingBase entity) {
- super(world, entity);
- }
-
- public void onUpdate() {
- super.onUpdate();
- age++;
- if(age >= maxAge)
- setDead();
- if(this.worldObj.isRemote) {
- float m = 0.02F;
- float f1 = 6.0f;
- for(int i = 0; i < 4; i++) {
- double posX = this.posX + (Math.random() / f1 - (0.5f / f1));
- double posY = this.posY + (Math.random() / f1 - (0.5f / f1));
- double posZ = this.posZ + (Math.random() / f1 - (0.5f / f1));
- float mx = (float)(Math.random() - 0.5D) * m;
- float my = (float)(Math.random() - 0.5D) * m;
- float mz = (float)(Math.random() - 0.5D) * m;
- Color color = ClientHelper.getCorporeaRuneColor((int)posX, (int)posY, (int)posZ, 3);
- Botania.proxy.wispFX(worldObj, posX, posY, posZ, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float) (0.15f + (Math.random() * 0.12f)), mx, my, mz, 0.7f);
- }
- }
- }
-
- protected void onImpact(MovingObjectPosition pos) {
- if(pos != null && pos.entityHit == null) {
- World world = this.worldObj;
- int x = pos.blockX;
- int y = pos.blockY;
- int z = pos.blockZ;
- List list = (List) (world.getEntitiesWithinAABB(EntityLivingBase.class, AxisAlignedBB.getBoundingBox(x - 10, y - 10, z - 10, x + 10, y + 10, z + 10)));
- for(EntityLivingBase target : list) {
- if(target instanceof EntityAnimal) {
- EntityAnimal animal = (EntityAnimal) target;
- ReflectionHelper.setPrivateValue(EntityAnimal.class, animal, 1200, LibObfuscation.IN_LOVE);
- animal.setTarget(null);
- this.worldObj.setEntityState(animal, (byte) 18);
- }
- }
- for(int k = 0; k < 7; k++)
- for(int k1 = 0; k1 < 7; k1++)
- for(int k2 = 0; k2 < 7; k2++) {
- int xCoord = x + k - 3;
- int yCoord = y + k1 - 1;
- int zCoord = z + k2 - 3;
- Block block = this.worldObj.getBlock(xCoord, yCoord, zCoord);
- if(block instanceof IGrowable && !(block instanceof BlockGrass)) {
- CommonHelper.fertilizer(world, block, xCoord, yCoord, zCoord, 12);
- if(ConfigHandler.blockBreakParticles)
- this.worldObj.playAuxSFX(2005, xCoord, yCoord, zCoord, 6 + this.worldObj.rand.nextInt(4));
- this.worldObj.playSoundEffect(x, y, z, "botania:agricarnation", 0.01F, 0.5F + (float) Math.random() * 0.5F);
- } else if(!world.isRemote && BlockListAB.blockFreyrLiana.canBlockStay(world, xCoord, yCoord - 1, zCoord)) {
- Vec3 vec = Vec3.createVectorHelper(xCoord, yCoord, zCoord);
- int distant = (int)vec.squareDistanceTo(Vec3.createVectorHelper(x, y, z));
- yCoord--;
- if (this.worldObj.rand.nextInt(distant + 1) == 0)
- while (yCoord > 0) {
- block = worldObj.getBlock(xCoord, yCoord, zCoord);
- if(block.isAir(worldObj, xCoord, yCoord, zCoord)) {
- if(world.rand.nextInt(4) < 3)
- worldObj.setBlock(xCoord, yCoord, zCoord, BlockListAB.blockFreyrLiana);
- else
- worldObj.setBlock(xCoord, yCoord, zCoord,BlockListAB.blockLuminousFreyrLiana);
- worldObj.playAuxSFX(2001, xCoord, yCoord, zCoord, Block.getIdFromBlock(BlockListAB.blockFreyrLiana));
- yCoord--;
- } else
- break;
- }
- }
- }
- this.setDead();
- }
- }
-
- boolean isPlant(int x, int y, int z) {
- Block block = this.worldObj.getBlock(x, y, z);
- if(block == Blocks.grass || block == Blocks.leaves || block == Blocks.leaves2 || block instanceof BlockBush && !(block instanceof BlockCrops) && !(block instanceof BlockSapling))
- return false;
- Material mat = block.getMaterial();
- return mat != null && (mat == Material.plants || mat == Material.cactus || mat == Material.grass || mat == Material.leaves || mat == Material.gourd) && block instanceof IGrowable && ((IGrowable) block).func_149851_a(this.worldObj, x, y, z, this.worldObj.isRemote);
- }
-
- @SideOnly(Side.CLIENT)
- public void setPositionAndRotation2(double p_70056_1_, double p_70056_3_, double p_70056_5_, float p_70056_7_, float p_70056_8_, int p_70056_9_) {}
-
- protected float getGravityVelocity() {
- return 0.0f;
- }
-
- public void setDead() {
- if(this.worldObj.isRemote) {
- float m = 0.175F;
- for(int i = 0; i < 32; i++) {
- float mx = (float)(Math.random() - 0.5D) * m;
- float my = (float)(Math.random() - 0.5D) * m;
- float mz = (float)(Math.random() - 0.5D) * m;
- Color color = ClientHelper.getCorporeaRuneColor((int)posX, (int)posY, (int)posZ, 3);
- Botania.proxy.wispFX(worldObj, posX, posY, posZ, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float) (0.2f + (Math.random() * 0.12f)), mx, my, mz, 2.0f);
- }
- }
- super.setDead();
- }
-
- public void readFromNBT(NBTTagCompound nbtt) {
- super.readFromNBT(nbtt);
- maxAge = nbtt.getInteger("maxAge");
- age = nbtt.getInteger("age");
- }
-
- public void writeToNBT(NBTTagCompound nbtt) {
- super.writeToNBT(nbtt);
- nbtt.setInteger("maxAge", maxAge);
- nbtt.setInteger("age", age);
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/77/70c1a240e1ac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/77/70c1a240e1ac001c1d59e42be7477558
deleted file mode 100644
index 8babb83..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/77/70c1a240e1ac001c1d59e42be7477558
+++ /dev/null
@@ -1,165 +0,0 @@
-package ab.common.block.tile;
-
-import java.util.List;
-
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.ChatComponentTranslation;
-import net.minecraft.util.ChatStyle;
-import net.minecraft.util.EnumChatFormatting;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-
-public class TileGameBoard extends TileInventory {
-
- protected String[] playersName = new String[] { "", "" };
- public byte[] slotChance = new byte[] { 0, 0, 0, 0 };
- protected int botTick = -1;
- public int endGameTick = -1;
- protected boolean requestUpdate;
- public boolean isSingleGame = true;
- public int clientTick[] = new int[] { 0, 0, 0, 0};
-
- public void updateEntity() {
- if(botTick > 0)
- botTick--;
- if(endGameTick > 0)
- endGameTick--;
- if(!worldObj.isRemote)
- updateServer();
- else
- updateClient();
- }
-
- protected void updateClient() {
- for(int i = 0; i < slotChance.length; i++)
- if(slotChance[i] > 0)
- clientTick[i]++;
- else
- clientTick[i] = 0;
- }
-
- protected void updateServer() {
- if(requestUpdate)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- boolean hasUpdate = false;
- if(isSingleGame && botTick == 0 && hasGame()) {
- for(int i = 2; i < 4; i++) {
- if(slotChance[i] == 0) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = -1;
- hasUpdate = true;
- break;
- }
- }
- }
- if(hasGame() && endGameTick == 0)
- finishGame();
- requestUpdate = hasUpdate;
- }
-
- public void setPlayer(EntityPlayer player) {
- if(isSingleGame) {
- playersName[0] = player.getCommandSenderName();
- playersName[1] = "";
- requestUpdate = true;
- botTick = 8;
- }
- }
-
- public boolean dropDice(EntityPlayer player) {
- if(isSingleGame) {
- System.out.println(player.getCommandSenderName() == playersName[0]);
- if(player.getCommandSenderName() == playersName[0] && botTick <= 0) {
- boolean isLastDice = false;
- for(int i = 0; i < 2; i++) {
- if(slotChance[i] == 0 && !worldObj.isRemote) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = 18;
- requestUpdate = true;
- if(i == 1)
- isLastDice = true;
- break;
- }
- }
- if(isLastDice)
- endGameTick = 28;
- return true;
- }
- }
- return false;
- }
-
- public boolean hasGame() {
- if(isSingleGame)
- return !playersName[0].isEmpty();
- return !playersName[0].isEmpty() && !playersName[1].isEmpty();
- }
-
- public void finishGame() {
- if(worldObj.isRemote)
- return;
- if(isSingleGame) {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won");
- else
- sendNearMessage(playersName[0] + " you Lose!");
- resetGame();
- requestUpdate = true;
- }
- }
-
- public void sendNearMessage(String text) {
- List players = this.worldObj.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(this.xCoord, this.yCoord, this.zCoord, (this.xCoord + 1), (this.yCoord + 1), (this.zCoord + 1)).expand(3.5f, 3.5f, 3.5f));
- for(EntityPlayer player : players) {
- if(player != null)
- player.addChatMessage((new ChatComponentTranslation(text, new Object[] {})).setChatStyle((new ChatStyle()).setColor(EnumChatFormatting.DARK_GREEN)));
- }
- }
-
- public void resetGame() {
- playersName[0] = "";
- playersName[1] = "";
- for(int i = 0; i < slotChance.length; i++)
- slotChance[i] = 0;
- requestUpdate = true;
- botTick = -1;
- endGameTick = -1;
- }
-
- public void writeCustomNBT(NBTTagCompound cmp) {
- super.writeCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- cmp.setString("playerName" + i, playersName[i]);
- cmp.setByteArray("slotChance", slotChance);
- cmp.setInteger("botTick", botTick);
- cmp.setInteger("endGameTick", endGameTick);
- cmp.setBoolean("requestUpdate", requestUpdate);
- cmp.setBoolean("isSingleGame", isSingleGame);
- }
-
- public void readCustomNBT(NBTTagCompound cmp) {
- super.readCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- playersName[i] = cmp.getString("playerName" + i);
- botTick = cmp.getInteger("botTick");
- endGameTick = cmp.getInteger("endGameTick");
- slotChance = cmp.getByteArray("slotChance");
- requestUpdate = cmp.getBoolean("requestUpdate");
- isSingleGame = cmp.getBoolean("isSingleGame");
- }
-
- public int getInventoryStackLimit() {
- return 1;
- }
-
- public int getSizeInventory() {
- return 4;
- }
-
- public String getInventoryName() {
- return "inv.gameBoard";
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/77/b0964a8cfbac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/77/b0964a8cfbac001c1d59e42be7477558
deleted file mode 100644
index 4dd5f42..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/77/b0964a8cfbac001c1d59e42be7477558
+++ /dev/null
@@ -1,96 +0,0 @@
-package ab.client.render.tile;
-
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.model.ModelDiceFate;
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.entity.RenderManager;
-import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.ResourceLocation;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class RenderTileGameBoard extends TileEntitySpecialRenderer {
-
- private static final ModelDiceFate model = new ModelDiceFate();
- private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/gameDice.png");
- private static final ResourceLocation textureEnemy = new ResourceLocation("ab:textures/model/gameDice_enemy.png");
-
- public void renderTileEntityAt(TileEntity tile, double x, double y, double z, float ticks) {
- double time = (tile.getWorldObj() == null) ? 0.0D : (ClientTickHandler.ticksInGame + ticks);
- if(tile != null)
- time += (new Random((tile.xCoord ^ tile.yCoord ^ tile.zCoord))).nextInt(360);
- TileGameBoard board = (TileGameBoard)tile;
- GL11.glEnable(3042);
- GL11.glEnable(32826);
- GL11.glBlendFunc(770, 771);
- GL11.glPushMatrix();
- GL11.glTranslated(x + 0.5f, y, z + 0.5f);
- GL11.glRotatef(180.0f - RenderManager.instance.playerViewY, 0.0f, 1.0f, 0.0f);
- for(int i = 0; i < board.slotChance.length; i++) {
- if(board.slotChance[i] == 0)
- continue;
- time += i * 65;
- GL11.glPushMatrix();
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- float posX = 0.0f;
- float posY = 0.0f;
- float dropAnim = (1.0f - (Math.min(100.0f, (board.clientTick[i] * board.clientTick[i] * 1.25f) + ticks) / 100.0f));
- dropAnim = Math.min(1.0f, Math.max(dropAnim, 0));
- float alpha = (float)Math.cos(dropAnim);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, alpha);
- switch(i) {
- case 0:
- posX = 0.16f + 0.08f * dropAnim;
- posY = 0.16f + 0.08f * dropAnim;
- break;
- case 1:
- posX = -0.16f - 0.08f * dropAnim;
- posY = 0.16f + 0.08f * dropAnim;
- break;
- case 2:
- posX = 0.16f + 0.08f * dropAnim;
- posY = -0.16f - 0.08f * dropAnim;
- break;
- case 3:
- posX = -0.16f - 0.08f * dropAnim;
- posY = -0.16f - 0.08f * dropAnim;
- break;
- }
- GL11.glTranslated(0.5f + posX, 0.02f + Math.sin(time / 12.0D) / 48.0D + (0.28f * dropAnim), 0.5f + posY);
- GL11.glScalef(0.25f, 0.25f, 0.25f);
- Minecraft.getMinecraft().renderEngine.bindTexture(i > 1 ? textureEnemy : texture);
- float dropAngel = 70.0f * dropAnim;
- switch(board.slotChance[i]) {
- case 1:
- model.render(180.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 2:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 3:
- model.render(90.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 4:
- model.render(270.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 5:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 270.0f);
- break;
- case 6:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 90.0f);
- break;
- default:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- }
- GL11.glPopMatrix();
- }
- GL11.glPopMatrix();
- GL11.glEnable(32826);
- GL11.glDisable(3042);
- }
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/78/007fb953b9bc001c1a9f99005529f322 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/78/007fb953b9bc001c1a9f99005529f322
new file mode 100644
index 0000000..3751b34
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/78/007fb953b9bc001c1a9f99005529f322
@@ -0,0 +1,133 @@
+package ab.common.block;
+
+import ab.AdvancedBotany;
+import ab.common.block.tile.TileNidavellirForge;
+import ab.common.block.tile.TileInventory;
+import ab.common.lib.register.RecipeListAB;
+import net.minecraft.block.Block;
+import net.minecraft.block.BlockContainer;
+import net.minecraft.block.material.Material;
+import net.minecraft.client.renderer.texture.IIconRegister;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.MathHelper;
+import net.minecraft.util.Vec3;
+import net.minecraft.world.IBlockAccess;
+import net.minecraft.world.World;
+import vazkii.botania.api.BotaniaAPI;
+import vazkii.botania.api.lexicon.ILexiconable;
+import vazkii.botania.api.lexicon.LexiconEntry;
+
+public class BlockNidavellirForge extends BlockContainer implements ILexiconable {
+
+ public BlockNidavellirForge() {
+ super(Material.iron);
+ this.setCreativeTab(AdvancedBotany.tabAB);
+ this.setHardness(3.0F);
+ this.setResistance(10.0F);
+ this.setStepSound(soundTypeMetal);
+ this.setBlockName("ABPlate");
+ }
+
+ public void setBlockBoundsBasedOnState(IBlockAccess world, int x, int y, int z) {
+ float f = 0.1875F;
+ if(world.getBlockMetadata(x, y, z) % 2 == 0)
+ this.setBlockBounds(f, 0.0F, 0.0F, 1.0f - f, 0.875F, 1.0F);
+ else
+ this.setBlockBounds(0.0F, 0.0F, f, 1.0F, 0.875F, 1.0f - f);
+ }
+
+ public void onBlockPlacedBy(World world, int x, int y, int z, EntityLivingBase liv, ItemStack stack) {
+ int meta = MathHelper.floor_double((double)(liv.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3;
+ world.setBlockMetadataWithNotify(x, y, z, meta, 3);
+ }
+
+ public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int par6, float par7, float par8, float par9) {
+ TileNidavellirForge tile = (TileNidavellirForge)world.getTileEntity(x, y, z);
+ if(player.isSneaking()) {
+ if(tile.getStackInSlot(0) != null) {
+ ItemStack copy = tile.getStackInSlot(0).copy();
+ if(!world.isRemote) {
+ Vec3 vec3 = player.getLook(1.0F).normalize();
+ EntityItem entityitem = new EntityItem(world, player.posX + vec3.xCoord, player.posY + 1.2f, player.posZ + vec3.zCoord, copy);
+ world.spawnEntityInWorld(entityitem);
+ tile.requestUpdate = true;
+ }
+ tile.setInventorySlotContents(0, null);
+ world.func_147453_f(x, y, z, (Block)this);
+ return true;
+ }
+ for(int i = tile.getSizeInventory() - 1; i > 0; i--) {
+ ItemStack stack = tile.getStackInSlot(i);
+ if(stack != null) {
+ ItemStack copy = stack.copy();
+ if(!world.isRemote) {
+ Vec3 vec3 = player.getLook(1.0F).normalize();
+ EntityItem entityitem = new EntityItem(world, player.posX + vec3.xCoord, player.posY + 1.2f, player.posZ + vec3.zCoord, copy);
+ world.spawnEntityInWorld(entityitem);
+ tile.requestUpdate = true;
+ }
+ tile.setInventorySlotContents(i, null);
+ world.func_147453_f(x, y, z, (Block)this);
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public void breakBlock(World world, int x, int y, int z, Block block, int meta) {
+ if(!world.isRemote) {
+ TileInventory inv = (TileInventory)world.getTileEntity(x, y, z);
+ if (inv != null) {
+ for (int i = 0; i < inv.getSizeInventory(); i++) {
+ ItemStack stack = inv.getStackInSlot(i);
+ if (stack != null) {
+ float f = world.rand.nextFloat() * 0.8F + 0.1F;
+ float f1 = world.rand.nextFloat() * 0.8F + 0.1F;
+ float f2 = world.rand.nextFloat() * 0.8F + 0.1F;
+ EntityItem entityitem = new EntityItem(world, (x + f), (y + f1), (z + f2), stack.copy());
+ float f3 = 0.05F;
+ entityitem.motionX = ((float)world.rand.nextGaussian() * f3);
+ entityitem.motionY = ((float)world.rand.nextGaussian() * f3 + 0.2F);
+ entityitem.motionZ = ((float)world.rand.nextGaussian() * f3);
+ if (stack.hasTagCompound())
+ entityitem.getEntityItem().setTagCompound((NBTTagCompound)stack.getTagCompound().copy());
+ world.spawnEntityInWorld(entityitem);
+ }
+ }
+ }
+ }
+ super.breakBlock(world, x, y, z, block, meta);
+ }
+
+ public int getRenderType() {
+ return -1;
+ }
+
+ public boolean renderAsNormalBlock() {
+ return false;
+ }
+
+ public boolean isOpaqueCube() {
+ return false;
+ }
+
+ public boolean getBlocksMovement(IBlockAccess p_149655_1_, int p_149655_2_, int p_149655_3_, int p_149655_4_) {
+ return false;
+ }
+
+ public TileEntity createNewTileEntity(World world, int meta) {
+ return new TileNidavellirForge();
+ }
+
+ public LexiconEntry getEntry(World arg0, int arg1, int arg2, int arg3, EntityPlayer arg4, ItemStack arg5) {
+ return RecipeListAB.advandedAgglomerationPlate;
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/78/40273c26bdbc001c1a9f99005529f322 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/78/40273c26bdbc001c1a9f99005529f322
new file mode 100644
index 0000000..f8edb3e
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/78/40273c26bdbc001c1a9f99005529f322
@@ -0,0 +1,38 @@
+package ab.client.render.block;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.client.render.tile.RenderTileManaContainer;
+import ab.common.block.tile.TileNidavellirForge;
+import ab.common.lib.register.BlockListAB;
+import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
+import net.minecraft.block.Block;
+import net.minecraft.client.renderer.RenderBlocks;
+import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.world.IBlockAccess;
+
+public class RenderBlockNidavellirForge implements ISimpleBlockRenderingHandler {
+
+ public void renderInventoryBlock(Block block, int metadata, int modelID, RenderBlocks renderer) {
+ GL11.glPushMatrix();
+ GL11.glTranslatef(-0.5F, -0.275F, -0.5F);
+ GL11.glScalef(1.3f, 1.3f, 1.3f);
+ TileNidavellirForge forge = new TileNidavellirForge();
+ RenderTileManaContainer.metadata = metadata;
+ TileEntityRendererDispatcher.instance.renderTileEntityAt((TileEntity)forge, 0.0D, 0.0D, 0.0D, 0.0F);
+ GL11.glPopMatrix();
+ }
+
+ public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId, RenderBlocks renderer) {
+ return false;
+ }
+
+ public int getRenderId() {
+ return BlockListAB.blockABPlateRI;
+ }
+
+ public boolean shouldRender3DInInventory(int modelId) {
+ return true;
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/78/60f4473308ad001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/78/60f4473308ad001c1d59e42be7477558
deleted file mode 100644
index 5d4e678..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/78/60f4473308ad001c1d59e42be7477558
+++ /dev/null
@@ -1,229 +0,0 @@
-package ab.common.block.tile;
-
-import java.util.List;
-
-import ab.api.IRenderHud;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.gui.ScaledResolution;
-import net.minecraft.client.renderer.RenderHelper;
-import net.minecraft.client.renderer.entity.RenderItem;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.init.Items;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.ChatComponentTranslation;
-import net.minecraft.util.ChatStyle;
-import net.minecraft.util.EnumChatFormatting;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.common.block.tile.TileMod;
-
-public class TileGameBoard extends TileMod implements IRenderHud {
-
- public String[] playersName = new String[] { "", "" };
- public byte[] slotChance = new byte[] { 0, 0, 0, 0 };
- protected int botTick = -1;
- public int endGameTick = -1;
- protected boolean requestUpdate;
- public boolean isSingleGame = true;
- public int clientTick[] = new int[] { 0, 0, 0, 0 };
- public static final ItemStack headRender = new ItemStack(Items.skull, 1, 3);
-
- public void updateEntity() {
- if(botTick > 0)
- botTick--;
- if(endGameTick > 0)
- endGameTick--;
- if(!worldObj.isRemote)
- updateServer();
- else
- updateAnimationTicks();
- }
-
- public void updateAnimationTicks() {
- for(int i = 0; i < slotChance.length; i++)
- if(slotChance[i] > 0)
- clientTick[i]++;
- else
- clientTick[i] = 0;
- }
-
- protected void updateServer() {
- if(hasGame() && endGameTick == 0)
- finishGame();
- if(requestUpdate)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- boolean hasUpdate = false;
- if(isSingleGame) {
- if(botTick == 0 && hasGame()) {
- for(int i = 2; i < 4; i++) {
- if(slotChance[i] == 0) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = -1;
- hasUpdate = true;
- break;
- }
- }
- }
- } else {
- if(botTick == 0 && hasGame())
- endGameTick = 0;
- }
- requestUpdate = hasUpdate;
- }
-
- public void setPlayer(EntityPlayer player) {
- if(isSingleGame) {
- playersName[0] = player.getCommandSenderName();
- playersName[1] = "";
- requestUpdate = true;
- botTick = 8;
- } else {
- if(playersName[0].isEmpty())
- playersName[0] = player.getCommandSenderName();
- else if(!playersName[0].equals(player.getCommandSenderName()))
- playersName[1] = player.getCommandSenderName();
- requestUpdate = true;
- }
- }
-
- public boolean dropDice(EntityPlayer player) {
- if(isSingleGame) {
- if(player.getCommandSenderName().equals(playersName[0]) && botTick == -1) {
- boolean isLastDice = false;
- boolean hasDrop = false;
- for(int i = 0; i < 2; i++) {
- if(slotChance[i] == 0) {
- hasDrop = true;
- if(!worldObj.isRemote) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = 18;
- requestUpdate = true;
- if(i == 1)
- isLastDice = true;
- }
- break;
- }
- }
- if(isLastDice)
- endGameTick = 28;
- return hasDrop;
- }
- } else {
- for(int i = 0; i < playersName.length; i++) {
- if(player.getCommandSenderName().equals(playersName[i])) {
- boolean hasDrop = false;
- for(int j = i * 2; j < (i + 1) * 2; j++) {
- if(slotChance[j] == 0) {
- hasDrop = true;
- if(!worldObj.isRemote) {
- slotChance[j] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = playersName[1].isEmpty() ? 240 : 1200;
- if(hasFullDice())
- endGameTick = 28;
- requestUpdate = true;
- }
- break;
- }
- }
- return hasDrop;
- }
- }
- }
- return false;
- }
-
- public boolean hasFullDice() {
- boolean hasFull = false;
- for(int i = 0; i < slotChance.length; i++) {
- if(!(slotChance[i] > 0))
- return false;
- hasFull = slotChance[i] > 0;
- }
- return hasFull;
- }
-
- public boolean hasGame() {
- if(isSingleGame)
- return !playersName[0].isEmpty();
- else
- for(int i = 0; i < playersName.length; i++)
- if(!playersName[i].isEmpty())
- return true;
- return false;
- }
-
- public void finishGame() {
- if(worldObj.isRemote)
- return;
- if(isSingleGame) {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won");
- else if((slotChance[0] + slotChance[1]) == (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " not win");
- else
- sendNearMessage(playersName[0] + " you Lose!");
- resetGame();
- } else {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won!");
- else if((slotChance[0] + slotChance[1]) == (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " " + playersName[1] + "we are not win");
- else
- sendNearMessage(playersName[1] + " you Won!");
- resetGame();
- }
- }
-
- public void sendNearMessage(String text) {
- List players = this.worldObj.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(this.xCoord, this.yCoord, this.zCoord, (this.xCoord + 1), (this.yCoord + 1), (this.zCoord + 1)).expand(3.5f, 3.5f, 3.5f));
- for(EntityPlayer player : players) {
- if(player != null)
- player.addChatMessage((new ChatComponentTranslation(text, new Object[] {})).setChatStyle((new ChatStyle()).setColor(EnumChatFormatting.DARK_GREEN)));
- }
- }
-
- public void resetGame() {
- playersName[0] = "";
- playersName[1] = "";
- for(int i = 0; i < slotChance.length; i++)
- slotChance[i] = 0;
- botTick = -1;
- endGameTick = -1;
- requestUpdate = true;
- }
-
- public void renderHud(Minecraft mc, ScaledResolution res) {
- int x = res.getScaledWidth() / 2 - 7;
- int y = res.getScaledHeight() / 2 + 12;
- RenderHelper.enableGUIStandardItemLighting();
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, headRender, x - (!isSingleGame ? 1 : 0), y - (!isSingleGame ? 1 : 0));
- if(!isSingleGame)
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, headRender, x + 3, y + 3);
- RenderHelper.disableStandardItemLighting();
- }
-
- public void writeCustomNBT(NBTTagCompound cmp) {
- super.writeCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- cmp.setString("playerName" + i, playersName[i]);
- cmp.setByteArray("slotChance", slotChance);
- cmp.setInteger("botTick", botTick);
- cmp.setInteger("endGameTick", endGameTick);
- cmp.setBoolean("requestUpdate", requestUpdate);
- cmp.setBoolean("isSingleGame", isSingleGame);
- }
-
- public void readCustomNBT(NBTTagCompound cmp) {
- super.readCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- playersName[i] = cmp.getString("playerName" + i);
- botTick = cmp.getInteger("botTick");
- endGameTick = cmp.getInteger("endGameTick");
- slotChance = cmp.getByteArray("slotChance");
- requestUpdate = cmp.getBoolean("requestUpdate");
- isSingleGame = cmp.getBoolean("isSingleGame");
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/78/e0715a20babc001c1a9f99005529f322 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/78/e0715a20babc001c1a9f99005529f322
new file mode 100644
index 0000000..87f4ac9
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/78/e0715a20babc001c1a9f99005529f322
@@ -0,0 +1,135 @@
+package ab.common.block;
+
+import ab.AdvancedBotany;
+import ab.common.block.tile.TileNidavellirForge;
+import ab.common.block.tile.TileInventory;
+import ab.common.lib.register.RecipeListAB;
+import net.minecraft.block.Block;
+import net.minecraft.block.BlockContainer;
+import net.minecraft.block.material.Material;
+import net.minecraft.client.renderer.texture.IIconRegister;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.MathHelper;
+import net.minecraft.util.Vec3;
+import net.minecraft.world.IBlockAccess;
+import net.minecraft.world.World;
+import vazkii.botania.api.BotaniaAPI;
+import vazkii.botania.api.lexicon.ILexiconable;
+import vazkii.botania.api.lexicon.LexiconEntry;
+
+public class BlockNidavellirForge extends BlockContainer implements ILexiconable {
+
+ public BlockNidavellirForge() {
+ super(Material.iron);
+ this.setCreativeTab(AdvancedBotany.tabAB);
+ this.setHardness(3.0F);
+ this.setResistance(10.0F);
+ this.setStepSound(soundTypeMetal);
+ this.setBlockName("ABPlate");
+ }
+
+ public void setBlockBoundsBasedOnState(IBlockAccess world, int x, int y, int z) {
+ float f = 0.1875F;
+ float f1 = 0.0625F;
+ switch(world.getBlockMetadata(x, y, z)) {
+ case 0: this.setBlockBounds(f, 0.0F, 0.0F, 1.0F - f, 0.75F, 1.0F);
+ break;
+ default: this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
+ }
+ }
+
+ public void onBlockPlacedBy(World world, int x, int y, int z, EntityLivingBase liv, ItemStack stack) {
+ int meta = MathHelper.floor_double((double)(liv.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3;
+ world.setBlockMetadataWithNotify(x, y, z, meta, 3);
+ }
+
+ public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int par6, float par7, float par8, float par9) {
+ TileNidavellirForge tile = (TileNidavellirForge)world.getTileEntity(x, y, z);
+ if(player.isSneaking()) {
+ if(tile.getStackInSlot(0) != null) {
+ ItemStack copy = tile.getStackInSlot(0).copy();
+ if(!world.isRemote) {
+ Vec3 vec3 = player.getLook(1.0F).normalize();
+ EntityItem entityitem = new EntityItem(world, player.posX + vec3.xCoord, player.posY + 1.2f, player.posZ + vec3.zCoord, copy);
+ world.spawnEntityInWorld(entityitem);
+ tile.requestUpdate = true;
+ }
+ tile.setInventorySlotContents(0, null);
+ world.func_147453_f(x, y, z, (Block)this);
+ return true;
+ }
+ for(int i = tile.getSizeInventory() - 1; i > 0; i--) {
+ ItemStack stack = tile.getStackInSlot(i);
+ if(stack != null) {
+ ItemStack copy = stack.copy();
+ if(!world.isRemote) {
+ Vec3 vec3 = player.getLook(1.0F).normalize();
+ EntityItem entityitem = new EntityItem(world, player.posX + vec3.xCoord, player.posY + 1.2f, player.posZ + vec3.zCoord, copy);
+ world.spawnEntityInWorld(entityitem);
+ tile.requestUpdate = true;
+ }
+ tile.setInventorySlotContents(i, null);
+ world.func_147453_f(x, y, z, (Block)this);
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public void breakBlock(World world, int x, int y, int z, Block block, int meta) {
+ if(!world.isRemote) {
+ TileInventory inv = (TileInventory)world.getTileEntity(x, y, z);
+ if (inv != null) {
+ for (int i = 0; i < inv.getSizeInventory(); i++) {
+ ItemStack stack = inv.getStackInSlot(i);
+ if (stack != null) {
+ float f = world.rand.nextFloat() * 0.8F + 0.1F;
+ float f1 = world.rand.nextFloat() * 0.8F + 0.1F;
+ float f2 = world.rand.nextFloat() * 0.8F + 0.1F;
+ EntityItem entityitem = new EntityItem(world, (x + f), (y + f1), (z + f2), stack.copy());
+ float f3 = 0.05F;
+ entityitem.motionX = ((float)world.rand.nextGaussian() * f3);
+ entityitem.motionY = ((float)world.rand.nextGaussian() * f3 + 0.2F);
+ entityitem.motionZ = ((float)world.rand.nextGaussian() * f3);
+ if (stack.hasTagCompound())
+ entityitem.getEntityItem().setTagCompound((NBTTagCompound)stack.getTagCompound().copy());
+ world.spawnEntityInWorld(entityitem);
+ }
+ }
+ }
+ }
+ super.breakBlock(world, x, y, z, block, meta);
+ }
+
+ public int getRenderType() {
+ return -1;
+ }
+
+ public boolean renderAsNormalBlock() {
+ return false;
+ }
+
+ public boolean isOpaqueCube() {
+ return false;
+ }
+
+ public boolean getBlocksMovement(IBlockAccess p_149655_1_, int p_149655_2_, int p_149655_3_, int p_149655_4_) {
+ return false;
+ }
+
+ public TileEntity createNewTileEntity(World world, int meta) {
+ return new TileNidavellirForge();
+ }
+
+ public LexiconEntry getEntry(World arg0, int arg1, int arg2, int arg3, EntityPlayer arg4, ItemStack arg5) {
+ return RecipeListAB.advandedAgglomerationPlate;
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/78/f03d47e1eaac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/78/f03d47e1eaac001c1d59e42be7477558
deleted file mode 100644
index 4b0c21f..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/78/f03d47e1eaac001c1d59e42be7477558
+++ /dev/null
@@ -1,194 +0,0 @@
-package ab.common.block.tile;
-
-import java.util.List;
-
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.ChatComponentTranslation;
-import net.minecraft.util.ChatStyle;
-import net.minecraft.util.EnumChatFormatting;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.common.block.tile.TileMod;
-
-public class TileGameBoard extends TileMod {
-
- protected String[] playersName = new String[] { "", "" };
- public byte[] slotChance = new byte[] { 0, 0, 0, 0 };
- protected int botTick = -1;
- public int endGameTick = -1;
- protected boolean requestUpdate;
- public boolean isSingleGame = false;
- public int clientTick[] = new int[] { 0, 0, 0, 0};
-
- public void updateEntity() {
- if(botTick > 0)
- botTick--;
- if(endGameTick > 0)
- endGameTick--;
- if(!worldObj.isRemote)
- updateServer();
- else
- updateClient();
- }
-
- protected void updateClient() {
- for(int i = 0; i < slotChance.length; i++)
- if(slotChance[i] > 0)
- clientTick[i]++;
- else
- clientTick[i] = 0;
- }
-
- protected void updateServer() {
- if(requestUpdate)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- boolean hasUpdate = false;
- if(isSingleGame && botTick == 0 && hasGame()) {
- for(int i = 2; i < 4; i++) {
- if(slotChance[i] == 0) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = -1;
- hasUpdate = true;
- break;
- }
- }
- }
- if(hasGame() && endGameTick == 0)
- finishGame();
- requestUpdate = hasUpdate;
- }
-
- public void setPlayer(EntityPlayer player) {
- if(isSingleGame) {
- playersName[0] = player.getCommandSenderName();
- playersName[1] = "";
- requestUpdate = true;
- botTick = 8;
- } else {
- if(playersName[0].isEmpty()) {
- playersName[0] = player.getCommandSenderName();
- requestUpdate = true;
- } else if(!playersName[0].equals(player.getCommandSenderName())) {
- playersName[1] = player.getCommandSenderName();
- requestUpdate = true;
- }
- }
- }
-
- public boolean dropDice(EntityPlayer player) {
- if(isSingleGame) {
- if(player.getCommandSenderName().equals(playersName[0]) && botTick == -1) {
- boolean isLastDice = false;
- for(int i = 0; i < 2; i++) {
- if(slotChance[i] == 0 && !worldObj.isRemote) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = 18;
- requestUpdate = true;
- if(i == 1)
- isLastDice = true;
- break;
- }
- }
- if(isLastDice)
- endGameTick = 28;
- return true;
- }
- } else {
- for(int i = 0; i < playersName.length; i++) {
- if(player.getCommandSenderName().equals(playersName[i])) {
- for(int j = i * 2; j < (i + 1) * 2; j++) {
- if(slotChance[j] == 0 && !worldObj.isRemote) {
- slotChance[j] = (byte)(worldObj.rand.nextInt(6) + 1);
- requestUpdate = true;
- if(hasFullDice())
- endGameTick = 28;
- break;
- }
- }
- return true;
- }
- }
- }
- return false;
- }
-
- public boolean hasFullDice() {
- boolean hasFull = false;
- for(int i = 0; 0 < slotChance.length; i++)
- hasFull = slotChance[i] > 0;
- return hasFull;
- }
-
- public boolean hasGame() {
- if(isSingleGame)
- return !playersName[0].isEmpty();
- return !playersName[0].isEmpty() && !playersName[1].isEmpty();
- }
-
- public void finishGame() {
- if(worldObj.isRemote)
- return;
- if(isSingleGame) {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won");
- else if((slotChance[0] + slotChance[1]) == (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " not win");
- else
- sendNearMessage(playersName[0] + " you Lose!");
- resetGame();
- requestUpdate = true;
- } else {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won!");
- else if((slotChance[0] + slotChance[1]) == (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " " + playersName[1] + "we are not win");
- else
- sendNearMessage(playersName[1] + " you Won!");
- resetGame();
- requestUpdate = true;
- }
- }
-
- public void sendNearMessage(String text) {
- List players = this.worldObj.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(this.xCoord, this.yCoord, this.zCoord, (this.xCoord + 1), (this.yCoord + 1), (this.zCoord + 1)).expand(3.5f, 3.5f, 3.5f));
- for(EntityPlayer player : players) {
- if(player != null)
- player.addChatMessage((new ChatComponentTranslation(text, new Object[] {})).setChatStyle((new ChatStyle()).setColor(EnumChatFormatting.DARK_GREEN)));
- }
- }
-
- public void resetGame() {
- playersName[0] = "";
- playersName[1] = "";
- for(int i = 0; i < slotChance.length; i++)
- slotChance[i] = 0;
- requestUpdate = true;
- botTick = -1;
- endGameTick = -1;
- }
-
- public void writeCustomNBT(NBTTagCompound cmp) {
- super.writeCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- cmp.setString("playerName" + i, playersName[i]);
- cmp.setByteArray("slotChance", slotChance);
- cmp.setInteger("botTick", botTick);
- cmp.setInteger("endGameTick", endGameTick);
- cmp.setBoolean("requestUpdate", requestUpdate);
- cmp.setBoolean("isSingleGame", isSingleGame);
- }
-
- public void readCustomNBT(NBTTagCompound cmp) {
- super.readCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- playersName[i] = cmp.getString("playerName" + i);
- botTick = cmp.getInteger("botTick");
- endGameTick = cmp.getInteger("endGameTick");
- slotChance = cmp.getByteArray("slotChance");
- requestUpdate = cmp.getBoolean("requestUpdate");
- isSingleGame = cmp.getBoolean("isSingleGame");
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/7a/00d7f0c702c0001c1965b122d2f8f403 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/7a/00d7f0c702c0001c1965b122d2f8f403
new file mode 100644
index 0000000..e9e70da
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/7a/00d7f0c702c0001c1965b122d2f8f403
@@ -0,0 +1,158 @@
+package ab.common.item.relic;
+
+import java.awt.Color;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.common.core.handler.NetworkHandler;
+import ab.common.lib.register.ItemListAB;
+import net.minecraft.block.Block;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.util.MathHelper;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.api.mana.ManaItemHandler;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class ItemSphereNavigation extends ItemModRelic {
+
+ public static final int rangeSearch = 16;
+ public static final int maxCooldown = 112;
+ public static final int manaCost = 1750;
+
+ public ItemSphereNavigation() {
+ super("sphereNavigation");
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int pos, boolean equipped) {
+ super.onUpdate(stack, world, entity, pos, equipped);
+ if(entity instanceof EntityPlayer) {
+ EntityPlayer player = (EntityPlayer)entity;
+ if(!world.isRemote && getFindBlock(stack) != null && canWork(stack) && ManaItemHandler.requestManaExactForTool(stack, player, manaCost, true)) {
+ setMaxTick(stack);
+ NetworkHandler.sendPacketToFindBlocks((EntityPlayerMP)player, getFindBlock(stack), getFindMeta(stack));
+ }
+ }
+ }
+
+ public static void findBlocks(World world, Block findBlock, int findMeta, EntityPlayer player) {
+ if(world.isRemote) {
+ ItemStack renderStack = null;
+ int maxFindedBlocks = 25;
+ int findedBlocks = 0;
+ label1703:
+ for(int y = -rangeSearch * 2; y < rangeSearch; y++) {
+ for(int x = -rangeSearch; x < rangeSearch; x++) {
+ if(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks))
+ continue;
+ for(int z = -rangeSearch; z < rangeSearch; z++) {
+ if(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks))
+ continue;
+ else if(findedBlocks >= maxFindedBlocks)
+ break label1703;
+ int posX = MathHelper.floor_double(player.posX) + x;
+ int posY = MathHelper.floor_double(player.posY) + y;
+ int posZ = MathHelper.floor_double(player.posZ) + z;
+ if(posY < 0)
+ continue;
+ Block block = world.getBlock(posX, posY, posZ);
+ if(!Block.isEqualTo(block, findBlock))
+ continue;
+ int meta = world.getBlockMetadata(posX, posY, posZ);
+ if(meta == findMeta) {
+ if(renderStack == null)
+ renderStack = getRenderStackForBlock(world, block, meta, posX, posY, posZ);
+ findedBlocks++;
+ float maxAge = 2.7f + (0.5f * (float)(Math.random()));
+ Botania.proxy.setWispFXDepthTest(false);
+ Botania.proxy.setWispFXDistanceLimit(false);
+ float far = 120.0f - (((Math.abs(x) + Math.min(rangeSearch, Math.abs(y)) + Math.abs(z)) / (rangeSearch * 4.0f)) * 120.0f);
+ if(far <= 60)
+ far *= 0.15f;
+ Color color = new Color(Color.HSBtoRGB(far / 360.0f, 0.9f + (float)(Math.random() * 0.1f), 1.0f));
+ for(int i = 0; i < 11; i++)
+ Botania.proxy.wispFX(world, posX + 0.5f + (Math.random() - 0.5f), posY + 0.5f + (Math.random() - 0.5f), posZ + 0.5f + (Math.random() - 0.5f), color.getRed() / 100.0f, color.getGreen() / 100.0f, color.getBlue() / 100.0f, 0.3f + (float)(Math.random() * 0.25f), 0.0f, maxAge);
+ Botania.proxy.setWispFXDistanceLimit(true);
+ Botania.proxy.setWispFXDepthTest(true);
+ }
+ }
+ }
+ }
+ if(renderStack != null)
+ ItemsRemainingRender.set(renderStack, "íàéäåíî: " + findedBlocks);
+ }
+ }
+
+ public static ItemStack getRenderStackForBlock(World world, Block block, int meta, int x, int y, int z) {
+ if(block != null) {
+ Item item = Item.getItemFromBlock(block);
+ if(item != null) {
+ ItemStack findStack = new ItemStack(block, 1, meta);
+ if(findStack != null)
+ return findStack;
+ } else {
+ Item item1 = block.getItem(world, x, y, z);
+ if(item1 != null) {
+ ItemStack findStack = new ItemStack(item1, 1, meta);
+ if(findStack != null)
+ return findStack;
+ }
+ }
+ }
+ return null;
+ }
+
+ public boolean onItemUse(ItemStack stack, EntityPlayer p, World world, int x, int y, int z, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
+ if(p.isSneaking()) {
+ Block block = world.getBlock(x, y, z);
+ if(block != null) {
+ int meta = world.getBlockMetadata(x, y, z);
+ ItemStack findStack = getRenderStackForBlock(world, block, meta, x, y, z);
+ if(findStack != null) {
+ setFindBlock(stack, block, meta);
+ if(world.isRemote)
+ ItemsRemainingRender.set(findStack, findStack.getDisplayName());
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public boolean canWork(ItemStack stack) {
+ int tick = ItemNBTHelper.getInt(stack, "cooldown", 0);
+ if(tick == 0)
+ return true;
+ else if(tick > 0)
+ ItemNBTHelper.setInt(stack, "cooldown", tick - 1);
+ return false;
+ }
+
+ public void setMaxTick(ItemStack stack) {
+ ItemNBTHelper.setInt(stack, "cooldown", maxCooldown);
+ }
+
+ public static void setFindBlock(ItemStack stack, Block block, int meta) {
+ ItemNBTHelper.setInt(stack, "findBlockID", Block.getIdFromBlock(block));
+ ItemNBTHelper.setInt(stack, "findBlockMeta", meta);
+ }
+
+ public static Block getFindBlock(ItemStack stack) {
+ int blockID = ItemNBTHelper.getInt(stack, "findBlockID", 0);
+ if(blockID == 0)
+ return null;
+ else
+ return Block.getBlockById(blockID);
+ }
+
+ public static int getFindMeta(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "findBlockMeta", -1);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/7a/60cc440734b0001c1746c57a5fe46fd3 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/7a/60cc440734b0001c1746c57a5fe46fd3
deleted file mode 100644
index 18e5949..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/7a/60cc440734b0001c1746c57a5fe46fd3
+++ /dev/null
@@ -1,50 +0,0 @@
-package ab.common.item.relic;
-
-import java.lang.reflect.InvocationTargetException;
-import java.util.List;
-
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import cpw.mods.fml.relauncher.ReflectionHelper;
-import net.minecraft.entity.EntityLivingBase;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.item.ItemStack;
-import net.minecraft.world.World;
-import net.minecraftforge.common.MinecraftForge;
-import net.minecraftforge.event.entity.living.LivingDropsEvent;
-
-public class ItemSehrimnirHide extends ItemModRelic {
-
- public static final String[] dropFewItems = new String[] { "dropFewItems" };
-
- public ItemSehrimnirHide() {
- super("sehrimnirHide");
- MinecraftForge.EVENT_BUS.register(this);
- }
-
- @SubscribeEvent
- public void onPlayerAttack(LivingDropsEvent event) {
-
-// .invoke(event.entityLiving, new Object[] {true, 5});
- EntityLivingBase liv = event.entityLiving;
- try {
- ReflectionHelper.findMethod(EntityLivingBase.class, liv, dropFewItems, new Class[0]).invoke(liv, true, 5);
- } catch (Exception e) {
- e.printStackTrace();
- }
-
-
-// List items = event.drops;
-// World world = event.entityLiving.worldObj;
-// double posX = event.entityLiving.posX;
-// double posY = event.entityLiving.posY;
-// double posZ = event.entityLiving.posZ;
-// for(EntityItem entity : items) {
-// if(!world.isRemote) {
-// ItemStack loot = entity.getEntityItem().copy();
-// loot.stackSize = Math.max(1, (int)(loot.stackSize / 1.5f));
-// EntityItem item = new EntityItem(world, posX, posY, posZ, loot);
-// world.spawnEntityInWorld(item);
-// }
-// }
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/7b/1039ef50dfad001c1bd4eaa9a9be6b81 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/7b/1039ef50dfad001c1bd4eaa9a9be6b81
deleted file mode 100644
index f6ca28e..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/7b/1039ef50dfad001c1bd4eaa9a9be6b81
+++ /dev/null
@@ -1,17 +0,0 @@
-package ab.api;
-
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.stats.Achievement;
-import vazkii.botania.api.item.IRelic;
-
-public class AchievementAB extends Achievement {
-
- public AchievementAB(String name, int x, int y, Item icon, Achievement parent) {
- super("achievement.ab:" + name, "ab:" + name, x, y, new ItemStack(icon), parent);
- AdvancedBotanyAPI.achievements.add(this);
- registerStat();
- if(icon instanceof IRelic)
- ((IRelic)icon).setBindAchievement(this);
- }
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/7b/10b35ce5b4b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/7b/10b35ce5b4b1001c19bf8a91ac37238b
deleted file mode 100644
index 71af1d7..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/7b/10b35ce5b4b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,89 +0,0 @@
-package ab.common.item;
-
-import java.util.List;
-
-import ab.common.core.CommonHelper;
-import ab.common.lib.register.BlockListAB;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.renderer.texture.IIconRegister;
-import net.minecraft.entity.Entity;
-import net.minecraft.entity.item.EntityFallingBlock;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.IIcon;
-import net.minecraft.world.World;
-import vazkii.botania.common.core.helper.ItemNBTHelper;
-
-public class ItemAntigravityCharm extends ItemMod {
-
- public static IIcon[] icons;
-
- public ItemAntigravityCharm() {
- super("antigravityCharm");
- this.setMaxStackSize(1);
- this.setNoRepair();
- }
-
- public void registerIcons(IIconRegister ir) {
- icons = new IIcon[2];
- for(int i = 0; i < icons.length; i++) {
- icons[i] = icons[i] = ir.registerIcon("ab:" + "itemAntigravityCharm_" + i);
- }
- }
-
- @SideOnly(Side.CLIENT)
- public IIcon getIcon(ItemStack stack, int pass) {
- int iconID = Math.min(1, pass);
- return this.icons[iconID];
- }
-
- public boolean requiresMultipleRenderPasses() {
- return true;
- }
-
- public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
- if(player.isSneaking())
- ItemNBTHelper.setBoolean(stack, "isActive", !ItemNBTHelper.getBoolean(stack, "isActive", true));
- return stack;
- }
-
- public void onUpdate(ItemStack stack, World world, Entity entity, int par4, boolean inHand) {
- if(entity instanceof EntityPlayer) {
- EntityPlayer player = (EntityPlayer)entity;
- if(ItemNBTHelper.getBoolean(stack, "isActive", true)) {
- double posX = player.posX;
- double posY = player.posY;
- double posZ = player.posZ;
- final AxisAlignedBB asis = AxisAlignedBB.getBoundingBox(posX, posY, posZ, posX + 1, posY + 1, posZ + 1).expand(8, 8, 8);
- final List listEntity = world.getEntitiesWithinAABB(EntityFallingBlock.class, asis);
- for(EntityFallingBlock fallBlock : listEntity) {
- int x = (int) (fallBlock.posX >= 0 ? fallBlock.posX : fallBlock.posX - 1);
- int y = (int) fallBlock.posY;
- int z = (int) (fallBlock.posZ >= 0 ? fallBlock.posZ : fallBlock.posZ - 1);
- Block block = fallBlock.func_145805_f();
- fallBlock.setInvisible(true);
- if(!world.isRemote) {
-// boolean first = CommonHelper.setBlock(world, block, fallBlock.field_145814_a, x, y, z, (EntityPlayerMP)player, true);
-// boolean second = CommonHelper.setBlock(world, BlockListAB.blockAntigravitation, 0, x, y - 1, z, (EntityPlayerMP)player, true);
-// System.out.println(first + " " + second);
- setBlock(world, x, y, z, block, fallBlock.field_145814_a);
- setBlock(world, x, y - 1, z, BlockListAB.blockAntigravitation, 0);
- }
- fallBlock.setDead();
- }
- }
- }
- }
-
- private void setBlock(World world, int x, int y, int z, Block block, int meta) {
- if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256) {
- world.setBlock(x, y, z, block, meta, 3);
- }
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/7b/b0c67e70feac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/7b/b0c67e70feac001c1d59e42be7477558
deleted file mode 100644
index 7d7c074..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/7b/b0c67e70feac001c1d59e42be7477558
+++ /dev/null
@@ -1,113 +0,0 @@
-package ab.common.block;
-
-import java.util.List;
-
-import ab.AdvancedBotany;
-import ab.common.block.tile.TileBoardFate;
-import ab.common.block.tile.TileGameBoard;
-import ab.common.block.tile.TileInventory;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockContainer;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.renderer.texture.IIconRegister;
-import net.minecraft.creativetab.CreativeTabs;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.IIcon;
-import net.minecraft.world.World;
-
-public class BlockBoardFate extends BlockContainer {
-
- protected IIcon[] iconsFate;
- protected IIcon[] iconsBoard;
-
- public BlockBoardFate() {
- super(Material.iron);
- this.setCreativeTab(AdvancedBotany.tabAB);
- this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.1875F, 1.0F);
- this.setHardness(3.0F);
- this.setResistance(10.0F);
- this.setStepSound(soundTypeMetal);
- this.setBlockName("boardFate");
- }
-
- public void getSubBlocks(Item par1, CreativeTabs par2CreativeTabs, List list) {
- for(int i = 0; i < 2; i++)
- list.add(new ItemStack(par1, 1, i));
- }
-
- public void registerBlockIcons(IIconRegister ir) {
- this.iconsFate = new IIcon[3];
- this.iconsBoard = new IIcon[3];
- for(int i = 0; i < iconsFate.length; i++)
- this.iconsFate[i] = ir.registerIcon("ab:boardFate_" + i);
- for(int i = 0; i < iconsBoard.length; i++)
- this.iconsBoard[i] = ir.registerIcon("ab:gameBoard_" + i);
- }
-
- public IIcon getIcon(int side, int meta) {
- if(meta == 0)
- return this.iconsBoard[Math.min(2, side)];
- else
- return this.iconsFate[Math.min(2, side)];
- }
-
- public boolean isOpaqueCube() {
- return false;
- }
-
- public boolean renderAsNormalBlock() {
- return false;
- }
-
- public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float par7, float par8, float par9) {
- int meta = world.getBlockMetadata(x, y, z);
- if(meta == 0) {
- TileGameBoard tile = (TileGameBoard)world.getTileEntity(x, y, z);
- if(!tile.hasGame())
- tile.setPlayer(player);
- else if(!tile.isSingleGame && tile.playersName[1].isEmpty() && !tile.playersName[0].equals(player.getCommandSenderName()))
- tile.setPlayer(player);
- else {
- return tile.dropDice(player);
- }
- return false;
- } else {
- TileBoardFate tile = (TileBoardFate)world.getTileEntity(x, y, z);
- return tile.spawnRelic(player);
- }
- }
-
- public TileEntity createNewTileEntity(World world, int meta) {
- return meta == 0 ? new TileGameBoard() : new TileBoardFate();
- }
-
- public void breakBlock(World world, int x, int y, int z, Block block, int meta) {
- if(!world.isRemote && meta == 1) {
- TileInventory inv = (TileInventory)world.getTileEntity(x, y, z);
- if (inv != null) {
- for (int i = 0; i < inv.getSizeInventory(); i++) {
- ItemStack stack = inv.getStackInSlot(i);
- if (stack != null) {
- float f = world.rand.nextFloat() * 0.8F + 0.1F;
- float f1 = world.rand.nextFloat() * 0.8F + 0.1F;
- float f2 = world.rand.nextFloat() * 0.8F + 0.1F;
- EntityItem entityitem = new EntityItem(world, (x + f), (y + f1), (z + f2), stack.copy());
- float f3 = 0.05F;
- entityitem.motionX = ((float)world.rand.nextGaussian() * f3);
- entityitem.motionY = ((float)world.rand.nextGaussian() * f3 + 0.2F);
- entityitem.motionZ = ((float)world.rand.nextGaussian() * f3);
- if (stack.hasTagCompound())
- entityitem.getEntityItem().setTagCompound((NBTTagCompound)stack.getTagCompound().copy());
- world.spawnEntityInWorld(entityitem);
- }
- }
- }
- }
- super.breakBlock(world, x, y, z, block, meta);
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/7c/10693b3f9eb1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/7c/10693b3f9eb1001c19bf8a91ac37238b
deleted file mode 100644
index 380be0a..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/7c/10693b3f9eb1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,243 +0,0 @@
-package ab.client.core;
-
-import java.awt.Color;
-import java.nio.FloatBuffer;
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.gui.ScaledResolution;
-import net.minecraft.client.renderer.ActiveRenderInfo;
-import net.minecraft.client.renderer.GLAllocation;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.RenderHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.entity.RenderItem;
-import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.IIcon;
-import net.minecraft.util.ResourceLocation;
-import net.minecraft.util.StatCollector;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-import vazkii.botania.client.core.handler.HUDHandler;
-import vazkii.botania.common.block.ModBlocks;
-import vazkii.botania.common.core.helper.Vector3;
-
-public class ClientHelper {
-
- public static final ResourceLocation miscHuds = new ResourceLocation("ab:textures/misc/miscHuds.png");
- private static final ResourceLocation field_147529_c = new ResourceLocation("textures/environment/end_sky.png");
- private static final ResourceLocation field_147526_d = new ResourceLocation("textures/entity/end_portal.png");
- private static final Random field_147527_e = new Random(31100L);
- public static Minecraft mc = Minecraft.getMinecraft();
- private static FloatBuffer field_147528_b = GLAllocation.createDirectFloatBuffer(16);
-
- public static void renderCosmicBackground() {
- GL11.glDisable(GL11.GL_LIGHTING);
- field_147527_e.setSeed(31100L);
- float f4 = 0.24F;
- for (int i = 0; i < 16; i++) {
- GL11.glPushMatrix();
- float f5 = (16 - i);
- float f6 = 0.0625F;
- float f7 = 1.0F / (f5 + 1.0F);
- if (i == 0) {
- mc.renderEngine.bindTexture(field_147529_c);
- f7 = 0.1F;
- f5 = 65.0F;
- f6 = 0.125F;
- GL11.glEnable(GL11.GL_BLEND);
- GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
- }
- if (i == 1) {
- mc.renderEngine.bindTexture(field_147526_d);
- GL11.glEnable(GL11.GL_BLEND);
- GL11.glBlendFunc(GL11.GL_ONE, GL11.GL_ONE);
- f6 = 0.5F;
- }
- GL11.glTranslatef(0.0f, 1.5f, 0.0f);
- GL11.glTexGeni(GL11.GL_S, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_OBJECT_LINEAR);
- GL11.glTexGeni(GL11.GL_T, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_OBJECT_LINEAR);
- GL11.glTexGeni(GL11.GL_R, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_OBJECT_LINEAR);
- GL11.glTexGeni(GL11.GL_Q, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_EYE_LINEAR);
- GL11.glTexGen(GL11.GL_S, GL11.GL_OBJECT_PLANE, func_147525_a(1.0F, 0.0F, 0.0F, 0.0F));
- GL11.glTexGen(GL11.GL_T, GL11.GL_OBJECT_PLANE, func_147525_a(0.0F, 0.0F, 1.0F, 0.0F));
- GL11.glTexGen(GL11.GL_R, GL11.GL_OBJECT_PLANE, func_147525_a(0.0F, 0.0F, 0.0F, 1.0F));
- GL11.glTexGen(GL11.GL_Q, GL11.GL_EYE_PLANE, func_147525_a(0.0F, 1.0F, 0.0F, 0.0F));
- GL11.glEnable(GL11.GL_TEXTURE_GEN_S);
- GL11.glEnable(GL11.GL_TEXTURE_GEN_T);
- GL11.glEnable(GL11.GL_TEXTURE_GEN_R);
- GL11.glEnable(GL11.GL_TEXTURE_GEN_Q);
- GL11.glPopMatrix();
- GL11.glMatrixMode(GL11.GL_TEXTURE);
- GL11.glPushMatrix();
- GL11.glLoadIdentity();
- GL11.glTranslatef(0.0F, (float)(Minecraft.getSystemTime() % 20000L) / 20000.0F, 0.0F);
- GL11.glScalef(f6, f6, f6);
- GL11.glTranslatef(0.5F, 0.5F, 0.0F);
- GL11.glRotatef((i * i * 4321 + i * 9) * 2.0F, 0.0F, 0.0F, 1.0F);
- GL11.glTranslatef(-0.5F, -0.5F, 0.0F);
- Tessellator tessellator = Tessellator.instance;
- tessellator.startDrawingQuads();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float f11 = color.getRed() / 255.0F;
- float f12 = color.getGreen() / 255.0F;
- float f13 = color.getBlue() / 255.0F;
- tessellator.setBrightness(180);
- tessellator.setColorRGBA_F(f11 * f7, f12 * f7, f13 * f7, 1.0F);
- tessellator.addVertex(0.0D, f4, 0.0D);
- tessellator.addVertex(0.0D, f4, 1.0D);
- tessellator.addVertex(1.0D, f4, 1.0D);
- tessellator.addVertex(1.0D, f4, 0.0D);
- tessellator.draw();
- GL11.glPopMatrix();
- GL11.glMatrixMode(GL11.GL_MODELVIEW);
- }
- GL11.glDisable(GL11.GL_BLEND);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_S);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_T);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_R);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_Q);
- }
-
- private static FloatBuffer func_147525_a(float p_147525_1_, float p_147525_2_, float p_147525_3_, float p_147525_4_) {
- field_147528_b.clear();
- field_147528_b.put(p_147525_1_).put(p_147525_2_).put(p_147525_3_).put(p_147525_4_);
- field_147528_b.flip();
- return field_147528_b;
- }
-
- public static void drawArrow(int x, int y, boolean side) {
- mc.renderEngine.bindTexture(miscHuds);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0f);
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x, y, 0.0F, 0, 10, side ? 0 : 22, 38);
- }
-
- public static void drawChanceBar(int x, int y, int chance) {
- mc.renderEngine.bindTexture(miscHuds);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0f);
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x, y, 0.0F, 0, 0, 57, 6);
- int chancePercentage = Math.max(0, (int)((chance / 100.f) * 55.0D));
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x + 1, y + 1, 0.0F, 0, 6, 55, 4);
- Color color = new Color(Color.HSBtoRGB((chance) / 360.0f, ((float)Math.sin((ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks) * 0.2D) + 1.0F) * 0.3F + 0.4F, 1.0f));
- GL11.glColor4ub((byte)color.getRed(), (byte)color.getGreen(), (byte)color.getBlue(), (byte)255);
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x + 1, y + 1, 0.0F, 0, 6, Math.min(55, chancePercentage), 4);
- }
-
- public static void renderPoolManaBar(int x, int y, int color, float alpha, int mana) {
- Minecraft mc = Minecraft.getMinecraft();
- int poolCount = (int)Math.floor(mana / 1000000.0D);
- if(poolCount < 0)
- poolCount = 0;
- int onePoolMana = mana - (poolCount * 1000000);
- String strPool = poolCount + "x";
- int xc = x - mc.fontRenderer.getStringWidth(strPool) / 2;
- int yc = y;
- GL11.glPushMatrix();
- GL11.glTranslatef(xc + 42.0f, yc + 5.0f, 0.0f);
- RenderHelper.enableGUIStandardItemLighting();
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, new ItemStack(ModBlocks.pool), 0, 0);
- RenderHelper.disableStandardItemLighting();
- GL11.glTranslatef(18.0f, 5.0f, 300.0f);
- mc.fontRenderer.drawString(strPool, 0, 0, color);
- GL11.glPopMatrix();
- if((poolCount * 1000000) == mana)
- onePoolMana = poolCount * 1000000;
- HUDHandler.renderManaBar(x, y, color, alpha, onePoolMana, 1000000);
- }
-
- public static void drawPoolManaHUD(ScaledResolution res, String name, int mana, int maxMana, int color) {
- Minecraft mc = Minecraft.getMinecraft();
- int poolCount = (int)Math.floor(mana / 1000000.0D);
- int maxPoolCount = (int)Math.floor(maxMana / 1000000.0D);
- if(poolCount < 0)
- poolCount = 0;
- if(maxPoolCount < 0)
- maxPoolCount = 0;
- int onePoolMana = mana - (poolCount * 1000000);
- String strPool = poolCount + "x / " + maxPoolCount + "x";
- int xc = res.getScaledWidth() / 2 - mc.fontRenderer.getStringWidth(strPool) / 2 - 3;
- int yc = res.getScaledHeight() / 2;
- GL11.glPushMatrix();
- GL11.glTranslatef(xc - 6.0f, yc + 30.0f, 0.0f);
- RenderHelper.enableGUIStandardItemLighting();
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, new ItemStack(ModBlocks.pool), 0, 0);
- RenderHelper.disableStandardItemLighting();
- GL11.glTranslatef(18.0f, 4.5f, 300.0f);
- mc.fontRenderer.drawStringWithShadow(strPool, 0, 0, color);
- GL11.glPopMatrix();
- if((poolCount * 1000000) == mana)
- onePoolMana = poolCount * 1000000;
- HUDHandler.drawSimpleManaHUD(color, onePoolMana, 1000000, name, res);
- }
-
- public static void setLightmapTextureCoords() {
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- }
-
- public static Vector3 setRotation(float angel, float vX, float vY, float vZ, Vector3 v3) {
- Vector3 rVec = new Vector3(vX, vY, vZ);
- Vector3 rVec1 = v3.copy().normalize();
- double rAngel = Math.toRadians(angel) * 0.5f;
- double sin = Math.sin(rAngel);
- double x = rVec.x * sin;
- double y = rVec.y * sin;
- double z = rVec.z * sin;
- rAngel = Math.cos(rAngel);
- double d = -x * rVec1.x - y * rVec1.y - z * rVec1.z;
- double d1 = rAngel * rVec1.x + y * rVec1.z - z * rVec1.y;
- double d2 = rAngel * rVec1.y - x * rVec1.z + z * rVec1.x;
- double d3 = rAngel * rVec1.z + x * rVec1.y - y * rVec1.x;
- v3.x = d1 * rAngel - d * x - d2 * z + d3 * y;
- v3.y = d2 * rAngel - d * y + d1 * z - d3 * x;
- v3.z = d3 * rAngel - d * z - d1 * y + d2 * x;
- return v3;
- }
-
- public static Color getCorporeaRuneColor(int posX, int posY, int posZ, int meta) {
- double time = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- time += (new Random((posX ^ posY ^ posZ))).nextInt(360);
- float sin = (float)(Math.sin(time / 20.0f) * 0.15f) - 0.15f;
- int color = 0;
- switch(meta) {
- case 0:
- color = Color.HSBtoRGB(0.0f, 0.0f, 0.54f + (sin / 1.2f));
- break;
- case 1:
- color = Color.HSBtoRGB(0.688f, 0.93f, 0.96f + sin - 0.15f);
- break;
- case 2:
- color = Color.HSBtoRGB(0.983f, 0.99f, 1.0f + sin - 0.15f);
- break;
- case 3:
- color = Color.HSBtoRGB(0.319f, 0.92f, 0.95f + sin - 0.15f);
- break;
- case 4:
- color = Color.HSBtoRGB(0.536f, 0.53f, 0.92f + sin - 0.15f);
- break;
- }
- return new Color(color);
- }
-
- public static void renderIcon(IIcon icon, int light) {
- Tessellator tessellator = Tessellator.instance;
- float f = icon.getMinU();
- float f1 = icon.getMaxU();
- float f2 = icon.getMinV();
- float f3 = icon.getMaxV();
- float f4 = 1.0F;
- float f5 = 0.5F;
- float f6 = 0.25F;
- tessellator.startDrawingQuads();
- tessellator.setNormal(0.0F, 1.0F, 0.0F);
- tessellator.addVertexWithUV((0.0F - f5), (0.0F - f6), 0.0D, f, f3);
- tessellator.addVertexWithUV((f4 - f5), (0.0F - f6), 0.0D, f1, f3);
- tessellator.addVertexWithUV((f4 - f5), (f4 - f6), 0.0D, f1, f2);
- tessellator.addVertexWithUV((0.0F - f5), (f4 - f6), 0.0D, f, f2);
- tessellator.draw();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/7c/f036d839f5b0001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/7c/f036d839f5b0001c19bf8a91ac37238b
deleted file mode 100644
index ee79d0c..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/7c/f036d839f5b0001c19bf8a91ac37238b
+++ /dev/null
@@ -1,83 +0,0 @@
-package ab.client.core.handler;
-
-import java.awt.Color;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.armor.ItemNebulaArmor;
-import ab.common.item.equipment.armor.ItemNebulaHelm;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.ItemRenderer;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.texture.TextureMap;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraftforge.client.event.RenderPlayerEvent;
-import vazkii.botania.api.item.IPhantomInkable;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class PlayerRendererHandler {
-
- @SubscribeEvent
- public void onPlayerRender(RenderPlayerEvent.Specials.Post event) {
- EntityPlayer player = event.entityPlayer;
- ItemStack item = player.getCurrentArmor(3);
- if(item != null && item.getItem() instanceof ItemNebulaHelm) {
- Item helm = player.getCurrentArmor(3).getItem();
- boolean hasPhantomInk = helm instanceof IPhantomInkable && ((IPhantomInkable)helm).hasPhantomInk(item);
- if(!hasPhantomInk && ((ItemNebulaHelm)helm).enableCosmicFace(item)) {
- float angelX = event.renderer.modelBipedMain.bipedHead.rotateAngleX * 180.0F / (float)Math.PI;
- float angelY = event.renderer.modelBipedMain.bipedHead.rotateAngleY * 180.0F / (float)Math.PI;
- GL11.glPushMatrix();
- if(player.isSneaking())
- GL11.glTranslatef(event.renderer.modelBipedMain.bipedHead.rotationPointX * 0.0625f, event.renderer.modelBipedMain.bipedHead.rotationPointY * 0.0625f, 0.0f);
- GL11.glRotatef(angelY, 0.0F, 1.0F, 0.0F);
- GL11.glRotatef(angelX, 1.0F, 0.0F, 0.0F);
- renderCosmicFace();
- GL11.glPopMatrix();
- }
- }
- }
-
- private void renderCosmicFace() {
- double worldTime = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- GL11.glPushMatrix();
- GL11.glEnable(GL11.GL_TEXTURE_2D);
- GL11.glDisable(2912);
- GL11.glDisable(2884);
-
- GL11.glPushMatrix();
- GL11.glScalef(0.5f, 0.4f, 0.4f);
- GL11.glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
- GL11.glTranslatef(-0.5f, -0.8675f, 0.0f);
- GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
- ClientHelper.renderCosmicBackground();
- GL11.glPopMatrix();
-
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- (Minecraft.getMinecraft()).renderEngine.bindTexture(TextureMap.locationItemsTexture);
- GL11.glTranslatef(-0.2F, -0.35F, -0.25F);
- GL11.glScalef(0.4f, 0.4f, 0.4f);
- float f = ItemNebulaArmor.nebulaEyes.getMinU();
- float f1 = ItemNebulaArmor.nebulaEyes.getMaxU();
- float f2 = ItemNebulaArmor.nebulaEyes.getMinV();
- float f3 = ItemNebulaArmor.nebulaEyes.getMaxV();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float r = color.getRed() / 510.0F;
- float g = color.getGreen() / 510.0F;
- float b = color.getBlue() / 510.0F;
- GL11.glColor4f(0.5f + r, 0.5f + g, 0.5f + b, 0.685f + (float)Math.sin(worldTime / 50.0D) * 0.175F);
- ItemRenderer.renderItemIn2D(Tessellator.instance, f1, f2, f, f3, ItemNebulaArmor.nebulaEyes.getIconWidth(), ItemNebulaArmor.nebulaEyes.getIconHeight(), 0.03125F);
- GL11.glDisable(3042);
- GL11.glPopMatrix();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/7d/50a107ddb5bc001c1a9f99005529f322 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/7d/50a107ddb5bc001c1a9f99005529f322
new file mode 100644
index 0000000..4131a2c
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/7d/50a107ddb5bc001c1a9f99005529f322
@@ -0,0 +1,108 @@
+package ab.client.render.tile;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Random;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.client.model.ModelNidavellirForge;
+import ab.common.block.tile.TileNidavellirForge;
+import net.minecraft.client.Minecraft;
+import net.minecraft.client.renderer.OpenGlHelper;
+import net.minecraft.client.renderer.Tessellator;
+import net.minecraft.client.renderer.entity.Render;
+import net.minecraft.client.renderer.entity.RenderManager;
+import net.minecraft.client.renderer.texture.TextureMap;
+import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.ResourceLocation;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.client.core.helper.ShaderHelper;
+import vazkii.botania.common.block.mana.BlockTerraPlate;
+
+public class RenderTileNidavellirForge extends TileEntitySpecialRenderer {
+
+ private List entityList = null;
+ private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/nidavellirForge.png");
+ private static final ModelNidavellirForge model = new ModelNidavellirForge();
+
+ public void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float f) {
+ TileNidavellirForge tile = (TileNidavellirForge)tileentity;
+ double worldTime = 0.0D;
+ int meta = 0;
+ if(tileentity != null && tileentity.getWorldObj() != null) {
+ worldTime = ClientTickHandler.ticksInGame + f + (new Random((tileentity.xCoord ^ tileentity.yCoord ^ tileentity.zCoord))).nextInt(360);
+ meta = tileentity.getWorldObj().getBlockMetadata(tileentity.xCoord, tileentity.yCoord, tileentity.zCoord);
+ }
+ float indetY = (float)(Math.sin(worldTime / 18.0D) / 24.0D);
+ GL11.glPushMatrix();
+ GL11.glEnable(32826);
+ GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
+ GL11.glTranslated(x, y, z);
+ GL11.glTranslatef(0.5f, 1.5f, 0.5f);
+ GL11.glRotatef(180.0f, 1.0f, 0.0f, 1.0f);
+ float angelForSide = 0.0f;
+ switch(meta) {
+ case 1: angelForSide = 90.0f;
+ break;
+ case 4: angelForSide = 270.0f;
+ break;
+ case 8: angelForSide = 180.0f;
+ break;
+ }
+ GL11.glRotatef(angelForSide, 0.0f, 1.0f, 0.0f);
+ Minecraft.getMinecraft().renderEngine.bindTexture(texture);
+ model.renderBottom();
+ GL11.glTranslatef(0.0f, indetY, 0.0f);
+ model.renderTop();
+ GL11.glEnable(32826);
+ GL11.glPopMatrix();
+ if(entityList == null) {
+ List list = new ArrayList();
+ for(int i = 0; i < tile.getSizeInventory(); i++) {
+ list.add(new EntityItem(tile.getWorldObj(), tile.xCoord, tile.yCoord, tile.zCoord));
+ }
+ entityList = list;
+ }
+ GL11.glPushMatrix();
+ GL11.glTranslated(x + 0.5f, y + 0.675f - indetY, z + 0.5f);
+ GL11.glScalef(0.2F, 0.225F, 0.225F);
+ for(int i = 1; i < entityList.size(); i++) {
+ GL11.glPushMatrix();
+ ItemStack stack = tile.getStackInSlot(i);
+ if(stack != null) {
+ switch(i) {
+ case 1:
+ GL11.glTranslated(0.15f, 0.0f, 0.0f);
+ break;
+ case 2:
+ GL11.glTranslated(-0.15f, 0.0f, -0.15f);
+ break;
+ case 3:
+ GL11.glTranslated(-0.15f, 0.0f, 0.15f);
+ break;
+ }
+ entityList.get(i).setEntityItemStack(stack);
+ entityList.get(i).age = ClientTickHandler.ticksInGame;
+ ((Render)RenderManager.instance.entityRenderMap.get(EntityItem.class)).doRender((Entity)entityList.get(i), 0.0D, 0.0D, 0.0D, 1.0F, f);
+ }
+ GL11.glPopMatrix();
+ }
+ GL11.glPopMatrix();
+ if(tile.getStackInSlot(0) != null) {
+ GL11.glPushMatrix();
+ GL11.glTranslated(x + 0.5, y + 0.915f - indetY, z + 0.5);
+ GL11.glScalef(0.45f, 0.45f, 0.45f);
+ entityList.get(0).setEntityItemStack(tile.getStackInSlot(0));
+ entityList.get(0).age = ClientTickHandler.ticksInGame;
+ ((Render)RenderManager.instance.entityRenderMap.get(EntityItem.class)).doRender((Entity)entityList.get(0), 0.0D, 0.0D, 0.0D, 1.0F, f);
+ GL11.glPopMatrix();
+ }
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/7e/00951a9c05c0001c1965b122d2f8f403 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/7e/00951a9c05c0001c1965b122d2f8f403
new file mode 100644
index 0000000..2eeec68
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/7e/00951a9c05c0001c1965b122d2f8f403
@@ -0,0 +1,158 @@
+package ab.common.item.relic;
+
+import java.awt.Color;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.common.core.handler.NetworkHandler;
+import ab.common.lib.register.ItemListAB;
+import net.minecraft.block.Block;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.util.MathHelper;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.api.mana.ManaItemHandler;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class ItemSphereNavigation extends ItemModRelic {
+
+ public static final int rangeSearch = 16;
+ public static final int maxCooldown = 112;
+ public static final int manaCost = 1750;
+
+ public ItemSphereNavigation() {
+ super("sphereNavigation");
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int pos, boolean equipped) {
+ super.onUpdate(stack, world, entity, pos, equipped);
+ if(entity instanceof EntityPlayer) {
+ EntityPlayer player = (EntityPlayer)entity;
+ if(!world.isRemote && getFindBlock(stack) != null && canWork(stack) && ManaItemHandler.requestManaExactForTool(stack, player, manaCost, true)) {
+ setMaxTick(stack);
+ NetworkHandler.sendPacketToFindBlocks((EntityPlayerMP)player, getFindBlock(stack), getFindMeta(stack));
+ }
+ }
+ }
+
+ public static void findBlocks(World world, Block findBlock, int findMeta, EntityPlayer player) {
+ if(world.isRemote) {
+ ItemStack renderStack = null;
+ int maxFindedBlocks = 32;
+ int findedBlocks = 0;
+ label1703:
+ for(int y = -rangeSearch * 2; y < rangeSearch; y++) {
+ for(int x = -rangeSearch; x < rangeSearch; x++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks)) || world.rand.nextBoolean())
+ continue;
+ for(int z = -rangeSearch; z < rangeSearch; z++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks)) || world.rand.nextBoolean())
+ continue;
+ else if(findedBlocks >= maxFindedBlocks)
+ break label1703;
+ int posX = MathHelper.floor_double(player.posX) + x;
+ int posY = MathHelper.floor_double(player.posY) + y;
+ int posZ = MathHelper.floor_double(player.posZ) + z;
+ if(posY < 0)
+ continue;
+ Block block = world.getBlock(posX, posY, posZ);
+ if(!Block.isEqualTo(block, findBlock))
+ continue;
+ int meta = world.getBlockMetadata(posX, posY, posZ);
+ if(meta == findMeta) {
+ if(renderStack == null)
+ renderStack = getRenderStackForBlock(world, block, meta, posX, posY, posZ);
+ findedBlocks++;
+ float maxAge = 2.7f + (0.5f * (float)(Math.random()));
+ Botania.proxy.setWispFXDepthTest(false);
+ Botania.proxy.setWispFXDistanceLimit(false);
+ float far = 120.0f - (((Math.abs(x) + Math.min(rangeSearch, Math.abs(y)) + Math.abs(z)) / (rangeSearch * 4.0f)) * 120.0f);
+ if(far <= 10)
+ far *= 0.2f;
+ Color color = new Color(Color.HSBtoRGB(far / 360.0f, 0.9f + (float)(Math.random() * 0.1f), 1.0f));
+ for(int i = 0; i < 11; i++)
+ Botania.proxy.wispFX(world, posX + 0.5f + (Math.random() - 0.5f), posY + 0.5f + (Math.random() - 0.5f), posZ + 0.5f + (Math.random() - 0.5f), color.getRed() / 100.0f, color.getGreen() / 100.0f, color.getBlue() / 100.0f, 0.3f + (float)(Math.random() * 0.25f), 0.0f, maxAge);
+ Botania.proxy.setWispFXDistanceLimit(true);
+ Botania.proxy.setWispFXDepthTest(true);
+ }
+ }
+ }
+ }
+ if(renderStack != null)
+ ItemsRemainingRender.set(renderStack, "íàéäåíî: " + findedBlocks);
+ }
+ }
+
+ public static ItemStack getRenderStackForBlock(World world, Block block, int meta, int x, int y, int z) {
+ if(block != null) {
+ Item item = Item.getItemFromBlock(block);
+ if(item != null) {
+ ItemStack findStack = new ItemStack(block, 1, meta);
+ if(findStack != null)
+ return findStack;
+ } else {
+ Item item1 = block.getItem(world, x, y, z);
+ if(item1 != null) {
+ ItemStack findStack = new ItemStack(item1, 1, meta);
+ if(findStack != null)
+ return findStack;
+ }
+ }
+ }
+ return null;
+ }
+
+ public boolean onItemUse(ItemStack stack, EntityPlayer p, World world, int x, int y, int z, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
+ if(p.isSneaking()) {
+ Block block = world.getBlock(x, y, z);
+ if(block != null) {
+ int meta = world.getBlockMetadata(x, y, z);
+ ItemStack findStack = getRenderStackForBlock(world, block, meta, x, y, z);
+ if(findStack != null) {
+ setFindBlock(stack, block, meta);
+ if(world.isRemote)
+ ItemsRemainingRender.set(findStack, findStack.getDisplayName());
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public boolean canWork(ItemStack stack) {
+ int tick = ItemNBTHelper.getInt(stack, "cooldown", 0);
+ if(tick == 0)
+ return true;
+ else if(tick > 0)
+ ItemNBTHelper.setInt(stack, "cooldown", tick - 1);
+ return false;
+ }
+
+ public void setMaxTick(ItemStack stack) {
+ ItemNBTHelper.setInt(stack, "cooldown", maxCooldown);
+ }
+
+ public static void setFindBlock(ItemStack stack, Block block, int meta) {
+ ItemNBTHelper.setInt(stack, "findBlockID", Block.getIdFromBlock(block));
+ ItemNBTHelper.setInt(stack, "findBlockMeta", meta);
+ }
+
+ public static Block getFindBlock(ItemStack stack) {
+ int blockID = ItemNBTHelper.getInt(stack, "findBlockID", 0);
+ if(blockID == 0)
+ return null;
+ else
+ return Block.getBlockById(blockID);
+ }
+
+ public static int getFindMeta(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "findBlockMeta", -1);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/7f/70d19343e2ac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/7f/70d19343e2ac001c1d59e42be7477558
deleted file mode 100644
index 1a1f681..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/7f/70d19343e2ac001c1d59e42be7477558
+++ /dev/null
@@ -1,91 +0,0 @@
-package ab.client.render.tile;
-
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.model.ModelDiceFate;
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.ResourceLocation;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class RenderTileGameBoard extends TileEntitySpecialRenderer {
-
- private static final ModelDiceFate model = new ModelDiceFate();
- private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/gameDice.png");
- private static final ResourceLocation textureEnemy = new ResourceLocation("ab:textures/model/gameDice_enemy.png");
-
- public void renderTileEntityAt(TileEntity tile, double x, double y, double z, float ticks) {
- double time = (tile.getWorldObj() == null) ? 0.0D : (ClientTickHandler.ticksInGame + ticks);
- if(tile != null)
- time += (new Random((tile.xCoord ^ tile.yCoord ^ tile.zCoord))).nextInt(360);
- TileGameBoard board = (TileGameBoard)tile;
- GL11.glEnable(3042);
- GL11.glEnable(32826);
- for(int i = 0; i < board.slotChance.length; i++) {
- if(board.slotChance[i] == 0)
- continue;
- time += i * 65;
- GL11.glPushMatrix();
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- float posX = 0.0f;
- float posY = 0.0f;
- float dropAnim = (1.0f - (Math.min(100.0f, board.clientTick[i] * board.clientTick[i] * 1.125f) / 100.0f));
- dropAnim = Math.min(1.0f, Math.max(dropAnim, 0));
- float alpha = (float)Math.cos(dropAnim);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, alpha);
- switch(i) {
- case 0:
- posX = 0.16f + 0.08f * dropAnim;
- posY = 0.16f + 0.08f * dropAnim;
- break;
- case 1:
- posX = -0.16f - 0.08f * dropAnim;
- posY = 0.16f + 0.08f * dropAnim;
- break;
- case 2:
- posX = 0.16f + 0.08f * dropAnim;
- posY = -0.16f - 0.08f * dropAnim;
- break;
- case 3:
- posX = -0.16f - 0.08f * dropAnim;
- posY = -0.16f - 0.08f * dropAnim;
- break;
- }
- GL11.glTranslated(x, y, z);
- GL11.glTranslated(0.5f + posX, 0.02f + Math.sin(time / 12.0D) / 48.0D + (0.28f * dropAnim), 0.5f + posY);
- GL11.glScalef(0.25f, 0.25f, 0.25f);
- Minecraft.getMinecraft().renderEngine.bindTexture(i > 1 ? textureEnemy : texture);
- float dropAngel = 70.0f * dropAnim;
- switch(board.slotChance[i]) {
- case 1:
- model.render(180.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 2:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 3:
- model.render(90.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 4:
- model.render(270.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 5:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 270.0f);
- break;
- case 6:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 90.0f);
- break;
- default:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- }
- GL11.glPopMatrix();
- }
- GL11.glEnable(32826);
- GL11.glDisable(3042);
- }
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/7f/90c00835efac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/7f/90c00835efac001c1d59e42be7477558
deleted file mode 100644
index ed2b510..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/7f/90c00835efac001c1d59e42be7477558
+++ /dev/null
@@ -1,197 +0,0 @@
-package ab.common.block.tile;
-
-import java.util.List;
-
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.ChatComponentTranslation;
-import net.minecraft.util.ChatStyle;
-import net.minecraft.util.EnumChatFormatting;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.common.block.tile.TileMod;
-
-public class TileGameBoard extends TileMod {
-
- public String[] playersName = new String[] { "", "" };
- public byte[] slotChance = new byte[] { 0, 0, 0, 0 };
- protected int botTick = -1;
- public int endGameTick = -1;
- protected boolean requestUpdate;
- public boolean isSingleGame = false;
- public int clientTick[] = new int[] { 0, 0, 0, 0};
-
- public void updateEntity() {
- if(botTick > 0)
- botTick--;
- if(endGameTick > 0)
- endGameTick--;
- if(!worldObj.isRemote)
- updateServer();
- else
- updateClient();
- }
-
- protected void updateClient() {
- for(int i = 0; i < slotChance.length; i++)
- if(slotChance[i] > 0)
- clientTick[i]++;
- else
- clientTick[i] = 0;
- }
-
- protected void updateServer() {
- if(requestUpdate)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- boolean hasUpdate = false;
- if(isSingleGame && botTick == 0 && hasGame()) {
- for(int i = 2; i < 4; i++) {
- if(slotChance[i] == 0) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = -1;
- hasUpdate = true;
- break;
- }
- }
- }
- if(hasGame() && endGameTick == 0)
- finishGame();
- requestUpdate = hasUpdate;
- }
-
- public void setPlayer(EntityPlayer player) {
- if(isSingleGame) {
- playersName[0] = player.getCommandSenderName();
- playersName[1] = "";
- requestUpdate = true;
- botTick = 8;
- } else {
- if(playersName[0].isEmpty())
- playersName[0] = player.getCommandSenderName();
- else if(!playersName[0].equals(player.getCommandSenderName()))
- playersName[1] = player.getCommandSenderName();
- requestUpdate = true;
- }
- }
-
- public boolean dropDice(EntityPlayer player) {
- if(isSingleGame) {
- if(player.getCommandSenderName().equals(playersName[0]) && botTick == -1) {
- boolean isLastDice = false;
- for(int i = 0; i < 2; i++) {
- if(slotChance[i] == 0 && !worldObj.isRemote) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = 18;
- requestUpdate = true;
- if(i == 1)
- isLastDice = true;
- break;
- }
- }
- if(isLastDice)
- endGameTick = 28;
- return true;
- }
- } else {
- for(int i = 0; i < playersName.length; i++) {
- if(player.getCommandSenderName().equals(playersName[i])) {
- for(int j = i * 2; j < (i + 1) * 2; j++) {
- if(slotChance[j] == 0 && !worldObj.isRemote) {
- slotChance[j] = (byte)(worldObj.rand.nextInt(6) + 1);
- requestUpdate = true;
- if(hasFullDice())
- endGameTick = 28;
- break;
- }
- }
- return true;
- }
- }
- }
- return false;
- }
-
- public boolean hasFullDice() {
- boolean hasFull = false;
- for(int i = 0; i < slotChance.length; i++) {
- if(!(slotChance[i] > 0))
- return false;
- hasFull = slotChance[i] > 0;
- }
- return hasFull;
- }
-
- public boolean hasGame() {
- if(isSingleGame)
- return !playersName[0].isEmpty();
- else
- for(int i = 0; i < playersName.length; i++)
- if(!playersName[i].isEmpty())
- return true;
- return false;
- }
-
- public void finishGame() {
- if(worldObj.isRemote)
- return;
- if(isSingleGame) {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won");
- else if((slotChance[0] + slotChance[1]) == (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " not win");
- else
- sendNearMessage(playersName[0] + " you Lose!");
- resetGame();
- } else {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won!");
- else if((slotChance[0] + slotChance[1]) == (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " " + playersName[1] + "we are not win");
- else
- sendNearMessage(playersName[1] + " you Won!");
- resetGame();
- }
- }
-
- public void sendNearMessage(String text) {
- List players = this.worldObj.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(this.xCoord, this.yCoord, this.zCoord, (this.xCoord + 1), (this.yCoord + 1), (this.zCoord + 1)).expand(3.5f, 3.5f, 3.5f));
- for(EntityPlayer player : players) {
- if(player != null)
- player.addChatMessage((new ChatComponentTranslation(text, new Object[] {})).setChatStyle((new ChatStyle()).setColor(EnumChatFormatting.DARK_GREEN)));
- }
- }
-
- public void resetGame() {
- playersName[0] = "";
- playersName[1] = "";
- for(int i = 0; i < slotChance.length; i++)
- slotChance[i] = 0;
- botTick = -1;
- endGameTick = -1;
- requestUpdate = true;
- }
-
- public void writeCustomNBT(NBTTagCompound cmp) {
- super.writeCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- cmp.setString("playerName" + i, playersName[i]);
- cmp.setByteArray("slotChance", slotChance);
- cmp.setInteger("botTick", botTick);
- cmp.setInteger("endGameTick", endGameTick);
- cmp.setBoolean("requestUpdate", requestUpdate);
- cmp.setBoolean("isSingleGame", isSingleGame);
- }
-
- public void readCustomNBT(NBTTagCompound cmp) {
- super.readCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- playersName[i] = cmp.getString("playerName" + i);
- botTick = cmp.getInteger("botTick");
- endGameTick = cmp.getInteger("endGameTick");
- slotChance = cmp.getByteArray("slotChance");
- requestUpdate = cmp.getBoolean("requestUpdate");
- isSingleGame = cmp.getBoolean("isSingleGame");
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/8/70b7fd7aceb1001c1b57fe2130d5cb2c b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/8/70b7fd7aceb1001c1b57fe2130d5cb2c
deleted file mode 100644
index 0f373af..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/8/70b7fd7aceb1001c1b57fe2130d5cb2c
+++ /dev/null
@@ -1,40 +0,0 @@
-package ab;
-
-import ab.common.core.proxy.CommonProxy;
-import cpw.mods.fml.common.Mod;
-import cpw.mods.fml.common.SidedProxy;
-import cpw.mods.fml.common.event.FMLInitializationEvent;
-import cpw.mods.fml.common.event.FMLPostInitializationEvent;
-import cpw.mods.fml.common.event.FMLPreInitializationEvent;
-import net.minecraft.creativetab.CreativeTabs;
-import net.minecraftforge.common.MinecraftForge;
-
-@Mod (modid = AdvancedBotany.modid, name="Advanced Botany", version = AdvancedBotany.version, dependencies = "required-after:Botania", guiFactory = "ab.client.core.handler.GuiABFactory")
-public class AdvancedBotany {
-
- public static final String modid = "AdvancedBotany";
- public static final String version = "1.2.2.1";
-
- @Mod.Instance("AdvancedBotany")
- public static AdvancedBotany instance;
-
- @SidedProxy(clientSide = "ab.client.core.proxy.ClientProxy", serverSide = "ab.common.core.proxy.CommonProxy")
- public static CommonProxy proxy;
-
- @Mod.EventHandler
- public void preInit(FMLPreInitializationEvent event) {
- proxy.preInit(event);
- }
-
- @Mod.EventHandler
- public void init(FMLInitializationEvent event) {
- proxy.init(event);
- }
-
- @Mod.EventHandler
- public void postInit(FMLPostInitializationEvent event) {
- proxy.postInit(event);
- }
-
- public static final CreativeTabs tabAB = new AdvancedBotanyTab("tabAB");
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/8/c0f157e44ab0001c1746c57a5fe46fd3 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/8/c0f157e44ab0001c1746c57a5fe46fd3
deleted file mode 100644
index e0565b6..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/8/c0f157e44ab0001c1746c57a5fe46fd3
+++ /dev/null
@@ -1,50 +0,0 @@
-package ab.common.item.relic;
-
-import java.lang.reflect.InvocationTargetException;
-import java.util.List;
-
-import ab.common.core.handler.ConfigABHandler;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import cpw.mods.fml.relauncher.ReflectionHelper;
-import net.minecraft.entity.EntityLivingBase;
-import net.minecraft.entity.boss.IBossDisplayData;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.ItemStack;
-import net.minecraft.world.World;
-import net.minecraftforge.common.MinecraftForge;
-import net.minecraftforge.event.entity.living.LivingDropsEvent;
-
-public class ItemSehrimnirHide extends ItemModRelic {
-
- public static final String[] dropFewItems = new String[] { "dropFewItems", "func_70628_a" };
-
- public ItemSehrimnirHide() {
- super("sehrimnirHide");
- MinecraftForge.EVENT_BUS.register(this);
- }
-
- @SubscribeEvent
- public void onPlayerAttack(LivingDropsEvent event) {
- if(event != null && event.source != null && event.source.getSourceOfDamage() instanceof EntityPlayer) {
- EntityPlayer player = (EntityPlayer)event.source.getSourceOfDamage();
- if(player.inventory.hasItem(this) && !player.worldObj.isRemote) {
- if(player.worldObj.rand.nextInt(100) < 20 && event.entityLiving != null && !(event.entityLiving instanceof IBossDisplayData) && isVallidEntity(event.entityLiving)) {
- try {
- EntityLivingBase liv = event.entityLiving;
- ReflectionHelper.findMethod(EntityLivingBase.class, liv, dropFewItems, new Class[] {boolean.class, int.class} ).invoke(liv, new Object[] {true, 5});
- } catch(Exception e) {
- e.printStackTrace();
- }
- }
- }
- }
- }
-
- public static boolean isVallidEntity(EntityLivingBase liv) {
- for(String entityName : ConfigABHandler.lockEntityListToHide)
- if(liv.getClass().getSimpleName().equals(entityName))
- return false;
- return true;
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/80/600a8febc0b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/80/600a8febc0b1001c19bf8a91ac37238b
deleted file mode 100644
index c924f79..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/80/600a8febc0b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,134 +0,0 @@
-package ab.common.block;
-
-import java.util.List;
-
-import ab.AdvancedBotany;
-import ab.common.block.tile.TileLebethronCore;
-import ab.common.lib.register.RecipeListAB;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.ITileEntityProvider;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.renderer.texture.IIconRegister;
-import net.minecraft.creativetab.CreativeTabs;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.IIcon;
-import net.minecraft.util.MovingObjectPosition;
-import net.minecraft.world.IBlockAccess;
-import net.minecraft.world.World;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.api.lexicon.ILexiconable;
-import vazkii.botania.api.lexicon.LexiconEntry;
-import vazkii.botania.common.item.ModItems;
-
-public class BlockLebethronWood extends Block implements ILexiconable, ITileEntityProvider {
-
- private static IIcon[] icon = new IIcon[5];
- public static IIcon iconPortal;
-
- public BlockLebethronWood() {
- super(Material.wood);
- this.setCreativeTab(AdvancedBotany.tabAB);
- this.setHardness(6.0F);
- this.setStepSound(soundTypeWood);
- this.setBlockName("lebethronWood");
- }
-
- public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int par6, float par7, float par8, float par9) {
- int meta = world.getBlockMetadata(x, y, z);
- if(meta == 4) {
- TileLebethronCore core = (TileLebethronCore)world.getTileEntity(x, y, z);
- ItemStack heldItem = player.getCurrentEquippedItem();
- if(heldItem == null)
- return false;
- Block block = Block.getBlockFromItem(heldItem.getItem());
- if(!world.isRemote && block.getMaterial() == Material.leaves) {
- core.updateStructure();
- if(core.getValidTree()) {
- if(core.setBlock(block, heldItem.getItemDamage())) {
- heldItem.stackSize--;
- if(heldItem.stackSize == 0)
- player.inventory.setInventorySlotContents(player.inventory.currentItem, null);
- core.setPlayerName(player.getCommandSenderName());
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(world, x, y, z);
- return true;
- }
- }
- }
- }
- return false;
- }
-
- public void breakBlock(World world, int x, int y, int z, Block block, int meta) {
- if(!world.isRemote && meta == 4) {
- TileLebethronCore tile = (TileLebethronCore)world.getTileEntity(x, y, z);
- if(tile != null) {
- ItemStack stack = new ItemStack(tile.getBlock(), 1, tile.getMeta());
- if (stack != null) {
- float f = world.rand.nextFloat() * 0.8F + 0.1F;
- float f1 = world.rand.nextFloat() * 0.8F + 0.1F;
- float f2 = world.rand.nextFloat() * 0.8F + 0.1F;
- EntityItem entityitem = new EntityItem(world, (x + f), (y + f1), (z + f2), stack.copy());
- float f3 = 0.05F;
- entityitem.motionX = ((float)world.rand.nextGaussian() * f3);
- entityitem.motionY = ((float)world.rand.nextGaussian() * f3 + 0.2F);
- entityitem.motionZ = ((float)world.rand.nextGaussian() * f3);
- if (stack.hasTagCompound())
- entityitem.getEntityItem().setTagCompound((NBTTagCompound)stack.getTagCompound().copy());
- world.spawnEntityInWorld(entityitem);
- }
- }
- }
- super.breakBlock(world, x, y, z, block, meta);
- }
-
- public void getSubBlocks(Item par1, CreativeTabs par2CreativeTabs, List list) {
- for(int i = 0; i < icon.length; i++) {
- list.add(new ItemStack(par1, 1, i));
- }
- }
-
- @SideOnly(Side.CLIENT)
- public void registerBlockIcons(IIconRegister ir) {
- for (int i = 0; i < icon.length; i++)
- icon[i] = ir.registerIcon("ab:lebethronWood_" + i);
- iconPortal = ir.registerIcon("ab:portalAlphirine");
- }
-
- @SideOnly(Side.CLIENT)
- public IIcon getIcon(int side, int meta) {
- return this.icon[meta];
- }
-
- public int damageDropped(int par1) {
- return par1;
- }
-
- public int getLightValue(IBlockAccess world, int x, int y, int z) {
- return (world.getBlockMetadata(x, y, z) == 3) ? 12 : 0;
- }
-
- public boolean canSustainLeaves(IBlockAccess world, int x, int y, int z) {
- return (world.getBlockMetadata(x, y, z) == 0);
- }
-
- public ItemStack getPickBlock(MovingObjectPosition target, World world, int x, int y, int z) {
- int meta = world.getBlockMetadata(x, y, z);
- return new ItemStack(this, 1, meta);
- }
-
- public LexiconEntry getEntry(World world, int x, int y, int z, EntityPlayer player, ItemStack lexicon) {
- return RecipeListAB.lebethronWood;
- }
-
- public TileEntity createNewTileEntity(World world, int meta) {
- return meta == 4 ? new TileLebethronCore() : null;
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/80/6059cd83bdad001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/80/6059cd83bdad001c1d59e42be7477558
deleted file mode 100644
index 2479a03..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/80/6059cd83bdad001c1d59e42be7477558
+++ /dev/null
@@ -1,118 +0,0 @@
-package ab.common.block;
-
-import java.util.List;
-
-import ab.AdvancedBotany;
-import ab.common.block.tile.TileBoardFate;
-import ab.common.block.tile.TileGameBoard;
-import ab.common.block.tile.TileInventory;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockContainer;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.renderer.texture.IIconRegister;
-import net.minecraft.creativetab.CreativeTabs;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.IIcon;
-import net.minecraft.world.World;
-import vazkii.botania.api.wand.IWandable;
-
-public class BlockBoardFate extends BlockContainer {
-
- protected IIcon[] iconsFate;
- protected IIcon[] iconsBoard;
-
- public BlockBoardFate() {
- super(Material.iron);
- this.setCreativeTab(AdvancedBotany.tabAB);
- this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.1875F, 1.0F);
- this.setHardness(3.0F);
- this.setResistance(10.0F);
- this.setStepSound(soundTypeMetal);
- this.setBlockName("boardFate");
- }
-
- public void getSubBlocks(Item par1, CreativeTabs par2CreativeTabs, List list) {
- for(int i = 0; i < 2; i++)
- list.add(new ItemStack(par1, 1, i));
- }
-
- public void registerBlockIcons(IIconRegister ir) {
- this.iconsFate = new IIcon[3];
- this.iconsBoard = new IIcon[3];
- for(int i = 0; i < iconsFate.length; i++)
- this.iconsFate[i] = ir.registerIcon("ab:boardFate_" + i);
- for(int i = 0; i < iconsBoard.length; i++)
- this.iconsBoard[i] = ir.registerIcon("ab:gameBoard_" + i);
- }
-
- public IIcon getIcon(int side, int meta) {
- if(meta == 0)
- return this.iconsBoard[Math.min(2, side)];
- else
- return this.iconsFate[Math.min(2, side)];
- }
-
- public boolean isOpaqueCube() {
- return false;
- }
-
- public boolean renderAsNormalBlock() {
- return false;
- }
-
- public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float par7, float par8, float par9) {
- int meta = world.getBlockMetadata(x, y, z);
- if(meta == 0) {
- TileGameBoard tile = (TileGameBoard)world.getTileEntity(x, y, z);
- if(player.isSneaking() && !tile.hasGame()) {
- tile.isSingleGame = !tile.isSingleGame;
- return true;
- }
- if(!tile.hasGame())
- tile.setPlayer(player);
- else if(!tile.isSingleGame && tile.playersName[1].isEmpty() && !tile.playersName[0].equals(player.getCommandSenderName()))
- tile.setPlayer(player);
- else {
- return tile.dropDice(player);
- }
- return false;
- } else {
- TileBoardFate tile = (TileBoardFate)world.getTileEntity(x, y, z);
- return tile.spawnRelic(player);
- }
- }
-
- public TileEntity createNewTileEntity(World world, int meta) {
- return meta == 0 ? new TileGameBoard() : new TileBoardFate();
- }
-
- public void breakBlock(World world, int x, int y, int z, Block block, int meta) {
- if(!world.isRemote && meta == 1) {
- TileInventory inv = (TileInventory)world.getTileEntity(x, y, z);
- if (inv != null) {
- for (int i = 0; i < inv.getSizeInventory(); i++) {
- ItemStack stack = inv.getStackInSlot(i);
- if (stack != null) {
- float f = world.rand.nextFloat() * 0.8F + 0.1F;
- float f1 = world.rand.nextFloat() * 0.8F + 0.1F;
- float f2 = world.rand.nextFloat() * 0.8F + 0.1F;
- EntityItem entityitem = new EntityItem(world, (x + f), (y + f1), (z + f2), stack.copy());
- float f3 = 0.05F;
- entityitem.motionX = ((float)world.rand.nextGaussian() * f3);
- entityitem.motionY = ((float)world.rand.nextGaussian() * f3 + 0.2F);
- entityitem.motionZ = ((float)world.rand.nextGaussian() * f3);
- if (stack.hasTagCompound())
- entityitem.getEntityItem().setTagCompound((NBTTagCompound)stack.getTagCompound().copy());
- world.spawnEntityInWorld(entityitem);
- }
- }
- }
- }
- super.breakBlock(world, x, y, z, block, meta);
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/81/c0e5d9fdfaac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/81/c0e5d9fdfaac001c1d59e42be7477558
deleted file mode 100644
index f390fc6..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/81/c0e5d9fdfaac001c1d59e42be7477558
+++ /dev/null
@@ -1,94 +0,0 @@
-package ab.client.render.tile;
-
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.model.ModelDiceFate;
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.entity.RenderManager;
-import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.ResourceLocation;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class RenderTileGameBoard extends TileEntitySpecialRenderer {
-
- private static final ModelDiceFate model = new ModelDiceFate();
- private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/gameDice.png");
- private static final ResourceLocation textureEnemy = new ResourceLocation("ab:textures/model/gameDice_enemy.png");
-
- public void renderTileEntityAt(TileEntity tile, double x, double y, double z, float ticks) {
- double time = (tile.getWorldObj() == null) ? 0.0D : (ClientTickHandler.ticksInGame + ticks);
- if(tile != null)
- time += (new Random((tile.xCoord ^ tile.yCoord ^ tile.zCoord))).nextInt(360);
- TileGameBoard board = (TileGameBoard)tile;
- GL11.glEnable(3042);
- GL11.glEnable(32826);
- GL11.glBlendFunc(770, 771);
- for(int i = 0; i < board.slotChance.length; i++) {
- if(board.slotChance[i] == 0)
- continue;
- time += i * 65;
- GL11.glPushMatrix();
- GL11.glRotatef(180.0f - RenderManager.instance.playerViewY, 0.0f, 1.0f, 0.0f);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- float posX = 0.0f;
- float posY = 0.0f;
- float dropAnim = (1.0f - (Math.min(100.0f, (board.clientTick[i] * board.clientTick[i] * 1.25f) + ticks) / 100.0f));
- dropAnim = Math.min(1.0f, Math.max(dropAnim, 0));
- float alpha = (float)Math.cos(dropAnim);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, alpha);
- switch(i) {
- case 0:
- posX = 0.16f + 0.08f * dropAnim;
- posY = 0.16f + 0.08f * dropAnim;
- break;
- case 1:
- posX = -0.16f - 0.08f * dropAnim;
- posY = 0.16f + 0.08f * dropAnim;
- break;
- case 2:
- posX = 0.16f + 0.08f * dropAnim;
- posY = -0.16f - 0.08f * dropAnim;
- break;
- case 3:
- posX = -0.16f - 0.08f * dropAnim;
- posY = -0.16f - 0.08f * dropAnim;
- break;
- }
- GL11.glTranslated(x, y, z);
- GL11.glTranslated(0.5f + posX, 0.02f + Math.sin(time / 12.0D) / 48.0D + (0.28f * dropAnim), 0.5f + posY);
- GL11.glScalef(0.25f, 0.25f, 0.25f);
- Minecraft.getMinecraft().renderEngine.bindTexture(i > 1 ? textureEnemy : texture);
- float dropAngel = 70.0f * dropAnim;
- switch(board.slotChance[i]) {
- case 1:
- model.render(180.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 2:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 3:
- model.render(90.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 4:
- model.render(270.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 5:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 270.0f);
- break;
- case 6:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 90.0f);
- break;
- default:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- }
- GL11.glPopMatrix();
- }
- GL11.glEnable(32826);
- GL11.glDisable(3042);
- }
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/81/d0ade0eef9b0001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/81/d0ade0eef9b0001c19bf8a91ac37238b
deleted file mode 100644
index 1b8975b..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/81/d0ade0eef9b0001c19bf8a91ac37238b
+++ /dev/null
@@ -1,80 +0,0 @@
-package ab.common.block;
-
-import java.util.Random;
-
-import ab.common.core.CommonHelper;
-import ab.common.lib.register.BlockListAB;
-import ab.common.lib.register.RecipeListAB;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockBush;
-import net.minecraft.block.IGrowable;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.world.IBlockAccess;
-import net.minecraft.world.World;
-import net.minecraftforge.common.util.ForgeDirection;
-import vazkii.botania.api.lexicon.ILexiconable;
-import vazkii.botania.api.lexicon.LexiconEntry;
-
-public class BlockFreyrLiana extends BlockBush implements ILexiconable {
-
- public BlockFreyrLiana() {
- super(Material.plants);
- this.setBlockName("BlockFreyrLiana");
- this.setStepSound(soundTypeGrass);
- this.setBlockTextureName("ab:freyrLiana");
- }
-
- public LexiconEntry getEntry(World world, int x, int y, int z, EntityPlayer player, ItemStack lexicon) {
- return RecipeListAB.freyrSlingshot;
- }
-
- public boolean canPlaceBlockAt(World world, int x, int y, int z) {
- return world.getBlock(x, y + 1, z).getMaterial() == Material.leaves
- || world.getBlock(x, y + 1, z).getMaterial() == Material.wood
- || world.getBlock(x, y + 1, z).getMaterial() == Material.ground
- || world.getBlock(x, y + 1, z).getMaterial() == Material.rock
- || world.getBlock(x, y + 1, z).getMaterial() == Material.sand
- || world.getBlock(x, y + 1, z).getMaterial() == Material.grass
- || world.getBlock(x, y + 1, z) instanceof BlockFreyrLiana;
- }
-
- public void updateTick(World world, int x, int y, int z, Random rand) {
- this.checkAndDropBlock(world, x, y, z);
- world.markBlockForUpdate(x, y, z);
- for(int i1 = 1; i1 < 5; i1++) {
- Block block = world.getBlock(x, y - i1, z);
- if(block instanceof IGrowable || (block instanceof BlockBush && !(block instanceof BlockFreyrLiana))) {
- CommonHelper.fertilizer(world, block, x, y - i1, z, 18);
- if(world.getBlock(x, y - i1 - 1, z) == BlockListAB.blockTerraFarmland)
- world.getBlock(x, y - i1 - 1, z).updateTick(world, x, y - i1 - 1, z, rand);
- break;
- }
- }
- }
-
- protected void checkAndDropBlock(World world, int x, int y, int z) {
- if (!this.canBlockStay(world, x, y, z)) {
- this.dropBlockAsItem(world, x, y, z, world.getBlockMetadata(x, y, z), 0);
- world.setBlock(x, y, z, getBlockById(0), 0, 3);
- }
- }
-
- public Item getItemDropped(int p_149650_1_, Random p_149650_2_, int p_149650_3_) {
- return null;
- }
-
- public boolean canBlockStay(World world, int x, int y, int z) {
- return this.canPlaceBlockAt(world, x, y, z);
- }
-
- public int getFlammability(final IBlockAccess world, final int x, final int y, final int z, final ForgeDirection face) {
- return 100;
- }
-
- public int getFireSpreadSpeed(final IBlockAccess world, final int x, final int y, final int z, final ForgeDirection face) {
- return 60;
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/82/2039944c03c0001c1965b122d2f8f403 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/82/2039944c03c0001c1965b122d2f8f403
new file mode 100644
index 0000000..86b9ee4
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/82/2039944c03c0001c1965b122d2f8f403
@@ -0,0 +1,158 @@
+package ab.common.item.relic;
+
+import java.awt.Color;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.common.core.handler.NetworkHandler;
+import ab.common.lib.register.ItemListAB;
+import net.minecraft.block.Block;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.util.MathHelper;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.api.mana.ManaItemHandler;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class ItemSphereNavigation extends ItemModRelic {
+
+ public static final int rangeSearch = 16;
+ public static final int maxCooldown = 112;
+ public static final int manaCost = 1750;
+
+ public ItemSphereNavigation() {
+ super("sphereNavigation");
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int pos, boolean equipped) {
+ super.onUpdate(stack, world, entity, pos, equipped);
+ if(entity instanceof EntityPlayer) {
+ EntityPlayer player = (EntityPlayer)entity;
+ if(!world.isRemote && getFindBlock(stack) != null && canWork(stack) && ManaItemHandler.requestManaExactForTool(stack, player, manaCost, true)) {
+ setMaxTick(stack);
+ NetworkHandler.sendPacketToFindBlocks((EntityPlayerMP)player, getFindBlock(stack), getFindMeta(stack));
+ }
+ }
+ }
+
+ public static void findBlocks(World world, Block findBlock, int findMeta, EntityPlayer player) {
+ if(world.isRemote) {
+ ItemStack renderStack = null;
+ int maxFindedBlocks = 25;
+ int findedBlocks = 0;
+ label1703:
+ for(int y = -rangeSearch * 2; y < rangeSearch; y++) {
+ for(int x = -rangeSearch; x < rangeSearch; x++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks + 4)) || (world.rand.nextBoolean() && world.rand.nextBoolean()))
+ continue;
+ for(int z = -rangeSearch; z < rangeSearch; z++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks + 4)) || (world.rand.nextBoolean() && world.rand.nextBoolean()))
+ continue;
+ else if(findedBlocks >= maxFindedBlocks)
+ break label1703;
+ int posX = MathHelper.floor_double(player.posX) + x;
+ int posY = MathHelper.floor_double(player.posY) + y;
+ int posZ = MathHelper.floor_double(player.posZ) + z;
+ if(posY < 0)
+ continue;
+ Block block = world.getBlock(posX, posY, posZ);
+ if(!Block.isEqualTo(block, findBlock))
+ continue;
+ int meta = world.getBlockMetadata(posX, posY, posZ);
+ if(meta == findMeta) {
+ if(renderStack == null)
+ renderStack = getRenderStackForBlock(world, block, meta, posX, posY, posZ);
+ findedBlocks++;
+ float maxAge = 2.7f + (0.5f * (float)(Math.random()));
+ Botania.proxy.setWispFXDepthTest(false);
+ Botania.proxy.setWispFXDistanceLimit(false);
+ float far = 120.0f - (((Math.abs(x) + Math.min(rangeSearch, Math.abs(y)) + Math.abs(z)) / (rangeSearch * 4.0f)) * 120.0f);
+ if(far <= 60)
+ far *= 0.15f;
+ Color color = new Color(Color.HSBtoRGB(far / 360.0f, 0.9f + (float)(Math.random() * 0.1f), 1.0f));
+ for(int i = 0; i < 11; i++)
+ Botania.proxy.wispFX(world, posX + 0.5f + (Math.random() - 0.5f), posY + 0.5f + (Math.random() - 0.5f), posZ + 0.5f + (Math.random() - 0.5f), color.getRed() / 100.0f, color.getGreen() / 100.0f, color.getBlue() / 100.0f, 0.3f + (float)(Math.random() * 0.25f), 0.0f, maxAge);
+ Botania.proxy.setWispFXDistanceLimit(true);
+ Botania.proxy.setWispFXDepthTest(true);
+ }
+ }
+ }
+ }
+ if(renderStack != null)
+ ItemsRemainingRender.set(renderStack, "íàéäåíî: " + findedBlocks);
+ }
+ }
+
+ public static ItemStack getRenderStackForBlock(World world, Block block, int meta, int x, int y, int z) {
+ if(block != null) {
+ Item item = Item.getItemFromBlock(block);
+ if(item != null) {
+ ItemStack findStack = new ItemStack(block, 1, meta);
+ if(findStack != null)
+ return findStack;
+ } else {
+ Item item1 = block.getItem(world, x, y, z);
+ if(item1 != null) {
+ ItemStack findStack = new ItemStack(item1, 1, meta);
+ if(findStack != null)
+ return findStack;
+ }
+ }
+ }
+ return null;
+ }
+
+ public boolean onItemUse(ItemStack stack, EntityPlayer p, World world, int x, int y, int z, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
+ if(p.isSneaking()) {
+ Block block = world.getBlock(x, y, z);
+ if(block != null) {
+ int meta = world.getBlockMetadata(x, y, z);
+ ItemStack findStack = getRenderStackForBlock(world, block, meta, x, y, z);
+ if(findStack != null) {
+ setFindBlock(stack, block, meta);
+ if(world.isRemote)
+ ItemsRemainingRender.set(findStack, findStack.getDisplayName());
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public boolean canWork(ItemStack stack) {
+ int tick = ItemNBTHelper.getInt(stack, "cooldown", 0);
+ if(tick == 0)
+ return true;
+ else if(tick > 0)
+ ItemNBTHelper.setInt(stack, "cooldown", tick - 1);
+ return false;
+ }
+
+ public void setMaxTick(ItemStack stack) {
+ ItemNBTHelper.setInt(stack, "cooldown", maxCooldown);
+ }
+
+ public static void setFindBlock(ItemStack stack, Block block, int meta) {
+ ItemNBTHelper.setInt(stack, "findBlockID", Block.getIdFromBlock(block));
+ ItemNBTHelper.setInt(stack, "findBlockMeta", meta);
+ }
+
+ public static Block getFindBlock(ItemStack stack) {
+ int blockID = ItemNBTHelper.getInt(stack, "findBlockID", 0);
+ if(blockID == 0)
+ return null;
+ else
+ return Block.getBlockById(blockID);
+ }
+
+ public static int getFindMeta(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "findBlockMeta", -1);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d/a0681cd624b0001c18a5eba32f24fffa b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/82/20869ca66bc1001c11e398ea97007cb4
similarity index 100%
rename from 1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d/a0681cd624b0001c18a5eba32f24fffa
rename to 1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/82/20869ca66bc1001c11e398ea97007cb4
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/82/40981e627dae001c1bd4eaa9a9be6b81 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/82/40981e627dae001c1bd4eaa9a9be6b81
deleted file mode 100644
index 0d5d7ed..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/82/40981e627dae001c1bd4eaa9a9be6b81
+++ /dev/null
@@ -1,288 +0,0 @@
-package ab.common.lib.register;
-
-import java.io.Serializable;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.List;
-
-import ab.api.AdvancedBotanyAPI;
-import ab.api.recipe.RecipeAdvancedPlate;
-import ab.api.recipe.RecipeAncientAlphirine;
-import ab.api.recipe.lexicon.AdvancedPlateCraftPage;
-import ab.api.recipe.lexicon.AlphirineCraftPage;
-import ab.common.block.tile.TileAgglomerationPlate;
-import ab.common.block.tile.TileLebethronCore;
-import ab.common.block.tile.TileMagicCraftCrate;
-import ab.common.core.handler.ConfigABHandler;
-import ab.common.item.ItemCraftingPattern;
-import cpw.mods.fml.common.registry.GameRegistry;
-import net.minecraft.init.Blocks;
-import net.minecraft.init.Items;
-import net.minecraft.item.ItemStack;
-import net.minecraft.item.crafting.CraftingManager;
-import net.minecraft.item.crafting.IRecipe;
-import net.minecraft.util.EnumChatFormatting;
-import net.minecraftforge.oredict.ShapedOreRecipe;
-import net.minecraftforge.oredict.ShapelessOreRecipe;
-import thaumcraft.common.config.ConfigBlocks;
-import thaumcraft.common.config.ConfigItems;
-import vazkii.botania.api.BotaniaAPI;
-import vazkii.botania.api.lexicon.KnowledgeType;
-import vazkii.botania.api.lexicon.LexiconCategory;
-import vazkii.botania.api.lexicon.LexiconEntry;
-import vazkii.botania.api.lexicon.LexiconPage;
-import vazkii.botania.api.recipe.RecipePetals;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.block.ModBlocks;
-import vazkii.botania.common.block.ModFluffBlocks;
-import vazkii.botania.common.item.ModItems;
-import vazkii.botania.common.item.block.ItemBlockSpecialFlower;
-import vazkii.botania.common.lexicon.BLexiconCategory;
-import vazkii.botania.common.lexicon.BLexiconEntry;
-import vazkii.botania.common.lexicon.RLexiconEntry;
-import vazkii.botania.common.lexicon.page.PageText;
-
-public class RecipeListAB {
-
- public static LexiconCategory categoryForgotten;
-
- public static RecipeAncientAlphirine lebethroneRecipe;
- public static RecipeAncientAlphirine forgottenLandRecipe;
- public static RecipeAncientAlphirine advancedSparkRecipe;
- public static RecipeAncientAlphirine manaFlowerRecipe;
- public static RecipeAncientAlphirine hopperRecipe;
- public static RecipeAncientAlphirine fateBoardRecipe;
-
- public static RecipeAdvancedPlate manaStarRecipe;
- public static RecipeAdvancedPlate terrasteelRecipe;
- public static RecipeAdvancedPlate mithrillRecipe;
- public static RecipeAdvancedPlate nebulaRecipe;
-
- public static RecipePetals alphirineRecipe;
- public static RecipePetals dictariusRecipe;
- public static RecipePetals aspecolusRecipe;
- public static RecipePetals pureGladRecipe;
-
- public static LexiconEntry advandedAgglomerationPlate;
- public static LexiconEntry ancientAlphirine;
- public static LexiconEntry lebethronWood;
- public static LexiconEntry lebethronSpreader;
- public static LexiconEntry mithrill;
- public static LexiconEntry manaContainer;
- public static LexiconEntry manaCrystalCube;
- public static LexiconEntry terraHoe;
- public static LexiconEntry manaRings;
- public static LexiconEntry manaFlower;
- public static LexiconEntry mithrillSword;
- public static LexiconEntry nebula;
- public static LexiconEntry blackHalo;
- public static LexiconEntry antigravityCharm;
- public static LexiconEntry nebulaBlaze;
- public static LexiconEntry aspecolus;
- public static LexiconEntry dictarius;
- public static LexiconEntry manaCharger;
- public static LexiconEntry nebulaArmor;
- public static LexiconEntry freyrSlingshot;
- public static LexiconEntry engineerHopper;
- public static LexiconEntry nebulaRod;
- public static LexiconEntry thaumAutoCraft;
- public static LexiconEntry gladious;
- public static LexiconEntry gameBoard;
- public static LexiconEntry fateBoard;
- public static LexiconEntry richesKey;
- public static LexiconEntry cubeWardrobe;
-
- public static KnowledgeType forgotten;
-
- public static void init() {
-
- BotaniaAPI.addCategory(categoryForgotten = new BLexiconCategory("forgotten", 5));
- forgotten = BotaniaAPI.registerKnowledgeType("ab_forgotten", EnumChatFormatting.BLUE, false);
-
- lebethroneRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(BlockListAB.blockLebethron), new ItemStack(ModBlocks.dreamwood, 1, 0), 15);
- forgottenLandRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(ItemListAB.itemABResource, 1, 3), new ItemStack(ModItems.manaResource, 1, 15), 75);
- advancedSparkRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(ItemListAB.itemAdvancedSpark), new ItemStack(ModItems.spark), 11);
- manaFlowerRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(ItemListAB.itemABResource, 1, 4), new ItemStack(ModBlocks.flower, 1, 32767), 32);
- hopperRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(BlockListAB.blockEngineerHopper), new ItemStack(Blocks.hopper), 23);
- fateBoardRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(BlockListAB.blockBoardFate, 1, 1), new ItemStack(BlockListAB.blockBoardFate), 60);
-
- mithrillRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ItemListAB.itemABResource, 1, 0), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModBlocks.storage, 1, 0), new ItemStack(ModItems.manaResource, 1, 18), 7500000, 0x25d6b7);
- terrasteelRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ModItems.manaResource, 1, 4), new ItemStack(ModItems.manaResource, 1, 2), new ItemStack(ModItems.manaResource, 1, 0), new ItemStack(ModItems.manaResource, 1, 1), 500000, 0x29de20);
- manaStarRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ItemListAB.itemABResource, 1, 2), new ItemStack(ModItems.manaResource, 1, 23), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(Items.nether_star), 250000, 0x6bc9ec);
- nebulaRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ItemListAB.itemABResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 8), new ItemStack(ModBlocks.storage, 1, 4), new ItemStack(ItemListAB.itemABResource, 1, 1), 50000000, 0x8d16e0);
-
- ancientAlphirine = new BLexiconEntry("ancientAlphirine", categoryForgotten);
- alphirineRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("ancientAlphirine"), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.rune, 1, 8), new ItemStack(ModItems.rune, 1, 4), new ItemStack(ModItems.rune, 1, 5), new ItemStack(ModItems.rune, 1, 6), new ItemStack(ModItems.rune, 1, 7), new ItemStack(ModItems.petal, 1, 1), new ItemStack(ModItems.petal, 1, 4));
- ancientAlphirine.setPriority().setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), new PageText("1"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", alphirineRecipe), new AlphirineCraftPage(ancientAlphirine, forgottenLandRecipe.getOutput(), ".alphirineCraft") }).setIcon(ItemBlockSpecialFlower.ofType("ancientAlphirine"));
-
- if(ConfigABHandler.hasAbPlate) {
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockABPlate), new Object[] { " ", "MPM", "BRB", Character.valueOf('M'), new ItemStack(ModBlocks.storage), Character.valueOf('P'), new ItemStack(ModBlocks.terraPlate), Character.valueOf('B'), new ItemStack(ItemListAB.itemABResource, 1, 3), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 3)});
- advandedAgglomerationPlate = new BLexiconEntry("advancedPlate", categoryForgotten);
- advandedAgglomerationPlate.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] {new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()), BotaniaAPI.internalHandler.multiblockPage(".structure", TileAgglomerationPlate.makeMultiblockSet()), new AdvancedPlateCraftPage(advandedAgglomerationPlate, terrasteelRecipe.getOutput(), ".abCraft0"), new AdvancedPlateCraftPage(advandedAgglomerationPlate, manaStarRecipe.getOutput(), ".abCraft1") }).setIcon(new ItemStack(BlockListAB.blockABPlate));
- }
-
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockABSpreader), new Object[] { "WMW", "PSP", "WMW", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource, 1, 2), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('S'), new ItemStack(ModBlocks.spreader, 1, 3), Character.valueOf('W'), new ItemStack(BlockListAB.blockLebethron, 1, 4)});
- lebethronSpreader = new BLexiconEntry("lebethronSpreader", categoryForgotten);
- lebethronSpreader.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(BlockListAB.blockABSpreader));
-
- addShapelessOreDictRecipe(new ItemStack(BlockListAB.blockLebethron, 4, 1), new Object[] { new ItemStack(BlockListAB.blockLebethron)});
- IRecipe leb1 = getLastRecipe();
- addShapelessOreDictRecipe(new ItemStack(BlockListAB.blockLebethron, 1, 2), new Object[] { new ItemStack(BlockListAB.blockLebethron, 1, 1), new ItemStack(Items.wheat_seeds)});
- IRecipe leb2 = getLastRecipe();
- addShapelessOreDictRecipe(new ItemStack(BlockListAB.blockLebethron, 1, 3), new Object[] { new ItemStack(BlockListAB.blockLebethron), new ItemStack(Items.glowstone_dust)});
- IRecipe leb3 = getLastRecipe();
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockLebethron, 1, 4), new Object[] { "4W5", "WPW", "6W7", Character.valueOf('P'), new ItemStack(ModBlocks.pylon, 1, 1), Character.valueOf('W'), new ItemStack(BlockListAB.blockLebethron), Character.valueOf('4'), new ItemStack(ModItems.rune, 1, 4), Character.valueOf('5'), new ItemStack(ModItems.rune, 1, 5), Character.valueOf('6'), new ItemStack(ModItems.rune, 1, 6), Character.valueOf('7'), new ItemStack(ModItems.rune, 1, 7)});
- IRecipe leb4 = getLastRecipe();
- lebethronWood = new BLexiconEntry("lebethronWood", categoryForgotten);
- lebethronWood.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AlphirineCraftPage(lebethronWood, lebethroneRecipe.getOutput(), ".alphirineCraft"), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb1), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb2), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb3), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb4), new PageText("1"), BotaniaAPI.internalHandler.multiblockPage(".structure", TileLebethronCore.makeMultiblockSet()) }).setIcon(new ItemStack(BlockListAB.blockLebethron));
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemMihrillMultiTool), new Object[] { " MB", " FM", "F ", Character.valueOf('F'), new ItemStack(ModItems.manaResource, 1, 3), Character.valueOf('B'), new ItemStack(ModBlocks.livingwood), Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource)});
- mithrill = new BLexiconEntry("mithrill", categoryForgotten);
- mithrill.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AdvancedPlateCraftPage(mithrill, mithrillRecipe.getOutput(), ".abCraft"), new PageText("1"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(ItemListAB.itemMihrillMultiTool));
- if(!ConfigABHandler.hasAbPlate)
- mithrill.pages.remove(1);
-
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaContainer), new Object[] { "MGM", "LPL", "M3M", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('L'), new ItemStack(ModBlocks.pool), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('3'), new ItemStack(ModItems.rune, 1, 3), Character.valueOf('G'), new ItemStack(ModItems.rune, 1, 15)});
- IRecipe cont1 = getLastRecipe();
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaContainer, 1, 1), new Object[] { "MGM", "LPL", "M3M", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource, 1, 1), Character.valueOf('L'), new ItemStack(ModBlocks.pool, 1, 2), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('3'), new ItemStack(ModItems.rune, 1, 3), Character.valueOf('G'), new ItemStack(ModItems.rune, 1, 15)});
- IRecipe cont2 = getLastRecipe();
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaContainer, 1, 2), new Object[] { "MGM", "LPL", "M3M", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('L'), new ItemStack(ModBlocks.pool, 1, 3), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('3'), new ItemStack(ModItems.rune, 1, 3), Character.valueOf('G'), new ItemStack(ModItems.rune, 1, 15)});
- IRecipe cont3 = getLastRecipe();
- manaContainer = new BLexiconEntry("manaContainer", categoryForgotten);
- manaContainer.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", cont1), BotaniaAPI.internalHandler.craftingRecipePage(".craft1", cont2), BotaniaAPI.internalHandler.craftingRecipePage(".craft2", cont3), new PageText("1"), new AlphirineCraftPage(manaContainer, advancedSparkRecipe.getOutput(), ".alphirineCraft") }).setIcon(new ItemStack(BlockListAB.blockManaContainer));
-
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaCrystalCube), new Object[] { "TST", "GWG", "DMD", Character.valueOf('D'), new ItemStack(ModBlocks.dreamwood), Character.valueOf('W'), new ItemStack(ModItems.twigWand, 1, 32767), Character.valueOf('G'), new ItemStack(ModBlocks.manaGlass), Character.valueOf('M'), new ItemStack(ModItems.manaResource), Character.valueOf('T'), new ItemStack(ModItems.manaResource, 1, 18), Character.valueOf('S'), new ItemStack(ModItems.spark)});
- manaCrystalCube = new BLexiconEntry("manaCrystalCube", BotaniaAPI.categoryMana);
- manaCrystalCube.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(BlockListAB.blockManaCrystalCube));
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemTerraHoe), new Object[] { "TTL", "RW ", " W ", Character.valueOf('T'), new ItemStack(ModItems.manaResource, 1, 4), Character.valueOf('L'), new ItemStack(ModItems.manaResource, 1, 18), Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 3), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 2)});
- terraHoe = new BLexiconEntry("terraHoe", BotaniaAPI.categoryTools);
- terraHoe.setLexiconPages(new LexiconPage[]{ new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(ItemListAB.itemTerraHoe));
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemMithrillRing), new Object[] { "LML", "MRM", "LML", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('L'), new ItemStack(ItemListAB.itemABResource, 1, 1), Character.valueOf('R'), new ItemStack(ModItems.manaRingGreater)});
- IRecipe ring1 = getLastRecipe();
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaRing), new Object[] { "LML", "MRM", "LML", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource, 1, 6), Character.valueOf('L'), new ItemStack(ModItems.manaResource, 1, 5), Character.valueOf('R'), new ItemStack(ItemListAB.itemMithrillRing)});
- IRecipe ring2 = getLastRecipe();
- manaRings = new BLexiconEntry("manaRings", categoryForgotten);
- manaRings.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[]{ new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", ring1), BotaniaAPI.internalHandler.craftingRecipePage(".craft1", ring2)}).setIcon(new ItemStack(ItemListAB.itemMithrillRing));
- AdvancedBotanyAPI.registerFarmlandSeed(Blocks.nether_wart, 3);
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemManaFlower), new Object[] { " F ", " M ", " R ", Character.valueOf('F'), new ItemStack(ItemListAB.itemABResource, 1, 4), Character.valueOf('M'), new ItemStack(ModItems.manaBottle), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 8)});
- manaFlower = new BLexiconEntry("manaFlower", categoryForgotten);
- manaFlower.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AlphirineCraftPage(manaFlower, manaFlowerRecipe.getOutput(), ".alphirineCraft"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())}).setIcon(new ItemStack(ItemListAB.itemManaFlower));
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemMithrillSword), new Object[] { " M", "SM ", "WS ", Character.valueOf('S'), new ItemStack(ItemListAB.itemABResource, 1, 6), Character.valueOf('T'), new ItemStack(ModItems.terraSword), Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 3)});
- mithrillSword = new BLexiconEntry("mithrillSword", categoryForgotten);
- mithrillSword.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(ItemListAB.itemMithrillSword));
-
- dictariusRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("dictarius"), new ItemStack(ItemListAB.itemABResource, 1, 4), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.rune, 1, 15), new ItemStack(ModItems.petal, 1, 4), new ItemStack(ModItems.petal, 1, 4), new ItemStack(ModItems.petal, 1, 1));
- dictarius = new BLexiconEntry("dictarius", BotaniaAPI.categoryGenerationFlowers);
- dictarius.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", dictariusRecipe)});
-
- nebula = new BLexiconEntry("nebula", categoryForgotten);
- nebula.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AdvancedPlateCraftPage(nebula, nebulaRecipe.getOutput(), ".abCraft")});
- if(!ConfigABHandler.hasAbPlate)
- nebula.pages.remove(1);
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemBlackHalo), new Object[] { " E ", "DHD", " E ", Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.autocraftingHalo), Character.valueOf('D'), new ItemStack(ModItems.blackHoleTalisman)});
- blackHalo = new BLexiconEntry("blackHalo", BotaniaAPI.categoryTools);
- blackHalo.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemAntigravityCharm), new Object[] { " G ", "GDG", "ERE", Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('G'), new ItemStack(ModBlocks.elfGlass), Character.valueOf('D'), new ItemStack(ModBlocks.floatingFlower, 1, 32767), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 3)});
- antigravityCharm = new BLexiconEntry("antigravityCharm", BotaniaAPI.categoryTools);
- antigravityCharm.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())}).setIcon(new ItemStack(ItemListAB.itemAntigravityCharm));
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaBlaze), new Object[] { " N ", "MMN", "AMN", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 6), Character.valueOf('A'), new ItemStack(ItemListAB.itemABResource, 1, 3), Character.valueOf('M'), new ItemStack(ModBlocks.storage)});
- nebulaBlaze = new BLexiconEntry("nebulaBlaze", categoryForgotten);
- nebulaBlaze.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
-
- if(ConfigABHandler.hasManaCharger) {
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaCharger), new Object[] { "NLN", "MPM", " R ", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 1), Character.valueOf('L'), new ItemStack(ModBlocks.livingrock), Character.valueOf('M'), new ItemStack(ModBlocks.bellows), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 8)});
- manaCharger = new BLexiconEntry("manaCharger", categoryForgotten);
- manaCharger.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
- }
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaHelm), new Object[] { "RNR", "NHN", " E ", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelHelm), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8)});
- IRecipe nHelm = getLastRecipe();
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaChest), new Object[] { "RTR", "NHN", "ENE", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelChest), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8), Character.valueOf('T'), new ItemStack(ModItems.flightTiara, 1, 32767)});
- IRecipe nChest = getLastRecipe();
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaLegs), new Object[] { "ENE", "RHR", "NAN", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelLegs), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8), Character.valueOf('A'), new ItemStack(ItemListAB.itemABResource, 1, 3)});
- IRecipe nLegs = getLastRecipe();
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaBoots), new Object[] { "RBR", "NHN", " E ", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelBoots), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8), Character.valueOf('B'), new ItemStack(ModItems.speedUpBelt)});
- IRecipe nBoots = getLastRecipe();
- nebulaArmor = new BLexiconEntry("nebulaArmor", categoryForgotten);
- nebulaArmor.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new PageText("1"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", nHelm), BotaniaAPI.internalHandler.craftingRecipePage(".craft", nChest), BotaniaAPI.internalHandler.craftingRecipePage(".craft", nLegs), BotaniaAPI.internalHandler.craftingRecipePage(".craft", nBoots)});
-
- engineerHopper = new BLexiconEntry("engineerHopper", categoryForgotten);
- engineerHopper.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AlphirineCraftPage(engineerHopper, hopperRecipe.getOutput(), ".alphirineCraft")});
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaRod), new Object[] { " WN", " RW", "W ", Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 13), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 8), Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 6)});
- nebulaRod = new BLexiconEntry("nebulaRod", categoryForgotten);
- nebulaRod.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
-
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockBoardFate), new Object[] { " ", "QDQ", "MPM", Character.valueOf('Q'), new ItemStack(ModFluffBlocks.manaQuartz), Character.valueOf('D'), new ItemStack(ModItems.manaResource, 1, 2), Character.valueOf('M'), new ItemStack(ModItems.manaResource), Character.valueOf('P'), new ItemStack(ModItems.manaResource, 1, 23)});
- gameBoard = new BLexiconEntry("gameBoard", BotaniaAPI.categoryMisc);
- gameBoard.setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
-
- fateBoard = new BLexiconEntry("fateBoard", categoryForgotten);
- fateBoard.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AlphirineCraftPage(fateBoard, fateBoardRecipe.getOutput(), ".alphirineCraft")});
-
- freyrSlingshot = new RLexiconEntry("freyrSlingshot", BotaniaAPI.categoryAlfhomancy, AchievementRegister.relicSlingshot);
- freyrSlingshot.setLexiconPages(new LexiconPage[] { new PageText("0")});
-
- richesKey = new RLexiconEntry("richesKey", BotaniaAPI.categoryAlfhomancy, AchievementRegister.relicItemChest);
- richesKey.setLexiconPages(new LexiconPage[] { new PageText("0")});
-
- cubeWardrobe = new RLexiconEntry("cubeWardrobe", BotaniaAPI.categoryAlfhomancy, AchievementRegister.relicPocketArmor);
- cubeWardrobe.setLexiconPages(new LexiconPage[] { new PageText("0")});
-
- if(Botania.thaumcraftLoaded)
- thaumcraft();
-
- addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemABResource, 9, 1), new Object[] { new ItemStack(ItemListAB.itemABResource)});
- addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemABResource, 9, 0), new Object[] { new ItemStack(BlockListAB.blockABStorage)});
- addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemABResource, 9, 6), new Object[] { new ItemStack(ItemListAB.itemABResource, 1, 5)});
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockABStorage), new Object[] { "III", "III", "III", Character.valueOf('I'), new ItemStack(ItemListAB.itemABResource)});
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemABResource, 1, 5), new Object[] { "III", "III", "III", Character.valueOf('I'), new ItemStack(ItemListAB.itemABResource, 1, 6)});
- }
-
- public static void thaumcraft() {
- aspecolus = new BLexiconEntry("aspecolus", BotaniaAPI.categoryFunctionalFlowers);
- aspecolusRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("aspecolus"), new ItemStack(ModItems.manaResource, 1, 6), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.rune, 1, 1), new ItemStack(ModItems.rune), new ItemStack(ItemListAB.itemABResource, 1, 2), new ItemStack(ModItems.petal, 1, 10), new ItemStack(ModItems.petal, 1, 13));
- aspecolus.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", aspecolusRecipe) }).setIcon(ItemBlockSpecialFlower.ofType("aspecolus"));
- addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemNebulaHelmReveal), new Object[] { new ItemStack(ItemListAB.itemNebulaHelm), new ItemStack(ConfigItems.itemGoggles)});
- List recipes = new ArrayList();
- for(int i = 1; i < 10; i++) {
- boolean[][] patterns = ItemCraftingPattern.getPattern(i);
- List str = new ArrayList();
- for(int j = 0; j < patterns.length; j++) {
- String str1 = "";
- for(int k = 0; k < patterns[j].length; k++)
- str1 += patterns[j][k] ? "T" : "H";
- str.add(str1);
- }
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemCraftingPattern, 1, i), new Object[] { str.get(0), str.get(1), str.get(2), Character.valueOf('T'), new ItemStack(ItemListAB.itemCraftingPattern), Character.valueOf('H'), new ItemStack(ConfigItems.itemNugget, 1, 6)});
- recipes.add(getLastRecipe());
- }
- IRecipe crate = GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockMagicCraftCrate), new Object[] { "TST", "WCW", "W W", Character.valueOf('W'), new ItemStack(ConfigBlocks.blockMagicalLog), Character.valueOf('S'), new ItemStack(ConfigItems.itemResource, 1, 14), Character.valueOf('T'), new ItemStack(ConfigItems.itemResource, 1, 7), Character.valueOf('C'), new ItemStack(ModBlocks.openCrate, 1, 1)});
- addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemCraftingPattern, 48), new Object[] { new ItemStack(Blocks.crafting_table), new ItemStack(ModBlocks.livingrock), new ItemStack(ConfigItems.itemResource, 1, 14)});
- thaumAutoCraft = new BLexiconEntry("thaumAutoCraft", BotaniaAPI.categoryDevices);
- thaumAutoCraft.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", crate) , BotaniaAPI.internalHandler.craftingRecipePage(".craft0", getLastRecipe()), BotaniaAPI.internalHandler.craftingRecipesPage(".craft1", recipes)});
-
- pureGladRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("pureGladiolus"), new ItemStack(ItemListAB.itemABResource, 1, 4), new ItemStack(ModItems.rune, 1, 8), new ItemStack(ModItems.petal, 1, 8), new ItemStack(ModItems.petal, 1, 4), new ItemStack(ModItems.petal, 1, 14), new ItemStack(ModItems.petal, 1, 5), new ItemStack(ModItems.petal, 1, 13), new ItemStack(ModItems.petal, 1, 11));
- gladious = new BLexiconEntry("gladious", BotaniaAPI.categoryFunctionalFlowers);
- gladious.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", pureGladRecipe)});
- }
-
- private static IRecipe getLastRecipe() {
- return (IRecipe)CraftingManager.getInstance().getRecipeList().get(CraftingManager.getInstance().getRecipeList().size() - 1);
- }
-
- private static void addOreDictRecipe(ItemStack output, Object... recipe) {
- CraftingManager.getInstance().getRecipeList().add(new ShapedOreRecipe(output, recipe));
- }
-
- private static void addShapelessOreDictRecipe(ItemStack output, Object... recipe) {
- CraftingManager.getInstance().getRecipeList().add(new ShapelessOreRecipe(output, recipe));
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/82/40d769d784b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/82/40d769d784b1001c19bf8a91ac37238b
deleted file mode 100644
index 212b4c5..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/82/40d769d784b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,75 +0,0 @@
-package ab.common.item.equipment.armor;
-
-import java.util.List;
-import java.util.UUID;
-
-import com.google.common.collect.HashMultimap;
-import com.google.common.collect.Multimap;
-
-import net.minecraft.entity.SharedMonsterAttributes;
-import net.minecraft.entity.ai.attributes.AttributeModifier;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.EnumChatFormatting;
-import net.minecraft.util.StatCollector;
-import net.minecraft.world.World;
-import vazkii.botania.api.mana.IManaDiscountArmor;
-import vazkii.botania.api.mana.IManaGivingItem;
-import vazkii.botania.api.mana.ManaItemHandler;
-import vazkii.botania.common.core.helper.ItemNBTHelper;
-
-public class ItemNebulaHelm extends ItemNebulaArmor implements IManaDiscountArmor, IManaGivingItem {
-
- private static final String TAG_COSMIC_FACE = "enableCosmicFace";
-
- public ItemNebulaHelm() {
- this("nebulaHelm");
- }
-
- public ItemNebulaHelm(String str) {
- super(0, str);
- }
-
- public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
- if(player.isSneaking())
- setCosmicFace(stack, !enableCosmicFace(stack));
- else
- super.onItemRightClick(stack, world, player);
- return stack;
- }
-
- public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean adv) {
- super.addInformation(stack, player, list, adv);
- if(!enableCosmicFace(stack))
- addStringToTooltip(EnumChatFormatting.GREEN + StatCollector.translateToLocal("ab.nebulaHelm.mask"), list);
- }
-
- public boolean enableCosmicFace(ItemStack stack) {
- return ItemNBTHelper.getBoolean(stack, TAG_COSMIC_FACE, true);
- }
-
- public void setCosmicFace(ItemStack stack, boolean enable) {
- ItemNBTHelper.setBoolean(stack, TAG_COSMIC_FACE, enable);
- }
-
- public void onArmorTick(World world, EntityPlayer player, ItemStack stack) {
- super.onArmorTick(world, player, stack);
- if(hasArmorSet(player)) {
- int food = player.getFoodStats().getFoodLevel();
- if(food > 0 && food < 18 && player.shouldHeal() && player.ticksExisted % 80 == 0)
- player.heal(1.0F);
- ManaItemHandler.dispatchManaExact(stack, player, 50, true);
- }
- }
-
- public float getDiscount(ItemStack stack, int slot, EntityPlayer player) {
- return hasArmorSet(player) ? 0.30F : 0.0F;
- }
-
- public Multimap getAttributeModifiers(ItemStack stack) {
- HashMultimap hashMultimap = HashMultimap.create();
- UUID uuid = new UUID(getUnlocalizedName().hashCode(), 0L);
- hashMultimap.put(SharedMonsterAttributes.maxHealth.getAttributeUnlocalizedName(), new AttributeModifier(uuid, "NebulaHelm modifier", 20.0D * (1.0f - (this.getDamage(stack) / 1000.0f)), 0));
- return (Multimap)hashMultimap;
- }
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/83/e0f411f9e3ac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/83/e0f411f9e3ac001c1d59e42be7477558
deleted file mode 100644
index 13e0565..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/83/e0f411f9e3ac001c1d59e42be7477558
+++ /dev/null
@@ -1,166 +0,0 @@
-package ab.common.block.tile;
-
-import java.util.List;
-
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.ChatComponentTranslation;
-import net.minecraft.util.ChatStyle;
-import net.minecraft.util.EnumChatFormatting;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-
-public class TileGameBoard extends TileInventory {
-
- protected String[] playersName = new String[] { "", "" };
- public byte[] slotChance = new byte[] { 0, 0, 0, 0 };
- protected int botTick = -1;
- public int endGameTick = -1;
- protected boolean requestUpdate;
- public boolean isSingleGame = true;
- public int clientTick[] = new int[] { 0, 0, 0, 0};
-
- public void updateEntity() {
- if(botTick > 0)
- botTick--;
- if(endGameTick > 0)
- endGameTick--;
- if(!worldObj.isRemote)
- updateServer();
- else
- updateClient();
- }
-
- protected void updateClient() {
- for(int i = 0; i < slotChance.length; i++)
- if(slotChance[i] > 0)
- clientTick[i]++;
- else
- clientTick[i] = 0;
- }
-
- protected void updateServer() {
- if(requestUpdate)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- boolean hasUpdate = false;
- if(isSingleGame && botTick == 0 && hasGame()) {
- for(int i = 2; i < 4; i++) {
- if(slotChance[i] == 0) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = -1;
- hasUpdate = true;
- break;
- }
- }
- }
- if(hasGame() && endGameTick == 0)
- finishGame();
- requestUpdate = hasUpdate;
- }
-
- public void setPlayer(EntityPlayer player) {
- if(isSingleGame) {
- playersName[0] = player.getCommandSenderName();
- playersName[1] = "";
- requestUpdate = true;
- botTick = 8;
- }
- }
-
- public boolean dropDice(EntityPlayer player) {
- if(isSingleGame) {
- if(player.getCommandSenderName().equals(playersName[0]) && botTick == -1) {
- boolean isLastDice = false;
- for(int i = 0; i < 2; i++) {
- if(slotChance[i] == 0 && !worldObj.isRemote) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = 18;
- requestUpdate = true;
- if(i == 1)
- isLastDice = true;
- break;
- }
- }
- if(isLastDice)
- endGameTick = 28;
- return true;
- }
- }
- return false;
- }
-
- public boolean hasGame() {
- if(isSingleGame)
- return !playersName[0].isEmpty();
- return !playersName[0].isEmpty() && !playersName[1].isEmpty();
- }
-
- public void finishGame() {
- if(worldObj.isRemote)
- return;
- if(isSingleGame) {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won");
- else if((slotChance[0] + slotChance[1]) == (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " not win");
- else
- sendNearMessage(playersName[0] + " you Lose!");
- resetGame();
- requestUpdate = true;
- }
- }
-
- public void sendNearMessage(String text) {
- List players = this.worldObj.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(this.xCoord, this.yCoord, this.zCoord, (this.xCoord + 1), (this.yCoord + 1), (this.zCoord + 1)).expand(3.5f, 3.5f, 3.5f));
- for(EntityPlayer player : players) {
- if(player != null)
- player.addChatMessage((new ChatComponentTranslation(text, new Object[] {})).setChatStyle((new ChatStyle()).setColor(EnumChatFormatting.DARK_GREEN)));
- }
- }
-
- public void resetGame() {
- playersName[0] = "";
- playersName[1] = "";
- for(int i = 0; i < slotChance.length; i++)
- slotChance[i] = 0;
- requestUpdate = true;
- botTick = -1;
- endGameTick = -1;
- }
-
- public void writeCustomNBT(NBTTagCompound cmp) {
- super.writeCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- cmp.setString("playerName" + i, playersName[i]);
- cmp.setByteArray("slotChance", slotChance);
- cmp.setInteger("botTick", botTick);
- cmp.setInteger("endGameTick", endGameTick);
- cmp.setBoolean("requestUpdate", requestUpdate);
- cmp.setBoolean("isSingleGame", isSingleGame);
- }
-
- public void readCustomNBT(NBTTagCompound cmp) {
- super.readCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- playersName[i] = cmp.getString("playerName" + i);
- botTick = cmp.getInteger("botTick");
- endGameTick = cmp.getInteger("endGameTick");
- slotChance = cmp.getByteArray("slotChance");
- requestUpdate = cmp.getBoolean("requestUpdate");
- isSingleGame = cmp.getBoolean("isSingleGame");
- }
-
- public int getInventoryStackLimit() {
- return 1;
- }
-
- public int getSizeInventory() {
- return 4;
- }
-
- public String getInventoryName() {
- return "inv.gameBoard";
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/85/707d514fe6b0001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/85/707d514fe6b0001c19bf8a91ac37238b
deleted file mode 100644
index e6fe42a..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/85/707d514fe6b0001c19bf8a91ac37238b
+++ /dev/null
@@ -1,132 +0,0 @@
-package ab.common.item.equipment;
-
-import java.awt.Color;
-
-import ab.client.core.ClientHelper;
-import ab.common.core.handler.ConfigABHandler;
-import ab.common.item.ItemMod;
-import net.minecraft.block.Block;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.Minecraft;
-import net.minecraft.entity.Entity;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.EnumAction;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.ChunkCoordinates;
-import net.minecraft.util.MathHelper;
-import net.minecraft.util.Vec3;
-import net.minecraft.world.World;
-import net.minecraft.world.chunk.Chunk;
-import vazkii.botania.api.mana.IManaUsingItem;
-import vazkii.botania.api.mana.ManaItemHandler;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.core.helper.Vector3;
-
-public class ItemNebulaRod extends ItemMod implements IManaUsingItem {
-
- public ItemNebulaRod() {
- super("nebulaRod");
- this.setMaxStackSize(1);
- this.setNoRepair();
- this.setMaxDamage(100);
- }
-
- public boolean usesMana(ItemStack stack) {
- return true;
- }
-
- public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
- if(stack.getItemDamage() == 0)
- player.setItemInUse(stack, getMaxItemUseDuration(stack));
- return stack;
- }
-
- public EnumAction getItemUseAction(ItemStack par1ItemStack) {
- return EnumAction.bow;
- }
-
- public void onUpdate(ItemStack stack, World world, Entity player, int par4, boolean par5) {
- if(!world.isRemote && player instanceof EntityPlayer && player.ticksExisted % ConfigABHandler.nebulaWandCooldownTick == 0 && stack.getItemDamage() > 0 && ManaItemHandler.requestManaExactForTool(stack, (EntityPlayer)player, 140, true))
- stack.setItemDamage(stack.getItemDamage() - 1);
- }
-
- public void onUsingTick(ItemStack stack, EntityPlayer p, int time) {
- time = this.getMaxItemUseDuration(stack) - time;
- if(time > 110 && !p.isSneaking()) {
- Vec3 vec3 = p.getLook(1.0F).normalize();
- MathHelper.floor_double(time);
- int limitXZ = ConfigABHandler.limitXZCoords;
- int posX = MathHelper.floor_double(p.posX + vec3.xCoord * 256);
- int posY = MathHelper.floor_double(p.posY);
- int posZ = MathHelper.floor_double(p.posZ + vec3.zCoord * 256);
- ChunkCoordinates chunkcoordinates = new ChunkCoordinates(Math.min(Math.max(posX, -(limitXZ - 1)), limitXZ - 1), posY, Math.min(Math.max(posZ, -(limitXZ - 1)), limitXZ - 1));
- int topY = getTopBlock(p.worldObj, posX, posZ);
- if(topY == -1) {
- p.stopUsingItem();
- return;
- }
- chunkcoordinates.posY = topY;
- if(!p.worldObj.isRemote)
- ((EntityPlayerMP)p).playerNetServerHandler.setPlayerLocation(chunkcoordinates.posX + 0.5D, chunkcoordinates.posY + 1.6D, chunkcoordinates.posZ + 0.5D, p.rotationYaw, p.rotationPitch);
- if(!p.capabilities.isCreativeMode)
- stack.setItemDamage(100);
- p.stopUsingItem();
- }
- spawnPortalParticle(p.worldObj, p, time);
- }
-
- public void spawnPortalParticle(World world, EntityPlayer p, int time) {
- if(world.isRemote) {
- boolean isFinish = time > 80;
- int ticks = Math.min(100, time);
- int totalSpiritCount = (int)Math.max(3, ticks / 100.0f * 18);
- double tickIncrement = 360.0D / totalSpiritCount;
- int speed = 8;
- double wticks = (ticks * speed) - tickIncrement;
- double r = Math.sin((ticks) / 100.0D) * Math.max(0.75f, 1.4D * ticks / 100.0f);
- Vec3 look = p.getLookVec();
- float yawOffset = Minecraft.getMinecraft().thePlayer.getDisplayName() == p.getDisplayName() ? 0.0f : 1.62f;
- Vector3 l = new Vector3(look.xCoord, look.yCoord + yawOffset, look.zCoord);
- Vector3 player = Vector3.fromEntity(p).add(0.0f, 0.0f, 0.0f);
- Vector3 v3 = new Vector3();
- for(int i = 0; i < totalSpiritCount; i++) {
- float size = Math.max(0.215f, ticks / 100.0f);
- v3.set(Math.sin(wticks * Math.PI / 180.0D) / 1.825f * r, Math.cos(wticks * Math.PI / 180.0D) * r, 0.8f);
- ClientHelper.setRotation(p.rotationPitch, 1.0f, 0.0f, 0.0f, v3);
- ClientHelper.setRotation(-p.rotationYaw, 0.0f, 1.0f, 0.0f, v3);
- v3.add(l.multiply(1.0f)).add(player);
- wticks += tickIncrement;
- int color = world.rand.nextBoolean() ? 0x931fec : 0x4b1682;
- float hsb[] = Color.RGBtoHSB(color & 255, color >> 8 & 255, color >> 16 & 255, null);
- int color1 = Color.HSBtoRGB(hsb[0], hsb[1], ticks / 100.0f);
- float[] colorsfx = { (color1 & 255) / 255.0f, (color1 >> 8 & 255) / 255.0f, (color1 >> 16 & 255) / 255.0f };
- float motionSpeed = 0.25f * Math.min(1.0f, (time - 80) / 30.0f);
- Botania.proxy.wispFX(world, v3.x, v3.y, v3.z, colorsfx[0], colorsfx[1], colorsfx[2], 0.3F * size, isFinish ? (float)(look.xCoord * -1) * motionSpeed : 0.0f, isFinish ? (float)(look.yCoord * -1) * motionSpeed : 0.0f, isFinish ? (float)(look.zCoord * -1) * motionSpeed : 0.0f, 0.3F);
- Botania.proxy.wispFX(world, v3.x, v3.y, v3.z, colorsfx[0], colorsfx[1], colorsfx[2], (float)(Math.random() * 0.1F + 0.05F) * size, (float)(Math.random() - 0.5D) * 0.05F, (float)(Math.random() - 0.5D) * 0.05F, (float)(Math.random() - 0.5D) * 0.05F, 0.4F);
- }
- }
- }
-
- public int getMaxItemUseDuration(ItemStack par1ItemStack) {
- return 72000;
- }
-
- public boolean isFull3D() {
- return true;
- }
-
- public int getTopBlock(World world, int posX, int posZ) {
- Chunk chunk = world.getChunkFromBlockCoords(posX, posZ);
- posX &= 15;
- posZ &= 15;
- for(int k = chunk.getTopFilledSegment() + 15; k > 0; --k) {
- Block block = chunk.getBlock(posX, k, posZ);
- boolean hasAir = chunk.getBlock(posX, k + 1, posZ).getMaterial() == Material.air && chunk.getBlock(posX, k + 2, posZ).getMaterial() == Material.air;
- if(!block.isAir(world, posX, k, posZ) && block != Blocks.bedrock && hasAir)
- return k + 1;
- }
- return -1;
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/85/90be6a63e7bc001c1a9f99005529f322 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/85/90be6a63e7bc001c1a9f99005529f322
new file mode 100644
index 0000000..19d1ed7
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/85/90be6a63e7bc001c1a9f99005529f322
@@ -0,0 +1,101 @@
+package ab.client.render.tile;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Random;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.client.model.ModelNidavellirForge;
+import ab.common.block.tile.TileNidavellirForge;
+import net.minecraft.client.Minecraft;
+import net.minecraft.client.renderer.OpenGlHelper;
+import net.minecraft.client.renderer.Tessellator;
+import net.minecraft.client.renderer.entity.Render;
+import net.minecraft.client.renderer.entity.RenderManager;
+import net.minecraft.client.renderer.texture.TextureMap;
+import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.ResourceLocation;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.client.core.helper.ShaderHelper;
+import vazkii.botania.common.block.mana.BlockTerraPlate;
+
+public class RenderTileNidavellirForge extends TileEntitySpecialRenderer {
+
+ private List entityList = null;
+ private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/nidavellirForge.png");
+ private static final ModelNidavellirForge model = new ModelNidavellirForge();
+
+ public void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float f) {
+ TileNidavellirForge tile = (TileNidavellirForge)tileentity;
+ double worldTime = 0.0D;
+ int meta = 2;
+ float invRender = 0.0f;
+ if(tileentity != null && tileentity.getWorldObj() != null) {
+ worldTime = ClientTickHandler.ticksInGame + f + (new Random((tileentity.xCoord ^ tileentity.yCoord ^ tileentity.zCoord))).nextInt(360);
+ meta = tileentity.getWorldObj().getBlockMetadata(tileentity.xCoord, tileentity.yCoord, tileentity.zCoord);
+ } else
+ invRender = 0.12f;
+ float indetY = (float)(Math.sin(worldTime / 18.0D) / 24.0D);
+ GL11.glPushMatrix();
+ GL11.glEnable(32826);
+ GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
+ GL11.glTranslated(x - invRender, y, z);
+ GL11.glTranslatef(0.5f, 1.5f, 0.5f);
+ GL11.glRotatef(180.0f, 1.0f, 0.0f, 1.0f);
+ GL11.glRotatef(90.0f * meta, 0.0f, 1.0f, 0.0f);
+ Minecraft.getMinecraft().renderEngine.bindTexture(texture);
+ model.renderBottom();
+ GL11.glTranslatef(0.0f, indetY, 0.0f);
+ model.renderTop();
+ GL11.glEnable(32826);
+ GL11.glPopMatrix();
+ if(entityList == null) {
+ List list = new ArrayList();
+ for(int i = 0; i < tile.getSizeInventory(); i++) {
+ list.add(new EntityItem(tile.getWorldObj(), tile.xCoord, tile.yCoord, tile.zCoord));
+ }
+ entityList = list;
+ }
+ GL11.glPushMatrix();
+ GL11.glTranslated(x + 0.5f, y + 0.675f - indetY, z + 0.5f);
+ GL11.glScalef(0.2F, 0.225F, 0.225F);
+ for(int i = 1; i < entityList.size(); i++) {
+ GL11.glPushMatrix();
+ ItemStack stack = tile.getStackInSlot(i);
+ if(stack != null) {
+ switch(i) {
+ case 1:
+ GL11.glTranslated(0.15f, 0.0f, 0.0f);
+ break;
+ case 2:
+ GL11.glTranslated(-0.15f, 0.0f, -0.15f);
+ break;
+ case 3:
+ GL11.glTranslated(-0.15f, 0.0f, 0.15f);
+ break;
+ }
+ entityList.get(i).setEntityItemStack(stack);
+ entityList.get(i).age = ClientTickHandler.ticksInGame;
+ ((Render)RenderManager.instance.entityRenderMap.get(EntityItem.class)).doRender((Entity)entityList.get(i), 0.0D, 0.0D, 0.0D, 1.0F, f);
+ }
+ GL11.glPopMatrix();
+ }
+ GL11.glPopMatrix();
+ if(tile.getStackInSlot(0) != null) {
+ GL11.glPushMatrix();
+ GL11.glTranslated(x + 0.5, y + 0.915f - indetY, z + 0.5);
+ GL11.glScalef(0.45f, 0.45f, 0.45f);
+ entityList.get(0).setEntityItemStack(tile.getStackInSlot(0));
+ entityList.get(0).age = ClientTickHandler.ticksInGame;
+ ((Render)RenderManager.instance.entityRenderMap.get(EntityItem.class)).doRender((Entity)entityList.get(0), 0.0D, 0.0D, 0.0D, 1.0F, f);
+ GL11.glPopMatrix();
+ }
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/86/504cdbec06b0001c18a5eba32f24fffa b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/86/504cdbec06b0001c18a5eba32f24fffa
deleted file mode 100644
index 51f6be2..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/86/504cdbec06b0001c18a5eba32f24fffa
+++ /dev/null
@@ -1,5 +0,0 @@
-package ab.common.block.subtile;
-
-public class SubTileArdentAzarcissus {
-
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/86/704bcc3394c1001c11e398ea97007cb4 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/86/704bcc3394c1001c11e398ea97007cb4
new file mode 100644
index 0000000..ea41020
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/86/704bcc3394c1001c11e398ea97007cb4
@@ -0,0 +1,319 @@
+package ab.common.lib.register;
+
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+
+import ab.api.AdvancedBotanyAPI;
+import ab.api.recipe.RecipeAdvancedPlate;
+import ab.api.recipe.RecipeAncientAlphirine;
+import ab.api.recipe.lexicon.AdvancedPlateCraftPage;
+import ab.api.recipe.lexicon.AlphirineCraftPage;
+import ab.common.block.tile.TileNidavellirForge;
+import ab.common.block.tile.TileLebethronCore;
+import ab.common.block.tile.TileMagicCraftCrate;
+import ab.common.core.handler.ConfigABHandler;
+import ab.common.item.ItemCraftingPattern;
+import cpw.mods.fml.common.registry.GameRegistry;
+import net.minecraft.init.Blocks;
+import net.minecraft.init.Items;
+import net.minecraft.item.ItemStack;
+import net.minecraft.item.crafting.CraftingManager;
+import net.minecraft.item.crafting.IRecipe;
+import net.minecraft.util.EnumChatFormatting;
+import net.minecraftforge.oredict.ShapedOreRecipe;
+import net.minecraftforge.oredict.ShapelessOreRecipe;
+import thaumcraft.common.config.ConfigBlocks;
+import thaumcraft.common.config.ConfigItems;
+import vazkii.botania.api.BotaniaAPI;
+import vazkii.botania.api.lexicon.KnowledgeType;
+import vazkii.botania.api.lexicon.LexiconCategory;
+import vazkii.botania.api.lexicon.LexiconEntry;
+import vazkii.botania.api.lexicon.LexiconPage;
+import vazkii.botania.api.recipe.RecipePetals;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.block.ModBlocks;
+import vazkii.botania.common.block.ModFluffBlocks;
+import vazkii.botania.common.core.handler.ConfigHandler;
+import vazkii.botania.common.item.ModItems;
+import vazkii.botania.common.item.block.ItemBlockSpecialFlower;
+import vazkii.botania.common.lexicon.BLexiconCategory;
+import vazkii.botania.common.lexicon.BLexiconEntry;
+import vazkii.botania.common.lexicon.RLexiconEntry;
+import vazkii.botania.common.lexicon.page.PageImage;
+import vazkii.botania.common.lexicon.page.PageText;
+
+public class RecipeListAB {
+
+ public static LexiconCategory categoryForgotten;
+
+ public static RecipeAncientAlphirine lebethroneRecipe;
+ public static RecipeAncientAlphirine forgottenLandRecipe;
+ public static RecipeAncientAlphirine advancedSparkRecipe;
+ public static RecipeAncientAlphirine manaFlowerRecipe;
+ public static RecipeAncientAlphirine hopperRecipe;
+ public static RecipeAncientAlphirine fateBoardRecipe;
+
+ public static RecipeAdvancedPlate manaStarRecipe;
+ public static RecipeAdvancedPlate terrasteelRecipe;
+ public static RecipeAdvancedPlate mithrillRecipe;
+ public static RecipeAdvancedPlate nebulaRecipe;
+
+ public static RecipePetals alphirineRecipe;
+ public static RecipePetals dictariusRecipe;
+ public static RecipePetals aspecolusRecipe;
+ public static RecipePetals pureGladRecipe;
+ public static RecipePetals azartFlowerRecipe;
+
+ public static LexiconEntry advandedAgglomerationPlate;
+ public static LexiconEntry ancientAlphirine;
+ public static LexiconEntry lebethronWood;
+ public static LexiconEntry lebethronSpreader;
+ public static LexiconEntry mithrill;
+ public static LexiconEntry manaContainer;
+ public static LexiconEntry manaCrystalCube;
+ public static LexiconEntry terraHoe;
+ public static LexiconEntry manaRings;
+ public static LexiconEntry manaFlower;
+ public static LexiconEntry mithrillSword;
+ public static LexiconEntry nebula;
+ public static LexiconEntry blackHalo;
+ public static LexiconEntry antigravityCharm;
+ public static LexiconEntry nebulaBlaze;
+ public static LexiconEntry aspecolus;
+ public static LexiconEntry dictarius;
+ public static LexiconEntry manaCharger;
+ public static LexiconEntry nebulaArmor;
+ public static LexiconEntry freyrSlingshot;
+ public static LexiconEntry engineerHopper;
+ public static LexiconEntry nebulaRod;
+ public static LexiconEntry thaumAutoCraft;
+ public static LexiconEntry gladious;
+ public static LexiconEntry gameBoard;
+ public static LexiconEntry fateBoard;
+ public static LexiconEntry richesKey;
+ public static LexiconEntry cubeWardrobe;
+ public static LexiconEntry sprawlRod;
+ public static LexiconEntry azartFlower;
+
+ public static KnowledgeType forgotten;
+
+ public static void init() {
+
+ BotaniaAPI.addCategory(categoryForgotten = new BLexiconCategory("forgotten", 5));
+ forgotten = BotaniaAPI.registerKnowledgeType("ab_forgotten", EnumChatFormatting.BLUE, false);
+
+ lebethroneRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(BlockListAB.blockLebethron), new ItemStack(ModBlocks.dreamwood, 1, 0), 15);
+ forgottenLandRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(ItemListAB.itemABResource, 1, 3), new ItemStack(ModItems.manaResource, 1, 15), 75);
+ advancedSparkRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(ItemListAB.itemAdvancedSpark), new ItemStack(ModItems.spark), 11);
+ manaFlowerRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(ItemListAB.itemABResource, 1, 4), new ItemStack(ModBlocks.flower, 1, 32767), 32);
+ hopperRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(BlockListAB.blockEngineerHopper), new ItemStack(Blocks.hopper), 23);
+ fateBoardRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(BlockListAB.blockBoardFate, 1, 1), new ItemStack(BlockListAB.blockBoardFate), 60);
+
+ mithrillRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ItemListAB.itemABResource, 1, 0), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModBlocks.storage, 1, 0), new ItemStack(ModItems.manaResource, 1, 18), 7500000, 0x25d6b7);
+ terrasteelRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ModItems.manaResource, 1, 4), new ItemStack(ModItems.manaResource, 1, 2), new ItemStack(ModItems.manaResource, 1, 0), new ItemStack(ModItems.manaResource, 1, 1), 500000, 0x29de20);
+ manaStarRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ItemListAB.itemABResource, 1, 2), new ItemStack(ModItems.manaResource, 1, 23), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(Items.nether_star), 250000, 0x6bc9ec);
+ nebulaRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ItemListAB.itemABResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 8), new ItemStack(ModBlocks.storage, 1, 4), new ItemStack(ItemListAB.itemABResource, 1, 1), 50000000, 0x8d16e0);
+
+ ancientAlphirine = new BLexiconEntry("ancientAlphirine", categoryForgotten);
+ alphirineRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("ancientAlphirine"), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.rune, 1, 8), new ItemStack(ModItems.rune, 1, 4), new ItemStack(ModItems.rune, 1, 5), new ItemStack(ModItems.rune, 1, 6), new ItemStack(ModItems.rune, 1, 7), new ItemStack(ModItems.petal, 1, 1), new ItemStack(ModItems.petal, 1, 4));
+ ancientAlphirine.setPriority().setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), new PageText("1"), new PageImage("2", "ab:textures/misc/ancientAlphirine.png"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", alphirineRecipe), new AlphirineCraftPage(ancientAlphirine, forgottenLandRecipe.getOutput(), ".alphirineCraft") }).setIcon(ItemBlockSpecialFlower.ofType("ancientAlphirine"));
+
+ if(ConfigABHandler.hasAbPlate) {
+ GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockABPlate), new Object[] { "MPM", " F ", "BRB", Character.valueOf('F'), new ItemStack(Blocks.anvil), Character.valueOf('M'), new ItemStack(ModBlocks.storage), Character.valueOf('P'), new ItemStack(ModBlocks.terraPlate), Character.valueOf('B'), new ItemStack(ItemListAB.itemABResource, 1, 3), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 3)});
+ advandedAgglomerationPlate = new BLexiconEntry("advancedPlate", categoryForgotten);
+ advandedAgglomerationPlate.setPriority().setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] {new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()), new AdvancedPlateCraftPage(advandedAgglomerationPlate, terrasteelRecipe.getOutput(), ".abCraft0"), new AdvancedPlateCraftPage(advandedAgglomerationPlate, manaStarRecipe.getOutput(), ".abCraft1") }).setIcon(new ItemStack(BlockListAB.blockABPlate));
+ }
+
+ GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockABSpreader), new Object[] { "WMW", "PSP", "WMW", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource, 1, 2), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('S'), new ItemStack(ModBlocks.spreader, 1, 3), Character.valueOf('W'), new ItemStack(BlockListAB.blockLebethron, 1, 4)});
+ lebethronSpreader = new BLexiconEntry("lebethronSpreader", categoryForgotten);
+ lebethronSpreader.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(BlockListAB.blockABSpreader));
+
+ addShapelessOreDictRecipe(new ItemStack(BlockListAB.blockLebethron, 4, 1), new Object[] { new ItemStack(BlockListAB.blockLebethron)});
+ IRecipe leb1 = getLastRecipe();
+ addShapelessOreDictRecipe(new ItemStack(BlockListAB.blockLebethron, 1, 2), new Object[] { new ItemStack(BlockListAB.blockLebethron, 1, 1), new ItemStack(Items.wheat_seeds)});
+ IRecipe leb2 = getLastRecipe();
+ addShapelessOreDictRecipe(new ItemStack(BlockListAB.blockLebethron, 1, 3), new Object[] { new ItemStack(BlockListAB.blockLebethron), new ItemStack(Items.glowstone_dust)});
+ IRecipe leb3 = getLastRecipe();
+ GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockLebethron, 1, 4), new Object[] { "4W5", "WPW", "6W7", Character.valueOf('P'), new ItemStack(ModBlocks.pylon, 1, 1), Character.valueOf('W'), new ItemStack(BlockListAB.blockLebethron), Character.valueOf('4'), new ItemStack(ModItems.rune, 1, 4), Character.valueOf('5'), new ItemStack(ModItems.rune, 1, 5), Character.valueOf('6'), new ItemStack(ModItems.rune, 1, 6), Character.valueOf('7'), new ItemStack(ModItems.rune, 1, 7)});
+ IRecipe leb4 = getLastRecipe();
+ lebethronWood = new BLexiconEntry("lebethronWood", categoryForgotten);
+ lebethronWood.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AlphirineCraftPage(lebethronWood, lebethroneRecipe.getOutput(), ".alphirineCraft"), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb1), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb2), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb3), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb4), new PageText("1"), BotaniaAPI.internalHandler.multiblockPage(".structure", TileLebethronCore.makeMultiblockSet()) }).setIcon(new ItemStack(BlockListAB.blockLebethron));
+
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemMihrillMultiTool), new Object[] { " MB", " FM", "F ", Character.valueOf('F'), new ItemStack(ModItems.manaResource, 1, 3), Character.valueOf('B'), new ItemStack(ModBlocks.livingwood), Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource)});
+ mithrill = new BLexiconEntry("mithrill", categoryForgotten);
+ mithrill.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AdvancedPlateCraftPage(mithrill, mithrillRecipe.getOutput(), ".abCraft"), new PageText("1"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(ItemListAB.itemMihrillMultiTool));
+ if(!ConfigABHandler.hasAbPlate)
+ mithrill.pages.remove(1);
+
+ GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaContainer), new Object[] { "MGM", "LPL", "M3M", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('L'), new ItemStack(ModBlocks.pool), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('3'), new ItemStack(ModItems.rune, 1, 3), Character.valueOf('G'), new ItemStack(ModItems.rune, 1, 15)});
+ IRecipe cont1 = getLastRecipe();
+ GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaContainer, 1, 1), new Object[] { "MGM", "LPL", "M3M", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource, 1, 1), Character.valueOf('L'), new ItemStack(ModBlocks.pool, 1, 2), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('3'), new ItemStack(ModItems.rune, 1, 3), Character.valueOf('G'), new ItemStack(ModItems.rune, 1, 15)});
+ IRecipe cont2 = getLastRecipe();
+ GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaContainer, 1, 2), new Object[] { "MGM", "LPL", "M3M", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('L'), new ItemStack(ModBlocks.pool, 1, 3), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('3'), new ItemStack(ModItems.rune, 1, 3), Character.valueOf('G'), new ItemStack(ModItems.rune, 1, 15)});
+ IRecipe cont3 = getLastRecipe();
+ manaContainer = new BLexiconEntry("manaContainer", categoryForgotten);
+ manaContainer.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", cont1), BotaniaAPI.internalHandler.craftingRecipePage(".craft1", cont2), BotaniaAPI.internalHandler.craftingRecipePage(".craft2", cont3), new PageText("1"), new AlphirineCraftPage(manaContainer, advancedSparkRecipe.getOutput(), ".alphirineCraft") }).setIcon(new ItemStack(BlockListAB.blockManaContainer));
+
+ GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaCrystalCube), new Object[] { "TST", "GWG", "DMD", Character.valueOf('D'), new ItemStack(ModBlocks.dreamwood), Character.valueOf('W'), new ItemStack(ModItems.twigWand, 1, 32767), Character.valueOf('G'), new ItemStack(ModBlocks.manaGlass), Character.valueOf('M'), new ItemStack(ModItems.manaResource), Character.valueOf('T'), new ItemStack(ModItems.manaResource, 1, 18), Character.valueOf('S'), new ItemStack(ModItems.spark)});
+ manaCrystalCube = new BLexiconEntry("manaCrystalCube", BotaniaAPI.categoryMana);
+ manaCrystalCube.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(BlockListAB.blockManaCrystalCube));
+
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemTerraHoe), new Object[] { "TTL", "RW ", " W ", Character.valueOf('T'), new ItemStack(ModItems.manaResource, 1, 4), Character.valueOf('L'), new ItemStack(ModItems.manaResource, 1, 18), Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 3), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 2)});
+ terraHoe = new BLexiconEntry("terraHoe", BotaniaAPI.categoryTools);
+ terraHoe.setLexiconPages(new LexiconPage[]{ new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(ItemListAB.itemTerraHoe));
+
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemMithrillRing), new Object[] { "LML", "MRM", "LML", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('L'), new ItemStack(ItemListAB.itemABResource, 1, 1), Character.valueOf('R'), new ItemStack(ModItems.manaRingGreater)});
+ IRecipe ring1 = getLastRecipe();
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaRing), new Object[] { "LML", "MRM", "LML", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource, 1, 6), Character.valueOf('L'), new ItemStack(ModItems.manaResource, 1, 5), Character.valueOf('R'), new ItemStack(ItemListAB.itemMithrillRing)});
+ IRecipe ring2 = getLastRecipe();
+ manaRings = new BLexiconEntry("manaRings", categoryForgotten);
+ manaRings.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[]{ new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", ring1), BotaniaAPI.internalHandler.craftingRecipePage(".craft1", ring2)}).setIcon(new ItemStack(ItemListAB.itemMithrillRing));
+ AdvancedBotanyAPI.registerFarmlandSeed(Blocks.nether_wart, 3);
+
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemManaFlower), new Object[] { " F ", " M ", " R ", Character.valueOf('F'), new ItemStack(ItemListAB.itemABResource, 1, 4), Character.valueOf('M'), new ItemStack(ModItems.manaBottle), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 8)});
+ manaFlower = new BLexiconEntry("manaFlower", categoryForgotten);
+ manaFlower.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AlphirineCraftPage(manaFlower, manaFlowerRecipe.getOutput(), ".alphirineCraft"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())}).setIcon(new ItemStack(ItemListAB.itemManaFlower));
+
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemMithrillSword), new Object[] { " M", "SM ", "WS ", Character.valueOf('S'), new ItemStack(ItemListAB.itemABResource, 1, 6), Character.valueOf('T'), new ItemStack(ModItems.terraSword), Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 3)});
+ mithrillSword = new BLexiconEntry("mithrillSword", categoryForgotten);
+ mithrillSword.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(ItemListAB.itemMithrillSword));
+
+ dictariusRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("dictarius"), new ItemStack(ItemListAB.itemABResource, 1, 4), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.rune, 1, 15), new ItemStack(ModItems.petal, 1, 4), new ItemStack(ModItems.petal, 1, 4), new ItemStack(ModItems.petal, 1, 1));
+ dictarius = new BLexiconEntry("dictarius", BotaniaAPI.categoryGenerationFlowers);
+ dictarius.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", dictariusRecipe)});
+
+ nebula = new BLexiconEntry("nebula", categoryForgotten);
+ nebula.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AdvancedPlateCraftPage(nebula, nebulaRecipe.getOutput(), ".abCraft")});
+ if(!ConfigABHandler.hasAbPlate)
+ nebula.pages.remove(1);
+
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemBlackHalo), new Object[] { " E ", "DHD", " E ", Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.autocraftingHalo), Character.valueOf('D'), new ItemStack(ModItems.blackHoleTalisman)});
+ blackHalo = new BLexiconEntry("blackHalo", BotaniaAPI.categoryTools);
+ blackHalo.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
+
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemAntigravityCharm), new Object[] { " G ", "GDG", "ERE", Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('G'), new ItemStack(ModBlocks.elfGlass), Character.valueOf('D'), new ItemStack(ModBlocks.floatingFlower, 1, 32767), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 3)});
+ antigravityCharm = new BLexiconEntry("antigravityCharm", BotaniaAPI.categoryTools);
+ antigravityCharm.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())}).setIcon(new ItemStack(ItemListAB.itemAntigravityCharm));
+
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaBlaze), new Object[] { " N ", "MMN", "AMN", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 6), Character.valueOf('A'), new ItemStack(ItemListAB.itemABResource, 1, 3), Character.valueOf('M'), new ItemStack(ModBlocks.storage)});
+ nebulaBlaze = new BLexiconEntry("nebulaBlaze", categoryForgotten);
+ nebulaBlaze.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
+
+ if(ConfigABHandler.hasManaCharger) {
+ GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaCharger), new Object[] { "NLN", "MPM", " R ", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 1), Character.valueOf('L'), new ItemStack(ModBlocks.livingrock), Character.valueOf('M'), new ItemStack(ModBlocks.bellows), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 8)});
+ manaCharger = new BLexiconEntry("manaCharger", categoryForgotten);
+ manaCharger.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
+ }
+
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaHelm), new Object[] { "RNR", "NHN", " E ", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelHelm), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8)});
+ IRecipe nHelm = getLastRecipe();
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaChest), new Object[] { "RTR", "NHN", "ENE", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelChest), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8), Character.valueOf('T'), new ItemStack(ModItems.flightTiara, 1, 32767)});
+ IRecipe nChest = getLastRecipe();
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaLegs), new Object[] { "ENE", "RHR", "NAN", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelLegs), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8), Character.valueOf('A'), new ItemStack(ItemListAB.itemABResource, 1, 3)});
+ IRecipe nLegs = getLastRecipe();
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaBoots), new Object[] { "RBR", "NHN", " E ", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelBoots), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8), Character.valueOf('B'), new ItemStack(ModItems.speedUpBelt)});
+ IRecipe nBoots = getLastRecipe();
+ nebulaArmor = new BLexiconEntry("nebulaArmor", categoryForgotten);
+ nebulaArmor.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new PageText("1"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", nHelm), BotaniaAPI.internalHandler.craftingRecipePage(".craft", nChest), BotaniaAPI.internalHandler.craftingRecipePage(".craft", nLegs), BotaniaAPI.internalHandler.craftingRecipePage(".craft", nBoots)});
+
+ engineerHopper = new BLexiconEntry("engineerHopper", categoryForgotten);
+ engineerHopper.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AlphirineCraftPage(engineerHopper, hopperRecipe.getOutput(), ".alphirineCraft")});
+
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaRod), new Object[] { " WN", " RW", "W ", Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 13), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 8), Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 6)});
+ nebulaRod = new BLexiconEntry("nebulaRod", categoryForgotten);
+ nebulaRod.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
+
+ GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockBoardFate), new Object[] { " ", "QDQ", "MPM", Character.valueOf('Q'), new ItemStack(ModFluffBlocks.manaQuartz), Character.valueOf('D'), new ItemStack(ModItems.manaResource, 1, 2), Character.valueOf('M'), new ItemStack(ModItems.manaResource), Character.valueOf('P'), new ItemStack(ModItems.manaResource, 1, 23)});
+ gameBoard = new BLexiconEntry("gameBoard", BotaniaAPI.categoryMisc);
+ gameBoard.setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
+
+ fateBoard = new BLexiconEntry("fateBoard", categoryForgotten);
+ fateBoard.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AlphirineCraftPage(fateBoard, fateBoardRecipe.getOutput(), ".alphirineCraft")});
+
+ freyrSlingshot = new RLexiconEntry("freyrSlingshot", BotaniaAPI.categoryAlfhomancy, AchievementRegister.relicSlingshot);
+ freyrSlingshot.setLexiconPages(new LexiconPage[] { new PageText("0"), new PageText("1")});
+
+ richesKey = new RLexiconEntry("richesKey", BotaniaAPI.categoryAlfhomancy, AchievementRegister.relicItemChest);
+ richesKey.setLexiconPages(new LexiconPage[] { new PageText("0")});
+
+ cubeWardrobe = new RLexiconEntry("cubeWardrobe", BotaniaAPI.categoryAlfhomancy, AchievementRegister.relicPocketArmor);
+ cubeWardrobe.setLexiconPages(new LexiconPage[] { new PageText("0")});
+
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemSprawlRod), new Object[] { " SC", " WS", "W ", Character.valueOf('S'), new ItemStack(ModItems.grassSeeds, 1, 32767), Character.valueOf('C'), new ItemStack(BlockListAB.blockLebethron, 1, 4), Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 3)});
+ sprawlRod = new BLexiconEntry("sprawlRod", categoryForgotten);
+ sprawlRod.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
+
+ azartFlowerRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("ardentAzarcissus"), new ItemStack(ItemListAB.itemABResource, 1, 4), new ItemStack(ModItems.petal, 1, 11), new ItemStack(ModItems.petal, 1, 11), new ItemStack(ModItems.petal, 1, 14), new ItemStack(ModItems.petal, 1, 14), new ItemStack(ModItems.petal, 1, 13), new ItemStack(ModItems.manaResource, 1, 5));
+ azartFlower = new BLexiconEntry("azartFlower", BotaniaAPI.categoryGenerationFlowers);
+ azartFlower.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", azartFlowerRecipe)});
+
+ if(Botania.thaumcraftLoaded)
+ thaumcraft();
+
+ addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemABResource, 9, 1), new Object[] { new ItemStack(ItemListAB.itemABResource)});
+ addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemABResource, 9, 0), new Object[] { new ItemStack(BlockListAB.blockABStorage)});
+ addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemABResource, 9, 6), new Object[] { new ItemStack(ItemListAB.itemABResource, 1, 5)});
+ GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockABStorage), new Object[] { "III", "III", "III", Character.valueOf('I'), new ItemStack(ItemListAB.itemABResource)});
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemABResource, 1, 5), new Object[] { "III", "III", "III", Character.valueOf('I'), new ItemStack(ItemListAB.itemABResource, 1, 6)});
+ }
+
+ public static void thaumcraft() {
+ aspecolus = new BLexiconEntry("aspecolus", BotaniaAPI.categoryFunctionalFlowers);
+ aspecolusRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("aspecolus"), new ItemStack(ModItems.manaResource, 1, 6), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.rune, 1, 1), new ItemStack(ModItems.rune), new ItemStack(ItemListAB.itemABResource, 1, 2), new ItemStack(ModItems.petal, 1, 10), new ItemStack(ModItems.petal, 1, 13));
+ aspecolus.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", aspecolusRecipe) }).setIcon(ItemBlockSpecialFlower.ofType("aspecolus"));
+ addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemNebulaHelmReveal), new Object[] { new ItemStack(ItemListAB.itemNebulaHelm), new ItemStack(ConfigItems.itemGoggles)});
+
+ if(ConfigABHandler.hasAutoThaum) {
+ List recipes = new ArrayList();
+ for(int i = 1; i < 10; i++) {
+ boolean[][] patterns = ItemCraftingPattern.getPattern(i);
+ List str = new ArrayList();
+ for(int j = 0; j < patterns.length; j++) {
+ String str1 = "";
+ for(int k = 0; k < patterns[j].length; k++)
+ str1 += patterns[j][k] ? "T" : "H";
+ str.add(str1);
+ }
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemCraftingPattern, 1, i), new Object[] { str.get(0), str.get(1), str.get(2), Character.valueOf('T'), new ItemStack(ItemListAB.itemCraftingPattern), Character.valueOf('H'), new ItemStack(ConfigItems.itemNugget, 1, 6)});
+ recipes.add(getLastRecipe());
+ }
+ IRecipe crate = GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockMagicCraftCrate), new Object[] { "TST", "WCW", "W W", Character.valueOf('W'), new ItemStack(ConfigBlocks.blockMagicalLog), Character.valueOf('S'), new ItemStack(ConfigItems.itemResource, 1, 14), Character.valueOf('T'), new ItemStack(ConfigItems.itemResource, 1, 7), Character.valueOf('C'), new ItemStack(ModBlocks.openCrate, 1, 1)});
+ addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemCraftingPattern, 48), new Object[] { new ItemStack(Blocks.crafting_table), new ItemStack(ModBlocks.livingrock), new ItemStack(ConfigItems.itemResource, 1, 14)});
+ thaumAutoCraft = new BLexiconEntry("thaumAutoCraft", BotaniaAPI.categoryDevices);
+ thaumAutoCraft.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", crate) , BotaniaAPI.internalHandler.craftingRecipePage(".craft0", getLastRecipe()), BotaniaAPI.internalHandler.craftingRecipesPage(".craft1", recipes)});
+
+ }
+
+ pureGladRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("pureGladiolus"), new ItemStack(ItemListAB.itemABResource, 1, 4), new ItemStack(ModItems.rune, 1, 8), new ItemStack(ModItems.petal, 1, 8), new ItemStack(ModItems.petal, 1, 4), new ItemStack(ModItems.petal, 1, 14), new ItemStack(ModItems.petal, 1, 5), new ItemStack(ModItems.petal, 1, 13), new ItemStack(ModItems.petal, 1, 11));
+ gladious = new BLexiconEntry("gladious", BotaniaAPI.categoryFunctionalFlowers);
+ gladious.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", pureGladRecipe)});
+ }
+
+ public static void relicInit() {
+ AdvancedBotanyAPI.relicList.add(new ItemStack(ModItems.infiniteFruit));
+ AdvancedBotanyAPI.relicList.add(new ItemStack(ModItems.kingKey));
+ AdvancedBotanyAPI.relicList.add(new ItemStack(ModItems.flugelEye));
+ AdvancedBotanyAPI.relicList.add(new ItemStack(ModItems.thorRing));
+ AdvancedBotanyAPI.relicList.add(new ItemStack(ModItems.odinRing));
+ AdvancedBotanyAPI.relicList.add(new ItemStack(ModItems.lokiRing));
+ AdvancedBotanyAPI.relicList.add(new ItemStack(ItemListAB.itemFreyrSlingshot));
+ AdvancedBotanyAPI.relicList.add(new ItemStack(ItemListAB.itemTalismanHiddenRiches));
+ AdvancedBotanyAPI.relicList.add(new ItemStack(ItemListAB.itemPocketWardrobe));
+ AdvancedBotanyAPI.relicList.add(new ItemStack(ItemListAB.itemSphereNavigation));
+ AdvancedBotanyAPI.relicList.add(new ItemStack(ItemListAB.itemHornPlenty));
+ }
+
+ private static IRecipe getLastRecipe() {
+ return (IRecipe)CraftingManager.getInstance().getRecipeList().get(CraftingManager.getInstance().getRecipeList().size() - 1);
+ }
+
+ private static void addOreDictRecipe(ItemStack output, Object... recipe) {
+ CraftingManager.getInstance().getRecipeList().add(new ShapedOreRecipe(output, recipe));
+ }
+
+ private static void addShapelessOreDictRecipe(ItemStack output, Object... recipe) {
+ CraftingManager.getInstance().getRecipeList().add(new ShapelessOreRecipe(output, recipe));
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/86/90d1deae06ad001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/86/90d1deae06ad001c1d59e42be7477558
deleted file mode 100644
index c301ca2..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/86/90d1deae06ad001c1d59e42be7477558
+++ /dev/null
@@ -1,96 +0,0 @@
-package ab.client.render.tile;
-
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.model.ModelDiceFate;
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.entity.RenderManager;
-import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.ResourceLocation;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class RenderTileGameBoard extends TileEntitySpecialRenderer {
-
- private static final ModelDiceFate model = new ModelDiceFate();
- private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/gameDice.png");
- private static final ResourceLocation textureEnemy = new ResourceLocation("ab:textures/model/gameDice_enemy.png");
-
- public void renderTileEntityAt(TileEntity tile, double x, double y, double z, float ticks) {
- double time = (tile.getWorldObj() == null) ? 0.0D : (ClientTickHandler.ticksInGame + ticks);
- if(tile != null)
- time += (new Random((tile.xCoord ^ tile.yCoord ^ tile.zCoord))).nextInt(360);
- TileGameBoard board = (TileGameBoard)tile;
- GL11.glEnable(3042);
- GL11.glEnable(32826);
- GL11.glBlendFunc(770, 771);
- GL11.glPushMatrix();
- GL11.glTranslated(x + 0.5f, y, z + 0.5f);
- GL11.glRotatef(90.0f - RenderManager.instance.playerViewY, 0.0f, 1.0f, 0.0f);
- for(int i = 0; i < board.slotChance.length; i++) {
- if(board.slotChance[i] == 0)
- continue;
- time += i * 83.78f;
- GL11.glPushMatrix();
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- float posX = 0.0f;
- float posZ = 0.0f;
- float dropAnim = (1.0f - (Math.min(120.0f, (board.clientTick[i] * board.clientTick[i] * 1.25f) + ticks) / 120.0f));
- dropAnim = Math.min(1.0f, Math.max(dropAnim, 0));
- float alpha = (float)Math.cos(dropAnim);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, alpha);
- switch(i) {
- case 0:
- posX = 0.16f + 0.08f * dropAnim;
- posZ = 0.16f + 0.08f * dropAnim;
- break;
- case 1:
- posX = -0.16f - 0.08f * dropAnim;
- posZ = 0.16f + 0.08f * dropAnim;
- break;
- case 2:
- posX = 0.16f + 0.08f * dropAnim;
- posZ = -0.16f - 0.08f * dropAnim;
- break;
- case 3:
- posX = -0.16f - 0.08f * dropAnim;
- posZ = -0.16f - 0.08f * dropAnim;
- break;
- }
- GL11.glTranslated(posX, 0.02f + Math.sin(time / 12.0D) / 38.0D + (0.28f * dropAnim), posZ);
- GL11.glScalef(0.25f, 0.25f, 0.25f);
- Minecraft.getMinecraft().renderEngine.bindTexture(i > 1 ? textureEnemy : texture);
- float dropAngel = 70.0f * dropAnim;
- switch(board.slotChance[i]) {
- case 1:
- model.render(180.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 2:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 3:
- model.render(90.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 4:
- model.render(270.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 5:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 270.0f);
- break;
- case 6:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 90.0f);
- break;
- default:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- }
- GL11.glPopMatrix();
- }
- GL11.glPopMatrix();
- GL11.glEnable(32826);
- GL11.glDisable(3042);
- }
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/86/a00178ddc8b0001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/86/a00178ddc8b0001c19bf8a91ac37238b
deleted file mode 100644
index a4a71e2..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/86/a00178ddc8b0001c19bf8a91ac37238b
+++ /dev/null
@@ -1,125 +0,0 @@
-package ab.common.item.equipment;
-
-import java.awt.Color;
-
-import ab.client.core.ClientHelper;
-import ab.common.core.handler.ConfigABHandler;
-import ab.common.item.ItemMod;
-import net.minecraft.block.Block;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.Minecraft;
-import net.minecraft.entity.Entity;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.item.EnumAction;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.ChunkCoordinates;
-import net.minecraft.util.MathHelper;
-import net.minecraft.util.Vec3;
-import net.minecraft.world.World;
-import net.minecraft.world.chunk.Chunk;
-import vazkii.botania.api.mana.IManaUsingItem;
-import vazkii.botania.api.mana.ManaItemHandler;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.core.helper.Vector3;
-
-public class ItemNebulaRod extends ItemMod implements IManaUsingItem {
-
- public ItemNebulaRod() {
- super("nebulaRod");
- this.setMaxStackSize(1);
- this.setNoRepair();
- this.setMaxDamage(100);
- }
-
- public boolean usesMana(ItemStack stack) {
- return true;
- }
-
- public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
- if(stack.getItemDamage() == 0 && world.provider.dimensionId == 0)
- player.setItemInUse(stack, getMaxItemUseDuration(stack));
- return stack;
- }
-
- public EnumAction getItemUseAction(ItemStack par1ItemStack) {
- return EnumAction.bow;
- }
-
- public void onUpdate(ItemStack stack, World world, Entity player, int par4, boolean par5) {
- if(!world.isRemote && player instanceof EntityPlayer && player.ticksExisted % ConfigABHandler.nebulaWandCooldownTick == 0 && stack.getItemDamage() > 0 && ManaItemHandler.requestManaExactForTool(stack, (EntityPlayer)player, 140, true))
- stack.setItemDamage(stack.getItemDamage() - 1);
- }
-
- public void onUsingTick(ItemStack stack, EntityPlayer p, int time) {
- time = this.getMaxItemUseDuration(stack) - time;
- boolean isFinish = time > 80;
- if(time > 110 && !p.isSneaking()) {
- if(!p.capabilities.isCreativeMode)
- stack.setItemDamage(100);
- p.stopUsingItem();
- if(!p.worldObj.isRemote) {
- Vec3 vec3 = p.getLook(1.0F).normalize();
- MathHelper.floor_double(time);
- int limitXZ = ConfigABHandler.limitXZCoords;
- int posX = MathHelper.floor_double(p.posX + vec3.xCoord * 256);
- int posY = MathHelper.floor_double(p.posY);
- int posZ = MathHelper.floor_double(p.posZ + vec3.zCoord * 256);
- ChunkCoordinates chunkcoordinates = new ChunkCoordinates(Math.min(Math.max(posX, -(limitXZ - 1)), limitXZ - 1), posY, Math.min(Math.max(posZ, -(limitXZ - 1)), limitXZ - 1));
- int topY = getTopBlock(p.worldObj, posX, posZ);
- chunkcoordinates.posY = topY == -1 ? posY : topY;
- ((EntityPlayerMP)p).playerNetServerHandler.setPlayerLocation(chunkcoordinates.posX + 0.5D, chunkcoordinates.posY + 1.6D, chunkcoordinates.posZ + 0.5D, p.rotationYaw, p.rotationPitch);
- }
- }
- if(p.worldObj.isRemote) {
- int ticks = Math.min(100, time);
- int totalSpiritCount = (int)Math.max(3, ticks / 100.0f * 18);
- double tickIncrement = 360.0D / totalSpiritCount;
- int speed = 8;
- double wticks = (ticks * speed) - tickIncrement;
- double r = Math.sin((ticks) / 100.0D) * Math.max(0.75f, 1.4D * ticks / 100.0f);
- Vec3 look = p.getLookVec();
- float yawOffset = Minecraft.getMinecraft().thePlayer.getDisplayName() == p.getDisplayName() ? 0.0f : 1.62f;
- Vector3 l = new Vector3(look.xCoord, look.yCoord + yawOffset, look.zCoord);
- Vector3 player = Vector3.fromEntity(p).add(0.0f, 0.0f, 0.0f);
- Vector3 v3 = new Vector3();
- for(int i = 0; i < totalSpiritCount; i++) {
- float size = Math.max(0.215f, ticks / 100.0f);
- v3.set(Math.sin(wticks * Math.PI / 180.0D) / 1.825f * r, Math.cos(wticks * Math.PI / 180.0D) * r, 0.8f);
- ClientHelper.setRotation(p.rotationPitch, 1.0f, 0.0f, 0.0f, v3);
- ClientHelper.setRotation(-p.rotationYaw, 0.0f, 1.0f, 0.0f, v3);
- v3.add(l.multiply(1.0f)).add(player);
- wticks += tickIncrement;
- int color = p.worldObj.rand.nextBoolean() ? 0x931fec : 0x4b1682;
- float hsb[] = Color.RGBtoHSB(color & 255, color >> 8 & 255, color >> 16 & 255, null);
- int color1 = Color.HSBtoRGB(hsb[0], hsb[1], ticks / 100.0f);
- float[] colorsfx = { (color1 & 255) / 255.0f, (color1 >> 8 & 255) / 255.0f, (color1 >> 16 & 255) / 255.0f };
- float motionSpeed = 0.25f * Math.min(1.0f, (time - 80) / 30.0f);
- Botania.proxy.wispFX(p.worldObj, v3.x, v3.y, v3.z, colorsfx[0], colorsfx[1], colorsfx[2], 0.3F * size, isFinish ? (float)(look.xCoord * -1) * motionSpeed : 0.0f, isFinish ? (float)(look.yCoord * -1) * motionSpeed : 0.0f, isFinish ? (float)(look.zCoord * -1) * motionSpeed : 0.0f, 0.3F);
- Botania.proxy.wispFX(p.worldObj, v3.x, v3.y, v3.z, colorsfx[0], colorsfx[1], colorsfx[2], (float)(Math.random() * 0.1F + 0.05F) * size, (float)(Math.random() - 0.5D) * 0.05F, (float)(Math.random() - 0.5D) * 0.05F, (float)(Math.random() - 0.5D) * 0.05F, 0.4F);
- }
- }
- }
-
- public int getMaxItemUseDuration(ItemStack par1ItemStack) {
- return 72000;
- }
-
- public boolean isFull3D() {
- return true;
- }
-
- public int getTopBlock(World world, int posX, int posZ) {
- Chunk chunk = world.getChunkFromBlockCoords(posX, posZ);
- int x = posX;
- int z = posZ;
- int k = chunk.getTopFilledSegment() + 15;
- posX &= 15;
- for(posZ &= 15; k > 0; --k) {
- Block block = chunk.getBlock(posX, k, posZ);
- if(!block.isAir(world, x, k, z))
- return k + 1;
- }
- return -1;
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/86/b022800118be001c1965b122d2f8f403 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/86/b022800118be001c1965b122d2f8f403
new file mode 100644
index 0000000..2af95f7
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/86/b022800118be001c1965b122d2f8f403
@@ -0,0 +1,147 @@
+package ab.common.item.relic;
+
+import java.awt.Color;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.common.core.handler.NetworkHandler;
+import ab.common.lib.register.ItemListAB;
+import net.minecraft.block.Block;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.MathHelper;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.api.mana.ManaItemHandler;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class ItemSphereNavigation extends ItemModRelic {
+
+ public static final int rangeSearch = 24;
+ public static final int maxCooldown = 112;
+ public static final int manaCost = 1750;
+ public static final ItemStack thisRenderStack = new ItemStack(ItemListAB.itemSphereNavigation);
+
+ public ItemSphereNavigation() {
+ super("sphereNavigation");
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int pos, boolean equipped) {
+ super.onUpdate(stack, world, entity, pos, equipped);
+ if(entity instanceof EntityPlayer) {
+ EntityPlayer player = (EntityPlayer)entity;
+ if(!world.isRemote && getFindBlock(stack) != null && canWork(stack) && ManaItemHandler.requestManaExactForTool(stack, player, manaCost, true)) {
+ setMaxTick(stack);
+ NetworkHandler.sendPacketToFindBlocks((EntityPlayerMP)player, getFindBlock(stack), getFindMeta(stack));
+ }
+ }
+ }
+
+ public static void findBlocks(World world, Block findBlock, int findMeta, EntityPlayer player) {
+ if(world.isRemote) {
+ int findedBlocks = 0;
+ label1703:
+ for(int x = -rangeSearch; x < rangeSearch; x++) {
+ if(world.rand.nextBoolean())
+ continue;
+ for(int y = -rangeSearch * 4; y < rangeSearch; y++) {
+ if(world.rand.nextBoolean())
+ continue;
+ for(int z = -rangeSearch; z < rangeSearch; z++) {
+ if(world.rand.nextBoolean())
+ continue;
+ else if(findedBlocks > 24)
+ break label1703;
+ int posX = MathHelper.floor_double(player.posX) + x;
+ int posY = MathHelper.floor_double(player.posY) + y;
+ int posZ = MathHelper.floor_double(player.posZ) + z;
+ if(posY < 0)
+ continue;
+ Block block = world.getBlock(posX, posY, posZ);
+ if(!Block.isEqualTo(block, findBlock))
+ continue;
+ int meta = world.getBlockMetadata(posX, posY, posZ);
+ if(meta == findMeta) {
+ findedBlocks++;
+ float maxAge = 2.7f + (0.5f * (float)(Math.random()));
+ Botania.proxy.setWispFXDepthTest(false);
+ float far = 120.0f - (((Math.abs(x) + Math.min(rangeSearch * 2.0f, Math.abs(y)) + Math.abs(z)) / (rangeSearch * 4.0f)) * 120.0f);
+ if(far <= 60)
+ far *= 0.15f;
+ Color color = new Color(Color.HSBtoRGB(far / 360.0f, 0.9f + (float)(Math.random() * 0.1f), 1.0f));
+ for(int i = 0; i < 11; i++)
+ Botania.proxy.wispFX(world, posX + 0.5f + (Math.random() - 0.5f), posY + 0.5f + (Math.random() - 0.5f), posZ + 0.5f + (Math.random() - 0.5f), color.getRed() / 100.0f, color.getGreen() / 100.0f, color.getBlue() / 100.0f, 0.3f + (float)(Math.random() * 0.25f), 0.0f, maxAge);
+ Botania.proxy.setWispFXDepthTest(true);
+ }
+ }
+ }
+ }
+ ItemsRemainingRender.set(ItemSphereNavigation.thisRenderStack, "íàéäåíî: " + findedBlocks);
+ }
+ }
+
+ public boolean onItemUse(ItemStack stack, EntityPlayer p, World world, int x, int y, int z, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
+ if(p.isSneaking()) {
+ Block block = world.getBlock(x, y, z);
+ if(block != null) {
+ int meta = world.getBlockMetadata(x, y, z);
+ Item item = Item.getItemFromBlock(block);
+ if(item != null) {
+ ItemStack findStack = new ItemStack(block, 1, meta);
+ if(findStack != null) {
+ setFindBlock(stack, block, meta);
+ if(world.isRemote)
+ ItemsRemainingRender.set(findStack, findStack.getDisplayName());
+ }
+ } else {
+ Item item1 = block.getItem(world, x, y, z);
+ if(item1 != null) {
+ ItemStack findStack = new ItemStack(item1, 1, meta);
+ if(findStack != null) {
+ setFindBlock(stack, block, meta);
+ if(world.isRemote)
+ ItemsRemainingRender.set(findStack, findStack.getDisplayName());
+ }
+ }
+ }
+ return true;
+ }
+ }
+ return false;
+ }
+
+ public boolean canWork(ItemStack stack) {
+ int tick = ItemNBTHelper.getInt(stack, "cooldown", 0);
+ if(tick == 0)
+ return true;
+ else if(tick > 0)
+ ItemNBTHelper.setInt(stack, "cooldown", tick - 1);
+ return false;
+ }
+
+ public void setMaxTick(ItemStack stack) {
+ ItemNBTHelper.setInt(stack, "cooldown", maxCooldown);
+ }
+
+ public static void setFindBlock(ItemStack stack, Block block, int meta) {
+ ItemNBTHelper.setInt(stack, "findBlockID", Block.getIdFromBlock(block));
+ ItemNBTHelper.setInt(stack, "findBlockMeta", meta);
+ }
+
+ public static Block getFindBlock(ItemStack stack) {
+ int blockID = ItemNBTHelper.getInt(stack, "findBlockID", 0);
+ if(blockID == 0)
+ return null;
+ else
+ return Block.getBlockById(blockID);
+ }
+
+ public static int getFindMeta(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "findBlockMeta", -1);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/87/80b05ebcc9b0001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/87/80b05ebcc9b0001c19bf8a91ac37238b
deleted file mode 100644
index d35beae..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/87/80b05ebcc9b0001c19bf8a91ac37238b
+++ /dev/null
@@ -1,125 +0,0 @@
-package ab.common.item.equipment;
-
-import java.awt.Color;
-
-import ab.client.core.ClientHelper;
-import ab.common.core.handler.ConfigABHandler;
-import ab.common.item.ItemMod;
-import net.minecraft.block.Block;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.Minecraft;
-import net.minecraft.entity.Entity;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.item.EnumAction;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.ChunkCoordinates;
-import net.minecraft.util.MathHelper;
-import net.minecraft.util.Vec3;
-import net.minecraft.world.World;
-import net.minecraft.world.chunk.Chunk;
-import vazkii.botania.api.mana.IManaUsingItem;
-import vazkii.botania.api.mana.ManaItemHandler;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.core.helper.Vector3;
-
-public class ItemNebulaRod extends ItemMod implements IManaUsingItem {
-
- public ItemNebulaRod() {
- super("nebulaRod");
- this.setMaxStackSize(1);
- this.setNoRepair();
- this.setMaxDamage(100);
- }
-
- public boolean usesMana(ItemStack stack) {
- return true;
- }
-
- public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
- if(stack.getItemDamage() == 0)
- player.setItemInUse(stack, getMaxItemUseDuration(stack));
- return stack;
- }
-
- public EnumAction getItemUseAction(ItemStack par1ItemStack) {
- return EnumAction.bow;
- }
-
- public void onUpdate(ItemStack stack, World world, Entity player, int par4, boolean par5) {
- if(!world.isRemote && player instanceof EntityPlayer && player.ticksExisted % ConfigABHandler.nebulaWandCooldownTick == 0 && stack.getItemDamage() > 0 && ManaItemHandler.requestManaExactForTool(stack, (EntityPlayer)player, 140, true))
- stack.setItemDamage(stack.getItemDamage() - 1);
- }
-
- public void onUsingTick(ItemStack stack, EntityPlayer p, int time) {
- time = this.getMaxItemUseDuration(stack) - time;
- boolean isFinish = time > 80;
- if(time > 110 && !p.isSneaking()) {
- if(!p.capabilities.isCreativeMode)
- stack.setItemDamage(100);
- p.stopUsingItem();
- if(!p.worldObj.isRemote) {
- Vec3 vec3 = p.getLook(1.0F).normalize();
- MathHelper.floor_double(time);
- int limitXZ = ConfigABHandler.limitXZCoords;
- int posX = MathHelper.floor_double(p.posX + vec3.xCoord * 256);
- int posY = MathHelper.floor_double(p.posY);
- int posZ = MathHelper.floor_double(p.posZ + vec3.zCoord * 256);
- ChunkCoordinates chunkcoordinates = new ChunkCoordinates(Math.min(Math.max(posX, -(limitXZ - 1)), limitXZ - 1), posY, Math.min(Math.max(posZ, -(limitXZ - 1)), limitXZ - 1));
- int topY = getTopBlock(p.worldObj, posX, posZ);
- chunkcoordinates.posY = topY == -1 ? posY : topY;
- ((EntityPlayerMP)p).playerNetServerHandler.setPlayerLocation(chunkcoordinates.posX + 0.5D, chunkcoordinates.posY + 1.6D, chunkcoordinates.posZ + 0.5D, p.rotationYaw, p.rotationPitch);
- }
- }
- if(p.worldObj.isRemote) {
- int ticks = Math.min(100, time);
- int totalSpiritCount = (int)Math.max(3, ticks / 100.0f * 18);
- double tickIncrement = 360.0D / totalSpiritCount;
- int speed = 8;
- double wticks = (ticks * speed) - tickIncrement;
- double r = Math.sin((ticks) / 100.0D) * Math.max(0.75f, 1.4D * ticks / 100.0f);
- Vec3 look = p.getLookVec();
- float yawOffset = Minecraft.getMinecraft().thePlayer.getDisplayName() == p.getDisplayName() ? 0.0f : 1.62f;
- Vector3 l = new Vector3(look.xCoord, look.yCoord + yawOffset, look.zCoord);
- Vector3 player = Vector3.fromEntity(p).add(0.0f, 0.0f, 0.0f);
- Vector3 v3 = new Vector3();
- for(int i = 0; i < totalSpiritCount; i++) {
- float size = Math.max(0.215f, ticks / 100.0f);
- v3.set(Math.sin(wticks * Math.PI / 180.0D) / 1.825f * r, Math.cos(wticks * Math.PI / 180.0D) * r, 0.8f);
- ClientHelper.setRotation(p.rotationPitch, 1.0f, 0.0f, 0.0f, v3);
- ClientHelper.setRotation(-p.rotationYaw, 0.0f, 1.0f, 0.0f, v3);
- v3.add(l.multiply(1.0f)).add(player);
- wticks += tickIncrement;
- int color = p.worldObj.rand.nextBoolean() ? 0x931fec : 0x4b1682;
- float hsb[] = Color.RGBtoHSB(color & 255, color >> 8 & 255, color >> 16 & 255, null);
- int color1 = Color.HSBtoRGB(hsb[0], hsb[1], ticks / 100.0f);
- float[] colorsfx = { (color1 & 255) / 255.0f, (color1 >> 8 & 255) / 255.0f, (color1 >> 16 & 255) / 255.0f };
- float motionSpeed = 0.25f * Math.min(1.0f, (time - 80) / 30.0f);
- Botania.proxy.wispFX(p.worldObj, v3.x, v3.y, v3.z, colorsfx[0], colorsfx[1], colorsfx[2], 0.3F * size, isFinish ? (float)(look.xCoord * -1) * motionSpeed : 0.0f, isFinish ? (float)(look.yCoord * -1) * motionSpeed : 0.0f, isFinish ? (float)(look.zCoord * -1) * motionSpeed : 0.0f, 0.3F);
- Botania.proxy.wispFX(p.worldObj, v3.x, v3.y, v3.z, colorsfx[0], colorsfx[1], colorsfx[2], (float)(Math.random() * 0.1F + 0.05F) * size, (float)(Math.random() - 0.5D) * 0.05F, (float)(Math.random() - 0.5D) * 0.05F, (float)(Math.random() - 0.5D) * 0.05F, 0.4F);
- }
- }
- }
-
- public int getMaxItemUseDuration(ItemStack par1ItemStack) {
- return 72000;
- }
-
- public boolean isFull3D() {
- return true;
- }
-
- public int getTopBlock(World world, int posX, int posZ) {
- Chunk chunk = world.getChunkFromBlockCoords(posX, posZ);
- int x = posX;
- int z = posZ;
- int k = chunk.getTopFilledSegment() + 15;
- posX &= 15;
- for(posZ &= 15; k > 0; --k) {
- Block block = chunk.getBlock(posX, k, posZ);
- if(!block.isAir(world, x, k, z))
- return k + 1;
- }
- return -1;
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/88/101d16a206ad001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/88/101d16a206ad001c1d59e42be7477558
deleted file mode 100644
index 2479a03..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/88/101d16a206ad001c1d59e42be7477558
+++ /dev/null
@@ -1,118 +0,0 @@
-package ab.common.block;
-
-import java.util.List;
-
-import ab.AdvancedBotany;
-import ab.common.block.tile.TileBoardFate;
-import ab.common.block.tile.TileGameBoard;
-import ab.common.block.tile.TileInventory;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockContainer;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.renderer.texture.IIconRegister;
-import net.minecraft.creativetab.CreativeTabs;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.IIcon;
-import net.minecraft.world.World;
-import vazkii.botania.api.wand.IWandable;
-
-public class BlockBoardFate extends BlockContainer {
-
- protected IIcon[] iconsFate;
- protected IIcon[] iconsBoard;
-
- public BlockBoardFate() {
- super(Material.iron);
- this.setCreativeTab(AdvancedBotany.tabAB);
- this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.1875F, 1.0F);
- this.setHardness(3.0F);
- this.setResistance(10.0F);
- this.setStepSound(soundTypeMetal);
- this.setBlockName("boardFate");
- }
-
- public void getSubBlocks(Item par1, CreativeTabs par2CreativeTabs, List list) {
- for(int i = 0; i < 2; i++)
- list.add(new ItemStack(par1, 1, i));
- }
-
- public void registerBlockIcons(IIconRegister ir) {
- this.iconsFate = new IIcon[3];
- this.iconsBoard = new IIcon[3];
- for(int i = 0; i < iconsFate.length; i++)
- this.iconsFate[i] = ir.registerIcon("ab:boardFate_" + i);
- for(int i = 0; i < iconsBoard.length; i++)
- this.iconsBoard[i] = ir.registerIcon("ab:gameBoard_" + i);
- }
-
- public IIcon getIcon(int side, int meta) {
- if(meta == 0)
- return this.iconsBoard[Math.min(2, side)];
- else
- return this.iconsFate[Math.min(2, side)];
- }
-
- public boolean isOpaqueCube() {
- return false;
- }
-
- public boolean renderAsNormalBlock() {
- return false;
- }
-
- public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float par7, float par8, float par9) {
- int meta = world.getBlockMetadata(x, y, z);
- if(meta == 0) {
- TileGameBoard tile = (TileGameBoard)world.getTileEntity(x, y, z);
- if(player.isSneaking() && !tile.hasGame()) {
- tile.isSingleGame = !tile.isSingleGame;
- return true;
- }
- if(!tile.hasGame())
- tile.setPlayer(player);
- else if(!tile.isSingleGame && tile.playersName[1].isEmpty() && !tile.playersName[0].equals(player.getCommandSenderName()))
- tile.setPlayer(player);
- else {
- return tile.dropDice(player);
- }
- return false;
- } else {
- TileBoardFate tile = (TileBoardFate)world.getTileEntity(x, y, z);
- return tile.spawnRelic(player);
- }
- }
-
- public TileEntity createNewTileEntity(World world, int meta) {
- return meta == 0 ? new TileGameBoard() : new TileBoardFate();
- }
-
- public void breakBlock(World world, int x, int y, int z, Block block, int meta) {
- if(!world.isRemote && meta == 1) {
- TileInventory inv = (TileInventory)world.getTileEntity(x, y, z);
- if (inv != null) {
- for (int i = 0; i < inv.getSizeInventory(); i++) {
- ItemStack stack = inv.getStackInSlot(i);
- if (stack != null) {
- float f = world.rand.nextFloat() * 0.8F + 0.1F;
- float f1 = world.rand.nextFloat() * 0.8F + 0.1F;
- float f2 = world.rand.nextFloat() * 0.8F + 0.1F;
- EntityItem entityitem = new EntityItem(world, (x + f), (y + f1), (z + f2), stack.copy());
- float f3 = 0.05F;
- entityitem.motionX = ((float)world.rand.nextGaussian() * f3);
- entityitem.motionY = ((float)world.rand.nextGaussian() * f3 + 0.2F);
- entityitem.motionZ = ((float)world.rand.nextGaussian() * f3);
- if (stack.hasTagCompound())
- entityitem.getEntityItem().setTagCompound((NBTTagCompound)stack.getTagCompound().copy());
- world.spawnEntityInWorld(entityitem);
- }
- }
- }
- }
- super.breakBlock(world, x, y, z, block, meta);
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d5/801620af0ab0001c18a5eba32f24fffa b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/88/50734348e7bc001c1a9f99005529f322
similarity index 81%
rename from 1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d5/801620af0ab0001c18a5eba32f24fffa
rename to 1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/88/50734348e7bc001c1a9f99005529f322
index 38c43d9..7e0ae65 100644
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d5/801620af0ab0001c18a5eba32f24fffa
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/88/50734348e7bc001c1a9f99005529f322
@@ -29,8 +29,10 @@ public class TileGameBoard extends TileMod implements IRenderHud {
public int endGameTick = -1;
protected boolean requestUpdate;
public boolean isSingleGame = true;
+ public boolean isCustomGame = false;
public int clientTick[] = new int[] { 0, 0, 0, 0 };
public static final ItemStack headRender = new ItemStack(Items.skull, 1, 3);
+ private ItemStack customStack;
public void updateEntity() {
if(botTick > 0)
@@ -52,10 +54,12 @@ public class TileGameBoard extends TileMod implements IRenderHud {
}
protected void updateServer() {
- if(hasGame() && endGameTick == 0)
+ if(hasGame() && endGameTick == 0 && !isCustomGame)
finishGame();
if(requestUpdate)
VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
+ if(worldObj.getTotalWorldTime() % 20 == 0 && hasFullDice() && endGameTick == -1)
+ endGameTick = 28;
boolean hasUpdate = false;
if(isSingleGame) {
if(botTick == 0 && hasGame()) {
@@ -64,6 +68,7 @@ public class TileGameBoard extends TileMod implements IRenderHud {
slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
botTick = -1;
hasUpdate = true;
+ worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "ab:boardCube", 0.6F, 1.0F);
break;
}
}
@@ -75,7 +80,8 @@ public class TileGameBoard extends TileMod implements IRenderHud {
requestUpdate = hasUpdate;
}
- public void setPlayer(String name) {
+ public void setPlayer(String name, boolean isCustomGame) {
+ this.isCustomGame = isCustomGame;
if(isSingleGame) {
playersName[0] = name;
playersName[1] = "";
@@ -91,13 +97,12 @@ public class TileGameBoard extends TileMod implements IRenderHud {
}
public void setPlayer(EntityPlayer player) {
- setPlayer(player.getCommandSenderName());
+ setPlayer(player.getCommandSenderName(), false);
}
public boolean dropDice(String name) {
if(isSingleGame) {
if(name.equals(playersName[0]) && botTick == -1) {
- boolean isLastDice = false;
boolean hasDrop = false;
for(int i = 0; i < 2; i++) {
if(slotChance[i] == 0) {
@@ -105,15 +110,12 @@ public class TileGameBoard extends TileMod implements IRenderHud {
if(!worldObj.isRemote) {
slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
botTick = 18;
+ worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "ab:boardCube", 0.6F, 1.0F);
requestUpdate = true;
- if(i == 1)
- isLastDice = true;
}
break;
}
}
- if(isLastDice)
- endGameTick = 28;
return hasDrop;
}
} else {
@@ -126,8 +128,7 @@ public class TileGameBoard extends TileMod implements IRenderHud {
if(!worldObj.isRemote) {
slotChance[j] = (byte)(worldObj.rand.nextInt(6) + 1);
botTick = playersName[1].isEmpty() ? 240 : 1200;
- if(hasFullDice())
- endGameTick = 28;
+ worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "ab:boardCube", 0.6F, 1.0F);
requestUpdate = true;
}
break;
@@ -164,18 +165,17 @@ public class TileGameBoard extends TileMod implements IRenderHud {
return false;
}
- public void finishGame() {
+ public void finishGame(boolean hasChatMessage) {
if(worldObj.isRemote)
return;
- if(!hasFullDice()) {
+ else if(!hasChatMessage) {
+ resetGame();
+ return;
+ } else if(!hasFullDice()) {
sendNearMessage("ab.gameBoard.misc.notPlayer", new Object[] {});
resetGame();
return;
- }
- else if(playersName[0].equals(SubTileArdentAzarcissus.playerName)) {
- resetGame();
- return;
- }
+ }
String str = isSingleGame ? "" : ".mult";
if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
sendNearMessage("ab.gameBoard.misc.0" + str, new Object[] { playersName[0] });
@@ -186,6 +186,10 @@ public class TileGameBoard extends TileMod implements IRenderHud {
resetGame();
}
+ public void finishGame() {
+ finishGame(true);
+ }
+
public void sendNearMessage(String text, Object[] obj) {
List players = this.worldObj.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(this.xCoord, this.yCoord, this.zCoord, (this.xCoord + 1), (this.yCoord + 1), (this.zCoord + 1)).expand(3.5f, 3.5f, 3.5f));
for(EntityPlayer player : players) {
@@ -194,6 +198,18 @@ public class TileGameBoard extends TileMod implements IRenderHud {
}
}
+ public boolean changeCustomStack(ItemStack stack) {
+ if(!isCustomGame)
+ return false;
+ else if(customStack == null || !ItemStack.areItemStacksEqual(customStack, stack)) {
+ System.out.println("df");
+ customStack = stack;
+ requestUpdate = true;
+ return true;
+ } else
+ return false;
+ }
+
public void resetGame() {
playersName[0] = "";
playersName[1] = "";
@@ -201,6 +217,7 @@ public class TileGameBoard extends TileMod implements IRenderHud {
slotChance[i] = 0;
botTick = -1;
endGameTick = -1;
+ isCustomGame = false;
requestUpdate = true;
}
@@ -208,7 +225,7 @@ public class TileGameBoard extends TileMod implements IRenderHud {
int x = res.getScaledWidth() / 2 - 7;
int y = res.getScaledHeight() / 2 + 12;
RenderHelper.enableGUIStandardItemLighting();
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, headRender, x - (!isSingleGame ? 1 : 0), y - (!isSingleGame ? 1 : 0));
+ RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, isCustomGame ? (customStack == null ? headRender : customStack) : headRender, x - (!isSingleGame ? 1 : 0), y - (!isSingleGame ? 1 : 0));
if(!isSingleGame)
RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, headRender, x + 3, y + 3);
RenderHelper.disableStandardItemLighting();
@@ -223,6 +240,9 @@ public class TileGameBoard extends TileMod implements IRenderHud {
cmp.setInteger("endGameTick", endGameTick);
cmp.setBoolean("requestUpdate", requestUpdate);
cmp.setBoolean("isSingleGame", isSingleGame);
+ cmp.setBoolean("isAnonimGame", isCustomGame);
+ if(customStack != null)
+ customStack.writeToNBT(cmp);
}
public void readCustomNBT(NBTTagCompound cmp) {
@@ -234,5 +254,7 @@ public class TileGameBoard extends TileMod implements IRenderHud {
slotChance = cmp.getByteArray("slotChance");
requestUpdate = cmp.getBoolean("requestUpdate");
isSingleGame = cmp.getBoolean("isSingleGame");
+ isCustomGame = cmp.getBoolean("isAnonimGame");
+ customStack = ItemStack.loadItemStackFromNBT(cmp);
}
}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/88/507dab53f7ac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/88/507dab53f7ac001c1d59e42be7477558
deleted file mode 100644
index 3b10029..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/88/507dab53f7ac001c1d59e42be7477558
+++ /dev/null
@@ -1,92 +0,0 @@
-package ab.client.render.tile;
-
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.model.ModelDiceFate;
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.ResourceLocation;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class RenderTileGameBoard extends TileEntitySpecialRenderer {
-
- private static final ModelDiceFate model = new ModelDiceFate();
- private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/gameDice.png");
- private static final ResourceLocation textureEnemy = new ResourceLocation("ab:textures/model/gameDice_enemy.png");
-
- public void renderTileEntityAt(TileEntity tile, double x, double y, double z, float ticks) {
- double time = (tile.getWorldObj() == null) ? 0.0D : (ClientTickHandler.ticksInGame + ticks);
- if(tile != null)
- time += (new Random((tile.xCoord ^ tile.yCoord ^ tile.zCoord))).nextInt(360);
- TileGameBoard board = (TileGameBoard)tile;
- GL11.glEnable(3042);
- GL11.glEnable(32826);
- GL11.glBlendFunc(770, 771);
- for(int i = 0; i < board.slotChance.length; i++) {
- if(board.slotChance[i] == 0)
- continue;
- time += i * 65;
- GL11.glPushMatrix();
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- float posX = 0.0f;
- float posY = 0.0f;
- float dropAnim = (1.0f - (Math.min(100.0f, board.clientTick[i] * board.clientTick[i] * 1.25f) / 100.0f));
- dropAnim = Math.min(1.0f, Math.max(dropAnim, 0));
- float alpha = (float)Math.cos(dropAnim);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, alpha);
- switch(i) {
- case 0:
- posX = 0.16f + 0.08f * dropAnim;
- posY = 0.16f + 0.08f * dropAnim;
- break;
- case 1:
- posX = -0.16f - 0.08f * dropAnim;
- posY = 0.16f + 0.08f * dropAnim;
- break;
- case 2:
- posX = 0.16f + 0.08f * dropAnim;
- posY = -0.16f - 0.08f * dropAnim;
- break;
- case 3:
- posX = -0.16f - 0.08f * dropAnim;
- posY = -0.16f - 0.08f * dropAnim;
- break;
- }
- GL11.glTranslated(x, y, z);
- GL11.glTranslated(0.5f + posX, 0.02f + Math.sin(time / 12.0D) / 48.0D + (0.28f * dropAnim), 0.5f + posY);
- GL11.glScalef(0.25f, 0.25f, 0.25f);
- Minecraft.getMinecraft().renderEngine.bindTexture(i > 1 ? textureEnemy : texture);
- float dropAngel = 70.0f * dropAnim;
- switch(board.slotChance[i]) {
- case 1:
- model.render(180.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 2:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 3:
- model.render(90.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 4:
- model.render(270.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 5:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 270.0f);
- break;
- case 6:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 90.0f);
- break;
- default:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- }
- GL11.glPopMatrix();
- }
- GL11.glEnable(32826);
- GL11.glDisable(3042);
- }
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/88/a09b3b41c9ad001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/88/a09b3b41c9ad001c1d59e42be7477558
deleted file mode 100644
index 3889cd7..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/88/a09b3b41c9ad001c1d59e42be7477558
+++ /dev/null
@@ -1,159 +0,0 @@
-package ab.common.entity;
-
-import java.awt.Color;
-import java.util.List;
-import java.util.Random;
-
-import ab.client.core.ClientHelper;
-import ab.common.core.CommonHelper;
-import ab.common.lib.register.BlockListAB;
-import cpw.mods.fml.relauncher.ReflectionHelper;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockBush;
-import net.minecraft.block.BlockCrops;
-import net.minecraft.block.BlockGrass;
-import net.minecraft.block.BlockSapling;
-import net.minecraft.block.IGrowable;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.EntityLivingBase;
-import net.minecraft.entity.passive.EntityAnimal;
-import net.minecraft.entity.projectile.EntityThrowable;
-import net.minecraft.init.Blocks;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.potion.PotionEffect;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.MathHelper;
-import net.minecraft.util.MovingObjectPosition;
-import net.minecraft.util.Vec3;
-import net.minecraft.world.World;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.core.handler.ConfigHandler;
-import vazkii.botania.common.lib.LibObfuscation;
-
-public class EntityManaVine extends EntityThrowable {
-
- int maxAge = 240;
- int age;
-
- public EntityManaVine(World world) {
- super(world);
- }
-
- public EntityManaVine(World world, EntityLivingBase entity) {
- super(world, entity);
- }
-
- public void onUpdate() {
- super.onUpdate();
- age++;
- if(age >= maxAge)
- setDead();
- if(this.worldObj.isRemote) {
- float m = 0.02F;
- float f1 = 6.0f;
- for(int i = 0; i < 4; i++) {
- double posX = this.posX + (Math.random() / f1 - (0.5f / f1));
- double posY = this.posY + (Math.random() / f1 - (0.5f / f1));
- double posZ = this.posZ + (Math.random() / f1 - (0.5f / f1));
- float mx = (float)(Math.random() - 0.5D) * m;
- float my = (float)(Math.random() - 0.5D) * m;
- float mz = (float)(Math.random() - 0.5D) * m;
- Color color = ClientHelper.getCorporeaRuneColor((int)posX, (int)posY, (int)posZ, 3);
- Botania.proxy.wispFX(worldObj, posX, posY, posZ, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float) (0.15f + (Math.random() * 0.12f)), mx, my, mz, 0.7f);
- }
- }
- }
-
- protected void onImpact(MovingObjectPosition pos) {
- if(pos != null && pos.entityHit == null) {
- World world = this.worldObj;
- int x = pos.blockX;
- int y = pos.blockY;
- int z = pos.blockZ;
- List list = (List) (world.getEntitiesWithinAABB(EntityLivingBase.class, AxisAlignedBB.getBoundingBox(x - 10, y - 10, z - 10, x + 10, y + 10, z + 10)));
- for(EntityLivingBase target : list) {
- if(target instanceof EntityAnimal) {
- EntityAnimal animal = (EntityAnimal) target;
- ReflectionHelper.setPrivateValue(EntityAnimal.class, animal, 1200, LibObfuscation.IN_LOVE);
- animal.setTarget(null);
- this.worldObj.setEntityState(animal, (byte) 18);
- }
- }
- for(int k = 0; k < 7; k++)
- for(int k1 = 0; k1 < 7; k1++)
- for(int k2 = 0; k2 < 7; k2++) {
- int xCoord = x + k - 3;
- int yCoord = y + k1 - 1;
- int zCoord = z + k2 - 3;
- Block block = this.worldObj.getBlock(xCoord, yCoord, zCoord);
- if(world.getBlock(xCoord, yCoord, zCoord) instanceof IGrowable) {
- CommonHelper.fertilizer(world, block, xCoord, yCoord, zCoord, 12);
- if(ConfigHandler.blockBreakParticles)
- this.worldObj.playAuxSFX(2005, xCoord, yCoord, zCoord, 6 + this.worldObj.rand.nextInt(4));
- this.worldObj.playSoundEffect(x, y, z, "botania:agricarnation", 0.01F, 0.5F + (float) Math.random() * 0.5F);
- } else if(!world.isRemote && BlockListAB.blockFreyrLiana.canBlockStay(world, xCoord, yCoord - 1, zCoord)) {
- Vec3 vec = Vec3.createVectorHelper(xCoord, yCoord, zCoord);
- int distant = (int)vec.squareDistanceTo(Vec3.createVectorHelper(x, y, z));
- yCoord--;
- if (this.worldObj.rand.nextInt(distant + 1) == 0)
- while (yCoord > 0) {
- block = worldObj.getBlock(xCoord, yCoord, zCoord);
- if(block.isAir(worldObj, xCoord, yCoord, zCoord)) {
- if(world.rand.nextInt(4) < 3)
- worldObj.setBlock(xCoord, yCoord, zCoord, BlockListAB.blockFreyrLiana);
- else
- worldObj.setBlock(xCoord, yCoord, zCoord,BlockListAB.blockLuminousFreyrLiana);
- worldObj.playAuxSFX(2001, xCoord, yCoord, zCoord, Block.getIdFromBlock(BlockListAB.blockFreyrLiana));
- yCoord--;
- } else
- break;
- }
- }
- }
- this.setDead();
- }
- }
-
- boolean isPlant(int x, int y, int z) {
- Block block = this.worldObj.getBlock(x, y, z);
- if(block == Blocks.grass || block == Blocks.leaves || block == Blocks.leaves2 || block instanceof BlockBush && !(block instanceof BlockCrops) && !(block instanceof BlockSapling))
- return false;
- Material mat = block.getMaterial();
- return mat != null && (mat == Material.plants || mat == Material.cactus || mat == Material.grass || mat == Material.leaves || mat == Material.gourd) && block instanceof IGrowable && ((IGrowable) block).func_149851_a(this.worldObj, x, y, z, this.worldObj.isRemote);
- }
-
- @SideOnly(Side.CLIENT)
- public void setPositionAndRotation2(double p_70056_1_, double p_70056_3_, double p_70056_5_, float p_70056_7_, float p_70056_8_, int p_70056_9_) {}
-
- protected float getGravityVelocity() {
- return 0.0f;
- }
-
- public void setDead() {
- if(this.worldObj.isRemote) {
- float m = 0.175F;
- for(int i = 0; i < 32; i++) {
- float mx = (float)(Math.random() - 0.5D) * m;
- float my = (float)(Math.random() - 0.5D) * m;
- float mz = (float)(Math.random() - 0.5D) * m;
- Color color = ClientHelper.getCorporeaRuneColor((int)posX, (int)posY, (int)posZ, 3);
- Botania.proxy.wispFX(worldObj, posX, posY, posZ, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float) (0.2f + (Math.random() * 0.12f)), mx, my, mz, 2.0f);
- }
- }
- super.setDead();
- }
-
- public void readFromNBT(NBTTagCompound nbtt) {
- super.readFromNBT(nbtt);
- maxAge = nbtt.getInteger("maxAge");
- age = nbtt.getInteger("age");
- }
-
- public void writeToNBT(NBTTagCompound nbtt) {
- super.writeToNBT(nbtt);
- nbtt.setInteger("maxAge", maxAge);
- nbtt.setInteger("age", age);
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/88/d0dbbf1bfbac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/88/d0dbbf1bfbac001c1d59e42be7477558
deleted file mode 100644
index 19e2bac..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/88/d0dbbf1bfbac001c1d59e42be7477558
+++ /dev/null
@@ -1,94 +0,0 @@
-package ab.client.render.tile;
-
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.model.ModelDiceFate;
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.entity.RenderManager;
-import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.ResourceLocation;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class RenderTileGameBoard extends TileEntitySpecialRenderer {
-
- private static final ModelDiceFate model = new ModelDiceFate();
- private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/gameDice.png");
- private static final ResourceLocation textureEnemy = new ResourceLocation("ab:textures/model/gameDice_enemy.png");
-
- public void renderTileEntityAt(TileEntity tile, double x, double y, double z, float ticks) {
- double time = (tile.getWorldObj() == null) ? 0.0D : (ClientTickHandler.ticksInGame + ticks);
- if(tile != null)
- time += (new Random((tile.xCoord ^ tile.yCoord ^ tile.zCoord))).nextInt(360);
- TileGameBoard board = (TileGameBoard)tile;
- GL11.glEnable(3042);
- GL11.glEnable(32826);
- GL11.glBlendFunc(770, 771);
- for(int i = 0; i < board.slotChance.length; i++) {
- if(board.slotChance[i] == 0)
- continue;
- time += i * 65;
- GL11.glPushMatrix();
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- float posX = 0.0f;
- float posY = 0.0f;
- float dropAnim = (1.0f - (Math.min(100.0f, (board.clientTick[i] * board.clientTick[i] * 1.25f) + ticks) / 100.0f));
- dropAnim = Math.min(1.0f, Math.max(dropAnim, 0));
- float alpha = (float)Math.cos(dropAnim);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, alpha);
- switch(i) {
- case 0:
- posX = 0.16f + 0.08f * dropAnim;
- posY = 0.16f + 0.08f * dropAnim;
- break;
- case 1:
- posX = -0.16f - 0.08f * dropAnim;
- posY = 0.16f + 0.08f * dropAnim;
- break;
- case 2:
- posX = 0.16f + 0.08f * dropAnim;
- posY = -0.16f - 0.08f * dropAnim;
- break;
- case 3:
- posX = -0.16f - 0.08f * dropAnim;
- posY = -0.16f - 0.08f * dropAnim;
- break;
- }
- GL11.glTranslated(x, y, z);
- GL11.glTranslated(0.5f + posX, 0.02f + Math.sin(time / 12.0D) / 48.0D + (0.28f * dropAnim), 0.5f + posY);
- GL11.glRotatef(180.0f - RenderManager.instance.playerViewY, 0.0f, 1.0f, 0.0f);
- GL11.glScalef(0.25f, 0.25f, 0.25f);
- Minecraft.getMinecraft().renderEngine.bindTexture(i > 1 ? textureEnemy : texture);
- float dropAngel = 70.0f * dropAnim;
- switch(board.slotChance[i]) {
- case 1:
- model.render(180.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 2:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 3:
- model.render(90.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 4:
- model.render(270.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 5:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 270.0f);
- break;
- case 6:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 90.0f);
- break;
- default:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- }
- GL11.glPopMatrix();
- }
- GL11.glEnable(32826);
- GL11.glDisable(3042);
- }
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/89/00b59240bdbc001c1a9f99005529f322 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/89/00b59240bdbc001c1a9f99005529f322
new file mode 100644
index 0000000..63773ab
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/89/00b59240bdbc001c1a9f99005529f322
@@ -0,0 +1,38 @@
+package ab.client.render.block;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.client.render.tile.RenderTileManaContainer;
+import ab.common.block.tile.TileNidavellirForge;
+import ab.common.lib.register.BlockListAB;
+import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
+import net.minecraft.block.Block;
+import net.minecraft.client.renderer.RenderBlocks;
+import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.world.IBlockAccess;
+
+public class RenderBlockNidavellirForge implements ISimpleBlockRenderingHandler {
+
+ public void renderInventoryBlock(Block block, int metadata, int modelID, RenderBlocks renderer) {
+ GL11.glPushMatrix();
+ GL11.glTranslatef(-0.5F, -0.3F, -0.5F);
+ GL11.glScalef(1.3f, 1.3f, 1.3f);
+ TileNidavellirForge forge = new TileNidavellirForge();
+ RenderTileManaContainer.metadata = metadata;
+ TileEntityRendererDispatcher.instance.renderTileEntityAt((TileEntity)forge, 0.0D, 0.0D, 0.0D, 0.0F);
+ GL11.glPopMatrix();
+ }
+
+ public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId, RenderBlocks renderer) {
+ return false;
+ }
+
+ public int getRenderId() {
+ return BlockListAB.blockABPlateRI;
+ }
+
+ public boolean shouldRender3DInInventory(int modelId) {
+ return true;
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/89/704c552861c1001c11e398ea97007cb4 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/89/704c552861c1001c11e398ea97007cb4
new file mode 100644
index 0000000..d14e363
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/89/704c552861c1001c11e398ea97007cb4
@@ -0,0 +1,56 @@
+package ab.client.render.item;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.common.item.relic.ItemSphereNavigation;
+import net.minecraft.client.Minecraft;
+import net.minecraft.client.renderer.ItemRenderer;
+import net.minecraft.client.renderer.OpenGlHelper;
+import net.minecraft.client.renderer.Tessellator;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.IIcon;
+import net.minecraftforge.client.IItemRenderer;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class RenderItemSphereNavigation implements IItemRenderer {
+
+ public boolean handleRenderType(ItemStack item, IItemRenderer.ItemRenderType type) {
+ return true;
+ }
+
+ public boolean shouldUseRenderHelper(IItemRenderer.ItemRenderType type, ItemStack item, IItemRenderer.ItemRendererHelper helper) {
+ return (helper == IItemRenderer.ItemRendererHelper.ENTITY_ROTATION || helper == IItemRenderer.ItemRendererHelper.ENTITY_BOBBING);
+ }
+
+ public void renderItem(IItemRenderer.ItemRenderType type, ItemStack stack, Object... data) {
+ GL11.glPushMatrix();
+ if(type == type.INVENTORY) {
+ GL11.glScalef(16, 16, 16);
+ GL11.glRotatef(180, 0, 0, 1);
+ GL11.glTranslatef(-1.0f, -1.0f, 0);
+ } else if(type == type.ENTITY) {
+ GL11.glTranslatef(-0.5F, 0.0F, 0.0F);
+ if(stack.isOnItemFrame())
+ GL11.glTranslatef(0.0F, -0.3F, 0.01F);
+ }
+ GL11.glEnable(GL11.GL_BLEND);
+ OpenGlHelper.glBlendFunc(770, 771, 1, 0);
+ GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
+ IIcon icon = ItemSphereNavigation.icons[0];
+ ItemRenderer.renderItemIn2D(Tessellator.instance, icon.getMaxU(), icon.getMinV(), icon.getMinU(), icon.getMaxV(), icon.getIconWidth(), icon.getIconHeight(), 0.0625F);
+ IIcon iconEnable = ItemSphereNavigation.icons[stack.getItemDamage() == 0 ? 4 : 3];
+ ItemRenderer.renderItemIn2D(Tessellator.instance, iconEnable.getMaxU(), iconEnable.getMinV(), iconEnable.getMinU(), iconEnable.getMaxV(), iconEnable.getIconWidth(), iconEnable.getIconHeight(), 0.0625F);
+ double time = (double) Minecraft.getSystemTime();
+ if(type != type.INVENTORY) {
+ GL11.glScalef(1.0f, 1.0f, 1.05f);
+ GL11.glTranslated(0.0f, 0.0f, 0.0015625f);
+ }
+ IIcon iconBlock = ItemSphereNavigation.icons[ItemSphereNavigation.getFindBlock(stack) != null ? 1 : 2];
+ if(ItemSphereNavigation.getFindBlock(stack) != null) {
+ GL11.glTranslated(0, Math.cos(time / 650.0) * 0.0075 + 0.005f, 0.0f);
+ }
+ ItemRenderer.renderItemIn2D(Tessellator.instance, iconBlock.getMaxU(), iconBlock.getMinV(), iconBlock.getMinU(), iconBlock.getMaxV(), iconBlock.getIconWidth(), iconBlock.getIconHeight(), 0.0625F);
+ GL11.glDisable(GL11.GL_BLEND);
+ GL11.glPopMatrix();
+ }
+}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/89/f0338a20e1ac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/89/f0338a20e1ac001c1d59e42be7477558
deleted file mode 100644
index 8478a5f..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/89/f0338a20e1ac001c1d59e42be7477558
+++ /dev/null
@@ -1,165 +0,0 @@
-package ab.common.block.tile;
-
-import java.util.List;
-
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.ChatComponentTranslation;
-import net.minecraft.util.ChatStyle;
-import net.minecraft.util.EnumChatFormatting;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-
-public class TileGameBoard extends TileInventory {
-
- protected String[] playersName = new String[] { "", "" };
- public byte[] slotChance = new byte[] { 0, 0, 0, 0 };
- protected int botTick = -1;
- public int endGameTick = -1;
- protected boolean requestUpdate;
- public boolean isSingleGame = true;
- public int clientTick[] = new int[] { 0, 0, 0, 0};
-
- public void updateEntity() {
- if(botTick > 0)
- botTick--;
- if(endGameTick > 0)
- endGameTick--;
- if(!worldObj.isRemote)
- updateServer();
- else
- updateClient();
- }
-
- protected void updateClient() {
- for(int i = 0; i < slotChance.length; i++)
- if(slotChance[i] > 0)
- clientTick[i]++;
- else
- clientTick[i] = 0;
- }
-
- protected void updateServer() {
- if(requestUpdate)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- boolean hasUpdate = false;
- if(isSingleGame && botTick == 0 && hasGame()) {
- for(int i = 2; i < 4; i++) {
- if(slotChance[i] == 0) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = -1;
- hasUpdate = true;
- break;
- }
- }
- }
- if(hasGame() && endGameTick == 0)
- finishGame();
- requestUpdate = hasUpdate;
- }
-
- public void setPlayer(EntityPlayer player) {
- if(isSingleGame) {
- playersName[0] = player.getCommandSenderName();
- playersName[1] = "";
- requestUpdate = true;
- botTick = 8;
- }
- }
-
- public boolean dropDice(EntityPlayer player) {
- if(isSingleGame) {
- if(player.getCommandSenderName() == playersName[0] && botTick <= 0) {
- System.out.println("wSwSwSwSwSw");
- boolean isLastDice = false;
- for(int i = 0; i < 2; i++) {
- if(slotChance[i] == 0 && !worldObj.isRemote) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = 18;
- requestUpdate = true;
- if(i == 1)
- isLastDice = true;
- break;
- }
- }
- if(isLastDice)
- endGameTick = 28;
- return true;
- }
- }
- return false;
- }
-
- public boolean hasGame() {
- if(isSingleGame)
- return !playersName[0].isEmpty();
- return !playersName[0].isEmpty() && !playersName[1].isEmpty();
- }
-
- public void finishGame() {
- if(worldObj.isRemote)
- return;
- if(isSingleGame) {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won");
- else
- sendNearMessage(playersName[0] + " you Lose!");
- resetGame();
- requestUpdate = true;
- }
- }
-
- public void sendNearMessage(String text) {
- List players = this.worldObj.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(this.xCoord, this.yCoord, this.zCoord, (this.xCoord + 1), (this.yCoord + 1), (this.zCoord + 1)).expand(3.5f, 3.5f, 3.5f));
- for(EntityPlayer player : players) {
- if(player != null)
- player.addChatMessage((new ChatComponentTranslation(text, new Object[] {})).setChatStyle((new ChatStyle()).setColor(EnumChatFormatting.DARK_GREEN)));
- }
- }
-
- public void resetGame() {
- playersName[0] = "";
- playersName[1] = "";
- for(int i = 0; i < slotChance.length; i++)
- slotChance[i] = 0;
- requestUpdate = true;
- botTick = -1;
- endGameTick = -1;
- }
-
- public void writeCustomNBT(NBTTagCompound cmp) {
- super.writeCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- cmp.setString("playerName" + i, playersName[i]);
- cmp.setByteArray("slotChance", slotChance);
- cmp.setInteger("botTick", botTick);
- cmp.setInteger("endGameTick", endGameTick);
- cmp.setBoolean("requestUpdate", requestUpdate);
- cmp.setBoolean("isSingleGame", isSingleGame);
- }
-
- public void readCustomNBT(NBTTagCompound cmp) {
- super.readCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- playersName[i] = cmp.getString("playerName" + i);
- botTick = cmp.getInteger("botTick");
- endGameTick = cmp.getInteger("endGameTick");
- slotChance = cmp.getByteArray("slotChance");
- requestUpdate = cmp.getBoolean("requestUpdate");
- isSingleGame = cmp.getBoolean("isSingleGame");
- }
-
- public int getInventoryStackLimit() {
- return 1;
- }
-
- public int getSizeInventory() {
- return 4;
- }
-
- public String getInventoryName() {
- return "inv.gameBoard";
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/8a/00f5e442fcac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/8a/00f5e442fcac001c1d59e42be7477558
deleted file mode 100644
index d1e310c..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/8a/00f5e442fcac001c1d59e42be7477558
+++ /dev/null
@@ -1,96 +0,0 @@
-package ab.client.render.tile;
-
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.model.ModelDiceFate;
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.entity.RenderManager;
-import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.ResourceLocation;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class RenderTileGameBoard extends TileEntitySpecialRenderer {
-
- private static final ModelDiceFate model = new ModelDiceFate();
- private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/gameDice.png");
- private static final ResourceLocation textureEnemy = new ResourceLocation("ab:textures/model/gameDice_enemy.png");
-
- public void renderTileEntityAt(TileEntity tile, double x, double y, double z, float ticks) {
- double time = (tile.getWorldObj() == null) ? 0.0D : (ClientTickHandler.ticksInGame + ticks);
- if(tile != null)
- time += (new Random((tile.xCoord ^ tile.yCoord ^ tile.zCoord))).nextInt(360);
- TileGameBoard board = (TileGameBoard)tile;
- GL11.glEnable(3042);
- GL11.glEnable(32826);
- GL11.glBlendFunc(770, 771);
- GL11.glPushMatrix();
- GL11.glTranslated(x + 0.5f, y, z + 0.5f);
- GL11.glRotatef(180.0f - RenderManager.instance.playerViewY, 0.0f, 1.0f, 0.0f);
- for(int i = 0; i < board.slotChance.length; i++) {
- if(board.slotChance[i] == 0)
- continue;
- time += i * 65;
- GL11.glPushMatrix();
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- float posX = 0.0f;
- float posZ = 0.0f;
- float dropAnim = (1.0f - (Math.min(100.0f, (board.clientTick[i] * board.clientTick[i] * 1.25f) + ticks) / 100.0f));
- dropAnim = Math.min(1.0f, Math.max(dropAnim, 0));
- float alpha = (float)Math.cos(dropAnim);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, alpha);
- switch(i) {
- case 0:
- posX = 0.16f + 0.08f * dropAnim;
- posZ = 0.16f + 0.08f * dropAnim;
- break;
- case 1:
- posX = -0.16f - 0.08f * dropAnim;
- posZ = 0.16f + 0.08f * dropAnim;
- break;
- case 2:
- posX = 0.16f + 0.08f * dropAnim;
- posZ = -0.16f - 0.08f * dropAnim;
- break;
- case 3:
- posX = -0.16f - 0.08f * dropAnim;
- posZ = -0.16f - 0.08f * dropAnim;
- break;
- }
- GL11.glTranslated(posX, 0.02f + Math.sin(time / 12.0D) / 48.0D + (0.28f * dropAnim), posZ);
- GL11.glScalef(0.25f, 0.25f, 0.25f);
- Minecraft.getMinecraft().renderEngine.bindTexture(i > 1 ? textureEnemy : texture);
- float dropAngel = 70.0f * dropAnim;
- switch(board.slotChance[i]) {
- case 1:
- model.render(180.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 2:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 3:
- model.render(90.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 4:
- model.render(270.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 5:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 270.0f);
- break;
- case 6:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 90.0f);
- break;
- default:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- }
- GL11.glPopMatrix();
- }
- GL11.glPopMatrix();
- GL11.glEnable(32826);
- GL11.glDisable(3042);
- }
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/8a/a00a7e84dfac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/8a/a00a7e84dfac001c1d59e42be7477558
deleted file mode 100644
index 058b6d8..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/8a/a00a7e84dfac001c1d59e42be7477558
+++ /dev/null
@@ -1,90 +0,0 @@
-package ab.client.render.tile;
-
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.model.ModelDiceFate;
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.ResourceLocation;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class RenderTileGameBoard extends TileEntitySpecialRenderer {
-
- private static final ModelDiceFate model = new ModelDiceFate();
- private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/gameDice.png");
- private static final ResourceLocation textureEnemy = new ResourceLocation("ab:textures/model/gameDice_enemy.png");
-
- public void renderTileEntityAt(TileEntity tile, double x, double y, double z, float ticks) {
- double time = (tile.getWorldObj() == null) ? 0.0D : (ClientTickHandler.ticksInGame + ticks);
- if(tile != null)
- time += (new Random((tile.xCoord ^ tile.yCoord ^ tile.zCoord))).nextInt(360);
- TileGameBoard board = (TileGameBoard)tile;
- GL11.glEnable(3042);
- GL11.glEnable(32826);
- for(int i = 0; i < board.slotChance.length; i++) {
- if(board.slotChance[i] == 0)
- continue;
- time += i * 65;
- GL11.glPushMatrix();
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- float posX = 0.0f;
- float posY = 0.0f;
- float dropAnim = (1.0f - (Math.min(100.0f, board.clientTick[i] * board.clientTick[i] * 1.125f) / 100.0f));
- dropAnim = Math.min(1.0f, Math.max(dropAnim, 0));
- GL11.glColor4f(1.0F, 1.0F, 1.0F, Math.min(Math.max(1.0f, 1.0f - (dropAnim * dropAnim)), 0.0f));
- switch(i) {
- case 0:
- posX = 0.16f + 0.08f * dropAnim;
- posY = 0.16f + 0.08f * dropAnim;
- break;
- case 1:
- posX = -0.16f - 0.08f * dropAnim;
- posY = 0.16f + 0.08f * dropAnim;
- break;
- case 2:
- posX = 0.16f + 0.08f * dropAnim;
- posY = -0.16f - 0.08f * dropAnim;
- break;
- case 3:
- posX = -0.16f - 0.08f * dropAnim;
- posY = -0.16f - 0.08f * dropAnim;
- break;
- }
- GL11.glTranslated(x, y, z);
- GL11.glTranslated(0.5f + posX, 0.02f + Math.sin(time / 12.0D) / 48.0D + (0.28f * dropAnim), 0.5f + posY);
- GL11.glScalef(0.25f, 0.25f, 0.25f);
- Minecraft.getMinecraft().renderEngine.bindTexture(i > 1 ? textureEnemy : texture);
- float dropAngel = 70.0f * dropAnim;
- switch(board.slotChance[i]) {
- case 1:
- model.render(180.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 2:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 3:
- model.render(90.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 4:
- model.render(270.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 5:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 270.0f);
- break;
- case 6:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 90.0f);
- break;
- default:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- }
- GL11.glPopMatrix();
- }
- GL11.glEnable(32826);
- GL11.glDisable(3042);
- }
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/8a/f0950b91b9bc001c1a9f99005529f322 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/8a/f0950b91b9bc001c1a9f99005529f322
new file mode 100644
index 0000000..afcc4ff
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/8a/f0950b91b9bc001c1a9f99005529f322
@@ -0,0 +1,133 @@
+package ab.common.block;
+
+import ab.AdvancedBotany;
+import ab.common.block.tile.TileNidavellirForge;
+import ab.common.block.tile.TileInventory;
+import ab.common.lib.register.RecipeListAB;
+import net.minecraft.block.Block;
+import net.minecraft.block.BlockContainer;
+import net.minecraft.block.material.Material;
+import net.minecraft.client.renderer.texture.IIconRegister;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.MathHelper;
+import net.minecraft.util.Vec3;
+import net.minecraft.world.IBlockAccess;
+import net.minecraft.world.World;
+import vazkii.botania.api.BotaniaAPI;
+import vazkii.botania.api.lexicon.ILexiconable;
+import vazkii.botania.api.lexicon.LexiconEntry;
+
+public class BlockNidavellirForge extends BlockContainer implements ILexiconable {
+
+ public BlockNidavellirForge() {
+ super(Material.iron);
+ this.setCreativeTab(AdvancedBotany.tabAB);
+ this.setHardness(3.0F);
+ this.setResistance(10.0F);
+ this.setStepSound(soundTypeMetal);
+ this.setBlockName("ABPlate");
+ }
+
+ public void setBlockBoundsBasedOnState(IBlockAccess world, int x, int y, int z) {
+ float f = 0.21875F;
+ if(world.getBlockMetadata(x, y, z) % 2 == 0)
+ this.setBlockBounds(f, 0.0F, 0.0F, 1.0F - f, 0.6875F, 1.0F);
+ else
+ this.setBlockBounds(0.0F, 0.0F, f, 1.0F, 0.6875F, 1.0F - f);
+ }
+
+ public void onBlockPlacedBy(World world, int x, int y, int z, EntityLivingBase liv, ItemStack stack) {
+ int meta = MathHelper.floor_double((double)(liv.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3;
+ world.setBlockMetadataWithNotify(x, y, z, meta, 3);
+ }
+
+ public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int par6, float par7, float par8, float par9) {
+ TileNidavellirForge tile = (TileNidavellirForge)world.getTileEntity(x, y, z);
+ if(player.isSneaking()) {
+ if(tile.getStackInSlot(0) != null) {
+ ItemStack copy = tile.getStackInSlot(0).copy();
+ if(!world.isRemote) {
+ Vec3 vec3 = player.getLook(1.0F).normalize();
+ EntityItem entityitem = new EntityItem(world, player.posX + vec3.xCoord, player.posY + 1.2f, player.posZ + vec3.zCoord, copy);
+ world.spawnEntityInWorld(entityitem);
+ tile.requestUpdate = true;
+ }
+ tile.setInventorySlotContents(0, null);
+ world.func_147453_f(x, y, z, (Block)this);
+ return true;
+ }
+ for(int i = tile.getSizeInventory() - 1; i > 0; i--) {
+ ItemStack stack = tile.getStackInSlot(i);
+ if(stack != null) {
+ ItemStack copy = stack.copy();
+ if(!world.isRemote) {
+ Vec3 vec3 = player.getLook(1.0F).normalize();
+ EntityItem entityitem = new EntityItem(world, player.posX + vec3.xCoord, player.posY + 1.2f, player.posZ + vec3.zCoord, copy);
+ world.spawnEntityInWorld(entityitem);
+ tile.requestUpdate = true;
+ }
+ tile.setInventorySlotContents(i, null);
+ world.func_147453_f(x, y, z, (Block)this);
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public void breakBlock(World world, int x, int y, int z, Block block, int meta) {
+ if(!world.isRemote) {
+ TileInventory inv = (TileInventory)world.getTileEntity(x, y, z);
+ if (inv != null) {
+ for (int i = 0; i < inv.getSizeInventory(); i++) {
+ ItemStack stack = inv.getStackInSlot(i);
+ if (stack != null) {
+ float f = world.rand.nextFloat() * 0.8F + 0.1F;
+ float f1 = world.rand.nextFloat() * 0.8F + 0.1F;
+ float f2 = world.rand.nextFloat() * 0.8F + 0.1F;
+ EntityItem entityitem = new EntityItem(world, (x + f), (y + f1), (z + f2), stack.copy());
+ float f3 = 0.05F;
+ entityitem.motionX = ((float)world.rand.nextGaussian() * f3);
+ entityitem.motionY = ((float)world.rand.nextGaussian() * f3 + 0.2F);
+ entityitem.motionZ = ((float)world.rand.nextGaussian() * f3);
+ if (stack.hasTagCompound())
+ entityitem.getEntityItem().setTagCompound((NBTTagCompound)stack.getTagCompound().copy());
+ world.spawnEntityInWorld(entityitem);
+ }
+ }
+ }
+ }
+ super.breakBlock(world, x, y, z, block, meta);
+ }
+
+ public int getRenderType() {
+ return -1;
+ }
+
+ public boolean renderAsNormalBlock() {
+ return false;
+ }
+
+ public boolean isOpaqueCube() {
+ return false;
+ }
+
+ public boolean getBlocksMovement(IBlockAccess p_149655_1_, int p_149655_2_, int p_149655_3_, int p_149655_4_) {
+ return false;
+ }
+
+ public TileEntity createNewTileEntity(World world, int meta) {
+ return new TileNidavellirForge();
+ }
+
+ public LexiconEntry getEntry(World arg0, int arg1, int arg2, int arg3, EntityPlayer arg4, ItemStack arg5) {
+ return RecipeListAB.advandedAgglomerationPlate;
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/8c/30e7e00fb6bc001c1a9f99005529f322 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/8c/30e7e00fb6bc001c1a9f99005529f322
new file mode 100644
index 0000000..f859e41
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/8c/30e7e00fb6bc001c1a9f99005529f322
@@ -0,0 +1,146 @@
+package ab.common.block;
+
+import ab.AdvancedBotany;
+import ab.common.block.tile.TileNidavellirForge;
+import ab.common.block.tile.TileInventory;
+import ab.common.lib.register.RecipeListAB;
+import net.minecraft.block.Block;
+import net.minecraft.block.BlockContainer;
+import net.minecraft.block.material.Material;
+import net.minecraft.client.renderer.texture.IIconRegister;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.Vec3;
+import net.minecraft.world.IBlockAccess;
+import net.minecraft.world.World;
+import vazkii.botania.api.BotaniaAPI;
+import vazkii.botania.api.lexicon.ILexiconable;
+import vazkii.botania.api.lexicon.LexiconEntry;
+
+public class BlockNidavellirForge extends BlockContainer implements ILexiconable {
+
+ public BlockNidavellirForge() {
+ super(Material.iron);
+ this.setCreativeTab(AdvancedBotany.tabAB);
+ this.setHardness(3.0F);
+ this.setResistance(10.0F);
+ this.setStepSound(soundTypeMetal);
+ this.setBlockName("ABPlate");
+ }
+
+// public void setBlockBoundsBasedOnState(IBlockAccess world, int x, int y, int z) {
+// float f1 = 1.0F;
+// float f2 = 1.0F;
+// float f3 = 1.0F;
+// float f4 = 0.0F;
+// float f5 = 0.0F;
+// float f6 = 0.0F;
+// this.setBlockBounds(f1, f2, f3, f4, f5, f6);
+// }
+
+ public int onBlockPlaced(World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ, int meta) {
+ byte b0 = 0;
+ switch (side) {
+ case 2:
+ b0 = 1;
+ break;
+ case 3:
+ b0 = 4;
+ break;
+ case 4:
+ b0 = 8;
+ break;
+ case 5:
+ b0 = 2;
+ }
+ return b0 != 0 ? b0 : meta;
+ }
+
+ public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int par6, float par7, float par8, float par9) {
+ TileNidavellirForge tile = (TileNidavellirForge)world.getTileEntity(x, y, z);
+ if(player.isSneaking()) {
+ if(tile.getStackInSlot(0) != null) {
+ ItemStack copy = tile.getStackInSlot(0).copy();
+ if(!world.isRemote) {
+ Vec3 vec3 = player.getLook(1.0F).normalize();
+ EntityItem entityitem = new EntityItem(world, player.posX + vec3.xCoord, player.posY + 1.2f, player.posZ + vec3.zCoord, copy);
+ world.spawnEntityInWorld(entityitem);
+ tile.requestUpdate = true;
+ }
+ tile.setInventorySlotContents(0, null);
+ world.func_147453_f(x, y, z, (Block)this);
+ return true;
+ }
+ for(int i = tile.getSizeInventory() - 1; i > 0; i--) {
+ ItemStack stack = tile.getStackInSlot(i);
+ if(stack != null) {
+ ItemStack copy = stack.copy();
+ if(!world.isRemote) {
+ Vec3 vec3 = player.getLook(1.0F).normalize();
+ EntityItem entityitem = new EntityItem(world, player.posX + vec3.xCoord, player.posY + 1.2f, player.posZ + vec3.zCoord, copy);
+ world.spawnEntityInWorld(entityitem);
+ tile.requestUpdate = true;
+ }
+ tile.setInventorySlotContents(i, null);
+ world.func_147453_f(x, y, z, (Block)this);
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public void breakBlock(World world, int x, int y, int z, Block block, int meta) {
+ if(!world.isRemote) {
+ TileInventory inv = (TileInventory)world.getTileEntity(x, y, z);
+ if (inv != null) {
+ for (int i = 0; i < inv.getSizeInventory(); i++) {
+ ItemStack stack = inv.getStackInSlot(i);
+ if (stack != null) {
+ float f = world.rand.nextFloat() * 0.8F + 0.1F;
+ float f1 = world.rand.nextFloat() * 0.8F + 0.1F;
+ float f2 = world.rand.nextFloat() * 0.8F + 0.1F;
+ EntityItem entityitem = new EntityItem(world, (x + f), (y + f1), (z + f2), stack.copy());
+ float f3 = 0.05F;
+ entityitem.motionX = ((float)world.rand.nextGaussian() * f3);
+ entityitem.motionY = ((float)world.rand.nextGaussian() * f3 + 0.2F);
+ entityitem.motionZ = ((float)world.rand.nextGaussian() * f3);
+ if (stack.hasTagCompound())
+ entityitem.getEntityItem().setTagCompound((NBTTagCompound)stack.getTagCompound().copy());
+ world.spawnEntityInWorld(entityitem);
+ }
+ }
+ }
+ }
+ super.breakBlock(world, x, y, z, block, meta);
+ }
+
+ public int getRenderType() {
+ return -1;
+ }
+
+ public boolean renderAsNormalBlock() {
+ return false;
+ }
+
+ public boolean isOpaqueCube() {
+ return false;
+ }
+
+ public boolean getBlocksMovement(IBlockAccess p_149655_1_, int p_149655_2_, int p_149655_3_, int p_149655_4_) {
+ return false;
+ }
+
+ public TileEntity createNewTileEntity(World world, int meta) {
+ return new TileNidavellirForge();
+ }
+
+ public LexiconEntry getEntry(World arg0, int arg1, int arg2, int arg3, EntityPlayer arg4, ItemStack arg5) {
+ return RecipeListAB.advandedAgglomerationPlate;
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/8c/60c8fea017be001c1965b122d2f8f403 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/8c/60c8fea017be001c1965b122d2f8f403
new file mode 100644
index 0000000..8d7ac83
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/8c/60c8fea017be001c1965b122d2f8f403
@@ -0,0 +1,147 @@
+package ab.common.item.relic;
+
+import java.awt.Color;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.common.core.handler.NetworkHandler;
+import ab.common.lib.register.ItemListAB;
+import net.minecraft.block.Block;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.MathHelper;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.api.mana.ManaItemHandler;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class ItemSphereNavigation extends ItemModRelic {
+
+ public static final int rangeSearch = 24;
+ public static final int maxCooldown = 112;
+ public static final int manaCost = 1750;
+ public static final ItemStack thisRenderStack = new ItemStack(ItemListAB.itemSphereNavigation);
+
+ public ItemSphereNavigation() {
+ super("sphereNavigation");
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int pos, boolean equipped) {
+ super.onUpdate(stack, world, entity, pos, equipped);
+ if(entity instanceof EntityPlayer) {
+ EntityPlayer player = (EntityPlayer)entity;
+ if(!world.isRemote && getFindBlock(stack) != null && canWork(stack) && ManaItemHandler.requestManaExactForTool(stack, player, manaCost, true)) {
+ setMaxTick(stack);
+ NetworkHandler.sendPacketToFindBlocks((EntityPlayerMP)player, getFindBlock(stack), getFindMeta(stack));
+ }
+ }
+ }
+
+ public static void findBlocks(World world, Block findBlock, int findMeta, EntityPlayer player) {
+ if(world.isRemote) {
+ int findedBlocks = 0;
+ label1703:
+ for(int x = -rangeSearch; x < rangeSearch; x++) {
+ if(world.rand.nextBoolean())
+ continue;
+ for(int y = -rangeSearch * 4; y < rangeSearch; y++) {
+ if(world.rand.nextBoolean())
+ continue;
+ for(int z = -rangeSearch; z < rangeSearch; z++) {
+ if(world.rand.nextBoolean())
+ continue;
+ else if(findedBlocks > 24)
+ break label1703;
+ int posX = MathHelper.floor_double(player.posX) + x;
+ int posY = MathHelper.floor_double(player.posY) + y;
+ int posZ = MathHelper.floor_double(player.posZ) + z;
+ if(posY < 0)
+ continue;
+ Block block = world.getBlock(posX, posY, posZ);
+ if(!Block.isEqualTo(block, findBlock))
+ continue;
+ int meta = world.getBlockMetadata(posX, posY, posZ);
+ if(meta == findMeta) {
+ findedBlocks++;
+ float maxAge = 2.7f + (0.5f * (float)(Math.random()));
+ Botania.proxy.setWispFXDepthTest(false);
+ float far = 120.0f - (((Math.abs(x) + Math.min(rangeSearch * 2.0f, Math.abs(y)) + Math.abs(z)) / (rangeSearch * 4.0f)) * 120.0f);
+ if(far <= 60)
+ far *= 0.15f;
+ Color color = new Color(Color.HSBtoRGB(far / 360.0f, 0.9f + (float)(Math.random() * 0.1f), 1.0f));
+ for(int i = 0; i < 11; i++)
+ Botania.proxy.wispFX(world, posX + 0.5f + (Math.random() - 0.5f), posY + 0.5f + (Math.random() - 0.5f), posZ + 0.5f + (Math.random() - 0.5f), color.getRed() / 100.0f, color.getGreen() / 100.0f, color.getBlue() / 100.0f, 0.3f + (float)(Math.random() * 0.25f), 0.0f, maxAge);
+ Botania.proxy.setWispFXDepthTest(true);
+ }
+ }
+ }
+ }
+ ItemsRemainingRender.set(thisRenderStack, "íàéäåíî: " + findedBlocks);
+ }
+ }
+
+ public boolean onItemUse(ItemStack stack, EntityPlayer p, World world, int x, int y, int z, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
+ if(p.isSneaking()) {
+ Block block = world.getBlock(x, y, z);
+ if(block != null) {
+ int meta = world.getBlockMetadata(x, y, z);
+ Item item = Item.getItemFromBlock(block);
+ if(item != null) {
+ ItemStack findStack = new ItemStack(block, 1, meta);
+ if(findStack != null) {
+ setFindBlock(stack, block, meta);
+ if(world.isRemote)
+ ItemsRemainingRender.set(findStack, findStack.getDisplayName());
+ }
+ } else {
+ Item item1 = block.getItem(world, x, y, z);
+ if(item1 != null) {
+ ItemStack findStack = new ItemStack(item1, 1, meta);
+ if(findStack != null) {
+ setFindBlock(stack, block, meta);
+ if(world.isRemote)
+ ItemsRemainingRender.set(findStack, findStack.getDisplayName());
+ }
+ }
+ }
+ return true;
+ }
+ }
+ return false;
+ }
+
+ public boolean canWork(ItemStack stack) {
+ int tick = ItemNBTHelper.getInt(stack, "cooldown", 0);
+ if(tick == 0)
+ return true;
+ else if(tick > 0)
+ ItemNBTHelper.setInt(stack, "cooldown", tick - 1);
+ return false;
+ }
+
+ public void setMaxTick(ItemStack stack) {
+ ItemNBTHelper.setInt(stack, "cooldown", maxCooldown);
+ }
+
+ public static void setFindBlock(ItemStack stack, Block block, int meta) {
+ ItemNBTHelper.setInt(stack, "findBlockID", Block.getIdFromBlock(block));
+ ItemNBTHelper.setInt(stack, "findBlockMeta", meta);
+ }
+
+ public static Block getFindBlock(ItemStack stack) {
+ int blockID = ItemNBTHelper.getInt(stack, "findBlockID", 0);
+ if(blockID == 0)
+ return null;
+ else
+ return Block.getBlockById(blockID);
+ }
+
+ public static int getFindMeta(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "findBlockMeta", -1);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/8d/00603e6cd1ad001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/8d/00603e6cd1ad001c1d59e42be7477558
deleted file mode 100644
index 5085325..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/8d/00603e6cd1ad001c1d59e42be7477558
+++ /dev/null
@@ -1,137 +0,0 @@
-package ab.common.block;
-
-import static net.minecraftforge.common.util.ForgeDirection.UP;
-
-import java.util.List;
-import java.util.Random;
-import ab.api.AdvancedBotanyAPI;
-import ab.api.TerraFarmlandList;
-import ab.common.lib.register.RecipeListAB;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockBush;
-import net.minecraft.block.BlockCrops;
-import net.minecraft.block.BlockFarmland;
-import net.minecraft.block.IGrowable;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.renderer.texture.IIconRegister;
-import net.minecraft.entity.EntityLivingBase;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.IIcon;
-import net.minecraft.world.IBlockAccess;
-import net.minecraft.world.World;
-import net.minecraftforge.common.EnumPlantType;
-import net.minecraftforge.common.IPlantable;
-import net.minecraftforge.common.util.ForgeDirection;
-import vazkii.botania.api.lexicon.ILexiconable;
-import vazkii.botania.api.lexicon.LexiconEntry;
-
-public class BlockTerraFarmland extends Block implements ILexiconable {
-
- private IIcon icon;
-
- public BlockTerraFarmland() {
- super(Material.ground);
- this.setTickRandomly(true);
- this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.9375F, 1.0F);
- this.setBlockName("terraFarmland");
- this.setLightOpacity(255);
- }
-
- public boolean canSustainPlant(IBlockAccess world, int x, int y, int z, ForgeDirection direction, IPlantable plantable) {
- Block plant = plantable.getPlant(world, x, y + 1, z);
- return plant != Blocks.cactus && plant != Blocks.reeds;
- }
-
- public void updateTick(World world, int x, int y, int z, Random rand) {
- if(world.isRemote)
- return;
- Block block = world.getBlock(x, y + 1, z);
- int meta = world.getBlockMetadata(x, y + 1, z);
- if(block instanceof BlockCrops) {
- if(meta == 7) {
- refreshSeed(world, x, y, z, block, meta);
- return;
- }
- } else if(block instanceof IPlantable) {
- for(TerraFarmlandList fSeed : AdvancedBotanyAPI.farmlandList) {
- int meta1 = fSeed.getMeta();
- Block block1 = fSeed.getBlock();
- if(block != block1)
- continue;
- if(meta == meta1) {
- refreshSeed(world, x, y, z, block1, meta1);
- return;
- }
- }
- } else {
- world.setBlock(x, y, z, Blocks.dirt);
- }
- }
-
- private void refreshSeed(World world, int x, int y, int z, Block block, int meta) {
- List items = world.getEntitiesWithinAABB(EntityItem.class, AxisAlignedBB.getBoundingBox(x - 4, y - 4, z - 4, x + 4, y + 4, z + 4));
- if(!items.isEmpty() && items.size() > 7)
- return;
- IPlantable seed = (IPlantable)block;
- List list = block.getDrops(world, x, y + 1, z, meta, 0);
- for(ItemStack stack : list) {
- if(stack == null)
- continue;
- else if(stack.getItem() == seed) {
- if(stack.stackSize > 1)
- stack.stackSize -= 1;
- } else {
- stack.stackSize = Math.min(64, (int)(stack.stackSize * 2.5f));
- }
- }
- for(ItemStack stack : list) {
- if(stack == null)
- continue;
- EntityItem itemEnt = new EntityItem(world, x + 0.5f, y + 1, z + 0.5f, stack);
- world.spawnEntityInWorld(itemEnt);
- }
- world.setBlock(x, y + 1, z, block, 0, 3);
- }
-
- public AxisAlignedBB getCollisionBoundingBoxFromPool(World p_149668_1_, int p_149668_2_, int p_149668_3_, int p_149668_4_) {
- return AxisAlignedBB.getBoundingBox((double)(p_149668_2_ + 0), (double)(p_149668_3_ + 0), (double)(p_149668_4_ + 0), (double)(p_149668_2_ + 1), (double)(p_149668_3_ + 1), (double)(p_149668_4_ + 1));
- }
-
- public boolean isOpaqueCube() {
- return false;
- }
-
- public boolean renderAsNormalBlock() {
- return false;
- }
-
- public Item getItemDropped(int p_149650_1_, Random p_149650_2_, int p_149650_3_) {
- return Blocks.dirt.getItemDropped(0, p_149650_2_, p_149650_3_);
- }
-
- @SideOnly(Side.CLIENT)
- public Item getItem(World p_149694_1_, int p_149694_2_, int p_149694_3_, int p_149694_4_) {
- return Item.getItemFromBlock(Blocks.dirt);
- }
-
- @SideOnly(Side.CLIENT)
- public IIcon getIcon(int p_149691_1_, int p_149691_2_) {
- return p_149691_1_ == 1 ? icon : Blocks.dirt.getIcon(0, 0);
- }
-
- @SideOnly(Side.CLIENT)
- public void registerBlockIcons(IIconRegister reg) {
- icon = reg.registerIcon("ab:terraFarmland");
- }
-
- public LexiconEntry getEntry(World world, int x, int y, int z, EntityPlayer player, ItemStack lexicon) {
- return RecipeListAB.terraHoe;
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/8d/b014a98684b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/8d/b014a98684b1001c19bf8a91ac37238b
deleted file mode 100644
index 74658d9..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/8d/b014a98684b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,76 +0,0 @@
-package ab.common.item.equipment.armor;
-
-import java.util.List;
-import java.util.UUID;
-
-import com.google.common.collect.HashMultimap;
-import com.google.common.collect.Multimap;
-
-import net.minecraft.entity.SharedMonsterAttributes;
-import net.minecraft.entity.ai.attributes.AttributeModifier;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.EnumChatFormatting;
-import net.minecraft.util.StatCollector;
-import net.minecraft.world.World;
-import vazkii.botania.api.mana.IManaDiscountArmor;
-import vazkii.botania.api.mana.IManaGivingItem;
-import vazkii.botania.api.mana.ManaItemHandler;
-import vazkii.botania.common.core.helper.ItemNBTHelper;
-
-public class ItemNebulaHelm extends ItemNebulaArmor implements IManaDiscountArmor, IManaGivingItem {
-
- private static final String TAG_COSMIC_FACE = "enableCosmicFace";
-
- public ItemNebulaHelm() {
- this("nebulaHelm");
- }
-
- public ItemNebulaHelm(String str) {
- super(0, str);
- }
-
- public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
- if(player.isSneaking())
- setCosmicFace(stack, !enableCosmicFace(stack));
- else
- super.onItemRightClick(stack, world, player);
- return stack;
- }
-
- public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean adv) {
- super.addInformation(stack, player, list, adv);
- if(!enableCosmicFace(stack))
- addStringToTooltip(EnumChatFormatting.GREEN + StatCollector.translateToLocal("ab.nebulaHelm.mask"), list);
- }
-
- public boolean enableCosmicFace(ItemStack stack) {
- return ItemNBTHelper.getBoolean(stack, TAG_COSMIC_FACE, true);
- }
-
- public void setCosmicFace(ItemStack stack, boolean enable) {
- ItemNBTHelper.setBoolean(stack, TAG_COSMIC_FACE, enable);
- }
-
- public void onArmorTick(World world, EntityPlayer player, ItemStack stack) {
- super.onArmorTick(world, player, stack);
- if(hasArmorSet(player)) {
- int food = player.getFoodStats().getFoodLevel();
- if(food > 0 && food < 18 && player.shouldHeal() && player.ticksExisted % 80 == 0)
- player.heal(1.0F);
- System.out.println("sd");
- ManaItemHandler.dispatchManaExact(stack, player, 5, true);
- }
- }
-
- public float getDiscount(ItemStack stack, int slot, EntityPlayer player) {
- return hasArmorSet(player) ? 0.30F : 0.0F;
- }
-
- public Multimap getAttributeModifiers(ItemStack stack) {
- HashMultimap hashMultimap = HashMultimap.create();
- UUID uuid = new UUID(getUnlocalizedName().hashCode(), 0L);
- hashMultimap.put(SharedMonsterAttributes.maxHealth.getAttributeUnlocalizedName(), new AttributeModifier(uuid, "NebulaHelm modifier", 20.0D * (1.0f - (this.getDamage(stack) / 1000.0f)), 0));
- return (Multimap)hashMultimap;
- }
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/8d/e0ade1b4c7b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/8d/e0ade1b4c7b1001c19bf8a91ac37238b
deleted file mode 100644
index 369fecb..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/8d/e0ade1b4c7b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,135 +0,0 @@
-package ab.common.block;
-
-import java.util.List;
-
-import ab.AdvancedBotany;
-import ab.common.block.tile.TileLebethronCore;
-import ab.common.lib.register.RecipeListAB;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.ITileEntityProvider;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.renderer.texture.IIconRegister;
-import net.minecraft.creativetab.CreativeTabs;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.IIcon;
-import net.minecraft.util.MovingObjectPosition;
-import net.minecraft.world.IBlockAccess;
-import net.minecraft.world.World;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.api.lexicon.ILexiconable;
-import vazkii.botania.api.lexicon.LexiconEntry;
-import vazkii.botania.common.item.ModItems;
-
-public class BlockLebethronWood extends Block implements ILexiconable, ITileEntityProvider {
-
- private static IIcon[] icon = new IIcon[5];
- public static IIcon iconPortal;
-
- public BlockLebethronWood() {
- super(Material.wood);
- this.setCreativeTab(AdvancedBotany.tabAB);
- this.setHardness(6.0F);
- this.setStepSound(soundTypeWood);
- this.setBlockName("lebethronWood");
- }
-
- public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int par6, float par7, float par8, float par9) {
- int meta = world.getBlockMetadata(x, y, z);
- if(meta == 4) {
- TileLebethronCore core = (TileLebethronCore)world.getTileEntity(x, y, z);
- ItemStack heldItem = player.getCurrentEquippedItem();
- if(heldItem == null)
- return false;
- Block block = Block.getBlockFromItem(heldItem.getItem());
- if(block.getMaterial() == Material.leaves) {
- if(!world.isRemote) {
- core.updateStructure();
- if(core.getValidTree()) {
- if(core.setBlock(player, block, heldItem.getItemDamage())) {
- heldItem.stackSize--;
- if(heldItem.stackSize == 0)
- player.inventory.setInventorySlotContents(player.inventory.currentItem, null);
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(world, x, y, z);
- }
- }
- }
- return true;
- }
- }
- return false;
- }
-
- public void breakBlock(World world, int x, int y, int z, Block block, int meta) {
- if(!world.isRemote && meta == 4) {
- TileLebethronCore tile = (TileLebethronCore)world.getTileEntity(x, y, z);
- if(tile != null) {
- ItemStack stack = new ItemStack(tile.getBlock(), 1, tile.getMeta());
- if (stack != null) {
- float f = world.rand.nextFloat() * 0.8F + 0.1F;
- float f1 = world.rand.nextFloat() * 0.8F + 0.1F;
- float f2 = world.rand.nextFloat() * 0.8F + 0.1F;
- EntityItem entityitem = new EntityItem(world, (x + f), (y + f1), (z + f2), stack.copy());
- float f3 = 0.05F;
- entityitem.motionX = ((float)world.rand.nextGaussian() * f3);
- entityitem.motionY = ((float)world.rand.nextGaussian() * f3 + 0.2F);
- entityitem.motionZ = ((float)world.rand.nextGaussian() * f3);
- if (stack.hasTagCompound())
- entityitem.getEntityItem().setTagCompound((NBTTagCompound)stack.getTagCompound().copy());
- world.spawnEntityInWorld(entityitem);
- }
- }
- }
- super.breakBlock(world, x, y, z, block, meta);
- }
-
- public void getSubBlocks(Item par1, CreativeTabs par2CreativeTabs, List list) {
- for(int i = 0; i < icon.length; i++) {
- list.add(new ItemStack(par1, 1, i));
- }
- }
-
- @SideOnly(Side.CLIENT)
- public void registerBlockIcons(IIconRegister ir) {
- for (int i = 0; i < icon.length; i++)
- icon[i] = ir.registerIcon("ab:lebethronWood_" + i);
- iconPortal = ir.registerIcon("ab:portalAlphirine");
- }
-
- @SideOnly(Side.CLIENT)
- public IIcon getIcon(int side, int meta) {
- return this.icon[meta];
- }
-
- public int damageDropped(int par1) {
- return par1;
- }
-
- public int getLightValue(IBlockAccess world, int x, int y, int z) {
- return (world.getBlockMetadata(x, y, z) == 3) ? 12 : 0;
- }
-
- public boolean canSustainLeaves(IBlockAccess world, int x, int y, int z) {
- return (world.getBlockMetadata(x, y, z) == 0);
- }
-
- public ItemStack getPickBlock(MovingObjectPosition target, World world, int x, int y, int z) {
- int meta = world.getBlockMetadata(x, y, z);
- return new ItemStack(this, 1, meta);
- }
-
- public LexiconEntry getEntry(World world, int x, int y, int z, EntityPlayer player, ItemStack lexicon) {
- return RecipeListAB.lebethronWood;
- }
-
- public TileEntity createNewTileEntity(World world, int meta) {
- return meta == 4 ? new TileLebethronCore() : null;
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/8e/c08d99589cc1001c11e398ea97007cb4 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/8e/c08d99589cc1001c11e398ea97007cb4
new file mode 100644
index 0000000..80bb9a1
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/8e/c08d99589cc1001c11e398ea97007cb4
@@ -0,0 +1,210 @@
+package ab.common.item.relic;
+
+import java.awt.Color;
+import java.util.List;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.common.core.handler.NetworkHandler;
+import ab.common.lib.register.ItemListAB;
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
+import net.minecraft.block.Block;
+import net.minecraft.client.renderer.texture.IIconRegister;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.util.EnumChatFormatting;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.MathHelper;
+import net.minecraft.util.StatCollector;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.api.mana.ManaItemHandler;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class ItemSphereNavigation extends ItemModRelic {
+
+ public static IIcon[] icons;
+ public static final int rangeSearch = 16;
+ public static final int maxCooldown = 158;
+ public static final int manaCost = 1750;
+
+ public ItemSphereNavigation() {
+ super("sphereNavigation");
+ }
+
+ public void registerIcons(IIconRegister ir) {
+ icons = new IIcon[5];
+ icons[0] = ir.registerIcon("ab:sphereNavigation");
+ icons[1] = ir.registerIcon("ab:sphereNavigation_hasblock");
+ icons[2] = ir.registerIcon("ab:sphereNavigation_nonBlock");
+ icons[3] = ir.registerIcon("ab:sphereNavigation_off");
+ icons[4] = ir.registerIcon("ab:sphereNavigation_on");
+ }
+
+ @SideOnly(Side.CLIENT)
+ public IIcon getIcon(ItemStack stack, int pass) {
+ return this.icons[pass == 0 ? 0 : (pass == 1 ? 1 : 4)];
+ }
+
+ public boolean requiresMultipleRenderPasses() {
+ return true;
+ }
+
+ public String getItemStackDisplayName(ItemStack stack) {
+ Block block = getFindBlock(stack);
+ int meta = getFindMeta(stack);
+ ItemStack rStack = new ItemStack(block, 1, meta);
+ return super.getItemStackDisplayName(stack) + ((rStack == null || rStack.getItem() == null) ? "" : (EnumChatFormatting.RESET + " (" + EnumChatFormatting.GREEN + rStack.getDisplayName() + EnumChatFormatting.RESET + ")"));
+ }
+
+ @SideOnly(Side.CLIENT)
+ public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean par4) {
+ super.addInformation(stack, player, list, par4);
+ addStringToTooltip(StatCollector.translateToLocal(stack.getItemDamage() == 0 ? "botaniamisc.active" : "botaniamisc.inactive"), list);
+ }
+
+ void addStringToTooltip(String s, List tooltip) {
+ tooltip.add(s.replaceAll("&", "\u00A7"));
+ }
+
+ public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
+ if(getFindBlock(stack) != null && player.isSneaking()) {
+ int dmg = stack.getItemDamage();
+ stack.setItemDamage((dmg ^ 0xFFFFFFFF) & 0x1);
+ world.playSoundAtEntity(player, "random.orb", 0.3F, 0.1F);
+ }
+ return stack;
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int pos, boolean equipped) {
+ super.onUpdate(stack, world, entity, pos, equipped);
+ if(entity instanceof EntityPlayer) {
+ EntityPlayer player = (EntityPlayer)entity;
+ if(!world.isRemote && stack.getItemDamage() == 0 && getFindBlock(stack) != null && canWork(stack) && ManaItemHandler.requestManaExactForTool(stack, player, manaCost, true)) {
+ setMaxTick(stack);
+ NetworkHandler.sendPacketToFindBlocks((EntityPlayerMP)player, getFindBlock(stack), getFindMeta(stack));
+ }
+ }
+ }
+
+ public static void findBlocks(World world, Block findBlock, int findMeta, EntityPlayer player) {
+ if(world.isRemote) {
+ ItemStack renderStack = null;
+ int maxFindedBlocks = 32;
+ int findedBlocks = 0;
+ label1703:
+ for(int y = -rangeSearch * 2; y < rangeSearch; y++) {
+ for(int x = -rangeSearch; x < rangeSearch; x++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks)) || world.rand.nextBoolean())
+ continue;
+ for(int z = -rangeSearch; z < rangeSearch; z++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks)) || world.rand.nextBoolean())
+ continue;
+ else if(findedBlocks >= maxFindedBlocks)
+ break label1703;
+ int posX = MathHelper.floor_double(player.posX) + x;
+ int posY = MathHelper.floor_double(player.posY) + y;
+ int posZ = MathHelper.floor_double(player.posZ) + z;
+ if(posY < 0)
+ continue;
+ Block block = world.getBlock(posX, posY, posZ);
+ if(!Block.isEqualTo(block, findBlock))
+ continue;
+ int meta = world.getBlockMetadata(posX, posY, posZ);
+ if(meta == findMeta) {
+ if(renderStack == null)
+ renderStack = getRenderStackForBlock(world, block, meta, posX, posY, posZ);
+ findedBlocks++;
+ float maxAge = 2.7f + (0.5f * (float)(Math.random()));
+ Botania.proxy.setWispFXDepthTest(false);
+ Botania.proxy.setWispFXDistanceLimit(false);
+ float far = 120.0f - (((Math.abs(x) + Math.min(rangeSearch, Math.abs(y)) + Math.abs(z)) / (rangeSearch * 4.0f)) * 120.0f);
+ if(far <= 70)
+ far *= 0.1f;
+ Color color = new Color(Color.HSBtoRGB(far / 360.0f, 0.9f + (float)(Math.random() * 0.1f), 1.0f));
+ for(int i = 0; i < 11; i++)
+ Botania.proxy.wispFX(world, posX + 0.5f + (Math.random() - 0.5f), posY + 0.5f + (Math.random() - 0.5f), posZ + 0.5f + (Math.random() - 0.5f), color.getRed() / 100.0f, color.getGreen() / 100.0f, color.getBlue() / 100.0f, 0.3f + (float)(Math.random() * 0.25f), 0.0f, maxAge);
+ Botania.proxy.setWispFXDistanceLimit(true);
+ Botania.proxy.setWispFXDepthTest(true);
+ }
+ }
+ }
+ }
+ if(renderStack != null)
+ ItemsRemainingRender.set(renderStack, StatCollector.translateToLocal("ab.sphereNavigation.founded ") + findedBlocks);
+ }
+ }
+
+ public static ItemStack getRenderStackForBlock(World world, Block block, int meta, int x, int y, int z) {
+ if(block != null) {
+ Item item = Item.getItemFromBlock(block);
+ if(item != null) {
+ ItemStack findStack = new ItemStack(block, 1, meta);
+ if(findStack != null)
+ return findStack;
+ } else {
+ Item item1 = block.getItem(world, x, y, z);
+ if(item1 != null) {
+ ItemStack findStack = new ItemStack(item1, 1, meta);
+ if(findStack != null)
+ return findStack;
+ }
+ }
+ }
+ return null;
+ }
+
+ public boolean onItemUse(ItemStack stack, EntityPlayer p, World world, int x, int y, int z, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
+ if(p.isSneaking()) {
+ Block block = world.getBlock(x, y, z);
+ if(block != null) {
+ int meta = world.getBlockMetadata(x, y, z);
+ ItemStack findStack = getRenderStackForBlock(world, block, meta, x, y, z);
+ if(findStack != null) {
+ setFindBlock(stack, block, meta);
+ if(world.isRemote)
+ ItemsRemainingRender.set(findStack, findStack.getDisplayName());
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public boolean canWork(ItemStack stack) {
+ int tick = ItemNBTHelper.getInt(stack, "cooldown", 0);
+ if(tick == 0)
+ return true;
+ else if(tick > 0)
+ ItemNBTHelper.setInt(stack, "cooldown", tick - 1);
+ return false;
+ }
+
+ public void setMaxTick(ItemStack stack) {
+ ItemNBTHelper.setInt(stack, "cooldown", maxCooldown);
+ }
+
+ public static void setFindBlock(ItemStack stack, Block block, int meta) {
+ ItemNBTHelper.setInt(stack, "findBlockID", Block.getIdFromBlock(block));
+ ItemNBTHelper.setInt(stack, "findBlockMeta", meta);
+ }
+
+ public static Block getFindBlock(ItemStack stack) {
+ int blockID = ItemNBTHelper.getInt(stack, "findBlockID", 0);
+ if(blockID == 0)
+ return null;
+ else
+ return Block.getBlockById(blockID);
+ }
+
+ public static int getFindMeta(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "findBlockMeta", -1);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/8f/008940f1b8b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/8f/008940f1b8b1001c19bf8a91ac37238b
deleted file mode 100644
index 5048f25..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/8f/008940f1b8b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,132 +0,0 @@
-package ab.common.item.equipment;
-
-import java.awt.Color;
-
-import ab.client.core.ClientHelper;
-import ab.common.core.handler.ConfigABHandler;
-import ab.common.item.ItemMod;
-import net.minecraft.block.Block;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.Minecraft;
-import net.minecraft.entity.Entity;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.EnumAction;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.ChunkCoordinates;
-import net.minecraft.util.MathHelper;
-import net.minecraft.util.Vec3;
-import net.minecraft.world.World;
-import net.minecraft.world.chunk.Chunk;
-import vazkii.botania.api.mana.IManaUsingItem;
-import vazkii.botania.api.mana.ManaItemHandler;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.core.helper.Vector3;
-
-public class ItemNebulaRod extends ItemMod implements IManaUsingItem {
-
- public ItemNebulaRod() {
- super("nebulaRod");
- this.setMaxStackSize(1);
- this.setNoRepair();
- this.setMaxDamage(100);
- }
-
- public boolean usesMana(ItemStack stack) {
- return true;
- }
-
- public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
- if(stack.getItemDamage() == 0)
- player.setItemInUse(stack, getMaxItemUseDuration(stack));
- return stack;
- }
-
- public EnumAction getItemUseAction(ItemStack par1ItemStack) {
- return EnumAction.bow;
- }
-
- public void onUpdate(ItemStack stack, World world, Entity player, int par4, boolean par5) {
- if(!world.isRemote && player instanceof EntityPlayer && player.ticksExisted % ConfigABHandler.nebulaWandCooldownTick == 0 && stack.getItemDamage() > 0 && ManaItemHandler.requestManaExactForTool(stack, (EntityPlayer)player, 140, true))
- stack.setItemDamage(stack.getItemDamage() - 1);
- }
-
- public void onUsingTick(ItemStack stack, EntityPlayer p, int time) {
- time = this.getMaxItemUseDuration(stack) - time;
- if(time > 110 && !p.isSneaking()) {
- Vec3 vec3 = p.getLook(1.0F).normalize();
- MathHelper.floor_double(time);
- int limitXZ = ConfigABHandler.limitXZCoords;
- int posX = MathHelper.floor_double(p.posX + vec3.xCoord * 256);
- int posY = MathHelper.floor_double(p.posY);
- int posZ = MathHelper.floor_double(p.posZ + vec3.zCoord * 256);
- ChunkCoordinates chunkcoordinates = new ChunkCoordinates(Math.min(Math.max(posX, -(limitXZ - 1)), limitXZ - 1), posY, Math.min(Math.max(posZ, -(limitXZ - 1)), limitXZ - 1));
- int topY = getTopBlock(p.worldObj, posX, posZ);
- if(topY == -1) {
- p.stopUsingItem();
- spawnPortalParticle(p.worldObj, p, time, 0xf93905, 2.3f);
- return;
- }
- chunkcoordinates.posY = topY;
- if(!p.worldObj.isRemote)
- ((EntityPlayerMP)p).playerNetServerHandler.setPlayerLocation(chunkcoordinates.posX + 0.5D, chunkcoordinates.posY + 1.6D, chunkcoordinates.posZ + 0.5D, p.rotationYaw, p.rotationPitch);
- if(!p.capabilities.isCreativeMode)
- stack.setItemDamage(100);
- p.stopUsingItem();
- }
- spawnPortalParticle(p.worldObj, p, time, p.worldObj.rand.nextBoolean() ? 0x931fec : 0x4b1682, 1.0f);
- }
-
- public void spawnPortalParticle(World world, EntityPlayer p, int time, int color, float particleTime) {
- if(world.isRemote) {
- boolean isFinish = time > 80;
- int ticks = Math.min(100, time);
- int totalSpiritCount = (int)Math.max(3, ticks / 100.0f * 18);
- double tickIncrement = 360.0D / totalSpiritCount;
- int speed = 8;
- double wticks = (ticks * speed) - tickIncrement;
- double r = Math.sin((ticks) / 100.0D) * Math.max(0.75f, 1.4D * ticks / 100.0f);
- Vec3 look = p.getLookVec();
- float yawOffset = Minecraft.getMinecraft().thePlayer.getDisplayName() == p.getDisplayName() ? 0.0f : 1.62f;
- Vector3 l = new Vector3(look.xCoord, look.yCoord + yawOffset, look.zCoord);
- Vector3 player = Vector3.fromEntity(p).add(0.0f, 0.0f, 0.0f);
- Vector3 v3 = new Vector3();
- for(int i = 0; i < totalSpiritCount; i++) {
- float size = Math.max(0.215f, ticks / 100.0f);
- v3.set(Math.sin(wticks * Math.PI / 180.0D) / 1.825f * r, Math.cos(wticks * Math.PI / 180.0D) * r, 0.8f);
- ClientHelper.setRotation(p.rotationPitch, 1.0f, 0.0f, 0.0f, v3);
- ClientHelper.setRotation(-p.rotationYaw, 0.0f, 1.0f, 0.0f, v3);
- v3.add(l.multiply(1.0f)).add(player);
- wticks += tickIncrement;
- float hsb[] = Color.RGBtoHSB(color & 255, color >> 8 & 255, color >> 16 & 255, null);
- int color1 = Color.HSBtoRGB(hsb[0], hsb[1], ticks / 100.0f);
- float[] colorsfx = { (color1 & 255) / 255.0f, (color1 >> 8 & 255) / 255.0f, (color1 >> 16 & 255) / 255.0f };
- float motionSpeed = 0.25f * Math.min(1.0f, (time - 80) / 30.0f);
- Botania.proxy.wispFX(world, v3.x, v3.y, v3.z, colorsfx[0], colorsfx[1], colorsfx[2], 0.3F * size, isFinish ? (float)(look.xCoord * -1) * motionSpeed : 0.0f, isFinish ? (float)(look.yCoord * -1) * motionSpeed : 0.0f, isFinish ? (float)(look.zCoord * -1) * motionSpeed : 0.0f, 0.3F * particleTime);
- Botania.proxy.wispFX(world, v3.x, v3.y, v3.z, colorsfx[0], colorsfx[1], colorsfx[2], (float)(Math.random() * 0.1F + 0.05F) * size, (float)(Math.random() - 0.5D) * 0.05F, (float)(Math.random() - 0.5D) * 0.05F, (float)(Math.random() - 0.5D) * 0.05F, 0.4F * particleTime);
- }
- }
- }
-
- public int getMaxItemUseDuration(ItemStack par1ItemStack) {
- return 72000;
- }
-
- public boolean isFull3D() {
- return true;
- }
-
- public int getTopBlock(World world, int posX, int posZ) {
- Chunk chunk = world.getChunkFromBlockCoords(posX, posZ);
- posX &= 15;
- posZ &= 15;
- for(int k = chunk.getTopFilledSegment() + 15; k > 0; --k) {
- Block block = chunk.getBlock(posX, k, posZ);
- boolean hasAir = chunk.getBlock(posX, k + 1, posZ).getMaterial() == Material.air && chunk.getBlock(posX, k + 2, posZ).getMaterial() == Material.air;
- if(!block.isAir(world, posX, k, posZ) && block != Blocks.bedrock && hasAir)
- return k + 1;
- }
- return -1;
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/8f/20f7f2359db1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/8f/20f7f2359db1001c19bf8a91ac37238b
deleted file mode 100644
index 10a449a..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/8f/20f7f2359db1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,84 +0,0 @@
-package ab.client.core.handler;
-
-import java.awt.Color;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.armor.ItemNebulaArmor;
-import ab.common.item.equipment.armor.ItemNebulaHelm;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.ItemRenderer;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.texture.TextureMap;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraftforge.client.event.RenderPlayerEvent;
-import vazkii.botania.api.item.IPhantomInkable;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class PlayerRendererHandler {
-
- @SubscribeEvent
- public void onPlayerRender(RenderPlayerEvent.Specials.Pre event) {
- EntityPlayer player = event.entityPlayer;
- ItemStack item = player.getCurrentArmor(3);
- if(item != null && item.getItem() instanceof ItemNebulaHelm) {
- Item helm = player.getCurrentArmor(3).getItem();
- boolean hasPhantomInk = helm instanceof IPhantomInkable && ((IPhantomInkable)helm).hasPhantomInk(item);
- if(!hasPhantomInk && ((ItemNebulaHelm)helm).enableCosmicFace(item)) {
- float angelX = event.renderer.modelBipedMain.bipedHead.rotateAngleX * 180.0F / (float)Math.PI;
- float angelY = event.renderer.modelBipedMain.bipedHead.rotateAngleY * 180.0F / (float)Math.PI;
- GL11.glPushMatrix();
- if(player.isSneaking())
- GL11.glTranslatef(event.renderer.modelBipedMain.bipedHead.rotationPointX * 0.0625f, event.renderer.modelBipedMain.bipedHead.rotationPointY * 0.0625f, 0.0f);
- GL11.glRotatef(angelY, 0.0F, 1.0F, 0.0F);
- GL11.glRotatef(angelX, 1.0F, 0.0F, 0.0F);
- renderCosmicFace();
- GL11.glPopMatrix();
- }
- }
- }
-
- private void renderCosmicFace() {
- double worldTime = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- GL11.glPushMatrix();
- GL11.glEnable(GL11.GL_TEXTURE_2D);
- GL11.glDisable(2884);
-
- GL11.glPushMatrix();
- GL11.glScalef(0.5f, 0.4f, 0.4f);
- GL11.glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
- GL11.glTranslatef(-0.5f, -0.8675f, 0.0f);
- GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
- ClientHelper.renderCosmicBackground();
- GL11.glPopMatrix();
-
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- (Minecraft.getMinecraft()).renderEngine.bindTexture(TextureMap.locationItemsTexture);
- GL11.glTranslatef(-0.2F, -0.35F, -0.25F);
- GL11.glScalef(0.4f, 0.4f, 0.4f);
- float f = ItemNebulaArmor.nebulaEyes.getMinU();
- float f1 = ItemNebulaArmor.nebulaEyes.getMaxU();
- float f2 = ItemNebulaArmor.nebulaEyes.getMinV();
- float f3 = ItemNebulaArmor.nebulaEyes.getMaxV();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float r = color.getRed() / 510.0F;
- float g = color.getGreen() / 510.0F;
- float b = color.getBlue() / 510.0F;
- GL11.glColor4f(0.5f + r, 0.5f + g, 0.5f + b, 0.685f + (float)Math.sin(worldTime / 50.0D) * 0.175F);
- ItemRenderer.renderItemIn2D(Tessellator.instance, f1, f2, f, f3, ItemNebulaArmor.nebulaEyes.getIconWidth(), ItemNebulaArmor.nebulaEyes.getIconHeight(), 0.03125F);
- GL11.glDisable(3042);
- GL11.glEnable(2884);
- GL11.glEnable(32826);
- GL11.glPopMatrix();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/8f/5043cd9be6b0001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/8f/5043cd9be6b0001c19bf8a91ac37238b
deleted file mode 100644
index df11e22..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/8f/5043cd9be6b0001c19bf8a91ac37238b
+++ /dev/null
@@ -1,132 +0,0 @@
-package ab.common.item.equipment;
-
-import java.awt.Color;
-
-import ab.client.core.ClientHelper;
-import ab.common.core.handler.ConfigABHandler;
-import ab.common.item.ItemMod;
-import net.minecraft.block.Block;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.Minecraft;
-import net.minecraft.entity.Entity;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.EnumAction;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.ChunkCoordinates;
-import net.minecraft.util.MathHelper;
-import net.minecraft.util.Vec3;
-import net.minecraft.world.World;
-import net.minecraft.world.chunk.Chunk;
-import vazkii.botania.api.mana.IManaUsingItem;
-import vazkii.botania.api.mana.ManaItemHandler;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.core.helper.Vector3;
-
-public class ItemNebulaRod extends ItemMod implements IManaUsingItem {
-
- public ItemNebulaRod() {
- super("nebulaRod");
- this.setMaxStackSize(1);
- this.setNoRepair();
- this.setMaxDamage(100);
- }
-
- public boolean usesMana(ItemStack stack) {
- return true;
- }
-
- public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
- if(stack.getItemDamage() == 0)
- player.setItemInUse(stack, getMaxItemUseDuration(stack));
- return stack;
- }
-
- public EnumAction getItemUseAction(ItemStack par1ItemStack) {
- return EnumAction.bow;
- }
-
- public void onUpdate(ItemStack stack, World world, Entity player, int par4, boolean par5) {
- if(!world.isRemote && player instanceof EntityPlayer && player.ticksExisted % ConfigABHandler.nebulaWandCooldownTick == 0 && stack.getItemDamage() > 0 && ManaItemHandler.requestManaExactForTool(stack, (EntityPlayer)player, 140, true))
- stack.setItemDamage(stack.getItemDamage() - 1);
- }
-
- public void onUsingTick(ItemStack stack, EntityPlayer p, int time) {
- time = this.getMaxItemUseDuration(stack) - time;
- if(time > 110 && !p.isSneaking()) {
- Vec3 vec3 = p.getLook(1.0F).normalize();
- MathHelper.floor_double(time);
- int limitXZ = ConfigABHandler.limitXZCoords;
- int posX = MathHelper.floor_double(p.posX + vec3.xCoord * 256);
- int posY = MathHelper.floor_double(p.posY);
- int posZ = MathHelper.floor_double(p.posZ + vec3.zCoord * 256);
- ChunkCoordinates chunkcoordinates = new ChunkCoordinates(Math.min(Math.max(posX, -(limitXZ - 1)), limitXZ - 1), posY, Math.min(Math.max(posZ, -(limitXZ - 1)), limitXZ - 1));
- int topY = getTopBlock(p.worldObj, posX, posZ);
- if(topY == -1) {
- p.stopUsingItem();
- spawnPortalParticle(p.worldObj, p, time, 0xf93905);
- return;
- }
- chunkcoordinates.posY = topY;
- if(!p.worldObj.isRemote)
- ((EntityPlayerMP)p).playerNetServerHandler.setPlayerLocation(chunkcoordinates.posX + 0.5D, chunkcoordinates.posY + 1.6D, chunkcoordinates.posZ + 0.5D, p.rotationYaw, p.rotationPitch);
- if(!p.capabilities.isCreativeMode)
- stack.setItemDamage(100);
- p.stopUsingItem();
- }
- spawnPortalParticle(p.worldObj, p, time, p.worldObj.rand.nextBoolean() ? 0x931fec : 0x4b1682);
- }
-
- public void spawnPortalParticle(World world, EntityPlayer p, int time, int color) {
- if(world.isRemote) {
- boolean isFinish = time > 80;
- int ticks = Math.min(100, time);
- int totalSpiritCount = (int)Math.max(3, ticks / 100.0f * 18);
- double tickIncrement = 360.0D / totalSpiritCount;
- int speed = 8;
- double wticks = (ticks * speed) - tickIncrement;
- double r = Math.sin((ticks) / 100.0D) * Math.max(0.75f, 1.4D * ticks / 100.0f);
- Vec3 look = p.getLookVec();
- float yawOffset = Minecraft.getMinecraft().thePlayer.getDisplayName() == p.getDisplayName() ? 0.0f : 1.62f;
- Vector3 l = new Vector3(look.xCoord, look.yCoord + yawOffset, look.zCoord);
- Vector3 player = Vector3.fromEntity(p).add(0.0f, 0.0f, 0.0f);
- Vector3 v3 = new Vector3();
- for(int i = 0; i < totalSpiritCount; i++) {
- float size = Math.max(0.215f, ticks / 100.0f);
- v3.set(Math.sin(wticks * Math.PI / 180.0D) / 1.825f * r, Math.cos(wticks * Math.PI / 180.0D) * r, 0.8f);
- ClientHelper.setRotation(p.rotationPitch, 1.0f, 0.0f, 0.0f, v3);
- ClientHelper.setRotation(-p.rotationYaw, 0.0f, 1.0f, 0.0f, v3);
- v3.add(l.multiply(1.0f)).add(player);
- wticks += tickIncrement;
- float hsb[] = Color.RGBtoHSB(color & 255, color >> 8 & 255, color >> 16 & 255, null);
- int color1 = Color.HSBtoRGB(hsb[0], hsb[1], ticks / 100.0f);
- float[] colorsfx = { (color1 & 255) / 255.0f, (color1 >> 8 & 255) / 255.0f, (color1 >> 16 & 255) / 255.0f };
- float motionSpeed = 0.25f * Math.min(1.0f, (time - 80) / 30.0f);
- Botania.proxy.wispFX(world, v3.x, v3.y, v3.z, colorsfx[0], colorsfx[1], colorsfx[2], 0.3F * size, isFinish ? (float)(look.xCoord * -1) * motionSpeed : 0.0f, isFinish ? (float)(look.yCoord * -1) * motionSpeed : 0.0f, isFinish ? (float)(look.zCoord * -1) * motionSpeed : 0.0f, 0.3F);
- Botania.proxy.wispFX(world, v3.x, v3.y, v3.z, colorsfx[0], colorsfx[1], colorsfx[2], (float)(Math.random() * 0.1F + 0.05F) * size, (float)(Math.random() - 0.5D) * 0.05F, (float)(Math.random() - 0.5D) * 0.05F, (float)(Math.random() - 0.5D) * 0.05F, 0.4F);
- }
- }
- }
-
- public int getMaxItemUseDuration(ItemStack par1ItemStack) {
- return 72000;
- }
-
- public boolean isFull3D() {
- return true;
- }
-
- public int getTopBlock(World world, int posX, int posZ) {
- Chunk chunk = world.getChunkFromBlockCoords(posX, posZ);
- posX &= 15;
- posZ &= 15;
- for(int k = chunk.getTopFilledSegment() + 15; k > 0; --k) {
- Block block = chunk.getBlock(posX, k, posZ);
- boolean hasAir = chunk.getBlock(posX, k + 1, posZ).getMaterial() == Material.air && chunk.getBlock(posX, k + 2, posZ).getMaterial() == Material.air;
- if(!block.isAir(world, posX, k, posZ) && block != Blocks.bedrock && hasAir)
- return k + 1;
- }
- return -1;
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/91/c0fe38b32fbe001c1965b122d2f8f403 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/91/c0fe38b32fbe001c1965b122d2f8f403
new file mode 100644
index 0000000..bf45d04
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/91/c0fe38b32fbe001c1965b122d2f8f403
@@ -0,0 +1,159 @@
+package ab.common.item.relic;
+
+import java.awt.Color;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.common.core.handler.NetworkHandler;
+import ab.common.lib.register.ItemListAB;
+import net.minecraft.block.Block;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.util.MathHelper;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.api.mana.ManaItemHandler;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class ItemSphereNavigation extends ItemModRelic {
+
+ public static final int rangeSearch = 17;
+ public static final int maxCooldown = 112;
+ public static final int manaCost = 1750;
+
+ public ItemSphereNavigation() {
+ super("sphereNavigation");
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int pos, boolean equipped) {
+ super.onUpdate(stack, world, entity, pos, equipped);
+ if(entity instanceof EntityPlayer) {
+ EntityPlayer player = (EntityPlayer)entity;
+ if(!world.isRemote && getFindBlock(stack) != null && canWork(stack) && ManaItemHandler.requestManaExactForTool(stack, player, manaCost, true)) {
+ setMaxTick(stack);
+ NetworkHandler.sendPacketToFindBlocks((EntityPlayerMP)player, getFindBlock(stack), getFindMeta(stack));
+ }
+ }
+ }
+
+ public static void findBlocks(World world, Block findBlock, int findMeta, EntityPlayer player) {
+ if(world.isRemote) {
+ ItemStack renderStack = null;
+ int findedBlocks = 0;
+ label1703:
+ for(int x = -rangeSearch; x < rangeSearch; x++) {
+ if(world.rand.nextBoolean())
+ continue;
+ for(int y = -rangeSearch * 4; y < rangeSearch; y++) {
+ if(world.rand.nextBoolean())
+ continue;
+ for(int z = -rangeSearch; z < rangeSearch; z++) {
+ if(world.rand.nextBoolean())
+ continue;
+ else if(findedBlocks > 24)
+ break label1703;
+ int posX = MathHelper.floor_double(player.posX) + x;
+ int posY = MathHelper.floor_double(player.posY) + y;
+ int posZ = MathHelper.floor_double(player.posZ) + z;
+ if(posY < 0)
+ continue;
+ Block block = world.getBlock(posX, posY, posZ);
+ if(!Block.isEqualTo(block, findBlock))
+ continue;
+ int meta = world.getBlockMetadata(posX, posY, posZ);
+ if(meta == findMeta) {
+ if(renderStack == null)
+ renderStack = getRenderStackForBlock(world, block, meta, posX, posY, posZ);
+ findedBlocks++;
+ float maxAge = 2.7f + (0.5f * (float)(Math.random()));
+ Botania.proxy.setWispFXDepthTest(false);
+ Botania.proxy.setWispFXDistanceLimit(false);
+ float far = 120.0f - (((Math.abs(x) + Math.min(rangeSearch * 2.0f, Math.abs(y)) + Math.abs(z)) / (rangeSearch * 4.0f)) * 120.0f);
+ if(far <= 60)
+ far *= 0.15f;
+ Color color = new Color(Color.HSBtoRGB(far / 360.0f, 0.9f + (float)(Math.random() * 0.1f), 1.0f));
+ for(int i = 0; i < 11; i++)
+ Botania.proxy.wispFX(world, posX + 0.5f + (Math.random() - 0.5f), posY + 0.5f + (Math.random() - 0.5f), posZ + 0.5f + (Math.random() - 0.5f), color.getRed() / 100.0f, color.getGreen() / 100.0f, color.getBlue() / 100.0f, 0.3f + (float)(Math.random() * 0.25f), 0.0f, maxAge);
+ Botania.proxy.setWispFXDistanceLimit(true);
+ Botania.proxy.setWispFXDepthTest(true);
+ }
+ }
+ }
+ }
+ if(renderStack != null)
+ ItemsRemainingRender.set(renderStack, "íàéäåíî: " + findedBlocks);
+ }
+ }
+
+ public static ItemStack getRenderStackForBlock(World world, Block block, int meta, int x, int y, int z) {
+ if(block != null) {
+ Item item = Item.getItemFromBlock(block);
+ if(item != null) {
+ ItemStack findStack = new ItemStack(block, 1, meta);
+ if(findStack != null)
+ return findStack;
+ } else {
+ Item item1 = block.getItem(world, x, y, z);
+ if(item1 != null) {
+ ItemStack findStack = new ItemStack(item1, 1, meta);
+ if(findStack != null)
+ return findStack;
+ }
+ }
+ }
+ return null;
+ }
+
+ public boolean onItemUse(ItemStack stack, EntityPlayer p, World world, int x, int y, int z, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
+ if(p.isSneaking()) {
+ Block block = world.getBlock(x, y, z);
+ if(block != null) {
+ int meta = world.getBlockMetadata(x, y, z);
+ ItemStack findStack = getRenderStackForBlock(world, block, meta, x, y, z);
+ if(findStack != null) {
+ setFindBlock(stack, block, meta);
+ if(world.isRemote)
+ ItemsRemainingRender.set(findStack, findStack.getDisplayName());
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public boolean canWork(ItemStack stack) {
+ int tick = ItemNBTHelper.getInt(stack, "cooldown", 40);
+ if(tick == 0)
+ return true;
+ else if(tick > 0)
+ ItemNBTHelper.setInt(stack, "cooldown", tick - 1);
+ return false;
+ }
+
+ public void setMaxTick(ItemStack stack) {
+ ItemNBTHelper.setInt(stack, "cooldown", maxCooldown);
+ }
+
+ public static void setFindBlock(ItemStack stack, Block block, int meta) {
+ ItemNBTHelper.setInt(stack, "findBlockID", Block.getIdFromBlock(block));
+ ItemNBTHelper.setInt(stack, "findBlockMeta", meta);
+ }
+
+ public static Block getFindBlock(ItemStack stack) {
+ int blockID = ItemNBTHelper.getInt(stack, "findBlockID", 0);
+ if(blockID == 0)
+ return null;
+ else
+ return Block.getBlockById(blockID);
+ }
+
+ public static int getFindMeta(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "findBlockMeta", -1);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/92/b053b24308b0001c18a5eba32f24fffa b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/92/b053b24308b0001c18a5eba32f24fffa
deleted file mode 100644
index a24a8d1..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/92/b053b24308b0001c18a5eba32f24fffa
+++ /dev/null
@@ -1,57 +0,0 @@
-package ab.common.block.subtile;
-
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.world.World;
-import vazkii.botania.api.subtile.SubTileGenerating;
-
-public class SubTileArdentAzarcissus extends SubTileGenerating {
-
- public static final String playerName = "ArdentAzarcissus#21sda2gaj91*21df#111sfq3jrns@#";
- int cooldown;
- int workMana = 400;
-
- public void onUpdate() {
- super.onUpdate();
- int posX = this.supertile.xCoord;
- int posY = this.supertile.yCoord;
- int posZ = this.supertile.zCoord;
- World world = this.supertile.getWorldObj();
- for(int i = -1; i <= 1; i++)
- for(int j = -1; j <= 1; j++) {
-// if(i == 0 || j == 0)
-// continue;
- int x = posX + i;
- int z = posZ + j;
- TileEntity tile = world.getTileEntity(x, posY, z);
- if(tile != null && tile instanceof TileGameBoard) {
- TileGameBoard board = (TileGameBoard)tile;
- if(board.isSingleGame) {
- if(!board.hasGame())
- board.setPlayer(playerName);
- else
- board.dropDice(playerName);
- }
- }
- }
- }
-
- public int getMaxMana() {
- return 15000;
- }
-
- public int getColor() {
- return 0xd2cdb2;
- }
-
- public void writeToPacketNBT(NBTTagCompound cmp) {
- super.writeToPacketNBT(cmp);
- cmp.setInteger("cooldown", this.cooldown);
- }
-
- public void readFromPacketNBT(NBTTagCompound cmp) {
- super.readFromPacketNBT(cmp);
- this.cooldown = cmp.getInteger("cooldown");
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/93/e0275f9364c1001c11e398ea97007cb4 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/93/e0275f9364c1001c11e398ea97007cb4
new file mode 100644
index 0000000..61d87f4
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/93/e0275f9364c1001c11e398ea97007cb4
@@ -0,0 +1,200 @@
+package ab.common.item.relic;
+
+import java.awt.Color;
+import java.util.List;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.common.core.handler.NetworkHandler;
+import ab.common.lib.register.ItemListAB;
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
+import net.minecraft.block.Block;
+import net.minecraft.client.renderer.texture.IIconRegister;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.util.EnumChatFormatting;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.MathHelper;
+import net.minecraft.util.StatCollector;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.api.mana.ManaItemHandler;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class ItemSphereNavigation extends ItemModRelic {
+
+ public static IIcon[] icons;
+ public static final int rangeSearch = 16;
+ public static final int maxCooldown = 158;
+ public static final int manaCost = 1750;
+
+ public ItemSphereNavigation() {
+ super("sphereNavigation");
+ }
+
+ public void registerIcons(IIconRegister ir) {
+ icons = new IIcon[5];
+ icons[0] = ir.registerIcon("ab:sphereNavigation");
+ icons[1] = ir.registerIcon("ab:sphereNavigation_hasblock");
+ icons[2] = ir.registerIcon("ab:sphereNavigation_nonBlock");
+ icons[3] = ir.registerIcon("ab:sphereNavigation_off");
+ icons[4] = ir.registerIcon("ab:sphereNavigation_on");
+ }
+
+ public String getItemStackDisplayName(ItemStack stack) {
+ Block block = getFindBlock(stack);
+ int meta = getFindMeta(stack);
+ ItemStack rStack = new ItemStack(block, 1, meta);
+ return super.getItemStackDisplayName(stack) + ((rStack == null || rStack.getItem() == null) ? "" : (" (" + EnumChatFormatting.GREEN + rStack.getDisplayName() + EnumChatFormatting.RESET + ")"));
+ }
+
+ @SideOnly(Side.CLIENT)
+ public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean par4) {
+ addStringToTooltip(StatCollector.translateToLocal(stack.getItemDamage() == 0 ? "botaniamisc.active" : "botaniamisc.inactive"), list);
+ }
+
+ void addStringToTooltip(String s, List tooltip) {
+ tooltip.add(s.replaceAll("&", "\u00A7"));
+ }
+
+ public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
+ if(getFindBlock(stack) != null && player.isSneaking()) {
+ int dmg = stack.getItemDamage();
+ stack.setItemDamage((dmg ^ 0xFFFFFFFF) & 0x1);
+ world.playSoundAtEntity(player, "random.orb", 0.3F, 0.1F);
+ }
+ return stack;
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int pos, boolean equipped) {
+ super.onUpdate(stack, world, entity, pos, equipped);
+ if(entity instanceof EntityPlayer) {
+ EntityPlayer player = (EntityPlayer)entity;
+ if(!world.isRemote && stack.getItemDamage() == 0 && getFindBlock(stack) != null && canWork(stack) && ManaItemHandler.requestManaExactForTool(stack, player, manaCost, true)) {
+ setMaxTick(stack);
+ NetworkHandler.sendPacketToFindBlocks((EntityPlayerMP)player, getFindBlock(stack), getFindMeta(stack));
+ }
+ }
+ }
+
+ public static void findBlocks(World world, Block findBlock, int findMeta, EntityPlayer player) {
+ if(world.isRemote) {
+ ItemStack renderStack = null;
+ int maxFindedBlocks = 32;
+ int findedBlocks = 0;
+ label1703:
+ for(int y = -rangeSearch * 2; y < rangeSearch; y++) {
+ for(int x = -rangeSearch; x < rangeSearch; x++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks)) || world.rand.nextBoolean())
+ continue;
+ for(int z = -rangeSearch; z < rangeSearch; z++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks)) || world.rand.nextBoolean())
+ continue;
+ else if(findedBlocks >= maxFindedBlocks)
+ break label1703;
+ int posX = MathHelper.floor_double(player.posX) + x;
+ int posY = MathHelper.floor_double(player.posY) + y;
+ int posZ = MathHelper.floor_double(player.posZ) + z;
+ if(posY < 0)
+ continue;
+ Block block = world.getBlock(posX, posY, posZ);
+ if(!Block.isEqualTo(block, findBlock))
+ continue;
+ int meta = world.getBlockMetadata(posX, posY, posZ);
+ if(meta == findMeta) {
+ if(renderStack == null)
+ renderStack = getRenderStackForBlock(world, block, meta, posX, posY, posZ);
+ findedBlocks++;
+ float maxAge = 2.7f + (0.5f * (float)(Math.random()));
+ Botania.proxy.setWispFXDepthTest(false);
+ Botania.proxy.setWispFXDistanceLimit(false);
+ float far = 120.0f - (((Math.abs(x) + Math.min(rangeSearch, Math.abs(y)) + Math.abs(z)) / (rangeSearch * 4.0f)) * 120.0f);
+ if(far <= 40)
+ far *= 0.15f;
+ Color color = new Color(Color.HSBtoRGB(far / 360.0f, 0.9f + (float)(Math.random() * 0.1f), 1.0f));
+ for(int i = 0; i < 11; i++)
+ Botania.proxy.wispFX(world, posX + 0.5f + (Math.random() - 0.5f), posY + 0.5f + (Math.random() - 0.5f), posZ + 0.5f + (Math.random() - 0.5f), color.getRed() / 100.0f, color.getGreen() / 100.0f, color.getBlue() / 100.0f, 0.3f + (float)(Math.random() * 0.25f), 0.0f, maxAge);
+ Botania.proxy.setWispFXDistanceLimit(true);
+ Botania.proxy.setWispFXDepthTest(true);
+ }
+ }
+ }
+ }
+ if(renderStack != null)
+ ItemsRemainingRender.set(renderStack, "íàéäåíî: " + findedBlocks);
+ }
+ }
+
+ public static ItemStack getRenderStackForBlock(World world, Block block, int meta, int x, int y, int z) {
+ if(block != null) {
+ Item item = Item.getItemFromBlock(block);
+ if(item != null) {
+ ItemStack findStack = new ItemStack(block, 1, meta);
+ if(findStack != null)
+ return findStack;
+ } else {
+ Item item1 = block.getItem(world, x, y, z);
+ if(item1 != null) {
+ ItemStack findStack = new ItemStack(item1, 1, meta);
+ if(findStack != null)
+ return findStack;
+ }
+ }
+ }
+ return null;
+ }
+
+ public boolean onItemUse(ItemStack stack, EntityPlayer p, World world, int x, int y, int z, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
+ if(p.isSneaking()) {
+ Block block = world.getBlock(x, y, z);
+ if(block != null) {
+ int meta = world.getBlockMetadata(x, y, z);
+ ItemStack findStack = getRenderStackForBlock(world, block, meta, x, y, z);
+ if(findStack != null) {
+ setFindBlock(stack, block, meta);
+ if(world.isRemote)
+ ItemsRemainingRender.set(findStack, findStack.getDisplayName());
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public boolean canWork(ItemStack stack) {
+ int tick = ItemNBTHelper.getInt(stack, "cooldown", 0);
+ if(tick == 0)
+ return true;
+ else if(tick > 0)
+ ItemNBTHelper.setInt(stack, "cooldown", tick - 1);
+ return false;
+ }
+
+ public void setMaxTick(ItemStack stack) {
+ ItemNBTHelper.setInt(stack, "cooldown", maxCooldown);
+ }
+
+ public static void setFindBlock(ItemStack stack, Block block, int meta) {
+ ItemNBTHelper.setInt(stack, "findBlockID", Block.getIdFromBlock(block));
+ ItemNBTHelper.setInt(stack, "findBlockMeta", meta);
+ }
+
+ public static Block getFindBlock(ItemStack stack) {
+ int blockID = ItemNBTHelper.getInt(stack, "findBlockID", 0);
+ if(blockID == 0)
+ return null;
+ else
+ return Block.getBlockById(blockID);
+ }
+
+ public static int getFindMeta(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "findBlockMeta", -1);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/94/20edd87dfbac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/94/20edd87dfbac001c1d59e42be7477558
deleted file mode 100644
index 95d1a2a..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/94/20edd87dfbac001c1d59e42be7477558
+++ /dev/null
@@ -1,96 +0,0 @@
-package ab.client.render.tile;
-
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.model.ModelDiceFate;
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.entity.RenderManager;
-import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.ResourceLocation;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class RenderTileGameBoard extends TileEntitySpecialRenderer {
-
- private static final ModelDiceFate model = new ModelDiceFate();
- private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/gameDice.png");
- private static final ResourceLocation textureEnemy = new ResourceLocation("ab:textures/model/gameDice_enemy.png");
-
- public void renderTileEntityAt(TileEntity tile, double x, double y, double z, float ticks) {
- double time = (tile.getWorldObj() == null) ? 0.0D : (ClientTickHandler.ticksInGame + ticks);
- if(tile != null)
- time += (new Random((tile.xCoord ^ tile.yCoord ^ tile.zCoord))).nextInt(360);
- TileGameBoard board = (TileGameBoard)tile;
- GL11.glEnable(3042);
- GL11.glEnable(32826);
- GL11.glBlendFunc(770, 771);
- GL11.glPushMatrix();
- GL11.glTranslated(x - 0.5f, y, z - 0.5f);
- GL11.glRotatef(180.0f - RenderManager.instance.playerViewY, 0.0f, 1.0f, 0.0f);
- for(int i = 0; i < board.slotChance.length; i++) {
- if(board.slotChance[i] == 0)
- continue;
- time += i * 65;
- GL11.glPushMatrix();
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- float posX = 0.0f;
- float posY = 0.0f;
- float dropAnim = (1.0f - (Math.min(100.0f, (board.clientTick[i] * board.clientTick[i] * 1.25f) + ticks) / 100.0f));
- dropAnim = Math.min(1.0f, Math.max(dropAnim, 0));
- float alpha = (float)Math.cos(dropAnim);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, alpha);
- switch(i) {
- case 0:
- posX = 0.16f + 0.08f * dropAnim;
- posY = 0.16f + 0.08f * dropAnim;
- break;
- case 1:
- posX = -0.16f - 0.08f * dropAnim;
- posY = 0.16f + 0.08f * dropAnim;
- break;
- case 2:
- posX = 0.16f + 0.08f * dropAnim;
- posY = -0.16f - 0.08f * dropAnim;
- break;
- case 3:
- posX = -0.16f - 0.08f * dropAnim;
- posY = -0.16f - 0.08f * dropAnim;
- break;
- }
- GL11.glTranslated(0.5f + posX, 0.02f + Math.sin(time / 12.0D) / 48.0D + (0.28f * dropAnim), 0.5f + posY);
- GL11.glScalef(0.25f, 0.25f, 0.25f);
- Minecraft.getMinecraft().renderEngine.bindTexture(i > 1 ? textureEnemy : texture);
- float dropAngel = 70.0f * dropAnim;
- switch(board.slotChance[i]) {
- case 1:
- model.render(180.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 2:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 3:
- model.render(90.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 4:
- model.render(270.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 5:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 270.0f);
- break;
- case 6:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 90.0f);
- break;
- default:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- }
- GL11.glPopMatrix();
- }
- GL11.glPopMatrix();
- GL11.glEnable(32826);
- GL11.glDisable(3042);
- }
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/95/c089f4abe7bc001c1a9f99005529f322 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/95/c089f4abe7bc001c1a9f99005529f322
new file mode 100644
index 0000000..c7c1739
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/95/c089f4abe7bc001c1a9f99005529f322
@@ -0,0 +1,38 @@
+package ab.client.render.block;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.client.render.tile.RenderTileManaContainer;
+import ab.common.block.tile.TileNidavellirForge;
+import ab.common.lib.register.BlockListAB;
+import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
+import net.minecraft.block.Block;
+import net.minecraft.client.renderer.RenderBlocks;
+import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.world.IBlockAccess;
+
+public class RenderBlockNidavellirForge implements ISimpleBlockRenderingHandler {
+
+ public void renderInventoryBlock(Block block, int metadata, int modelID, RenderBlocks renderer) {
+ GL11.glPushMatrix();
+ GL11.glTranslatef(-0.5F, -0.35F, -0.5F);
+ GL11.glScalef(1.25f, 1.25f, 1.25f);
+ TileNidavellirForge forge = new TileNidavellirForge();
+ RenderTileManaContainer.metadata = metadata;
+ TileEntityRendererDispatcher.instance.renderTileEntityAt((TileEntity)forge, 0.0D, 0.0D, 0.0D, 0.0F);
+ GL11.glPopMatrix();
+ }
+
+ public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId, RenderBlocks renderer) {
+ return false;
+ }
+
+ public int getRenderId() {
+ return BlockListAB.blockABPlateRI;
+ }
+
+ public boolean shouldRender3DInInventory(int modelId) {
+ return true;
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/26/e01359b914b0001c18a5eba32f24fffa b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/96/2034f8a1c5bc001c1a9f99005529f322
similarity index 82%
rename from 1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/26/e01359b914b0001c18a5eba32f24fffa
rename to 1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/96/2034f8a1c5bc001c1a9f99005529f322
index d41c30d..9df1715 100644
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/26/e01359b914b0001c18a5eba32f24fffa
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/96/2034f8a1c5bc001c1a9f99005529f322
@@ -29,9 +29,10 @@ public class TileGameBoard extends TileMod implements IRenderHud {
public int endGameTick = -1;
protected boolean requestUpdate;
public boolean isSingleGame = true;
- public boolean isAnonimGame = false;
+ public boolean isCustomGame = false;
public int clientTick[] = new int[] { 0, 0, 0, 0 };
public static final ItemStack headRender = new ItemStack(Items.skull, 1, 3);
+ private ItemStack customStack;
public void updateEntity() {
if(botTick > 0)
@@ -53,10 +54,12 @@ public class TileGameBoard extends TileMod implements IRenderHud {
}
protected void updateServer() {
- if(hasGame() && endGameTick == 0)
+ if(hasGame() && endGameTick == 0 && !isCustomGame)
finishGame();
if(requestUpdate)
VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
+ if(worldObj.getTotalWorldTime() % 20 == 0 && hasFullDice() && endGameTick == -1)
+ endGameTick = 28;
boolean hasUpdate = false;
if(isSingleGame) {
if(botTick == 0 && hasGame()) {
@@ -65,6 +68,7 @@ public class TileGameBoard extends TileMod implements IRenderHud {
slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
botTick = -1;
hasUpdate = true;
+ worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "ab:boardCube", 0.6F, 1.0F);
break;
}
}
@@ -76,8 +80,8 @@ public class TileGameBoard extends TileMod implements IRenderHud {
requestUpdate = hasUpdate;
}
- public void setPlayer(String name, boolean isAnonimGame) {
- this.isAnonimGame = isAnonimGame;
+ public void setPlayer(String name, boolean isCustomGame) {
+ this.isCustomGame = isCustomGame;
if(isSingleGame) {
playersName[0] = name;
playersName[1] = "";
@@ -99,7 +103,6 @@ public class TileGameBoard extends TileMod implements IRenderHud {
public boolean dropDice(String name) {
if(isSingleGame) {
if(name.equals(playersName[0]) && botTick == -1) {
- boolean isLastDice = false;
boolean hasDrop = false;
for(int i = 0; i < 2; i++) {
if(slotChance[i] == 0) {
@@ -107,15 +110,12 @@ public class TileGameBoard extends TileMod implements IRenderHud {
if(!worldObj.isRemote) {
slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
botTick = 18;
+ worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "ab:boardCube", 0.6F, 1.0F);
requestUpdate = true;
- if(i == 1)
- isLastDice = true;
}
break;
}
}
- if(isLastDice)
- endGameTick = 28;
return hasDrop;
}
} else {
@@ -128,8 +128,7 @@ public class TileGameBoard extends TileMod implements IRenderHud {
if(!worldObj.isRemote) {
slotChance[j] = (byte)(worldObj.rand.nextInt(6) + 1);
botTick = playersName[1].isEmpty() ? 240 : 1200;
- if(hasFullDice())
- endGameTick = 28;
+ worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "ab:boardCube", 0.6F, 1.0F);
requestUpdate = true;
}
break;
@@ -166,17 +165,17 @@ public class TileGameBoard extends TileMod implements IRenderHud {
return false;
}
- public void finishGame() {
+ public void finishGame(boolean hasChatMessage) {
if(worldObj.isRemote)
return;
- if(!hasFullDice()) {
+ else if(!hasChatMessage) {
+ resetGame();
+ return;
+ } else if(!hasFullDice()) {
sendNearMessage("ab.gameBoard.misc.notPlayer", new Object[] {});
resetGame();
return;
- } else if(isAnonimGame) {
- resetGame();
- return;
- }
+ }
String str = isSingleGame ? "" : ".mult";
if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
sendNearMessage("ab.gameBoard.misc.0" + str, new Object[] { playersName[0] });
@@ -187,6 +186,10 @@ public class TileGameBoard extends TileMod implements IRenderHud {
resetGame();
}
+ public void finishGame() {
+ finishGame(true);
+ }
+
public void sendNearMessage(String text, Object[] obj) {
List players = this.worldObj.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(this.xCoord, this.yCoord, this.zCoord, (this.xCoord + 1), (this.yCoord + 1), (this.zCoord + 1)).expand(3.5f, 3.5f, 3.5f));
for(EntityPlayer player : players) {
@@ -195,6 +198,17 @@ public class TileGameBoard extends TileMod implements IRenderHud {
}
}
+ public boolean changeCustomStack(ItemStack stack) {
+ if(!isCustomGame)
+ return false;
+ else if(customStack == null || !ItemStack.areItemStacksEqual(customStack, stack)) {
+ customStack = stack;
+ requestUpdate = true;
+ return true;
+ } else
+ return false;
+ }
+
public void resetGame() {
playersName[0] = "";
playersName[1] = "";
@@ -202,7 +216,7 @@ public class TileGameBoard extends TileMod implements IRenderHud {
slotChance[i] = 0;
botTick = -1;
endGameTick = -1;
- isAnonimGame = false;
+ isCustomGame = false;
requestUpdate = true;
}
@@ -210,7 +224,7 @@ public class TileGameBoard extends TileMod implements IRenderHud {
int x = res.getScaledWidth() / 2 - 7;
int y = res.getScaledHeight() / 2 + 12;
RenderHelper.enableGUIStandardItemLighting();
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, headRender, x - (!isSingleGame ? 1 : 0), y - (!isSingleGame ? 1 : 0));
+ RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, isCustomGame ? (customStack == null ? headRender : customStack) : headRender, x - (!isSingleGame ? 1 : 0), y - (!isSingleGame ? 1 : 0));
if(!isSingleGame)
RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, headRender, x + 3, y + 3);
RenderHelper.disableStandardItemLighting();
@@ -225,7 +239,9 @@ public class TileGameBoard extends TileMod implements IRenderHud {
cmp.setInteger("endGameTick", endGameTick);
cmp.setBoolean("requestUpdate", requestUpdate);
cmp.setBoolean("isSingleGame", isSingleGame);
- cmp.setBoolean("isAnonimGame", isAnonimGame);
+ cmp.setBoolean("isAnonimGame", isCustomGame);
+ if(customStack != null)
+ customStack.writeToNBT(cmp);
}
public void readCustomNBT(NBTTagCompound cmp) {
@@ -237,6 +253,7 @@ public class TileGameBoard extends TileMod implements IRenderHud {
slotChance = cmp.getByteArray("slotChance");
requestUpdate = cmp.getBoolean("requestUpdate");
isSingleGame = cmp.getBoolean("isSingleGame");
- isAnonimGame = cmp.getBoolean("isAnonimGame");
+ isCustomGame = cmp.getBoolean("isAnonimGame");
+ customStack = ItemStack.loadItemStackFromNBT(cmp);
}
}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/96/f022149a07ad001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/96/f022149a07ad001c1d59e42be7477558
deleted file mode 100644
index 2f0dde1..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/96/f022149a07ad001c1d59e42be7477558
+++ /dev/null
@@ -1,96 +0,0 @@
-package ab.client.render.tile;
-
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.model.ModelDiceFate;
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.entity.RenderManager;
-import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.ResourceLocation;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class RenderTileGameBoard extends TileEntitySpecialRenderer {
-
- private static final ModelDiceFate model = new ModelDiceFate();
- private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/gameDice.png");
- private static final ResourceLocation textureEnemy = new ResourceLocation("ab:textures/model/gameDice_enemy.png");
-
- public void renderTileEntityAt(TileEntity tile, double x, double y, double z, float ticks) {
- double time = (tile.getWorldObj() == null) ? 0.0D : (ClientTickHandler.ticksInGame + ticks);
- if(tile != null)
- time += (new Random((tile.xCoord ^ tile.yCoord ^ tile.zCoord))).nextInt(360);
- TileGameBoard board = (TileGameBoard)tile;
- GL11.glEnable(3042);
- GL11.glEnable(32826);
- GL11.glBlendFunc(770, 771);
- GL11.glPushMatrix();
- GL11.glTranslated(x + 0.5f, y, z + 0.5f);
- GL11.glRotatef(90.0f - RenderManager.instance.playerViewY, 0.0f, 1.0f, 0.0f);
- for(int i = 0; i < board.slotChance.length; i++) {
- if(board.slotChance[i] == 0)
- continue;
- time += i * 83.78f;
- GL11.glPushMatrix();
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- float posX = 0.0f;
- float posZ = 0.0f;
- float dropAnim = (1.0f - (Math.min(120.0f, (board.clientTick[i] * board.clientTick[i] * 1.25f) + ticks) / 120.0f));
- dropAnim = Math.min(1.0f, Math.max(dropAnim, 0));
- float alpha = (float)Math.cos(dropAnim);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, alpha);
- switch(i) {
- case 0:
- posX = 0.16f + 0.08f * dropAnim;
- posZ = 0.16f + 0.08f * dropAnim;
- break;
- case 1:
- posX = -0.16f - 0.08f * dropAnim;
- posZ = 0.16f + 0.08f * dropAnim;
- break;
- case 2:
- posX = 0.16f + 0.08f * dropAnim;
- posZ = -0.16f - 0.08f * dropAnim;
- break;
- case 3:
- posX = -0.16f - 0.08f * dropAnim;
- posZ = -0.16f - 0.08f * dropAnim;
- break;
- }
- GL11.glTranslated(posX, 0.03f + Math.sin(time / 12.0D) / 38.0D + (0.28f * dropAnim), posZ);
- GL11.glScalef(0.25f, 0.25f, 0.25f);
- Minecraft.getMinecraft().renderEngine.bindTexture(i > 1 ? textureEnemy : texture);
- float dropAngel = 70.0f * dropAnim;
- switch(board.slotChance[i]) {
- case 1:
- model.render(180.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 2:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 3:
- model.render(90.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 4:
- model.render(270.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 5:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 270.0f);
- break;
- case 6:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 90.0f);
- break;
- default:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- }
- GL11.glPopMatrix();
- }
- GL11.glPopMatrix();
- GL11.glEnable(32826);
- GL11.glDisable(3042);
- }
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/98/60308686f5b0001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/98/60308686f5b0001c19bf8a91ac37238b
deleted file mode 100644
index 3fa379e..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/98/60308686f5b0001c19bf8a91ac37238b
+++ /dev/null
@@ -1,85 +0,0 @@
-package ab.client.core.handler;
-
-import java.awt.Color;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.armor.ItemNebulaArmor;
-import ab.common.item.equipment.armor.ItemNebulaHelm;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.ItemRenderer;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.texture.TextureMap;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraftforge.client.event.RenderPlayerEvent;
-import vazkii.botania.api.item.IPhantomInkable;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class PlayerRendererHandler {
-
- @SubscribeEvent
- public void onPlayerRender(RenderPlayerEvent.Specials.Post event) {
- EntityPlayer player = event.entityPlayer;
- ItemStack item = player.getCurrentArmor(3);
- if(item != null && item.getItem() instanceof ItemNebulaHelm) {
- Item helm = player.getCurrentArmor(3).getItem();
- boolean hasPhantomInk = helm instanceof IPhantomInkable && ((IPhantomInkable)helm).hasPhantomInk(item);
- if(!hasPhantomInk && ((ItemNebulaHelm)helm).enableCosmicFace(item)) {
- float angelX = event.renderer.modelBipedMain.bipedHead.rotateAngleX * 180.0F / (float)Math.PI;
- float angelY = event.renderer.modelBipedMain.bipedHead.rotateAngleY * 180.0F / (float)Math.PI;
- GL11.glPushMatrix();
- if(player.isSneaking())
- GL11.glTranslatef(event.renderer.modelBipedMain.bipedHead.rotationPointX * 0.0625f, event.renderer.modelBipedMain.bipedHead.rotationPointY * 0.0625f, 0.0f);
- GL11.glRotatef(angelY, 0.0F, 1.0F, 0.0F);
- GL11.glRotatef(angelX, 1.0F, 0.0F, 0.0F);
- renderCosmicFace();
- GL11.glPopMatrix();
- }
- }
- }
-
- private void renderCosmicFace() {
- double worldTime = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- GL11.glPushMatrix();
- GL11.glEnable(GL11.GL_TEXTURE_2D);
- GL11.glDisable(2912);
- GL11.glDisable(2884);
-
- GL11.glPushMatrix();
- GL11.glScalef(0.5f, 0.4f, 0.4f);
- GL11.glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
- GL11.glTranslatef(-0.5f, -0.8675f, 0.0f);
- GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
- ClientHelper.renderCosmicBackground();
- GL11.glPopMatrix();
-
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- (Minecraft.getMinecraft()).renderEngine.bindTexture(TextureMap.locationItemsTexture);
- GL11.glTranslatef(-0.2F, -0.35F, -0.25F);
- GL11.glScalef(0.4f, 0.4f, 0.4f);
- float f = ItemNebulaArmor.nebulaEyes.getMinU();
- float f1 = ItemNebulaArmor.nebulaEyes.getMaxU();
- float f2 = ItemNebulaArmor.nebulaEyes.getMinV();
- float f3 = ItemNebulaArmor.nebulaEyes.getMaxV();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float r = color.getRed() / 510.0F;
- float g = color.getGreen() / 510.0F;
- float b = color.getBlue() / 510.0F;
- GL11.glColor4f(0.5f + r, 0.5f + g, 0.5f + b, 0.685f + (float)Math.sin(worldTime / 50.0D) * 0.175F);
- ItemRenderer.renderItemIn2D(Tessellator.instance, f1, f2, f, f3, ItemNebulaArmor.nebulaEyes.getIconWidth(), ItemNebulaArmor.nebulaEyes.getIconHeight(), 0.03125F);
-// GL11.glDisable(3042);
-// GL11.glEnable(2884);
-// GL11.glEnable(32826);
- GL11.glPopMatrix();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/98/8014fd5417be001c1965b122d2f8f403 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/98/8014fd5417be001c1965b122d2f8f403
new file mode 100644
index 0000000..70db0e7
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/98/8014fd5417be001c1965b122d2f8f403
@@ -0,0 +1,144 @@
+package ab.common.item.relic;
+
+import java.awt.Color;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.common.core.handler.NetworkHandler;
+import net.minecraft.block.Block;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.MathHelper;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.api.mana.ManaItemHandler;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class ItemSphereNavigation extends ItemModRelic {
+
+ public static final int rangeSearch = 24;
+ public static final int maxCooldown = 112;
+ public static final int manaCost = 3750;
+
+ public ItemSphereNavigation() {
+ super("sphereNavigation");
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int pos, boolean equipped) {
+ super.onUpdate(stack, world, entity, pos, equipped);
+ if(entity instanceof EntityPlayer) {
+ EntityPlayer player = (EntityPlayer)entity;
+ if(!world.isRemote && getFindBlock(stack) != null && canWork(stack) && ManaItemHandler.requestManaExactForTool(stack, player, manaCost, true)) {
+ setMaxTick(stack);
+ NetworkHandler.sendPacketToFindBlocks((EntityPlayerMP)player, getFindBlock(stack), getFindMeta(stack));
+ }
+ }
+ }
+
+ public static void findBlocks(World world, Block findBlock, int findMeta, EntityPlayer player) {
+ if(world.isRemote) {
+ int findedBlocks = 0;
+ label1703:
+ for(int x = -rangeSearch; x < rangeSearch; x++) {
+ if(world.rand.nextBoolean())
+ continue;
+ for(int y = -rangeSearch * 4; y < rangeSearch; y++) {
+ if(world.rand.nextBoolean())
+ continue;
+ for(int z = -rangeSearch; z < rangeSearch; z++) {
+ if(world.rand.nextBoolean())
+ continue;
+ else if(findedBlocks > 24)
+ break label1703;
+ int posX = MathHelper.floor_double(player.posX) + x;
+ int posY = MathHelper.floor_double(player.posY) + y;
+ int posZ = MathHelper.floor_double(player.posZ) + z;
+ if(posY < 0)
+ continue;
+ Block block = world.getBlock(posX, posY, posZ);
+ if(!Block.isEqualTo(block, findBlock))
+ continue;
+ int meta = world.getBlockMetadata(posX, posY, posZ);
+ if(meta == findMeta) {
+ findedBlocks++;
+ float maxAge = 2.7f + (0.5f * (float)(Math.random()));
+ Botania.proxy.setWispFXDepthTest(false);
+ float far = 120.0f - (((Math.abs(x) + Math.min(rangeSearch * 2.0f, Math.abs(y)) + Math.abs(z)) / (rangeSearch * 4.0f)) * 120.0f);
+ if(far <= 60)
+ far *= 0.15f;
+ Color color = new Color(Color.HSBtoRGB(far / 360.0f, 0.9f + (float)(Math.random() * 0.1f), 1.0f));
+ for(int i = 0; i < 11; i++)
+ Botania.proxy.wispFX(world, posX + 0.5f + (Math.random() - 0.5f), posY + 0.5f + (Math.random() - 0.5f), posZ + 0.5f + (Math.random() - 0.5f), color.getRed() / 100.0f, color.getGreen() / 100.0f, color.getBlue() / 100.0f, 0.3f + (float)(Math.random() * 0.25f), 0.0f, maxAge);
+ Botania.proxy.setWispFXDepthTest(true);
+ }
+ }
+ }
+ }
+ }
+ }
+
+ public boolean onItemUse(ItemStack stack, EntityPlayer p, World world, int x, int y, int z, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
+ if(p.isSneaking()) {
+ Block block = world.getBlock(x, y, z);
+ if(block != null) {
+ int meta = world.getBlockMetadata(x, y, z);
+ Item item = Item.getItemFromBlock(block);
+ if(item != null) {
+ ItemStack findStack = new ItemStack(block, 1, meta);
+ if(findStack != null) {
+ setFindBlock(stack, block, meta);
+ if(world.isRemote)
+ ItemsRemainingRender.set(findStack, findStack.getDisplayName());
+ }
+ } else {
+ Item item1 = block.getItem(world, x, y, z);
+ if(item1 != null) {
+ ItemStack findStack = new ItemStack(item1, 1, meta);
+ if(findStack != null) {
+ setFindBlock(stack, block, meta);
+ if(world.isRemote)
+ ItemsRemainingRender.set(findStack, findStack.getDisplayName());
+ }
+ }
+ }
+ return true;
+ }
+ }
+ return false;
+ }
+
+ public boolean canWork(ItemStack stack) {
+ int tick = ItemNBTHelper.getInt(stack, "cooldown", 0);
+ if(tick == 0)
+ return true;
+ else if(tick > 0)
+ ItemNBTHelper.setInt(stack, "cooldown", tick - 1);
+ return false;
+ }
+
+ public void setMaxTick(ItemStack stack) {
+ ItemNBTHelper.setInt(stack, "cooldown", maxCooldown);
+ }
+
+ public static void setFindBlock(ItemStack stack, Block block, int meta) {
+ ItemNBTHelper.setInt(stack, "findBlockID", Block.getIdFromBlock(block));
+ ItemNBTHelper.setInt(stack, "findBlockMeta", meta);
+ }
+
+ public static Block getFindBlock(ItemStack stack) {
+ int blockID = ItemNBTHelper.getInt(stack, "findBlockID", 0);
+ if(blockID == 0)
+ return null;
+ else
+ return Block.getBlockById(blockID);
+ }
+
+ public static int getFindMeta(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "findBlockMeta", -1);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/98/a0b5c0d080ae001c1bd4eaa9a9be6b81 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/98/a0b5c0d080ae001c1bd4eaa9a9be6b81
deleted file mode 100644
index efe6e08..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/98/a0b5c0d080ae001c1bd4eaa9a9be6b81
+++ /dev/null
@@ -1,288 +0,0 @@
-package ab.common.lib.register;
-
-import java.io.Serializable;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.List;
-
-import ab.api.AdvancedBotanyAPI;
-import ab.api.recipe.RecipeAdvancedPlate;
-import ab.api.recipe.RecipeAncientAlphirine;
-import ab.api.recipe.lexicon.AdvancedPlateCraftPage;
-import ab.api.recipe.lexicon.AlphirineCraftPage;
-import ab.common.block.tile.TileAgglomerationPlate;
-import ab.common.block.tile.TileLebethronCore;
-import ab.common.block.tile.TileMagicCraftCrate;
-import ab.common.core.handler.ConfigABHandler;
-import ab.common.item.ItemCraftingPattern;
-import cpw.mods.fml.common.registry.GameRegistry;
-import net.minecraft.init.Blocks;
-import net.minecraft.init.Items;
-import net.minecraft.item.ItemStack;
-import net.minecraft.item.crafting.CraftingManager;
-import net.minecraft.item.crafting.IRecipe;
-import net.minecraft.util.EnumChatFormatting;
-import net.minecraftforge.oredict.ShapedOreRecipe;
-import net.minecraftforge.oredict.ShapelessOreRecipe;
-import thaumcraft.common.config.ConfigBlocks;
-import thaumcraft.common.config.ConfigItems;
-import vazkii.botania.api.BotaniaAPI;
-import vazkii.botania.api.lexicon.KnowledgeType;
-import vazkii.botania.api.lexicon.LexiconCategory;
-import vazkii.botania.api.lexicon.LexiconEntry;
-import vazkii.botania.api.lexicon.LexiconPage;
-import vazkii.botania.api.recipe.RecipePetals;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.block.ModBlocks;
-import vazkii.botania.common.block.ModFluffBlocks;
-import vazkii.botania.common.item.ModItems;
-import vazkii.botania.common.item.block.ItemBlockSpecialFlower;
-import vazkii.botania.common.lexicon.BLexiconCategory;
-import vazkii.botania.common.lexicon.BLexiconEntry;
-import vazkii.botania.common.lexicon.RLexiconEntry;
-import vazkii.botania.common.lexicon.page.PageText;
-
-public class RecipeListAB {
-
- public static LexiconCategory categoryForgotten;
-
- public static RecipeAncientAlphirine lebethroneRecipe;
- public static RecipeAncientAlphirine forgottenLandRecipe;
- public static RecipeAncientAlphirine advancedSparkRecipe;
- public static RecipeAncientAlphirine manaFlowerRecipe;
- public static RecipeAncientAlphirine hopperRecipe;
- public static RecipeAncientAlphirine fateBoardRecipe;
-
- public static RecipeAdvancedPlate manaStarRecipe;
- public static RecipeAdvancedPlate terrasteelRecipe;
- public static RecipeAdvancedPlate mithrillRecipe;
- public static RecipeAdvancedPlate nebulaRecipe;
-
- public static RecipePetals alphirineRecipe;
- public static RecipePetals dictariusRecipe;
- public static RecipePetals aspecolusRecipe;
- public static RecipePetals pureGladRecipe;
-
- public static LexiconEntry advandedAgglomerationPlate;
- public static LexiconEntry ancientAlphirine;
- public static LexiconEntry lebethronWood;
- public static LexiconEntry lebethronSpreader;
- public static LexiconEntry mithrill;
- public static LexiconEntry manaContainer;
- public static LexiconEntry manaCrystalCube;
- public static LexiconEntry terraHoe;
- public static LexiconEntry manaRings;
- public static LexiconEntry manaFlower;
- public static LexiconEntry mithrillSword;
- public static LexiconEntry nebula;
- public static LexiconEntry blackHalo;
- public static LexiconEntry antigravityCharm;
- public static LexiconEntry nebulaBlaze;
- public static LexiconEntry aspecolus;
- public static LexiconEntry dictarius;
- public static LexiconEntry manaCharger;
- public static LexiconEntry nebulaArmor;
- public static LexiconEntry freyrSlingshot;
- public static LexiconEntry engineerHopper;
- public static LexiconEntry nebulaRod;
- public static LexiconEntry thaumAutoCraft;
- public static LexiconEntry gladious;
- public static LexiconEntry gameBoard;
- public static LexiconEntry fateBoard;
- public static LexiconEntry richesKey;
- public static LexiconEntry cubeWardrobe;
-
- public static KnowledgeType forgotten;
-
- public static void init() {
-
- BotaniaAPI.addCategory(categoryForgotten = new BLexiconCategory("forgotten", 5));
- forgotten = BotaniaAPI.registerKnowledgeType("ab_forgotten", EnumChatFormatting.BLUE, false);
-
- lebethroneRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(BlockListAB.blockLebethron), new ItemStack(ModBlocks.dreamwood, 1, 0), 15);
- forgottenLandRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(ItemListAB.itemABResource, 1, 3), new ItemStack(ModItems.manaResource, 1, 15), 75);
- advancedSparkRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(ItemListAB.itemAdvancedSpark), new ItemStack(ModItems.spark), 11);
- manaFlowerRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(ItemListAB.itemABResource, 1, 4), new ItemStack(ModBlocks.flower, 1, 32767), 32);
- hopperRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(BlockListAB.blockEngineerHopper), new ItemStack(Blocks.hopper), 23);
- fateBoardRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(BlockListAB.blockBoardFate, 1, 1), new ItemStack(BlockListAB.blockBoardFate), 60);
-
- mithrillRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ItemListAB.itemABResource, 1, 0), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModBlocks.storage, 1, 0), new ItemStack(ModItems.manaResource, 1, 18), 7500000, 0x25d6b7);
- terrasteelRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ModItems.manaResource, 1, 4), new ItemStack(ModItems.manaResource, 1, 2), new ItemStack(ModItems.manaResource, 1, 0), new ItemStack(ModItems.manaResource, 1, 1), 500000, 0x29de20);
- manaStarRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ItemListAB.itemABResource, 1, 2), new ItemStack(ModItems.manaResource, 1, 23), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(Items.nether_star), 250000, 0x6bc9ec);
- nebulaRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ItemListAB.itemABResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 8), new ItemStack(ModBlocks.storage, 1, 4), new ItemStack(ItemListAB.itemABResource, 1, 1), 50000000, 0x8d16e0);
-
- ancientAlphirine = new BLexiconEntry("ancientAlphirine", categoryForgotten);
- alphirineRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("ancientAlphirine"), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.rune, 1, 8), new ItemStack(ModItems.rune, 1, 4), new ItemStack(ModItems.rune, 1, 5), new ItemStack(ModItems.rune, 1, 6), new ItemStack(ModItems.rune, 1, 7), new ItemStack(ModItems.petal, 1, 1), new ItemStack(ModItems.petal, 1, 4));
- ancientAlphirine.setPriority().setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), new PageText("1"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", alphirineRecipe), new AlphirineCraftPage(ancientAlphirine, forgottenLandRecipe.getOutput(), ".alphirineCraft") }).setIcon(ItemBlockSpecialFlower.ofType("ancientAlphirine"));
-
- if(ConfigABHandler.hasAbPlate) {
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockABPlate), new Object[] { " ", "MPM", "BRB", Character.valueOf('M'), new ItemStack(ModBlocks.storage), Character.valueOf('P'), new ItemStack(ModBlocks.terraPlate), Character.valueOf('B'), new ItemStack(ItemListAB.itemABResource, 1, 3), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 3)});
- advandedAgglomerationPlate = new BLexiconEntry("advancedPlate", categoryForgotten);
- advandedAgglomerationPlate.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] {new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()), BotaniaAPI.internalHandler.multiblockPage(".structure", TileAgglomerationPlate.makeMultiblockSet()), new AdvancedPlateCraftPage(advandedAgglomerationPlate, terrasteelRecipe.getOutput(), ".abCraft0"), new AdvancedPlateCraftPage(advandedAgglomerationPlate, manaStarRecipe.getOutput(), ".abCraft1") }).setIcon(new ItemStack(BlockListAB.blockABPlate));
- }
-
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockABSpreader), new Object[] { "WMW", "PSP", "WMW", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource, 1, 2), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('S'), new ItemStack(ModBlocks.spreader, 1, 3), Character.valueOf('W'), new ItemStack(BlockListAB.blockLebethron, 1, 4)});
- lebethronSpreader = new BLexiconEntry("lebethronSpreader", categoryForgotten);
- lebethronSpreader.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(BlockListAB.blockABSpreader));
-
- addShapelessOreDictRecipe(new ItemStack(BlockListAB.blockLebethron, 4, 1), new Object[] { new ItemStack(BlockListAB.blockLebethron)});
- IRecipe leb1 = getLastRecipe();
- addShapelessOreDictRecipe(new ItemStack(BlockListAB.blockLebethron, 1, 2), new Object[] { new ItemStack(BlockListAB.blockLebethron, 1, 1), new ItemStack(Items.wheat_seeds)});
- IRecipe leb2 = getLastRecipe();
- addShapelessOreDictRecipe(new ItemStack(BlockListAB.blockLebethron, 1, 3), new Object[] { new ItemStack(BlockListAB.blockLebethron), new ItemStack(Items.glowstone_dust)});
- IRecipe leb3 = getLastRecipe();
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockLebethron, 1, 4), new Object[] { "4W5", "WPW", "6W7", Character.valueOf('P'), new ItemStack(ModBlocks.pylon, 1, 1), Character.valueOf('W'), new ItemStack(BlockListAB.blockLebethron), Character.valueOf('4'), new ItemStack(ModItems.rune, 1, 4), Character.valueOf('5'), new ItemStack(ModItems.rune, 1, 5), Character.valueOf('6'), new ItemStack(ModItems.rune, 1, 6), Character.valueOf('7'), new ItemStack(ModItems.rune, 1, 7)});
- IRecipe leb4 = getLastRecipe();
- lebethronWood = new BLexiconEntry("lebethronWood", categoryForgotten);
- lebethronWood.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AlphirineCraftPage(lebethronWood, lebethroneRecipe.getOutput(), ".alphirineCraft"), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb1), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb2), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb3), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb4), new PageText("1"), BotaniaAPI.internalHandler.multiblockPage(".structure", TileLebethronCore.makeMultiblockSet()) }).setIcon(new ItemStack(BlockListAB.blockLebethron));
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemMihrillMultiTool), new Object[] { " MB", " FM", "F ", Character.valueOf('F'), new ItemStack(ModItems.manaResource, 1, 3), Character.valueOf('B'), new ItemStack(ModBlocks.livingwood), Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource)});
- mithrill = new BLexiconEntry("mithrill", categoryForgotten);
- mithrill.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AdvancedPlateCraftPage(mithrill, mithrillRecipe.getOutput(), ".abCraft"), new PageText("1"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(ItemListAB.itemMihrillMultiTool));
- if(!ConfigABHandler.hasAbPlate)
- mithrill.pages.remove(1);
-
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaContainer), new Object[] { "MGM", "LPL", "M3M", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('L'), new ItemStack(ModBlocks.pool), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('3'), new ItemStack(ModItems.rune, 1, 3), Character.valueOf('G'), new ItemStack(ModItems.rune, 1, 15)});
- IRecipe cont1 = getLastRecipe();
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaContainer, 1, 1), new Object[] { "MGM", "LPL", "M3M", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource, 1, 1), Character.valueOf('L'), new ItemStack(ModBlocks.pool, 1, 2), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('3'), new ItemStack(ModItems.rune, 1, 3), Character.valueOf('G'), new ItemStack(ModItems.rune, 1, 15)});
- IRecipe cont2 = getLastRecipe();
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaContainer, 1, 2), new Object[] { "MGM", "LPL", "M3M", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('L'), new ItemStack(ModBlocks.pool, 1, 3), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('3'), new ItemStack(ModItems.rune, 1, 3), Character.valueOf('G'), new ItemStack(ModItems.rune, 1, 15)});
- IRecipe cont3 = getLastRecipe();
- manaContainer = new BLexiconEntry("manaContainer", categoryForgotten);
- manaContainer.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", cont1), BotaniaAPI.internalHandler.craftingRecipePage(".craft1", cont2), BotaniaAPI.internalHandler.craftingRecipePage(".craft2", cont3), new PageText("1"), new AlphirineCraftPage(manaContainer, advancedSparkRecipe.getOutput(), ".alphirineCraft") }).setIcon(new ItemStack(BlockListAB.blockManaContainer));
-
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaCrystalCube), new Object[] { "TST", "GWG", "DMD", Character.valueOf('D'), new ItemStack(ModBlocks.dreamwood), Character.valueOf('W'), new ItemStack(ModItems.twigWand, 1, 32767), Character.valueOf('G'), new ItemStack(ModBlocks.manaGlass), Character.valueOf('M'), new ItemStack(ModItems.manaResource), Character.valueOf('T'), new ItemStack(ModItems.manaResource, 1, 18), Character.valueOf('S'), new ItemStack(ModItems.spark)});
- manaCrystalCube = new BLexiconEntry("manaCrystalCube", BotaniaAPI.categoryMana);
- manaCrystalCube.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(BlockListAB.blockManaCrystalCube));
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemTerraHoe), new Object[] { "TTL", "RW ", " W ", Character.valueOf('T'), new ItemStack(ModItems.manaResource, 1, 4), Character.valueOf('L'), new ItemStack(ModItems.manaResource, 1, 18), Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 3), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 2)});
- terraHoe = new BLexiconEntry("terraHoe", BotaniaAPI.categoryTools);
- terraHoe.setLexiconPages(new LexiconPage[]{ new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(ItemListAB.itemTerraHoe));
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemMithrillRing), new Object[] { "LML", "MRM", "LML", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('L'), new ItemStack(ItemListAB.itemABResource, 1, 1), Character.valueOf('R'), new ItemStack(ModItems.manaRingGreater)});
- IRecipe ring1 = getLastRecipe();
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaRing), new Object[] { "LML", "MRM", "LML", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource, 1, 6), Character.valueOf('L'), new ItemStack(ModItems.manaResource, 1, 5), Character.valueOf('R'), new ItemStack(ItemListAB.itemMithrillRing)});
- IRecipe ring2 = getLastRecipe();
- manaRings = new BLexiconEntry("manaRings", categoryForgotten);
- manaRings.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[]{ new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", ring1), BotaniaAPI.internalHandler.craftingRecipePage(".craft1", ring2)}).setIcon(new ItemStack(ItemListAB.itemMithrillRing));
- AdvancedBotanyAPI.registerFarmlandSeed(Blocks.nether_wart, 3);
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemManaFlower), new Object[] { " F ", " M ", " R ", Character.valueOf('F'), new ItemStack(ItemListAB.itemABResource, 1, 4), Character.valueOf('M'), new ItemStack(ModItems.manaBottle), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 8)});
- manaFlower = new BLexiconEntry("manaFlower", categoryForgotten);
- manaFlower.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AlphirineCraftPage(manaFlower, manaFlowerRecipe.getOutput(), ".alphirineCraft"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())}).setIcon(new ItemStack(ItemListAB.itemManaFlower));
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemMithrillSword), new Object[] { " M", "SM ", "WS ", Character.valueOf('S'), new ItemStack(ItemListAB.itemABResource, 1, 6), Character.valueOf('T'), new ItemStack(ModItems.terraSword), Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 3)});
- mithrillSword = new BLexiconEntry("mithrillSword", categoryForgotten);
- mithrillSword.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(ItemListAB.itemMithrillSword));
-
- dictariusRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("dictarius"), new ItemStack(ItemListAB.itemABResource, 1, 4), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.rune, 1, 15), new ItemStack(ModItems.petal, 1, 4), new ItemStack(ModItems.petal, 1, 4), new ItemStack(ModItems.petal, 1, 1));
- dictarius = new BLexiconEntry("dictarius", BotaniaAPI.categoryGenerationFlowers);
- dictarius.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", dictariusRecipe)});
-
- nebula = new BLexiconEntry("nebula", categoryForgotten);
- nebula.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AdvancedPlateCraftPage(nebula, nebulaRecipe.getOutput(), ".abCraft")});
- if(!ConfigABHandler.hasAbPlate)
- nebula.pages.remove(1);
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemBlackHalo), new Object[] { " E ", "DHD", " E ", Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.autocraftingHalo), Character.valueOf('D'), new ItemStack(ModItems.blackHoleTalisman)});
- blackHalo = new BLexiconEntry("blackHalo", BotaniaAPI.categoryTools);
- blackHalo.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemAntigravityCharm), new Object[] { " G ", "GDG", "ERE", Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('G'), new ItemStack(ModBlocks.elfGlass), Character.valueOf('D'), new ItemStack(ModBlocks.floatingFlower, 1, 32767), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 3)});
- antigravityCharm = new BLexiconEntry("antigravityCharm", BotaniaAPI.categoryTools);
- antigravityCharm.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())}).setIcon(new ItemStack(ItemListAB.itemAntigravityCharm));
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaBlaze), new Object[] { " N ", "MMN", "AMN", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 6), Character.valueOf('A'), new ItemStack(ItemListAB.itemABResource, 1, 3), Character.valueOf('M'), new ItemStack(ModBlocks.storage)});
- nebulaBlaze = new BLexiconEntry("nebulaBlaze", categoryForgotten);
- nebulaBlaze.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
-
- if(ConfigABHandler.hasManaCharger) {
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaCharger), new Object[] { "NLN", "MPM", " R ", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 1), Character.valueOf('L'), new ItemStack(ModBlocks.livingrock), Character.valueOf('M'), new ItemStack(ModBlocks.bellows), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 8)});
- manaCharger = new BLexiconEntry("manaCharger", categoryForgotten);
- manaCharger.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
- }
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaHelm), new Object[] { "RNR", "NHN", " E ", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelHelm), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8)});
- IRecipe nHelm = getLastRecipe();
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaChest), new Object[] { "RTR", "NHN", "ENE", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelChest), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8), Character.valueOf('T'), new ItemStack(ModItems.flightTiara, 1, 32767)});
- IRecipe nChest = getLastRecipe();
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaLegs), new Object[] { "ENE", "RHR", "NAN", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelLegs), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8), Character.valueOf('A'), new ItemStack(ItemListAB.itemABResource, 1, 3)});
- IRecipe nLegs = getLastRecipe();
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaBoots), new Object[] { "RBR", "NHN", " E ", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelBoots), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8), Character.valueOf('B'), new ItemStack(ModItems.speedUpBelt)});
- IRecipe nBoots = getLastRecipe();
- nebulaArmor = new BLexiconEntry("nebulaArmor", categoryForgotten);
- nebulaArmor.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new PageText("1"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", nHelm), BotaniaAPI.internalHandler.craftingRecipePage(".craft", nChest), BotaniaAPI.internalHandler.craftingRecipePage(".craft", nLegs), BotaniaAPI.internalHandler.craftingRecipePage(".craft", nBoots)});
-
- engineerHopper = new BLexiconEntry("engineerHopper", categoryForgotten);
- engineerHopper.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AlphirineCraftPage(engineerHopper, hopperRecipe.getOutput(), ".alphirineCraft")});
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaRod), new Object[] { " WN", " RW", "W ", Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 13), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 8), Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 6)});
- nebulaRod = new BLexiconEntry("nebulaRod", categoryForgotten);
- nebulaRod.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
-
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockBoardFate), new Object[] { " ", "QDQ", "MPM", Character.valueOf('Q'), new ItemStack(ModFluffBlocks.manaQuartz), Character.valueOf('D'), new ItemStack(ModItems.manaResource, 1, 2), Character.valueOf('M'), new ItemStack(ModItems.manaResource), Character.valueOf('P'), new ItemStack(ModItems.manaResource, 1, 23)});
- gameBoard = new BLexiconEntry("gameBoard", BotaniaAPI.categoryMisc);
- gameBoard.setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
-
- fateBoard = new BLexiconEntry("fateBoard", categoryForgotten);
- fateBoard.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AlphirineCraftPage(fateBoard, fateBoardRecipe.getOutput(), ".alphirineCraft")});
-
- freyrSlingshot = new RLexiconEntry("freyrSlingshot", BotaniaAPI.categoryAlfhomancy, AchievementRegister.relicSlingshot);
- freyrSlingshot.setLexiconPages(new LexiconPage[] { new PageText("0"), new PageText("1")});
-
- richesKey = new RLexiconEntry("richesKey", BotaniaAPI.categoryAlfhomancy, AchievementRegister.relicItemChest);
- richesKey.setLexiconPages(new LexiconPage[] { new PageText("0")});
-
- cubeWardrobe = new RLexiconEntry("cubeWardrobe", BotaniaAPI.categoryAlfhomancy, AchievementRegister.relicPocketArmor);
- cubeWardrobe.setLexiconPages(new LexiconPage[] { new PageText("0")});
-
- if(Botania.thaumcraftLoaded)
- thaumcraft();
-
- addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemABResource, 9, 1), new Object[] { new ItemStack(ItemListAB.itemABResource)});
- addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemABResource, 9, 0), new Object[] { new ItemStack(BlockListAB.blockABStorage)});
- addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemABResource, 9, 6), new Object[] { new ItemStack(ItemListAB.itemABResource, 1, 5)});
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockABStorage), new Object[] { "III", "III", "III", Character.valueOf('I'), new ItemStack(ItemListAB.itemABResource)});
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemABResource, 1, 5), new Object[] { "III", "III", "III", Character.valueOf('I'), new ItemStack(ItemListAB.itemABResource, 1, 6)});
- }
-
- public static void thaumcraft() {
- aspecolus = new BLexiconEntry("aspecolus", BotaniaAPI.categoryFunctionalFlowers);
- aspecolusRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("aspecolus"), new ItemStack(ModItems.manaResource, 1, 6), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.rune, 1, 1), new ItemStack(ModItems.rune), new ItemStack(ItemListAB.itemABResource, 1, 2), new ItemStack(ModItems.petal, 1, 10), new ItemStack(ModItems.petal, 1, 13));
- aspecolus.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", aspecolusRecipe) }).setIcon(ItemBlockSpecialFlower.ofType("aspecolus"));
- addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemNebulaHelmReveal), new Object[] { new ItemStack(ItemListAB.itemNebulaHelm), new ItemStack(ConfigItems.itemGoggles)});
- List recipes = new ArrayList();
- for(int i = 1; i < 10; i++) {
- boolean[][] patterns = ItemCraftingPattern.getPattern(i);
- List str = new ArrayList();
- for(int j = 0; j < patterns.length; j++) {
- String str1 = "";
- for(int k = 0; k < patterns[j].length; k++)
- str1 += patterns[j][k] ? "T" : "H";
- str.add(str1);
- }
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemCraftingPattern, 1, i), new Object[] { str.get(0), str.get(1), str.get(2), Character.valueOf('T'), new ItemStack(ItemListAB.itemCraftingPattern), Character.valueOf('H'), new ItemStack(ConfigItems.itemNugget, 1, 6)});
- recipes.add(getLastRecipe());
- }
- IRecipe crate = GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockMagicCraftCrate), new Object[] { "TST", "WCW", "W W", Character.valueOf('W'), new ItemStack(ConfigBlocks.blockMagicalLog), Character.valueOf('S'), new ItemStack(ConfigItems.itemResource, 1, 14), Character.valueOf('T'), new ItemStack(ConfigItems.itemResource, 1, 7), Character.valueOf('C'), new ItemStack(ModBlocks.openCrate, 1, 1)});
- addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemCraftingPattern, 48), new Object[] { new ItemStack(Blocks.crafting_table), new ItemStack(ModBlocks.livingrock), new ItemStack(ConfigItems.itemResource, 1, 14)});
- thaumAutoCraft = new BLexiconEntry("thaumAutoCraft", BotaniaAPI.categoryDevices);
- thaumAutoCraft.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", crate) , BotaniaAPI.internalHandler.craftingRecipePage(".craft0", getLastRecipe()), BotaniaAPI.internalHandler.craftingRecipesPage(".craft1", recipes)});
-
- pureGladRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("pureGladiolus"), new ItemStack(ItemListAB.itemABResource, 1, 4), new ItemStack(ModItems.rune, 1, 8), new ItemStack(ModItems.petal, 1, 8), new ItemStack(ModItems.petal, 1, 4), new ItemStack(ModItems.petal, 1, 14), new ItemStack(ModItems.petal, 1, 5), new ItemStack(ModItems.petal, 1, 13), new ItemStack(ModItems.petal, 1, 11));
- gladious = new BLexiconEntry("gladious", BotaniaAPI.categoryFunctionalFlowers);
- gladious.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", pureGladRecipe)});
- }
-
- private static IRecipe getLastRecipe() {
- return (IRecipe)CraftingManager.getInstance().getRecipeList().get(CraftingManager.getInstance().getRecipeList().size() - 1);
- }
-
- private static void addOreDictRecipe(ItemStack output, Object... recipe) {
- CraftingManager.getInstance().getRecipeList().add(new ShapedOreRecipe(output, recipe));
- }
-
- private static void addShapelessOreDictRecipe(ItemStack output, Object... recipe) {
- CraftingManager.getInstance().getRecipeList().add(new ShapelessOreRecipe(output, recipe));
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/99/0001092bf8ac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/99/0001092bf8ac001c1d59e42be7477558
deleted file mode 100644
index a09ab38..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/99/0001092bf8ac001c1d59e42be7477558
+++ /dev/null
@@ -1,195 +0,0 @@
-package ab.common.block.tile;
-
-import java.util.List;
-
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.ChatComponentTranslation;
-import net.minecraft.util.ChatStyle;
-import net.minecraft.util.EnumChatFormatting;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.common.block.tile.TileMod;
-
-public class TileGameBoard extends TileMod {
-
- public String[] playersName = new String[] { "", "" };
- public byte[] slotChance = new byte[] { 0, 0, 0, 0 };
- protected int botTick = -1;
- public int endGameTick = -1;
- protected boolean requestUpdate;
- public boolean isSingleGame = false;
- public int clientTick[] = new int[] { 0, 0, 0, 0 };
-
- public void updateEntity() {
- if(botTick > 0)
- botTick--;
- if(endGameTick > 0)
- endGameTick--;
- if(!worldObj.isRemote)
- updateServer();
- }
-
- public void updateAnimationTicks() {
- for(int i = 0; i < slotChance.length; i++)
- if(slotChance[i] > 0)
- clientTick[i]++;
- else
- clientTick[i] = 0;
- }
-
- protected void updateServer() {
- if(hasGame() && endGameTick == 0)
- finishGame();
- if(requestUpdate)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- boolean hasUpdate = false;
- if(isSingleGame && botTick == 0 && hasGame()) {
- for(int i = 2; i < 4; i++) {
- if(slotChance[i] == 0) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = -1;
- hasUpdate = true;
- break;
- }
- }
- }
- requestUpdate = hasUpdate;
- }
-
- public void setPlayer(EntityPlayer player) {
- if(isSingleGame) {
- playersName[0] = player.getCommandSenderName();
- playersName[1] = "";
- requestUpdate = true;
- botTick = 8;
- } else {
- if(playersName[0].isEmpty())
- playersName[0] = player.getCommandSenderName();
- else if(!playersName[0].equals(player.getCommandSenderName()))
- playersName[1] = player.getCommandSenderName();
- requestUpdate = true;
- }
- }
-
- public boolean dropDice(EntityPlayer player) {
- if(isSingleGame) {
- if(player.getCommandSenderName().equals(playersName[0]) && botTick == -1) {
- boolean isLastDice = false;
- for(int i = 0; i < 2; i++) {
- if(slotChance[i] == 0 && !worldObj.isRemote) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = 18;
- requestUpdate = true;
- if(i == 1)
- isLastDice = true;
- break;
- }
- }
- if(isLastDice)
- endGameTick = 28;
- return true;
- }
- } else {
- for(int i = 0; i < playersName.length; i++) {
- if(player.getCommandSenderName().equals(playersName[i])) {
- for(int j = i * 2; j < (i + 1) * 2; j++) {
- if(slotChance[j] == 0 && !worldObj.isRemote) {
- slotChance[j] = (byte)(worldObj.rand.nextInt(6) + 1);
- requestUpdate = true;
- if(hasFullDice())
- endGameTick = 28;
- break;
- }
- }
- return true;
- }
- }
- }
- return false;
- }
-
- public boolean hasFullDice() {
- boolean hasFull = false;
- for(int i = 0; i < slotChance.length; i++) {
- if(!(slotChance[i] > 0))
- return false;
- hasFull = slotChance[i] > 0;
- }
- return hasFull;
- }
-
- public boolean hasGame() {
- if(isSingleGame)
- return !playersName[0].isEmpty();
- else
- for(int i = 0; i < playersName.length; i++)
- if(!playersName[i].isEmpty())
- return true;
- return false;
- }
-
- public void finishGame() {
- if(worldObj.isRemote)
- return;
- if(isSingleGame) {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won");
- else if((slotChance[0] + slotChance[1]) == (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " not win");
- else
- sendNearMessage(playersName[0] + " you Lose!");
- resetGame();
- } else {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won!");
- else if((slotChance[0] + slotChance[1]) == (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " " + playersName[1] + "we are not win");
- else
- sendNearMessage(playersName[1] + " you Won!");
- resetGame();
- }
- }
-
- public void sendNearMessage(String text) {
- List players = this.worldObj.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(this.xCoord, this.yCoord, this.zCoord, (this.xCoord + 1), (this.yCoord + 1), (this.zCoord + 1)).expand(3.5f, 3.5f, 3.5f));
- for(EntityPlayer player : players) {
- if(player != null)
- player.addChatMessage((new ChatComponentTranslation(text, new Object[] {})).setChatStyle((new ChatStyle()).setColor(EnumChatFormatting.DARK_GREEN)));
- }
- }
-
- public void resetGame() {
- playersName[0] = "";
- playersName[1] = "";
- for(int i = 0; i < slotChance.length; i++)
- slotChance[i] = 0;
- botTick = -1;
- endGameTick = -1;
- requestUpdate = true;
- }
-
- public void writeCustomNBT(NBTTagCompound cmp) {
- super.writeCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- cmp.setString("playerName" + i, playersName[i]);
- cmp.setByteArray("slotChance", slotChance);
- cmp.setInteger("botTick", botTick);
- cmp.setInteger("endGameTick", endGameTick);
- cmp.setBoolean("requestUpdate", requestUpdate);
- cmp.setBoolean("isSingleGame", isSingleGame);
- }
-
- public void readCustomNBT(NBTTagCompound cmp) {
- super.readCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- playersName[i] = cmp.getString("playerName" + i);
- botTick = cmp.getInteger("botTick");
- endGameTick = cmp.getInteger("endGameTick");
- slotChance = cmp.getByteArray("slotChance");
- requestUpdate = cmp.getBoolean("requestUpdate");
- isSingleGame = cmp.getBoolean("isSingleGame");
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/99/00925fbae0ac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/99/00925fbae0ac001c1d59e42be7477558
deleted file mode 100644
index ca7f9f9..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/99/00925fbae0ac001c1d59e42be7477558
+++ /dev/null
@@ -1,165 +0,0 @@
-package ab.common.block.tile;
-
-import java.util.List;
-
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.ChatComponentTranslation;
-import net.minecraft.util.ChatStyle;
-import net.minecraft.util.EnumChatFormatting;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-
-public class TileGameBoard extends TileInventory {
-
- protected String[] playersName = new String[] { "", "" };
- public byte[] slotChance = new byte[] { 0, 0, 0, 0 };
- protected int botTick = -1;
- public int endGameTick = -1;
- protected boolean requestUpdate;
- public boolean isSingleGame = true;
- public int clientTick[] = new int[] { 0, 0, 0, 0};
-
- public void updateEntity() {
- if(botTick > 0)
- botTick--;
- if(endGameTick > 0)
- endGameTick--;
- if(!worldObj.isRemote)
- updateServer();
- else
- updateClient();
- }
-
- protected void updateClient() {
- for(int i = 0; i < slotChance.length; i++)
- if(slotChance[i] > 0)
- clientTick[i]++;
- else
- clientTick[i] = 0;
- }
-
- protected void updateServer() {
- if(requestUpdate)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- boolean hasUpdate = false;
- if(isSingleGame && botTick == 0 && hasGame()) {
- for(int i = 2; i < 4; i++) {
- if(slotChance[i] == 0) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = -1;
- hasUpdate = true;
- break;
- }
- }
- }
- if(hasGame() && endGameTick == 0)
- finishGame();
- requestUpdate = hasUpdate;
- }
-
- public void setPlayer(EntityPlayer player) {
- if(isSingleGame) {
- playersName[0] = player.getCommandSenderName();
- playersName[1] = "";
- requestUpdate = true;
- botTick = 8;
- }
- }
-
- public boolean dropDice(EntityPlayer player) {
- if(isSingleGame) {
- if(player.getCommandSenderName() == playersName[0] && botTick <= 0) {
- System.out.println(playersName[0]);
- boolean isLastDice = false;
- for(int i = 0; i < 2; i++) {
- if(slotChance[i] == 0 && !worldObj.isRemote) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = 18;
- requestUpdate = true;
- if(i == 1)
- isLastDice = true;
- break;
- }
- }
- if(isLastDice)
- endGameTick = 28;
- return true;
- }
- }
- return false;
- }
-
- public boolean hasGame() {
- if(isSingleGame)
- return !playersName[0].isEmpty();
- return !playersName[0].isEmpty() && !playersName[1].isEmpty();
- }
-
- public void finishGame() {
- if(worldObj.isRemote)
- return;
- if(isSingleGame) {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won");
- else
- sendNearMessage(playersName[0] + " you Lose!");
- resetGame();
- requestUpdate = true;
- }
- }
-
- public void sendNearMessage(String text) {
- List players = this.worldObj.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(this.xCoord, this.yCoord, this.zCoord, (this.xCoord + 1), (this.yCoord + 1), (this.zCoord + 1)).expand(3.5f, 3.5f, 3.5f));
- for(EntityPlayer player : players) {
- if(player != null)
- player.addChatMessage((new ChatComponentTranslation(text, new Object[] {})).setChatStyle((new ChatStyle()).setColor(EnumChatFormatting.DARK_GREEN)));
- }
- }
-
- public void resetGame() {
- playersName[0] = "";
- playersName[1] = "";
- for(int i = 0; i < slotChance.length; i++)
- slotChance[i] = 0;
- requestUpdate = true;
- botTick = -1;
- endGameTick = -1;
- }
-
- public void writeCustomNBT(NBTTagCompound cmp) {
- super.writeCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- cmp.setString("playerName" + i, playersName[i]);
- cmp.setByteArray("slotChance", slotChance);
- cmp.setInteger("botTick", botTick);
- cmp.setInteger("endGameTick", endGameTick);
- cmp.setBoolean("requestUpdate", requestUpdate);
- cmp.setBoolean("isSingleGame", isSingleGame);
- }
-
- public void readCustomNBT(NBTTagCompound cmp) {
- super.readCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- playersName[i] = cmp.getString("playerName" + i);
- botTick = cmp.getInteger("botTick");
- endGameTick = cmp.getInteger("endGameTick");
- slotChance = cmp.getByteArray("slotChance");
- requestUpdate = cmp.getBoolean("requestUpdate");
- isSingleGame = cmp.getBoolean("isSingleGame");
- }
-
- public int getInventoryStackLimit() {
- return 1;
- }
-
- public int getSizeInventory() {
- return 4;
- }
-
- public String getInventoryName() {
- return "inv.gameBoard";
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/99/4089436716be001c1965b122d2f8f403 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/99/4089436716be001c1965b122d2f8f403
new file mode 100644
index 0000000..510c920
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/99/4089436716be001c1965b122d2f8f403
@@ -0,0 +1,134 @@
+package ab.common.item.relic;
+
+import java.awt.Color;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.common.core.handler.NetworkHandler;
+import net.minecraft.block.Block;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.MathHelper;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.api.mana.ManaItemHandler;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class ItemSphereNavigation extends ItemModRelic {
+
+ public static final int rangeSearch = 24;
+ public static final int maxCooldown = 112;
+ public static final int manaCost = 3750;
+
+ public ItemSphereNavigation() {
+ super("sphereNavigation");
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int pos, boolean equipped) {
+ super.onUpdate(stack, world, entity, pos, equipped);
+ if(entity instanceof EntityPlayer) {
+ EntityPlayer player = (EntityPlayer)entity;
+ if(!world.isRemote && getFindBlock(stack) != null && canWork(stack) && ManaItemHandler.requestManaExactForTool(stack, player, manaCost, true)) {
+ setMaxTick(stack);
+ NetworkHandler.sendPacketToFindBlocks((EntityPlayerMP)player, getFindBlock(stack), getFindMeta(stack));
+ }
+ }
+ }
+
+ public static void findBlocks(World world, Block findBlock, int findMeta, EntityPlayer player) {
+ if(world.isRemote) {
+ int findedBlocks = 0;
+ label1703:
+ for(int x = -rangeSearch; x < rangeSearch; x++) {
+ if(world.rand.nextBoolean())
+ continue;
+ for(int y = -rangeSearch * 4; y < rangeSearch; y++) {
+ if(world.rand.nextBoolean())
+ continue;
+ for(int z = -rangeSearch; z < rangeSearch; z++) {
+ if(world.rand.nextBoolean())
+ continue;
+ else if(findedBlocks > 32)
+ break label1703;
+ int posX = MathHelper.floor_double(player.posX) + x;
+ int posY = MathHelper.floor_double(player.posY) + y;
+ int posZ = MathHelper.floor_double(player.posZ) + z;
+ if(posY < 0)
+ continue;
+ Block block = world.getBlock(posX, posY, posZ);
+ if(!Block.isEqualTo(block, findBlock))
+ continue;
+ int meta = world.getBlockMetadata(posX, posY, posZ);
+ if(meta == findMeta) {
+ findedBlocks++;
+ float maxAge = 2.7f + (0.5f * (float)(Math.random()));
+ Botania.proxy.setWispFXDepthTest(false);
+ float far = 120.0f - (((Math.abs(x) + Math.min(rangeSearch * 2.0f, Math.abs(y)) + Math.abs(z)) / (rangeSearch * 4.0f)) * 120.0f);
+ if(far <= 60)
+ far *= 0.15f;
+ Color color = new Color(Color.HSBtoRGB(far / 360.0f, 0.9f + (float)(Math.random() * 0.1f), 1.0f));
+ for(int i = 0; i < 11; i++)
+ Botania.proxy.wispFX(world, posX + 0.5f + (Math.random() - 0.5f), posY + 0.5f + (Math.random() - 0.5f), posZ + 0.5f + (Math.random() - 0.5f), color.getRed() / 100.0f, color.getGreen() / 100.0f, color.getBlue() / 100.0f, 0.3f + (float)(Math.random() * 0.25f), 0.0f, maxAge);
+ Botania.proxy.setWispFXDepthTest(true);
+ }
+ }
+ }
+ }
+ }
+ }
+
+ public boolean onItemUse(ItemStack stack, EntityPlayer p, World world, int x, int y, int z, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
+ if(p.isSneaking()) {
+ Block block = world.getBlock(x, y, z);
+ if(block != null) {
+ int meta = world.getBlockMetadata(x, y, z);
+ Item item = Item.getItemFromBlock(block);
+ if(item != null) {
+ ItemStack findStack = new ItemStack(block, 1, meta);
+ if(findStack != null) {
+ setFindBlock(stack, block, meta);
+ if(world.isRemote)
+ ItemsRemainingRender.set(findStack, findStack.getDisplayName());
+ }
+ }
+ return true;
+ }
+ }
+ return false;
+ }
+
+ public boolean canWork(ItemStack stack) {
+ int tick = ItemNBTHelper.getInt(stack, "cooldown", 0);
+ if(tick == 0)
+ return true;
+ else if(tick > 0)
+ ItemNBTHelper.setInt(stack, "cooldown", tick - 1);
+ return false;
+ }
+
+ public void setMaxTick(ItemStack stack) {
+ ItemNBTHelper.setInt(stack, "cooldown", maxCooldown);
+ }
+
+ public static void setFindBlock(ItemStack stack, Block block, int meta) {
+ ItemNBTHelper.setInt(stack, "findBlockID", Block.getIdFromBlock(block));
+ ItemNBTHelper.setInt(stack, "findBlockMeta", meta);
+ }
+
+ public static Block getFindBlock(ItemStack stack) {
+ int blockID = ItemNBTHelper.getInt(stack, "findBlockID", 0);
+ if(blockID == 0)
+ return null;
+ else
+ return Block.getBlockById(blockID);
+ }
+
+ public static int getFindMeta(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "findBlockMeta", -1);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/99/a09ea8d5f7ac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/99/a09ea8d5f7ac001c1d59e42be7477558
deleted file mode 100644
index 90c0971..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/99/a09ea8d5f7ac001c1d59e42be7477558
+++ /dev/null
@@ -1,96 +0,0 @@
-package ab.client.render.tile;
-
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.model.ModelDiceFate;
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.ResourceLocation;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class RenderTileGameBoard extends TileEntitySpecialRenderer {
-
- private static final ModelDiceFate model = new ModelDiceFate();
- private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/gameDice.png");
- private static final ResourceLocation textureEnemy = new ResourceLocation("ab:textures/model/gameDice_enemy.png");
-
- public void renderTileEntityAt(TileEntity tile, double x, double y, double z, float ticks) {
- double time = (tile.getWorldObj() == null) ? 0.0D : (ClientTickHandler.ticksInGame + ticks);
- if(tile != null)
- time += (new Random((tile.xCoord ^ tile.yCoord ^ tile.zCoord))).nextInt(360);
- TileGameBoard board = (TileGameBoard)tile;
-// if(System.nanoTime() % (1000000000 / 60) == 0) {
-// System.out.println(System.nanoTime() % (1000000000 / 60));
-// }
- System.out.println(System.nanoTime() % (1000000000 / 60));
- GL11.glEnable(3042);
- GL11.glEnable(32826);
- GL11.glBlendFunc(770, 771);
- for(int i = 0; i < board.slotChance.length; i++) {
- if(board.slotChance[i] == 0)
- continue;
- time += i * 65;
- GL11.glPushMatrix();
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- float posX = 0.0f;
- float posY = 0.0f;
- float dropAnim = (1.0f - (Math.min(100.0f, board.clientTick[i] * board.clientTick[i] * 1.25f) / 100.0f));
- dropAnim = Math.min(1.0f, Math.max(dropAnim, 0));
- float alpha = (float)Math.cos(dropAnim);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, alpha);
- switch(i) {
- case 0:
- posX = 0.16f + 0.08f * dropAnim;
- posY = 0.16f + 0.08f * dropAnim;
- break;
- case 1:
- posX = -0.16f - 0.08f * dropAnim;
- posY = 0.16f + 0.08f * dropAnim;
- break;
- case 2:
- posX = 0.16f + 0.08f * dropAnim;
- posY = -0.16f - 0.08f * dropAnim;
- break;
- case 3:
- posX = -0.16f - 0.08f * dropAnim;
- posY = -0.16f - 0.08f * dropAnim;
- break;
- }
- GL11.glTranslated(x, y, z);
- GL11.glTranslated(0.5f + posX, 0.02f + Math.sin(time / 12.0D) / 48.0D + (0.28f * dropAnim), 0.5f + posY);
- GL11.glScalef(0.25f, 0.25f, 0.25f);
- Minecraft.getMinecraft().renderEngine.bindTexture(i > 1 ? textureEnemy : texture);
- float dropAngel = 70.0f * dropAnim;
- switch(board.slotChance[i]) {
- case 1:
- model.render(180.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 2:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 3:
- model.render(90.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 4:
- model.render(270.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 5:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 270.0f);
- break;
- case 6:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 90.0f);
- break;
- default:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- }
- GL11.glPopMatrix();
- }
- GL11.glEnable(32826);
- GL11.glDisable(3042);
- }
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/9b/40188b6338b0001c1746c57a5fe46fd3 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/9b/40188b6338b0001c1746c57a5fe46fd3
deleted file mode 100644
index dda74be..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/9b/40188b6338b0001c1746c57a5fe46fd3
+++ /dev/null
@@ -1,53 +0,0 @@
-package ab.common.item.relic;
-
-import java.lang.reflect.InvocationTargetException;
-import java.util.List;
-
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import cpw.mods.fml.relauncher.ReflectionHelper;
-import net.minecraft.entity.EntityLivingBase;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.item.ItemStack;
-import net.minecraft.world.World;
-import net.minecraftforge.common.MinecraftForge;
-import net.minecraftforge.event.entity.living.LivingDropsEvent;
-
-public class ItemSehrimnirHide extends ItemModRelic {
-
- public static final String[] dropFewItems = new String[] { "dropFewItems", "func_70628_a" };
-
- public ItemSehrimnirHide() {
- super("sehrimnirHide");
- MinecraftForge.EVENT_BUS.register(this);
- }
-
- @SubscribeEvent
- public void onPlayerAttack(LivingDropsEvent event) {
-
-// .invoke(event.entityLiving, new Object[] {true, 5});
-
-
-
- EntityLivingBase liv = event.entityLiving;
- try {
- ReflectionHelper.findMethod(EntityLivingBase.class, liv, dropFewItems, new Class[] {Boolean.class, Integer.class} ).invoke(liv, new Object[] {true, 5});
- } catch (Exception e) {
- e.printStackTrace();
- }
-
-
-// List items = event.drops;
-// World world = event.entityLiving.worldObj;
-// double posX = event.entityLiving.posX;
-// double posY = event.entityLiving.posY;
-// double posZ = event.entityLiving.posZ;
-// for(EntityItem entity : items) {
-// if(!world.isRemote) {
-// ItemStack loot = entity.getEntityItem().copy();
-// loot.stackSize = Math.max(1, (int)(loot.stackSize / 1.5f));
-// EntityItem item = new EntityItem(world, posX, posY, posZ, loot);
-// world.spawnEntityInWorld(item);
-// }
-// }
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/9b/90d780539cb1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/9b/90d780539cb1001c19bf8a91ac37238b
deleted file mode 100644
index 9373b1c..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/9b/90d780539cb1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,83 +0,0 @@
-package ab.client.core.handler;
-
-import java.awt.Color;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.armor.ItemNebulaArmor;
-import ab.common.item.equipment.armor.ItemNebulaHelm;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.ItemRenderer;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.texture.TextureMap;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraftforge.client.event.RenderPlayerEvent;
-import vazkii.botania.api.item.IPhantomInkable;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class PlayerRendererHandler {
-
- @SubscribeEvent
- public void onPlayerRender(RenderPlayerEvent.Specials.Pre event) {
- EntityPlayer player = event.entityPlayer;
- ItemStack item = player.getCurrentArmor(3);
- if(item != null && item.getItem() instanceof ItemNebulaHelm) {
- Item helm = player.getCurrentArmor(3).getItem();
- boolean hasPhantomInk = helm instanceof IPhantomInkable && ((IPhantomInkable)helm).hasPhantomInk(item);
- if(!hasPhantomInk && ((ItemNebulaHelm)helm).enableCosmicFace(item)) {
- float angelX = event.renderer.modelBipedMain.bipedHead.rotateAngleX * 180.0F / (float)Math.PI;
- float angelY = event.renderer.modelBipedMain.bipedHead.rotateAngleY * 180.0F / (float)Math.PI;
- GL11.glPushMatrix();
- if(player.isSneaking())
- GL11.glTranslatef(event.renderer.modelBipedMain.bipedHead.rotationPointX * 0.0625f, event.renderer.modelBipedMain.bipedHead.rotationPointY * 0.0625f, 0.0f);
- GL11.glRotatef(angelY, 0.0F, 1.0F, 0.0F);
- GL11.glRotatef(angelX, 1.0F, 0.0F, 0.0F);
- renderCosmicFace();
- GL11.glPopMatrix();
- }
- }
- }
-
- private void renderCosmicFace() {
- double worldTime = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- GL11.glPushMatrix();
- GL11.glEnable(GL11.GL_TEXTURE_2D);
-// GL11.glDisable(2884);
-
- GL11.glPushMatrix();
- GL11.glScalef(0.5f, 0.4f, 0.4f);
- GL11.glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
- GL11.glTranslatef(-0.5f, -0.8675f, 0.0f);
- GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
- ClientHelper.renderCosmicBackground();
- GL11.glPopMatrix();
-
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
-// OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- (Minecraft.getMinecraft()).renderEngine.bindTexture(TextureMap.locationItemsTexture);
- GL11.glTranslatef(-0.2F, -0.35F, -0.25F);
- GL11.glScalef(0.4f, 0.4f, 0.4f);
- float f = ItemNebulaArmor.nebulaEyes.getMinU();
- float f1 = ItemNebulaArmor.nebulaEyes.getMaxU();
- float f2 = ItemNebulaArmor.nebulaEyes.getMinV();
- float f3 = ItemNebulaArmor.nebulaEyes.getMaxV();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float r = color.getRed() / 510.0F;
- float g = color.getGreen() / 510.0F;
- float b = color.getBlue() / 510.0F;
- GL11.glColor4f(0.5f + r, 0.5f + g, 0.5f + b, 0.685f + (float)Math.sin(worldTime / 50.0D) * 0.175F);
- ItemRenderer.renderItemIn2D(Tessellator.instance, f1, f2, f, f3, ItemNebulaArmor.nebulaEyes.getIconWidth(), ItemNebulaArmor.nebulaEyes.getIconHeight(), 0.03125F);
- GL11.glDisable(3042);
- GL11.glEnable(32826);
- GL11.glPopMatrix();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/9c/b085a16fcbbd001c1664fb18d0506bc0 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/9c/b085a16fcbbd001c1664fb18d0506bc0
new file mode 100644
index 0000000..c8c5c70
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/9c/b085a16fcbbd001c1664fb18d0506bc0
@@ -0,0 +1,49 @@
+package ab.common.core.proxy.packet;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.common.item.relic.ItemSphereNavigation;
+import cpw.mods.fml.common.network.ByteBufUtils;
+import cpw.mods.fml.common.network.simpleimpl.IMessage;
+import cpw.mods.fml.common.network.simpleimpl.IMessageHandler;
+import cpw.mods.fml.common.network.simpleimpl.MessageContext;
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
+import io.netty.buffer.ByteBuf;
+import net.minecraft.block.Block;
+import net.minecraft.client.Minecraft;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.world.WorldServer;
+import net.minecraftforge.common.DimensionManager;
+
+public class S01PacketFindNearBlocks implements IMessage, IMessageHandler {
+
+ private String username;
+ private int blockID;
+ private int meta;
+
+ public S01PacketFindNearBlocks() {};
+
+ public S01PacketFindNearBlocks(EntityPlayer player, Block block, int meta) {
+ this.username = player.getCommandSenderName();
+ this.blockID = Block.getIdFromBlock(block);
+ this.meta = meta;
+ }
+
+ public void toBytes(ByteBuf buf) {
+ ByteBufUtils.writeUTF8String(buf, this.username);
+ buf.writeInt(this.blockID);
+ buf.writeInt(this.meta);
+ }
+
+ public void fromBytes(ByteBuf buf) {
+ this.username = ByteBufUtils.readUTF8String(buf);
+ this.blockID = buf.readByte();
+ this.meta = buf.readByte();
+ }
+
+ @SideOnly(Side.CLIENT)
+ public IMessage onMessage(S01PacketFindNearBlocks message, MessageContext ctx) {
+ ItemSphereNavigation.findBlocks(Minecraft.getMinecraft().theWorld, Block.getBlockById(message.blockID), message.meta, Minecraft.getMinecraft().theWorld.getPlayerEntityByName(message.username));
+ return null;
+ }
+}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/9d/70ddd76b21be001c1965b122d2f8f403 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/9d/70ddd76b21be001c1965b122d2f8f403
new file mode 100644
index 0000000..d06c79c
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/9d/70ddd76b21be001c1965b122d2f8f403
@@ -0,0 +1,157 @@
+package ab.common.item.relic;
+
+import java.awt.Color;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.common.core.handler.NetworkHandler;
+import ab.common.lib.register.ItemListAB;
+import net.minecraft.block.Block;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.util.MathHelper;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.api.mana.ManaItemHandler;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class ItemSphereNavigation extends ItemModRelic {
+
+ public static final int rangeSearch = 24;
+ public static final int maxCooldown = 112;
+ public static final int manaCost = 1750;
+
+ public ItemSphereNavigation() {
+ super("sphereNavigation");
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int pos, boolean equipped) {
+ super.onUpdate(stack, world, entity, pos, equipped);
+ if(entity instanceof EntityPlayer) {
+ EntityPlayer player = (EntityPlayer)entity;
+ if(!world.isRemote && getFindBlock(stack) != null && canWork(stack) && ManaItemHandler.requestManaExactForTool(stack, player, manaCost, true)) {
+ setMaxTick(stack);
+ NetworkHandler.sendPacketToFindBlocks((EntityPlayerMP)player, getFindBlock(stack), getFindMeta(stack));
+ }
+ }
+ }
+
+ public static void findBlocks(World world, Block findBlock, int findMeta, EntityPlayer player) {
+ if(world.isRemote) {
+ ItemStack renderStack = null;
+ int findedBlocks = 0;
+ label1703:
+ for(int x = -rangeSearch; x < rangeSearch; x++) {
+ if(world.rand.nextBoolean())
+ continue;
+ for(int y = -rangeSearch * 4; y < rangeSearch; y++) {
+ if(world.rand.nextBoolean())
+ continue;
+ for(int z = -rangeSearch; z < rangeSearch; z++) {
+ if(world.rand.nextBoolean())
+ continue;
+ else if(findedBlocks > 24)
+ break label1703;
+ int posX = MathHelper.floor_double(player.posX) + x;
+ int posY = MathHelper.floor_double(player.posY) + y;
+ int posZ = MathHelper.floor_double(player.posZ) + z;
+ if(posY < 0)
+ continue;
+ Block block = world.getBlock(posX, posY, posZ);
+ if(!Block.isEqualTo(block, findBlock))
+ continue;
+ int meta = world.getBlockMetadata(posX, posY, posZ);
+ if(meta == findMeta) {
+ if(renderStack == null)
+ renderStack = getRenderStackForBlock(world, block, meta, posX, posY, posZ);
+ findedBlocks++;
+ float maxAge = 2.7f + (0.5f * (float)(Math.random()));
+ Botania.proxy.setWispFXDepthTest(false);
+ float far = 120.0f - (((Math.abs(x) + Math.min(rangeSearch * 2.0f, Math.abs(y)) + Math.abs(z)) / (rangeSearch * 4.0f)) * 120.0f);
+ if(far <= 60)
+ far *= 0.15f;
+ Color color = new Color(Color.HSBtoRGB(far / 360.0f, 0.9f + (float)(Math.random() * 0.1f), 1.0f));
+ for(int i = 0; i < 11; i++)
+ Botania.proxy.wispFX(world, posX + 0.5f + (Math.random() - 0.5f), posY + 0.5f + (Math.random() - 0.5f), posZ + 0.5f + (Math.random() - 0.5f), color.getRed() / 100.0f, color.getGreen() / 100.0f, color.getBlue() / 100.0f, 0.3f + (float)(Math.random() * 0.25f), 0.0f, maxAge);
+ Botania.proxy.setWispFXDepthTest(true);
+ }
+ }
+ }
+ }
+ if(renderStack != null)
+ ItemsRemainingRender.set(renderStack, "íàéäåíî: " + findedBlocks);
+ }
+ }
+
+ public static ItemStack getRenderStackForBlock(World world, Block block, int meta, int x, int y, int z) {
+ if(block != null) {
+ Item item = Item.getItemFromBlock(block);
+ if(item != null) {
+ ItemStack findStack = new ItemStack(block, 1, meta);
+ if(findStack != null)
+ return findStack;
+ } else {
+ Item item1 = block.getItem(world, x, y, z);
+ if(item1 != null) {
+ ItemStack findStack = new ItemStack(item1, 1, meta);
+ if(findStack != null)
+ return findStack;
+ }
+ }
+ }
+ return null;
+ }
+
+ public boolean onItemUse(ItemStack stack, EntityPlayer p, World world, int x, int y, int z, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
+ if(p.isSneaking()) {
+ Block block = world.getBlock(x, y, z);
+ if(block != null) {
+ int meta = world.getBlockMetadata(x, y, z);
+ ItemStack findStack = getRenderStackForBlock(world, block, meta, x, y, z);
+ if(findStack != null) {
+ setFindBlock(stack, block, meta);
+ if(world.isRemote)
+ ItemsRemainingRender.set(findStack, findStack.getDisplayName());
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public boolean canWork(ItemStack stack) {
+ int tick = ItemNBTHelper.getInt(stack, "cooldown", 0);
+ if(tick == 0)
+ return true;
+ else if(tick > 0)
+ ItemNBTHelper.setInt(stack, "cooldown", tick - 1);
+ return false;
+ }
+
+ public void setMaxTick(ItemStack stack) {
+ ItemNBTHelper.setInt(stack, "cooldown", maxCooldown);
+ }
+
+ public static void setFindBlock(ItemStack stack, Block block, int meta) {
+ ItemNBTHelper.setInt(stack, "findBlockID", Block.getIdFromBlock(block));
+ ItemNBTHelper.setInt(stack, "findBlockMeta", meta);
+ }
+
+ public static Block getFindBlock(ItemStack stack) {
+ int blockID = ItemNBTHelper.getInt(stack, "findBlockID", 0);
+ if(blockID == 0)
+ return null;
+ else
+ return Block.getBlockById(blockID);
+ }
+
+ public static int getFindMeta(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "findBlockMeta", -1);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/9f/908adf09baad001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/9f/908adf09baad001c1d59e42be7477558
deleted file mode 100644
index 22cbd6a..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/9f/908adf09baad001c1d59e42be7477558
+++ /dev/null
@@ -1,157 +0,0 @@
-package ab.common.block.tile;
-
-import java.util.List;
-
-import ab.api.AdvancedBotanyAPI;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.ChatComponentTranslation;
-import net.minecraft.util.ChatStyle;
-import net.minecraft.util.EnumChatFormatting;
-import net.minecraft.util.Vec3;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.api.item.IRelic;
-import vazkii.botania.common.item.relic.ItemDice;
-import vazkii.botania.common.item.relic.ItemRelic;
-
-public class TileBoardFate extends TileInventory {
-
- public byte[] slotChance = new byte[getSizeInventory()];
- public int clientTick[] = new int[] { 0, 0, 0, 0 };
- public boolean requestUpdate;
-
- public void updateEntity() {
- if(!worldObj.isRemote)
- updateServer();
- else
- updateAnimationTicks();
- }
-
- public void updateAnimationTicks() {
- for(int i = 0; i < slotChance.length; i++)
- if(slotChance[i] > 0)
- clientTick[i]++;
- else
- clientTick[i] = 0;
- }
-
- protected void updateServer() {
- if(requestUpdate)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- boolean hasUpdate = false;
- if(hasFreeSlot())
- hasUpdate = setDiceFate();
- requestUpdate = hasUpdate;
- }
-
- public boolean spawnRelic(EntityPlayer player) {
- int relicCount = 0;
- for(int i = 0; i < getSizeInventory(); i++) {
- if(getStackInSlot(i) == null)
- slotChance[i] = 0;
- else if(!ItemRelic.isRightPlayer(player, getStackInSlot(i))) {
- if(!worldObj.isRemote)
- dropRelic(player, i);
- return true;
- }
- else
- setInventorySlotContents(i, null);
- relicCount += slotChance[i];
- }
- if(relicCount < 1)
- return false;
- else if(!worldObj.isRemote) {
- ItemStack relic = AdvancedBotanyAPI.relicList.get(Math.min(relicCount - 1, AdvancedBotanyAPI.relicList.size() - 1)).copy();
- if(hasRelicAchievement(player, relic)) {
- player.addChatMessage((new ChatComponentTranslation("botaniamisc.dudDiceRoll", new Object[] { Integer.valueOf(relicCount) })).setChatStyle((new ChatStyle()).setColor(EnumChatFormatting.DARK_GREEN)));
- } else {
- ItemRelic.updateRelic(relic, player);
- EntityItem entityItem = new EntityItem(worldObj, xCoord + 0.5f, yCoord + 0.5f, zCoord + 0.5f, relic);
- player.addChatMessage((new ChatComponentTranslation("botaniamisc.diceRoll", new Object[] { Integer.valueOf(relicCount) })).setChatStyle((new ChatStyle()).setColor(EnumChatFormatting.DARK_GREEN)));
- worldObj.spawnEntityInWorld(entityItem);
- }
- requestUpdate = true;
- }
- return true;
- }
-
- private void dropRelic(EntityPlayer player, int slot) {
- EntityItem entityItem = new EntityItem(worldObj, xCoord + 0.5f, yCoord + 0.8f, zCoord + 0.5f, getStackInSlot(slot).copy());
- float f3 = 0.15F;
- Vec3 vec = player.getLookVec();
- entityItem.motionX = vec.xCoord * f3;
- entityItem.motionY = 0.25F;
- entityItem.motionZ = vec.zCoord * f3;
- setInventorySlotContents(slot, null);
- worldObj.spawnEntityInWorld(entityItem);
- }
-
- public static boolean hasRelicAchievement(EntityPlayer player, ItemStack rStack) {
- EntityPlayerMP mpPlayer = (EntityPlayerMP)player;
- IRelic irelic = (IRelic)rStack.getItem();
- if(irelic.getBindAchievement() == null)
- return false;
- return mpPlayer.func_147099_x().hasAchievementUnlocked(irelic.getBindAchievement());
- }
-
- protected boolean hasFreeSlot() {
- for(int i = 0; i < getSizeInventory(); i++)
- if(getStackInSlot(i) == null)
- return true;
- return false;
- }
-
- protected boolean setDiceFate() {
- boolean hasUpdate = false;
- List items = this.worldObj.getEntitiesWithinAABB(EntityItem.class, AxisAlignedBB.getBoundingBox(this.xCoord, this.yCoord, this.zCoord, (this.xCoord + 1), (this.yCoord + 0.7f), (this.zCoord + 1)));
- label666:
- for(EntityItem item : items) {
- if(!item.isDead && item.getEntityItem() != null) {
- ItemStack stack = item.getEntityItem();
- if(!(stack.getItem() instanceof ItemDice))
- continue;
- for(int s = 0; s < getSizeInventory(); s++) {
- ItemStack slotStack = getStackInSlot(s);
- if(slotStack != null)
- continue;
- setInventorySlotContents(s, stack.copy());
- slotChance[s] = (byte)(worldObj.rand.nextInt(6) + 1);
- stack.stackSize--;
- if(stack.stackSize == 0)
- item.setDead();
- hasUpdate = true;
- break label666;
- }
- }
- }
- return hasUpdate;
- }
-
- public void writeCustomNBT(NBTTagCompound cmp) {
- super.writeCustomNBT(cmp);
- cmp.setByteArray("slotChance", slotChance);
- cmp.setBoolean("requestUpdate", requestUpdate);
- }
-
- public void readCustomNBT(NBTTagCompound cmp) {
- super.readCustomNBT(cmp);
- slotChance = cmp.getByteArray("slotChance");
- requestUpdate = cmp.getBoolean("requestUpdate");
- }
-
- public int getInventoryStackLimit() {
- return 1;
- }
-
- public String getInventoryName() {
- return "inv.boardFate";
- }
-
- public int getSizeInventory() {
- return 2;
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/a2/005acb46f9b0001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/a2/005acb46f9b0001c19bf8a91ac37238b
deleted file mode 100644
index 93f0154..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/a2/005acb46f9b0001c19bf8a91ac37238b
+++ /dev/null
@@ -1,85 +0,0 @@
-package ab.client.core.handler;
-
-import java.awt.Color;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.armor.ItemNebulaArmor;
-import ab.common.item.equipment.armor.ItemNebulaHelm;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.ItemRenderer;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.texture.TextureMap;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraftforge.client.event.RenderPlayerEvent;
-import vazkii.botania.api.item.IPhantomInkable;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class PlayerRendererHandler {
-
- @SubscribeEvent
- public void onPlayerRender(RenderPlayerEvent.Specials.Post event) {
- EntityPlayer player = event.entityPlayer;
- ItemStack item = player.getCurrentArmor(3);
- if(item != null && item.getItem() instanceof ItemNebulaHelm) {
- Item helm = player.getCurrentArmor(3).getItem();
- boolean hasPhantomInk = helm instanceof IPhantomInkable && ((IPhantomInkable)helm).hasPhantomInk(item);
- if(!hasPhantomInk && ((ItemNebulaHelm)helm).enableCosmicFace(item)) {
- float angelX = event.renderer.modelBipedMain.bipedHead.rotateAngleX * 180.0F / (float)Math.PI;
- float angelY = event.renderer.modelBipedMain.bipedHead.rotateAngleY * 180.0F / (float)Math.PI;
- GL11.glPushMatrix();
- if(player.isSneaking())
- GL11.glTranslatef(event.renderer.modelBipedMain.bipedHead.rotationPointX * 0.0625f, event.renderer.modelBipedMain.bipedHead.rotationPointY * 0.0625f, 0.0f);
- GL11.glRotatef(angelY, 0.0F, 1.0F, 0.0F);
- GL11.glRotatef(angelX, 1.0F, 0.0F, 0.0F);
- renderCosmicFace();
- GL11.glPopMatrix();
- }
- }
- }
-
- private void renderCosmicFace() {
- double worldTime = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- GL11.glPushMatrix();
- GL11.glEnable(GL11.GL_TEXTURE_2D);
- GL11.glDisable(2912);
- GL11.glDisable(2884);
-
- GL11.glPushMatrix();
- GL11.glScalef(0.5f, 0.4f, 0.4f);
- GL11.glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
- GL11.glTranslatef(-0.5f, -0.8675f, 0.0f);
- GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
- ClientHelper.renderCosmicBackground();
- GL11.glPopMatrix();
-
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- (Minecraft.getMinecraft()).renderEngine.bindTexture(TextureMap.locationItemsTexture);
- GL11.glTranslatef(-0.2F, -0.35F, -0.25F);
- GL11.glScalef(0.4f, 0.4f, 0.4f);
- float f = ItemNebulaArmor.nebulaEyes.getMinU();
- float f1 = ItemNebulaArmor.nebulaEyes.getMaxU();
- float f2 = ItemNebulaArmor.nebulaEyes.getMinV();
- float f3 = ItemNebulaArmor.nebulaEyes.getMaxV();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float r = color.getRed() / 510.0F;
- float g = color.getGreen() / 510.0F;
- float b = color.getBlue() / 510.0F;
- GL11.glColor4f(0.5f + r, 0.5f + g, 0.5f + b, 0.685f + (float)Math.sin(worldTime / 50.0D) * 0.175F);
- ItemRenderer.renderItemIn2D(Tessellator.instance, f1, f2, f, f3, ItemNebulaArmor.nebulaEyes.getIconWidth(), ItemNebulaArmor.nebulaEyes.getIconHeight(), 0.03125F);
- GL11.glDisable(3042);
- GL11.glEnable(2884);
- GL11.glEnable(32826);
- GL11.glPopMatrix();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/a2/1015232f9cc1001c11e398ea97007cb4 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/a2/1015232f9cc1001c11e398ea97007cb4
new file mode 100644
index 0000000..be46133
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/a2/1015232f9cc1001c11e398ea97007cb4
@@ -0,0 +1,210 @@
+package ab.common.item.relic;
+
+import java.awt.Color;
+import java.util.List;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.common.core.handler.NetworkHandler;
+import ab.common.lib.register.ItemListAB;
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
+import net.minecraft.block.Block;
+import net.minecraft.client.renderer.texture.IIconRegister;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.util.EnumChatFormatting;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.MathHelper;
+import net.minecraft.util.StatCollector;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.api.mana.ManaItemHandler;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class ItemSphereNavigation extends ItemModRelic {
+
+ public static IIcon[] icons;
+ public static final int rangeSearch = 16;
+ public static final int maxCooldown = 158;
+ public static final int manaCost = 1750;
+
+ public ItemSphereNavigation() {
+ super("sphereNavigation");
+ }
+
+ public void registerIcons(IIconRegister ir) {
+ icons = new IIcon[5];
+ icons[0] = ir.registerIcon("ab:sphereNavigation");
+ icons[1] = ir.registerIcon("ab:sphereNavigation_hasblock");
+ icons[2] = ir.registerIcon("ab:sphereNavigation_nonBlock");
+ icons[3] = ir.registerIcon("ab:sphereNavigation_off");
+ icons[4] = ir.registerIcon("ab:sphereNavigation_on");
+ }
+
+ @SideOnly(Side.CLIENT)
+ public IIcon getIcon(ItemStack stack, int pass) {
+ return this.icons[pass == 0 ? 0 : (pass == 1 ? 1 : 4)];
+ }
+
+ public boolean requiresMultipleRenderPasses() {
+ return true;
+ }
+
+ public String getItemStackDisplayName(ItemStack stack) {
+ Block block = getFindBlock(stack);
+ int meta = getFindMeta(stack);
+ ItemStack rStack = new ItemStack(block, 1, meta);
+ return super.getItemStackDisplayName(stack) + ((rStack == null || rStack.getItem() == null) ? "" : (EnumChatFormatting.RESET + " (" + EnumChatFormatting.GREEN + rStack.getDisplayName() + EnumChatFormatting.RESET + ")"));
+ }
+
+ @SideOnly(Side.CLIENT)
+ public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean par4) {
+ super.addInformation(stack, player, list, par4);
+ addStringToTooltip(StatCollector.translateToLocal(stack.getItemDamage() == 0 ? "botaniamisc.active" : "botaniamisc.inactive"), list);
+ }
+
+ void addStringToTooltip(String s, List tooltip) {
+ tooltip.add(s.replaceAll("&", "\u00A7"));
+ }
+
+ public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
+ if(getFindBlock(stack) != null && player.isSneaking()) {
+ int dmg = stack.getItemDamage();
+ stack.setItemDamage((dmg ^ 0xFFFFFFFF) & 0x1);
+ world.playSoundAtEntity(player, "random.orb", 0.3F, 0.1F);
+ }
+ return stack;
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int pos, boolean equipped) {
+ super.onUpdate(stack, world, entity, pos, equipped);
+ if(entity instanceof EntityPlayer) {
+ EntityPlayer player = (EntityPlayer)entity;
+ if(!world.isRemote && stack.getItemDamage() == 0 && getFindBlock(stack) != null && canWork(stack) && ManaItemHandler.requestManaExactForTool(stack, player, manaCost, true)) {
+ setMaxTick(stack);
+ NetworkHandler.sendPacketToFindBlocks((EntityPlayerMP)player, getFindBlock(stack), getFindMeta(stack));
+ }
+ }
+ }
+
+ public static void findBlocks(World world, Block findBlock, int findMeta, EntityPlayer player) {
+ if(world.isRemote) {
+ ItemStack renderStack = null;
+ int maxFindedBlocks = 32;
+ int findedBlocks = 0;
+ label1703:
+ for(int y = -rangeSearch * 2; y < rangeSearch; y++) {
+ for(int x = -rangeSearch; x < rangeSearch; x++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks)) || world.rand.nextBoolean())
+ continue;
+ for(int z = -rangeSearch; z < rangeSearch; z++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks)) || world.rand.nextBoolean())
+ continue;
+ else if(findedBlocks >= maxFindedBlocks)
+ break label1703;
+ int posX = MathHelper.floor_double(player.posX) + x;
+ int posY = MathHelper.floor_double(player.posY) + y;
+ int posZ = MathHelper.floor_double(player.posZ) + z;
+ if(posY < 0)
+ continue;
+ Block block = world.getBlock(posX, posY, posZ);
+ if(!Block.isEqualTo(block, findBlock))
+ continue;
+ int meta = world.getBlockMetadata(posX, posY, posZ);
+ if(meta == findMeta) {
+ if(renderStack == null)
+ renderStack = getRenderStackForBlock(world, block, meta, posX, posY, posZ);
+ findedBlocks++;
+ float maxAge = 2.7f + (0.5f * (float)(Math.random()));
+ Botania.proxy.setWispFXDepthTest(false);
+ Botania.proxy.setWispFXDistanceLimit(false);
+ float far = 120.0f - (((Math.abs(x) + Math.min(rangeSearch, Math.abs(y)) + Math.abs(z)) / (rangeSearch * 4.0f)) * 120.0f);
+ if(far <= 70)
+ far *= 0.1f;
+ Color color = new Color(Color.HSBtoRGB(far / 360.0f, 0.9f + (float)(Math.random() * 0.1f), 1.0f));
+ for(int i = 0; i < 11; i++)
+ Botania.proxy.wispFX(world, posX + 0.5f + (Math.random() - 0.5f), posY + 0.5f + (Math.random() - 0.5f), posZ + 0.5f + (Math.random() - 0.5f), color.getRed() / 100.0f, color.getGreen() / 100.0f, color.getBlue() / 100.0f, 0.3f + (float)(Math.random() * 0.25f), 0.0f, maxAge);
+ Botania.proxy.setWispFXDistanceLimit(true);
+ Botania.proxy.setWispFXDepthTest(true);
+ }
+ }
+ }
+ }
+ if(renderStack != null)
+ ItemsRemainingRender.set(renderStack, "íàéäåíî: " + findedBlocks);
+ }
+ }
+
+ public static ItemStack getRenderStackForBlock(World world, Block block, int meta, int x, int y, int z) {
+ if(block != null) {
+ Item item = Item.getItemFromBlock(block);
+ if(item != null) {
+ ItemStack findStack = new ItemStack(block, 1, meta);
+ if(findStack != null)
+ return findStack;
+ } else {
+ Item item1 = block.getItem(world, x, y, z);
+ if(item1 != null) {
+ ItemStack findStack = new ItemStack(item1, 1, meta);
+ if(findStack != null)
+ return findStack;
+ }
+ }
+ }
+ return null;
+ }
+
+ public boolean onItemUse(ItemStack stack, EntityPlayer p, World world, int x, int y, int z, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
+ if(p.isSneaking()) {
+ Block block = world.getBlock(x, y, z);
+ if(block != null) {
+ int meta = world.getBlockMetadata(x, y, z);
+ ItemStack findStack = getRenderStackForBlock(world, block, meta, x, y, z);
+ if(findStack != null) {
+ setFindBlock(stack, block, meta);
+ if(world.isRemote)
+ ItemsRemainingRender.set(findStack, findStack.getDisplayName());
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public boolean canWork(ItemStack stack) {
+ int tick = ItemNBTHelper.getInt(stack, "cooldown", 0);
+ if(tick == 0)
+ return true;
+ else if(tick > 0)
+ ItemNBTHelper.setInt(stack, "cooldown", tick - 1);
+ return false;
+ }
+
+ public void setMaxTick(ItemStack stack) {
+ ItemNBTHelper.setInt(stack, "cooldown", maxCooldown);
+ }
+
+ public static void setFindBlock(ItemStack stack, Block block, int meta) {
+ ItemNBTHelper.setInt(stack, "findBlockID", Block.getIdFromBlock(block));
+ ItemNBTHelper.setInt(stack, "findBlockMeta", meta);
+ }
+
+ public static Block getFindBlock(ItemStack stack) {
+ int blockID = ItemNBTHelper.getInt(stack, "findBlockID", 0);
+ if(blockID == 0)
+ return null;
+ else
+ return Block.getBlockById(blockID);
+ }
+
+ public static int getFindMeta(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "findBlockMeta", -1);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/a2/10d3b1f5a1c1001c1523a6ad96b00e7c b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/a2/10d3b1f5a1c1001c1523a6ad96b00e7c
new file mode 100644
index 0000000..8fd34e8
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/a2/10d3b1f5a1c1001c1523a6ad96b00e7c
@@ -0,0 +1,207 @@
+package ab.common.item.relic;
+
+import java.awt.Color;
+import java.util.List;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.common.core.handler.NetworkHandler;
+import ab.common.lib.register.ItemListAB;
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
+import net.minecraft.block.Block;
+import net.minecraft.client.renderer.texture.IIconRegister;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.util.EnumChatFormatting;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.MathHelper;
+import net.minecraft.util.StatCollector;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.api.mana.ManaItemHandler;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class ItemSphereNavigation extends ItemModRelic {
+
+ public static IIcon[] icons;
+ public static final int rangeSearch = 16;
+ public static final int maxCooldown = 158;
+ public static final int manaCost = 1750;
+
+ public ItemSphereNavigation() {
+ super("sphereNavigation");
+ }
+
+ public void registerIcons(IIconRegister ir) {
+ icons = new IIcon[5];
+ for(int i = 0; i < icons.length; i++)
+ icons[i] = icons[i] = ir.registerIcon("ab:" + "itemAntigravityCharm_" + i);
+ }
+
+ @SideOnly(Side.CLIENT)
+ public IIcon getIcon(ItemStack stack, int pass) {
+ return this.icons[pass == 0 ? 0 : (pass == 1 ? 1 : 4)];
+ }
+
+ public boolean requiresMultipleRenderPasses() {
+ return true;
+ }
+
+ public String getItemStackDisplayName(ItemStack stack) {
+ Block block = getFindBlock(stack);
+ int meta = getFindMeta(stack);
+ ItemStack rStack = new ItemStack(block, 1, meta);
+ return super.getItemStackDisplayName(stack) + ((rStack == null || rStack.getItem() == null) ? "" : (EnumChatFormatting.RESET + " (" + EnumChatFormatting.GREEN + rStack.getDisplayName() + EnumChatFormatting.RESET + ")"));
+ }
+
+ @SideOnly(Side.CLIENT)
+ public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean par4) {
+ super.addInformation(stack, player, list, par4);
+ addStringToTooltip(StatCollector.translateToLocal(stack.getItemDamage() == 0 ? "botaniamisc.active" : "botaniamisc.inactive"), list);
+ }
+
+ void addStringToTooltip(String s, List tooltip) {
+ tooltip.add(s.replaceAll("&", "\u00A7"));
+ }
+
+ public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
+ if(getFindBlock(stack) != null && player.isSneaking()) {
+ int dmg = stack.getItemDamage();
+ stack.setItemDamage((dmg ^ 0xFFFFFFFF) & 0x1);
+ world.playSoundAtEntity(player, "random.orb", 0.3F, 0.1F);
+ }
+ return stack;
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int pos, boolean equipped) {
+ super.onUpdate(stack, world, entity, pos, equipped);
+ if(entity instanceof EntityPlayer) {
+ EntityPlayer player = (EntityPlayer)entity;
+ if(!world.isRemote && stack.getItemDamage() == 0 && getFindBlock(stack) != null && canWork(stack) && ManaItemHandler.requestManaExactForTool(stack, player, manaCost, true)) {
+ setMaxTick(stack);
+ NetworkHandler.sendPacketToFindBlocks((EntityPlayerMP)player, getFindBlock(stack), getFindMeta(stack));
+ }
+ }
+ }
+
+ public static void findBlocks(World world, Block findBlock, int findMeta, EntityPlayer player) {
+ if(world.isRemote) {
+ ItemStack renderStack = null;
+ int maxFindedBlocks = 32;
+ int findedBlocks = 0;
+ label1703:
+ for(int y = -rangeSearch * 2; y < rangeSearch; y++) {
+ for(int x = -rangeSearch; x < rangeSearch; x++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks)) || world.rand.nextBoolean())
+ continue;
+ for(int z = -rangeSearch; z < rangeSearch; z++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks)) || world.rand.nextBoolean())
+ continue;
+ else if(findedBlocks >= maxFindedBlocks)
+ break label1703;
+ int posX = MathHelper.floor_double(player.posX) + x;
+ int posY = MathHelper.floor_double(player.posY) + y;
+ int posZ = MathHelper.floor_double(player.posZ) + z;
+ if(posY < 0)
+ continue;
+ Block block = world.getBlock(posX, posY, posZ);
+ if(!Block.isEqualTo(block, findBlock))
+ continue;
+ int meta = world.getBlockMetadata(posX, posY, posZ);
+ if(meta == findMeta) {
+ if(renderStack == null)
+ renderStack = getRenderStackForBlock(world, block, meta, posX, posY, posZ);
+ findedBlocks++;
+ float maxAge = 2.7f + (0.5f * (float)(Math.random()));
+ Botania.proxy.setWispFXDepthTest(false);
+ Botania.proxy.setWispFXDistanceLimit(false);
+ float far = 120.0f - (((Math.abs(x) + Math.min(rangeSearch, Math.abs(y)) + Math.abs(z)) / (rangeSearch * 4.0f)) * 120.0f);
+ if(far <= 70)
+ far *= 0.1f;
+ Color color = new Color(Color.HSBtoRGB(far / 360.0f, 0.9f + (float)(Math.random() * 0.1f), 1.0f));
+ for(int i = 0; i < 11; i++)
+ Botania.proxy.wispFX(world, posX + 0.5f + (Math.random() - 0.5f), posY + 0.5f + (Math.random() - 0.5f), posZ + 0.5f + (Math.random() - 0.5f), color.getRed() / 100.0f, color.getGreen() / 100.0f, color.getBlue() / 100.0f, 0.3f + (float)(Math.random() * 0.25f), 0.0f, maxAge);
+ Botania.proxy.setWispFXDistanceLimit(true);
+ Botania.proxy.setWispFXDepthTest(true);
+ }
+ }
+ }
+ }
+ if(renderStack != null)
+ ItemsRemainingRender.set(renderStack, StatCollector.translateToLocal("ab.sphereNavigation.founded") + " " + findedBlocks);
+ }
+ }
+
+ public static ItemStack getRenderStackForBlock(World world, Block block, int meta, int x, int y, int z) {
+ if(block != null) {
+ Item item = Item.getItemFromBlock(block);
+ if(item != null) {
+ ItemStack findStack = new ItemStack(block, 1, meta);
+ if(findStack != null)
+ return findStack;
+ } else {
+ Item item1 = block.getItem(world, x, y, z);
+ if(item1 != null) {
+ ItemStack findStack = new ItemStack(item1, 1, meta);
+ if(findStack != null)
+ return findStack;
+ }
+ }
+ }
+ return null;
+ }
+
+ public boolean onItemUse(ItemStack stack, EntityPlayer p, World world, int x, int y, int z, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
+ if(p.isSneaking()) {
+ Block block = world.getBlock(x, y, z);
+ if(block != null) {
+ int meta = world.getBlockMetadata(x, y, z);
+ ItemStack findStack = getRenderStackForBlock(world, block, meta, x, y, z);
+ if(findStack != null) {
+ setFindBlock(stack, block, meta);
+ if(world.isRemote)
+ ItemsRemainingRender.set(findStack, findStack.getDisplayName());
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public boolean canWork(ItemStack stack) {
+ int tick = ItemNBTHelper.getInt(stack, "cooldown", 0);
+ if(tick == 0)
+ return true;
+ else if(tick > 0)
+ ItemNBTHelper.setInt(stack, "cooldown", tick - 1);
+ return false;
+ }
+
+ public void setMaxTick(ItemStack stack) {
+ ItemNBTHelper.setInt(stack, "cooldown", maxCooldown);
+ }
+
+ public static void setFindBlock(ItemStack stack, Block block, int meta) {
+ ItemNBTHelper.setInt(stack, "findBlockID", Block.getIdFromBlock(block));
+ ItemNBTHelper.setInt(stack, "findBlockMeta", meta);
+ }
+
+ public static Block getFindBlock(ItemStack stack) {
+ int blockID = ItemNBTHelper.getInt(stack, "findBlockID", 0);
+ if(blockID == 0)
+ return null;
+ else
+ return Block.getBlockById(blockID);
+ }
+
+ public static int getFindMeta(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "findBlockMeta", -1);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/a2/40eb494de7bc001c1a9f99005529f322 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/a2/40eb494de7bc001c1a9f99005529f322
new file mode 100644
index 0000000..67c7f29
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/a2/40eb494de7bc001c1a9f99005529f322
@@ -0,0 +1,101 @@
+package ab.client.render.tile;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Random;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.client.model.ModelNidavellirForge;
+import ab.common.block.tile.TileNidavellirForge;
+import net.minecraft.client.Minecraft;
+import net.minecraft.client.renderer.OpenGlHelper;
+import net.minecraft.client.renderer.Tessellator;
+import net.minecraft.client.renderer.entity.Render;
+import net.minecraft.client.renderer.entity.RenderManager;
+import net.minecraft.client.renderer.texture.TextureMap;
+import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.ResourceLocation;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.client.core.helper.ShaderHelper;
+import vazkii.botania.common.block.mana.BlockTerraPlate;
+
+public class RenderTileNidavellirForge extends TileEntitySpecialRenderer {
+
+ private List entityList = null;
+ private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/nidavellirForge.png");
+ private static final ModelNidavellirForge model = new ModelNidavellirForge();
+
+ public void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float f) {
+ TileNidavellirForge tile = (TileNidavellirForge)tileentity;
+ double worldTime = 0.0D;
+ int meta = 2;
+ float invRender = 0.0f;
+ if(tileentity != null && tileentity.getWorldObj() != null) {
+ worldTime = ClientTickHandler.ticksInGame + f + (new Random((tileentity.xCoord ^ tileentity.yCoord ^ tileentity.zCoord))).nextInt(360);
+ meta = tileentity.getWorldObj().getBlockMetadata(tileentity.xCoord, tileentity.yCoord, tileentity.zCoord);
+ } else
+ invRender = 0.2f;
+ float indetY = (float)(Math.sin(worldTime / 18.0D) / 24.0D);
+ GL11.glPushMatrix();
+ GL11.glEnable(32826);
+ GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
+ GL11.glTranslated(x - invRender, y, z);
+ GL11.glTranslatef(0.5f, 1.5f, 0.5f);
+ GL11.glRotatef(180.0f, 1.0f, 0.0f, 1.0f);
+ GL11.glRotatef(90.0f * meta, 0.0f, 1.0f, 0.0f);
+ Minecraft.getMinecraft().renderEngine.bindTexture(texture);
+ model.renderBottom();
+ GL11.glTranslatef(0.0f, indetY, 0.0f);
+ model.renderTop();
+ GL11.glEnable(32826);
+ GL11.glPopMatrix();
+ if(entityList == null) {
+ List list = new ArrayList();
+ for(int i = 0; i < tile.getSizeInventory(); i++) {
+ list.add(new EntityItem(tile.getWorldObj(), tile.xCoord, tile.yCoord, tile.zCoord));
+ }
+ entityList = list;
+ }
+ GL11.glPushMatrix();
+ GL11.glTranslated(x + 0.5f, y + 0.675f - indetY, z + 0.5f);
+ GL11.glScalef(0.2F, 0.225F, 0.225F);
+ for(int i = 1; i < entityList.size(); i++) {
+ GL11.glPushMatrix();
+ ItemStack stack = tile.getStackInSlot(i);
+ if(stack != null) {
+ switch(i) {
+ case 1:
+ GL11.glTranslated(0.15f, 0.0f, 0.0f);
+ break;
+ case 2:
+ GL11.glTranslated(-0.15f, 0.0f, -0.15f);
+ break;
+ case 3:
+ GL11.glTranslated(-0.15f, 0.0f, 0.15f);
+ break;
+ }
+ entityList.get(i).setEntityItemStack(stack);
+ entityList.get(i).age = ClientTickHandler.ticksInGame;
+ ((Render)RenderManager.instance.entityRenderMap.get(EntityItem.class)).doRender((Entity)entityList.get(i), 0.0D, 0.0D, 0.0D, 1.0F, f);
+ }
+ GL11.glPopMatrix();
+ }
+ GL11.glPopMatrix();
+ if(tile.getStackInSlot(0) != null) {
+ GL11.glPushMatrix();
+ GL11.glTranslated(x + 0.5, y + 0.915f - indetY, z + 0.5);
+ GL11.glScalef(0.45f, 0.45f, 0.45f);
+ entityList.get(0).setEntityItemStack(tile.getStackInSlot(0));
+ entityList.get(0).age = ClientTickHandler.ticksInGame;
+ ((Render)RenderManager.instance.entityRenderMap.get(EntityItem.class)).doRender((Entity)entityList.get(0), 0.0D, 0.0D, 0.0D, 1.0F, f);
+ GL11.glPopMatrix();
+ }
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/a2/b0d9fecdf5b0001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/a2/b0d9fecdf5b0001c19bf8a91ac37238b
deleted file mode 100644
index 8041ba6..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/a2/b0d9fecdf5b0001c19bf8a91ac37238b
+++ /dev/null
@@ -1,85 +0,0 @@
-package ab.client.core.handler;
-
-import java.awt.Color;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.armor.ItemNebulaArmor;
-import ab.common.item.equipment.armor.ItemNebulaHelm;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.ItemRenderer;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.texture.TextureMap;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraftforge.client.event.RenderPlayerEvent;
-import vazkii.botania.api.item.IPhantomInkable;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class PlayerRendererHandler {
-
- @SubscribeEvent
- public void onPlayerRender(RenderPlayerEvent.Specials.Post event) {
- EntityPlayer player = event.entityPlayer;
- ItemStack item = player.getCurrentArmor(3);
- if(item != null && item.getItem() instanceof ItemNebulaHelm) {
- Item helm = player.getCurrentArmor(3).getItem();
- boolean hasPhantomInk = helm instanceof IPhantomInkable && ((IPhantomInkable)helm).hasPhantomInk(item);
- if(!hasPhantomInk && ((ItemNebulaHelm)helm).enableCosmicFace(item)) {
- float angelX = event.renderer.modelBipedMain.bipedHead.rotateAngleX * 180.0F / (float)Math.PI;
- float angelY = event.renderer.modelBipedMain.bipedHead.rotateAngleY * 180.0F / (float)Math.PI;
- GL11.glPushMatrix();
- if(player.isSneaking())
- GL11.glTranslatef(event.renderer.modelBipedMain.bipedHead.rotationPointX * 0.0625f, event.renderer.modelBipedMain.bipedHead.rotationPointY * 0.0625f, 0.0f);
- GL11.glRotatef(angelY, 0.0F, 1.0F, 0.0F);
- GL11.glRotatef(angelX, 1.0F, 0.0F, 0.0F);
- renderCosmicFace();
- GL11.glPopMatrix();
- }
- }
- }
-
- private void renderCosmicFace() {
- double worldTime = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- GL11.glPushMatrix();
- GL11.glEnable(GL11.GL_TEXTURE_2D);
- // GL11.glDisable(2912);
- // GL11.glDisable(2884);
-
- GL11.glPushMatrix();
- GL11.glScalef(0.5f, 0.4f, 0.4f);
- GL11.glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
- GL11.glTranslatef(-0.5f, -0.8675f, 0.0f);
- GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
- ClientHelper.renderCosmicBackground();
- GL11.glPopMatrix();
-
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- (Minecraft.getMinecraft()).renderEngine.bindTexture(TextureMap.locationItemsTexture);
- GL11.glTranslatef(-0.2F, -0.35F, -0.25F);
- GL11.glScalef(0.4f, 0.4f, 0.4f);
- float f = ItemNebulaArmor.nebulaEyes.getMinU();
- float f1 = ItemNebulaArmor.nebulaEyes.getMaxU();
- float f2 = ItemNebulaArmor.nebulaEyes.getMinV();
- float f3 = ItemNebulaArmor.nebulaEyes.getMaxV();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float r = color.getRed() / 510.0F;
- float g = color.getGreen() / 510.0F;
- float b = color.getBlue() / 510.0F;
- GL11.glColor4f(0.5f + r, 0.5f + g, 0.5f + b, 0.685f + (float)Math.sin(worldTime / 50.0D) * 0.175F);
- ItemRenderer.renderItemIn2D(Tessellator.instance, f1, f2, f, f3, ItemNebulaArmor.nebulaEyes.getIconWidth(), ItemNebulaArmor.nebulaEyes.getIconHeight(), 0.03125F);
- GL11.glDisable(3042);
- GL11.glEnable(2884);
- GL11.glEnable(32826);
- GL11.glPopMatrix();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/a2/d0af4cb2b7bc001c1a9f99005529f322 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/a2/d0af4cb2b7bc001c1a9f99005529f322
new file mode 100644
index 0000000..de6e5fd
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/a2/d0af4cb2b7bc001c1a9f99005529f322
@@ -0,0 +1,109 @@
+package ab.client.render.tile;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Random;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.client.model.ModelNidavellirForge;
+import ab.common.block.tile.TileNidavellirForge;
+import net.minecraft.client.Minecraft;
+import net.minecraft.client.renderer.OpenGlHelper;
+import net.minecraft.client.renderer.Tessellator;
+import net.minecraft.client.renderer.entity.Render;
+import net.minecraft.client.renderer.entity.RenderManager;
+import net.minecraft.client.renderer.texture.TextureMap;
+import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.ResourceLocation;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.client.core.helper.ShaderHelper;
+import vazkii.botania.common.block.mana.BlockTerraPlate;
+
+public class RenderTileNidavellirForge extends TileEntitySpecialRenderer {
+
+ private List entityList = null;
+ private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/nidavellirForge.png");
+ private static final ModelNidavellirForge model = new ModelNidavellirForge();
+
+ public void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float f) {
+ TileNidavellirForge tile = (TileNidavellirForge)tileentity;
+ double worldTime = 0.0D;
+ int meta = 0;
+ if(tileentity != null && tileentity.getWorldObj() != null) {
+ worldTime = ClientTickHandler.ticksInGame + f + (new Random((tileentity.xCoord ^ tileentity.yCoord ^ tileentity.zCoord))).nextInt(360);
+ meta = tileentity.getWorldObj().getBlockMetadata(tileentity.xCoord, tileentity.yCoord, tileentity.zCoord);
+ }
+ float indetY = (float)(Math.sin(worldTime / 18.0D) / 24.0D);
+ GL11.glPushMatrix();
+ GL11.glEnable(32826);
+ GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
+ GL11.glTranslated(x, y, z);
+ GL11.glTranslatef(0.5f, 1.5f, 0.5f);
+ GL11.glRotatef(180.0f, 1.0f, 0.0f, 1.0f);
+ float angelForSide = 0.0f;
+ System.out.println(meta);
+ switch(meta) {
+ case 1: angelForSide = 180.0f;
+ break;
+ case 2: angelForSide = 270.0f;
+ break;
+ case 3: angelForSide = 270.0f;
+ break;
+ }
+ GL11.glRotatef(angelForSide, 0.0f, 1.0f, 0.0f);
+ Minecraft.getMinecraft().renderEngine.bindTexture(texture);
+ model.renderBottom();
+ GL11.glTranslatef(0.0f, indetY, 0.0f);
+ model.renderTop();
+ GL11.glEnable(32826);
+ GL11.glPopMatrix();
+ if(entityList == null) {
+ List list = new ArrayList();
+ for(int i = 0; i < tile.getSizeInventory(); i++) {
+ list.add(new EntityItem(tile.getWorldObj(), tile.xCoord, tile.yCoord, tile.zCoord));
+ }
+ entityList = list;
+ }
+ GL11.glPushMatrix();
+ GL11.glTranslated(x + 0.5f, y + 0.675f - indetY, z + 0.5f);
+ GL11.glScalef(0.2F, 0.225F, 0.225F);
+ for(int i = 1; i < entityList.size(); i++) {
+ GL11.glPushMatrix();
+ ItemStack stack = tile.getStackInSlot(i);
+ if(stack != null) {
+ switch(i) {
+ case 1:
+ GL11.glTranslated(0.15f, 0.0f, 0.0f);
+ break;
+ case 2:
+ GL11.glTranslated(-0.15f, 0.0f, -0.15f);
+ break;
+ case 3:
+ GL11.glTranslated(-0.15f, 0.0f, 0.15f);
+ break;
+ }
+ entityList.get(i).setEntityItemStack(stack);
+ entityList.get(i).age = ClientTickHandler.ticksInGame;
+ ((Render)RenderManager.instance.entityRenderMap.get(EntityItem.class)).doRender((Entity)entityList.get(i), 0.0D, 0.0D, 0.0D, 1.0F, f);
+ }
+ GL11.glPopMatrix();
+ }
+ GL11.glPopMatrix();
+ if(tile.getStackInSlot(0) != null) {
+ GL11.glPushMatrix();
+ GL11.glTranslated(x + 0.5, y + 0.915f - indetY, z + 0.5);
+ GL11.glScalef(0.45f, 0.45f, 0.45f);
+ entityList.get(0).setEntityItemStack(tile.getStackInSlot(0));
+ entityList.get(0).age = ClientTickHandler.ticksInGame;
+ ((Render)RenderManager.instance.entityRenderMap.get(EntityItem.class)).doRender((Entity)entityList.get(0), 0.0D, 0.0D, 0.0D, 1.0F, f);
+ GL11.glPopMatrix();
+ }
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/a2/e034f150dfad001c1bd4eaa9a9be6b81 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/a2/e034f150dfad001c1bd4eaa9a9be6b81
deleted file mode 100644
index 96f176d..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/a2/e034f150dfad001c1bd4eaa9a9be6b81
+++ /dev/null
@@ -1,27 +0,0 @@
-package ab.common.lib.register;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import ab.api.AchievementAB;
-import ab.api.AdvancedBotanyAPI;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.stats.Achievement;
-import net.minecraftforge.common.AchievementPage;
-import vazkii.botania.common.item.ModItems;
-
-public class AchievementRegister {
-
- public static Achievement relicSlingshot;
- public static Achievement relicPocketArmor;
- public static Achievement relicItemChest;
-
- public static void init() {
- relicSlingshot = new AchievementAB("relicSlingshot", 1, 0, ItemListAB.itemFreyrSlingshot, null);
- relicPocketArmor = new AchievementAB("relicPocketArmor", 0, 1, ItemListAB.itemPocketWardrobe, null);
- relicItemChest = new AchievementAB("relicItemChest", 1, 1, ItemListAB.itemTalismanHiddenRiches, null);
- AchievementPage page = new AchievementPage("Advanced Botany", AdvancedBotanyAPI.achievements.toArray(new Achievement[AdvancedBotanyAPI.achievements.size()]));
- AchievementPage.registerAchievementPage(page);
- }
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/a4/10d76cc3deac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/a4/10d76cc3deac001c1d59e42be7477558
deleted file mode 100644
index 72e6286..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/a4/10d76cc3deac001c1d59e42be7477558
+++ /dev/null
@@ -1,90 +0,0 @@
-package ab.client.render.tile;
-
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.model.ModelDiceFate;
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.ResourceLocation;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class RenderTileGameBoard extends TileEntitySpecialRenderer {
-
- private static final ModelDiceFate model = new ModelDiceFate();
- private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/gameDice.png");
- private static final ResourceLocation textureEnemy = new ResourceLocation("ab:textures/model/gameDice_enemy.png");
-
- public void renderTileEntityAt(TileEntity tile, double x, double y, double z, float ticks) {
- double time = (tile.getWorldObj() == null) ? 0.0D : (ClientTickHandler.ticksInGame + ticks);
- if(tile != null)
- time += (new Random((tile.xCoord ^ tile.yCoord ^ tile.zCoord))).nextInt(360);
- TileGameBoard board = (TileGameBoard)tile;
- GL11.glEnable(3042);
- GL11.glEnable(32826);
- for(int i = 0; i < board.slotChance.length; i++) {
- if(board.slotChance[i] == 0)
- continue;
- time += i * 65;
- GL11.glPushMatrix();
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- float posX = 0.0f;
- float posY = 0.0f;
- float dropAnim = (1.0f - (Math.min(100.0f, board.clientTick[i] * board.clientTick[i] * 1.125f) / 100.0f));
- dropAnim = Math.min(1.0f, Math.max(dropAnim, 0));
- GL11.glColor4f(1.0F, 1.0F, 1.0F, Math.min(1.0f - (dropAnim * 0.25f), 0.0f));
- switch(i) {
- case 0:
- posX = 0.16f + 0.08f * dropAnim;
- posY = 0.16f + 0.08f * dropAnim;
- break;
- case 1:
- posX = -0.16f - 0.08f * dropAnim;
- posY = 0.16f + 0.08f * dropAnim;
- break;
- case 2:
- posX = 0.16f + 0.08f * dropAnim;
- posY = -0.16f - 0.08f * dropAnim;
- break;
- case 3:
- posX = -0.16f - 0.08f * dropAnim;
- posY = -0.16f - 0.08f * dropAnim;
- break;
- }
- GL11.glTranslated(x, y, z);
- GL11.glTranslated(0.5f + posX, 0.02f + Math.sin(time / 12.0D) / 48.0D + (0.28f * dropAnim), 0.5f + posY);
- GL11.glScalef(0.25f, 0.25f, 0.25f);
- Minecraft.getMinecraft().renderEngine.bindTexture(i > 1 ? textureEnemy : texture);
- float dropAngel = 70.0f * dropAnim;
- switch(board.slotChance[i]) {
- case 1:
- model.render(180.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 2:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 3:
- model.render(90.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 4:
- model.render(270.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 5:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 270.0f);
- break;
- case 6:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 90.0f);
- break;
- default:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- }
- GL11.glPopMatrix();
- }
- GL11.glEnable(32826);
- GL11.glDisable(3042);
- }
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/a4/40f35f7c91b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/a4/40f35f7c91b1001c19bf8a91ac37238b
deleted file mode 100644
index 7aa1582..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/a4/40f35f7c91b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,84 +0,0 @@
-package ab.client.core.handler;
-
-import java.awt.Color;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.armor.ItemNebulaArmor;
-import ab.common.item.equipment.armor.ItemNebulaHelm;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.ItemRenderer;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.texture.TextureMap;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraftforge.client.event.RenderPlayerEvent;
-import vazkii.botania.api.item.IPhantomInkable;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class PlayerRendererHandler {
-
- @SubscribeEvent
- public void onPlayerRender(RenderPlayerEvent.Specials.Post event) {
- EntityPlayer player = event.entityPlayer;
- ItemStack item = player.getCurrentArmor(3);
- if(item != null && item.getItem() instanceof ItemNebulaHelm) {
- Item helm = player.getCurrentArmor(3).getItem();
- boolean hasPhantomInk = helm instanceof IPhantomInkable && ((IPhantomInkable)helm).hasPhantomInk(item);
- if(!hasPhantomInk && ((ItemNebulaHelm)helm).enableCosmicFace(item)) {
- float angelX = event.renderer.modelBipedMain.bipedHead.rotateAngleX * 180.0F / (float)Math.PI;
- float angelY = event.renderer.modelBipedMain.bipedHead.rotateAngleY * 180.0F / (float)Math.PI;
- GL11.glPushMatrix();
- if(player.isSneaking())
- GL11.glTranslatef(event.renderer.modelBipedMain.bipedHead.rotationPointX * 0.0625f, event.renderer.modelBipedMain.bipedHead.rotationPointY * 0.0625f, 0.0f);
- GL11.glRotatef(angelY, 0.0F, 1.0F, 0.0F);
- GL11.glRotatef(angelX, 1.0F, 0.0F, 0.0F);
- renderCosmicFace();
- GL11.glPopMatrix();
- }
- }
- }
-
- private void renderCosmicFace() {
- double worldTime = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- GL11.glPushMatrix();
- GL11.glEnable(GL11.GL_TEXTURE_2D);
-// GL11.glDisable(2912);
- GL11.glDisable(2884);
-
- GL11.glPushMatrix();
- GL11.glScalef(0.5f, 0.4f, 0.4f);
- GL11.glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
- GL11.glTranslatef(-0.5f, -0.8675f, 0.0f);
- GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
- ClientHelper.renderCosmicBackground();
- GL11.glPopMatrix();
-
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- (Minecraft.getMinecraft()).renderEngine.bindTexture(TextureMap.locationItemsTexture);
- GL11.glTranslatef(-0.2F, -0.35F, -0.25F);
- GL11.glScalef(0.4f, 0.4f, 0.4f);
- float f = ItemNebulaArmor.nebulaEyes.getMinU();
- float f1 = ItemNebulaArmor.nebulaEyes.getMaxU();
- float f2 = ItemNebulaArmor.nebulaEyes.getMinV();
- float f3 = ItemNebulaArmor.nebulaEyes.getMaxV();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float r = color.getRed() / 510.0F;
- float g = color.getGreen() / 510.0F;
- float b = color.getBlue() / 510.0F;
- GL11.glColor4f(0.5f + r, 0.5f + g, 0.5f + b, 0.685f + (float)Math.sin(worldTime / 50.0D) * 0.175F);
- ItemRenderer.renderItemIn2D(Tessellator.instance, f1, f2, f, f3, ItemNebulaArmor.nebulaEyes.getIconWidth(), ItemNebulaArmor.nebulaEyes.getIconHeight(), 0.03125F);
- GL11.glDisable(3042);
- GL11.glEnable(32826);
- GL11.glPopMatrix();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/a5/404e646e37b0001c1746c57a5fe46fd3 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/a5/404e646e37b0001c1746c57a5fe46fd3
deleted file mode 100644
index e649cb0..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/a5/404e646e37b0001c1746c57a5fe46fd3
+++ /dev/null
@@ -1,53 +0,0 @@
-package ab.common.item.relic;
-
-import java.lang.reflect.InvocationTargetException;
-import java.util.List;
-
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import cpw.mods.fml.relauncher.ReflectionHelper;
-import net.minecraft.entity.EntityLivingBase;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.item.ItemStack;
-import net.minecraft.world.World;
-import net.minecraftforge.common.MinecraftForge;
-import net.minecraftforge.event.entity.living.LivingDropsEvent;
-
-public class ItemSehrimnirHide extends ItemModRelic {
-
- public static final String[] dropFewItems = new String[] { "dropFewItems", "func_70628_a" };
-
- public ItemSehrimnirHide() {
- super("sehrimnirHide");
- MinecraftForge.EVENT_BUS.register(this);
- }
-
- @SubscribeEvent
- public void onPlayerAttack(LivingDropsEvent event) {
-
-// .invoke(event.entityLiving, new Object[] {true, 5});
-
-
-
- EntityLivingBase liv = event.entityLiving;
- try {
- ReflectionHelper.findMethod(EntityLivingBase.class, liv, dropFewItems, new Class[2]).invoke(liv, new Object[] {true, 5});
- } catch (Exception e) {
- e.printStackTrace();
- }
-
-
-// List items = event.drops;
-// World world = event.entityLiving.worldObj;
-// double posX = event.entityLiving.posX;
-// double posY = event.entityLiving.posY;
-// double posZ = event.entityLiving.posZ;
-// for(EntityItem entity : items) {
-// if(!world.isRemote) {
-// ItemStack loot = entity.getEntityItem().copy();
-// loot.stackSize = Math.max(1, (int)(loot.stackSize / 1.5f));
-// EntityItem item = new EntityItem(world, posX, posY, posZ, loot);
-// world.spawnEntityInWorld(item);
-// }
-// }
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/a5/50640c41f5b0001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/a5/50640c41f5b0001c19bf8a91ac37238b
deleted file mode 100644
index 896fd37..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/a5/50640c41f5b0001c19bf8a91ac37238b
+++ /dev/null
@@ -1,85 +0,0 @@
-package ab.client.core.handler;
-
-import java.awt.Color;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.armor.ItemNebulaArmor;
-import ab.common.item.equipment.armor.ItemNebulaHelm;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.ItemRenderer;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.texture.TextureMap;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraftforge.client.event.RenderPlayerEvent;
-import vazkii.botania.api.item.IPhantomInkable;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class PlayerRendererHandler {
-
- @SubscribeEvent
- public void onPlayerRender(RenderPlayerEvent.Specials.Post event) {
- EntityPlayer player = event.entityPlayer;
- ItemStack item = player.getCurrentArmor(3);
- if(item != null && item.getItem() instanceof ItemNebulaHelm) {
- Item helm = player.getCurrentArmor(3).getItem();
- boolean hasPhantomInk = helm instanceof IPhantomInkable && ((IPhantomInkable)helm).hasPhantomInk(item);
- if(!hasPhantomInk && ((ItemNebulaHelm)helm).enableCosmicFace(item)) {
- float angelX = event.renderer.modelBipedMain.bipedHead.rotateAngleX * 180.0F / (float)Math.PI;
- float angelY = event.renderer.modelBipedMain.bipedHead.rotateAngleY * 180.0F / (float)Math.PI;
- GL11.glPushMatrix();
- if(player.isSneaking())
- GL11.glTranslatef(event.renderer.modelBipedMain.bipedHead.rotationPointX * 0.0625f, event.renderer.modelBipedMain.bipedHead.rotationPointY * 0.0625f, 0.0f);
- GL11.glRotatef(angelY, 0.0F, 1.0F, 0.0F);
- GL11.glRotatef(angelX, 1.0F, 0.0F, 0.0F);
- renderCosmicFace();
- GL11.glPopMatrix();
- }
- }
- }
-
- private void renderCosmicFace() {
- double worldTime = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- GL11.glPushMatrix();
- GL11.glEnable(GL11.GL_TEXTURE_2D);
-// GL11.glDisable(2912);
-// GL11.glDisable(2884);
-
- GL11.glPushMatrix();
- GL11.glScalef(0.5f, 0.4f, 0.4f);
- GL11.glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
- GL11.glTranslatef(-0.5f, -0.8675f, 0.0f);
- GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
- ClientHelper.renderCosmicBackground();
- GL11.glPopMatrix();
-
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- (Minecraft.getMinecraft()).renderEngine.bindTexture(TextureMap.locationItemsTexture);
- GL11.glTranslatef(-0.2F, -0.35F, -0.25F);
- GL11.glScalef(0.4f, 0.4f, 0.4f);
- float f = ItemNebulaArmor.nebulaEyes.getMinU();
- float f1 = ItemNebulaArmor.nebulaEyes.getMaxU();
- float f2 = ItemNebulaArmor.nebulaEyes.getMinV();
- float f3 = ItemNebulaArmor.nebulaEyes.getMaxV();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float r = color.getRed() / 510.0F;
- float g = color.getGreen() / 510.0F;
- float b = color.getBlue() / 510.0F;
- GL11.glColor4f(0.5f + r, 0.5f + g, 0.5f + b, 0.685f + (float)Math.sin(worldTime / 50.0D) * 0.175F);
- ItemRenderer.renderItemIn2D(Tessellator.instance, f1, f2, f, f3, ItemNebulaArmor.nebulaEyes.getIconWidth(), ItemNebulaArmor.nebulaEyes.getIconHeight(), 0.03125F);
- GL11.glDisable(3042);
- GL11.glEnable(2884);
- GL11.glEnable(32826);
- GL11.glPopMatrix();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/a6/f0be9a4c43b0001c1746c57a5fe46fd3 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/a6/f0be9a4c43b0001c1746c57a5fe46fd3
deleted file mode 100644
index 3c15de4..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/a6/f0be9a4c43b0001c1746c57a5fe46fd3
+++ /dev/null
@@ -1,47 +0,0 @@
-package ab.common.item.relic;
-
-import java.lang.reflect.InvocationTargetException;
-import java.util.List;
-
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import cpw.mods.fml.relauncher.ReflectionHelper;
-import net.minecraft.entity.EntityLivingBase;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.ItemStack;
-import net.minecraft.world.World;
-import net.minecraftforge.common.MinecraftForge;
-import net.minecraftforge.event.entity.living.LivingDropsEvent;
-
-public class ItemSehrimnirHide extends ItemModRelic {
-
- public static final String[] dropFewItems = new String[] { "dropFewItems", "func_70628_a" };
-
- public ItemSehrimnirHide() {
- super("sehrimnirHide");
- MinecraftForge.EVENT_BUS.register(this);
- }
-
- @SubscribeEvent
- public void onPlayerAttack(LivingDropsEvent event) {
- if(event != null && event.source != null && event.source.getSourceOfDamage() instanceof EntityPlayer) {
- EntityPlayer player = (EntityPlayer)event.source.getSourceOfDamage();
- if(player.inventory.hasItem(this)) {
- if(event.entityLiving != null && event.drops != null) {
- List items = event.drops;
- World world = event.entityLiving.worldObj;
- double posX = event.entityLiving.posX;
- double posY = event.entityLiving.posY;
- double posZ = event.entityLiving.posZ;
- if(!world.isRemote && world.rand.nextInt(100) < 20) {
- for(EntityItem entity : items) {
- ItemStack loot = entity.getEntityItem().copy();
- EntityItem item = new EntityItem(world, posX, posY, posZ, loot);
- world.spawnEntityInWorld(item);
- }
- }
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/a7/804c7ca184b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/a7/804c7ca184b1001c19bf8a91ac37238b
deleted file mode 100644
index 74658d9..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/a7/804c7ca184b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,76 +0,0 @@
-package ab.common.item.equipment.armor;
-
-import java.util.List;
-import java.util.UUID;
-
-import com.google.common.collect.HashMultimap;
-import com.google.common.collect.Multimap;
-
-import net.minecraft.entity.SharedMonsterAttributes;
-import net.minecraft.entity.ai.attributes.AttributeModifier;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.EnumChatFormatting;
-import net.minecraft.util.StatCollector;
-import net.minecraft.world.World;
-import vazkii.botania.api.mana.IManaDiscountArmor;
-import vazkii.botania.api.mana.IManaGivingItem;
-import vazkii.botania.api.mana.ManaItemHandler;
-import vazkii.botania.common.core.helper.ItemNBTHelper;
-
-public class ItemNebulaHelm extends ItemNebulaArmor implements IManaDiscountArmor, IManaGivingItem {
-
- private static final String TAG_COSMIC_FACE = "enableCosmicFace";
-
- public ItemNebulaHelm() {
- this("nebulaHelm");
- }
-
- public ItemNebulaHelm(String str) {
- super(0, str);
- }
-
- public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
- if(player.isSneaking())
- setCosmicFace(stack, !enableCosmicFace(stack));
- else
- super.onItemRightClick(stack, world, player);
- return stack;
- }
-
- public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean adv) {
- super.addInformation(stack, player, list, adv);
- if(!enableCosmicFace(stack))
- addStringToTooltip(EnumChatFormatting.GREEN + StatCollector.translateToLocal("ab.nebulaHelm.mask"), list);
- }
-
- public boolean enableCosmicFace(ItemStack stack) {
- return ItemNBTHelper.getBoolean(stack, TAG_COSMIC_FACE, true);
- }
-
- public void setCosmicFace(ItemStack stack, boolean enable) {
- ItemNBTHelper.setBoolean(stack, TAG_COSMIC_FACE, enable);
- }
-
- public void onArmorTick(World world, EntityPlayer player, ItemStack stack) {
- super.onArmorTick(world, player, stack);
- if(hasArmorSet(player)) {
- int food = player.getFoodStats().getFoodLevel();
- if(food > 0 && food < 18 && player.shouldHeal() && player.ticksExisted % 80 == 0)
- player.heal(1.0F);
- System.out.println("sd");
- ManaItemHandler.dispatchManaExact(stack, player, 5, true);
- }
- }
-
- public float getDiscount(ItemStack stack, int slot, EntityPlayer player) {
- return hasArmorSet(player) ? 0.30F : 0.0F;
- }
-
- public Multimap getAttributeModifiers(ItemStack stack) {
- HashMultimap hashMultimap = HashMultimap.create();
- UUID uuid = new UUID(getUnlocalizedName().hashCode(), 0L);
- hashMultimap.put(SharedMonsterAttributes.maxHealth.getAttributeUnlocalizedName(), new AttributeModifier(uuid, "NebulaHelm modifier", 20.0D * (1.0f - (this.getDamage(stack) / 1000.0f)), 0));
- return (Multimap)hashMultimap;
- }
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/a7/c06dda92fbac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/a7/c06dda92fbac001c1d59e42be7477558
deleted file mode 100644
index 2bfb186..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/a7/c06dda92fbac001c1d59e42be7477558
+++ /dev/null
@@ -1,96 +0,0 @@
-package ab.client.render.tile;
-
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.model.ModelDiceFate;
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.entity.RenderManager;
-import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.ResourceLocation;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class RenderTileGameBoard extends TileEntitySpecialRenderer {
-
- private static final ModelDiceFate model = new ModelDiceFate();
- private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/gameDice.png");
- private static final ResourceLocation textureEnemy = new ResourceLocation("ab:textures/model/gameDice_enemy.png");
-
- public void renderTileEntityAt(TileEntity tile, double x, double y, double z, float ticks) {
- double time = (tile.getWorldObj() == null) ? 0.0D : (ClientTickHandler.ticksInGame + ticks);
- if(tile != null)
- time += (new Random((tile.xCoord ^ tile.yCoord ^ tile.zCoord))).nextInt(360);
- TileGameBoard board = (TileGameBoard)tile;
- GL11.glEnable(3042);
- GL11.glEnable(32826);
- GL11.glBlendFunc(770, 771);
- GL11.glPushMatrix();
- GL11.glTranslated(x + 1.0f, y, z + 1.0f);
- GL11.glRotatef(180.0f - RenderManager.instance.playerViewY, 0.0f, 1.0f, 0.0f);
- for(int i = 0; i < board.slotChance.length; i++) {
- if(board.slotChance[i] == 0)
- continue;
- time += i * 65;
- GL11.glPushMatrix();
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- float posX = 0.0f;
- float posY = 0.0f;
- float dropAnim = (1.0f - (Math.min(100.0f, (board.clientTick[i] * board.clientTick[i] * 1.25f) + ticks) / 100.0f));
- dropAnim = Math.min(1.0f, Math.max(dropAnim, 0));
- float alpha = (float)Math.cos(dropAnim);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, alpha);
- switch(i) {
- case 0:
- posX = 0.16f + 0.08f * dropAnim;
- posY = 0.16f + 0.08f * dropAnim;
- break;
- case 1:
- posX = -0.16f - 0.08f * dropAnim;
- posY = 0.16f + 0.08f * dropAnim;
- break;
- case 2:
- posX = 0.16f + 0.08f * dropAnim;
- posY = -0.16f - 0.08f * dropAnim;
- break;
- case 3:
- posX = -0.16f - 0.08f * dropAnim;
- posY = -0.16f - 0.08f * dropAnim;
- break;
- }
- GL11.glTranslated(0.5f + posX, 0.02f + Math.sin(time / 12.0D) / 48.0D + (0.28f * dropAnim), 0.5f + posY);
- GL11.glScalef(0.25f, 0.25f, 0.25f);
- Minecraft.getMinecraft().renderEngine.bindTexture(i > 1 ? textureEnemy : texture);
- float dropAngel = 70.0f * dropAnim;
- switch(board.slotChance[i]) {
- case 1:
- model.render(180.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 2:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 3:
- model.render(90.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 4:
- model.render(270.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 5:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 270.0f);
- break;
- case 6:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 90.0f);
- break;
- default:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- }
- GL11.glPopMatrix();
- }
- GL11.glPopMatrix();
- GL11.glEnable(32826);
- GL11.glDisable(3042);
- }
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/a7/d031f8d4e0ac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/a7/d031f8d4e0ac001c1d59e42be7477558
deleted file mode 100644
index 1071750..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/a7/d031f8d4e0ac001c1d59e42be7477558
+++ /dev/null
@@ -1,165 +0,0 @@
-package ab.common.block.tile;
-
-import java.util.List;
-
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.ChatComponentTranslation;
-import net.minecraft.util.ChatStyle;
-import net.minecraft.util.EnumChatFormatting;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-
-public class TileGameBoard extends TileInventory {
-
- protected String[] playersName = new String[] { "", "" };
- public byte[] slotChance = new byte[] { 0, 0, 0, 0 };
- protected int botTick = -1;
- public int endGameTick = -1;
- protected boolean requestUpdate;
- public boolean isSingleGame = true;
- public int clientTick[] = new int[] { 0, 0, 0, 0};
-
- public void updateEntity() {
- if(botTick > 0)
- botTick--;
- if(endGameTick > 0)
- endGameTick--;
- if(!worldObj.isRemote)
- updateServer();
- else
- updateClient();
- }
-
- protected void updateClient() {
- for(int i = 0; i < slotChance.length; i++)
- if(slotChance[i] > 0)
- clientTick[i]++;
- else
- clientTick[i] = 0;
- }
-
- protected void updateServer() {
- if(requestUpdate)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- boolean hasUpdate = false;
- if(isSingleGame && botTick == 0 && hasGame()) {
- for(int i = 2; i < 4; i++) {
- if(slotChance[i] == 0) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = -1;
- hasUpdate = true;
- break;
- }
- }
- }
- if(hasGame() && endGameTick == 0)
- finishGame();
- requestUpdate = hasUpdate;
- }
-
- public void setPlayer(EntityPlayer player) {
- if(isSingleGame) {
- playersName[0] = player.getCommandSenderName();
- playersName[1] = "";
- requestUpdate = true;
- botTick = 8;
- }
- }
-
- public boolean dropDice(EntityPlayer player) {
- if(isSingleGame) {
- System.out.println(botTick);
- if(player.getCommandSenderName() == playersName[0] && botTick <= 0) {
- boolean isLastDice = false;
- for(int i = 0; i < 2; i++) {
- if(slotChance[i] == 0 && !worldObj.isRemote) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = 18;
- requestUpdate = true;
- if(i == 1)
- isLastDice = true;
- break;
- }
- }
- if(isLastDice)
- endGameTick = 28;
- return true;
- }
- }
- return false;
- }
-
- public boolean hasGame() {
- if(isSingleGame)
- return !playersName[0].isEmpty();
- return !playersName[0].isEmpty() && !playersName[1].isEmpty();
- }
-
- public void finishGame() {
- if(worldObj.isRemote)
- return;
- if(isSingleGame) {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won");
- else
- sendNearMessage(playersName[0] + " you Lose!");
- resetGame();
- requestUpdate = true;
- }
- }
-
- public void sendNearMessage(String text) {
- List players = this.worldObj.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(this.xCoord, this.yCoord, this.zCoord, (this.xCoord + 1), (this.yCoord + 1), (this.zCoord + 1)).expand(3.5f, 3.5f, 3.5f));
- for(EntityPlayer player : players) {
- if(player != null)
- player.addChatMessage((new ChatComponentTranslation(text, new Object[] {})).setChatStyle((new ChatStyle()).setColor(EnumChatFormatting.DARK_GREEN)));
- }
- }
-
- public void resetGame() {
- playersName[0] = "";
- playersName[1] = "";
- for(int i = 0; i < slotChance.length; i++)
- slotChance[i] = 0;
- requestUpdate = true;
- botTick = -1;
- endGameTick = -1;
- }
-
- public void writeCustomNBT(NBTTagCompound cmp) {
- super.writeCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- cmp.setString("playerName" + i, playersName[i]);
- cmp.setByteArray("slotChance", slotChance);
- cmp.setInteger("botTick", botTick);
- cmp.setInteger("endGameTick", endGameTick);
- cmp.setBoolean("requestUpdate", requestUpdate);
- cmp.setBoolean("isSingleGame", isSingleGame);
- }
-
- public void readCustomNBT(NBTTagCompound cmp) {
- super.readCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- playersName[i] = cmp.getString("playerName" + i);
- botTick = cmp.getInteger("botTick");
- endGameTick = cmp.getInteger("endGameTick");
- slotChance = cmp.getByteArray("slotChance");
- requestUpdate = cmp.getBoolean("requestUpdate");
- isSingleGame = cmp.getBoolean("isSingleGame");
- }
-
- public int getInventoryStackLimit() {
- return 1;
- }
-
- public int getSizeInventory() {
- return 4;
- }
-
- public String getInventoryName() {
- return "inv.gameBoard";
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/a8/40274245eeac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/a8/40274245eeac001c1d59e42be7477558
deleted file mode 100644
index 1a913c9..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/a8/40274245eeac001c1d59e42be7477558
+++ /dev/null
@@ -1,199 +0,0 @@
-package ab.common.block.tile;
-
-import java.util.List;
-
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.ChatComponentTranslation;
-import net.minecraft.util.ChatStyle;
-import net.minecraft.util.EnumChatFormatting;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.common.block.tile.TileMod;
-
-public class TileGameBoard extends TileMod {
-
- public String[] playersName = new String[] { "", "" };
- public byte[] slotChance = new byte[] { 0, 0, 0, 0 };
- protected int botTick = -1;
- public int endGameTick = -1;
- protected boolean requestUpdate;
- public boolean isSingleGame = false;
- public int clientTick[] = new int[] { 0, 0, 0, 0};
-
- public void updateEntity() {
- if(botTick > 0)
- botTick--;
- if(endGameTick > 0)
- endGameTick--;
- if(!worldObj.isRemote)
- updateServer();
- else
- updateClient();
- }
-
- protected void updateClient() {
- for(int i = 0; i < slotChance.length; i++)
- if(slotChance[i] > 0)
- clientTick[i]++;
- else
- clientTick[i] = 0;
- }
-
- protected void updateServer() {
- if(requestUpdate)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- boolean hasUpdate = false;
- if(isSingleGame && botTick == 0 && hasGame()) {
- for(int i = 2; i < 4; i++) {
- if(slotChance[i] == 0) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = -1;
- hasUpdate = true;
- break;
- }
- }
- }
- if(hasGame() && endGameTick == 0)
- finishGame();
- requestUpdate = hasUpdate;
- }
-
- public void setPlayer(EntityPlayer player) {
- if(isSingleGame) {
- playersName[0] = player.getCommandSenderName();
- playersName[1] = "";
- requestUpdate = true;
- botTick = 8;
- } else {
- if(playersName[0].isEmpty())
- playersName[0] = player.getCommandSenderName();
- else if(!playersName[0].equals(player.getCommandSenderName()))
- playersName[1] = player.getCommandSenderName();
- requestUpdate = true;
- }
- }
-
- public boolean dropDice(EntityPlayer player) {
- if(isSingleGame) {
- if(player.getCommandSenderName().equals(playersName[0]) && botTick == -1) {
- boolean isLastDice = false;
- for(int i = 0; i < 2; i++) {
- if(slotChance[i] == 0 && !worldObj.isRemote) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = 18;
- requestUpdate = true;
- if(i == 1)
- isLastDice = true;
- break;
- }
- }
- if(isLastDice)
- endGameTick = 28;
- return true;
- }
- } else {
- for(int i = 0; i < playersName.length; i++) {
- if(player.getCommandSenderName().equals(playersName[i])) {
- for(int j = i * 2; j < (i + 1) * 2; j++) {
- if(slotChance[j] == 0 && !worldObj.isRemote) {
- slotChance[j] = (byte)(worldObj.rand.nextInt(6) + 1);
- requestUpdate = true;
- if(hasFullDice())
- endGameTick = 28;
- break;
- }
- }
- return true;
- }
- }
- }
- return false;
- }
-
- public boolean hasFullDice() {
- boolean hasFull = false;
- for(int i = 0; i < slotChance.length; i++) {
- if(!(slotChance[i] > 0))
- return false;
- hasFull = slotChance[i] > 0;
- }
- return hasFull;
- }
-
- public boolean hasGame() {
- if(isSingleGame)
- return !playersName[0].isEmpty();
- else
- for(int i = 0; i < playersName.length; i++)
- if(!playersName[i].isEmpty())
- return true;
- return false;
- }
-
- public void finishGame() {
- if(worldObj.isRemote)
- return;
- if(isSingleGame) {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won");
- else if((slotChance[0] + slotChance[1]) == (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " not win");
- else
- sendNearMessage(playersName[0] + " you Lose!");
- resetGame();
- requestUpdate = true;
- } else {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won!");
- else if((slotChance[0] + slotChance[1]) == (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " " + playersName[1] + "we are not win");
- else
- sendNearMessage(playersName[1] + " you Won!");
- resetGame();
- requestUpdate = true;
- }
- }
-
- public void sendNearMessage(String text) {
- List players = this.worldObj.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(this.xCoord, this.yCoord, this.zCoord, (this.xCoord + 1), (this.yCoord + 1), (this.zCoord + 1)).expand(3.5f, 3.5f, 3.5f));
- for(EntityPlayer player : players) {
- if(player != null)
- player.addChatMessage((new ChatComponentTranslation(text, new Object[] {})).setChatStyle((new ChatStyle()).setColor(EnumChatFormatting.DARK_GREEN)));
- }
- }
-
- public void resetGame() {
- playersName[0] = "";
- playersName[1] = "";
- for(int i = 0; i < slotChance.length; i++)
- slotChance[i] = 0;
- requestUpdate = true;
- botTick = -1;
- endGameTick = -1;
- }
-
- public void writeCustomNBT(NBTTagCompound cmp) {
- super.writeCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- cmp.setString("playerName" + i, playersName[i]);
- cmp.setByteArray("slotChance", slotChance);
- cmp.setInteger("botTick", botTick);
- cmp.setInteger("endGameTick", endGameTick);
- cmp.setBoolean("requestUpdate", requestUpdate);
- cmp.setBoolean("isSingleGame", isSingleGame);
- }
-
- public void readCustomNBT(NBTTagCompound cmp) {
- super.readCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- playersName[i] = cmp.getString("playerName" + i);
- botTick = cmp.getInteger("botTick");
- endGameTick = cmp.getInteger("endGameTick");
- slotChance = cmp.getByteArray("slotChance");
- requestUpdate = cmp.getBoolean("requestUpdate");
- isSingleGame = cmp.getBoolean("isSingleGame");
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/a9/3024909760c1001c11e398ea97007cb4 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/a9/3024909760c1001c11e398ea97007cb4
new file mode 100644
index 0000000..4f84a38
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/a9/3024909760c1001c11e398ea97007cb4
@@ -0,0 +1,44 @@
+package ab.client.render.item;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.common.item.relic.ItemSphereNavigation;
+import net.minecraft.client.renderer.ItemRenderer;
+import net.minecraft.client.renderer.OpenGlHelper;
+import net.minecraft.client.renderer.Tessellator;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.IIcon;
+import net.minecraftforge.client.IItemRenderer;
+
+public class RenderItemSphereNavigation implements IItemRenderer {
+
+ public boolean handleRenderType(ItemStack item, IItemRenderer.ItemRenderType type) {
+ return true;
+ }
+
+ public boolean shouldUseRenderHelper(IItemRenderer.ItemRenderType type, ItemStack item, IItemRenderer.ItemRendererHelper helper) {
+ return (helper == IItemRenderer.ItemRendererHelper.ENTITY_ROTATION || helper == IItemRenderer.ItemRendererHelper.ENTITY_BOBBING);
+ }
+
+ public void renderItem(IItemRenderer.ItemRenderType type, ItemStack stack, Object... data) {
+ GL11.glPushMatrix();
+ if(type == type.INVENTORY) {
+ GL11.glScalef(16, 16, 16);
+ GL11.glRotatef(180, 0, 0, 1);
+ GL11.glTranslatef(-1.0f, -1.0f, 0);
+ } else if(type == type.ENTITY) {
+ GL11.glTranslatef(-0.5F, 0.0F, 0.0F);
+ if(stack.isOnItemFrame())
+ GL11.glTranslatef(0.0F, -0.3F, 0.01F);
+ }
+ GL11.glEnable(GL11.GL_BLEND);
+ OpenGlHelper.glBlendFunc(770, 771, 1, 0);
+ GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
+ IIcon icon = ItemSphereNavigation.icons[0];
+ ItemRenderer.renderItemIn2D(Tessellator.instance, icon.getMaxU(), icon.getMinV(), icon.getMinU(), icon.getMaxV(), icon.getIconWidth(), icon.getIconHeight(), 0.0625F);
+ IIcon iconEnable = ItemSphereNavigation.icons[stack.getItemDamage() == 0 ? 4 : 3];
+ ItemRenderer.renderItemIn2D(Tessellator.instance, iconEnable.getMaxU(), iconEnable.getMinV(), iconEnable.getMinU(), iconEnable.getMaxV(), iconEnable.getIconWidth(), iconEnable.getIconHeight(), 0.0625F);
+ GL11.glDisable(GL11.GL_BLEND);
+ GL11.glPopMatrix();
+ }
+}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/aa/8077e3487bae001c1bd4eaa9a9be6b81 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/aa/8077e3487bae001c1bd4eaa9a9be6b81
deleted file mode 100644
index a3592ed..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/aa/8077e3487bae001c1bd4eaa9a9be6b81
+++ /dev/null
@@ -1,280 +0,0 @@
-package ab.common.lib.register;
-
-import java.io.Serializable;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.List;
-
-import ab.api.AdvancedBotanyAPI;
-import ab.api.recipe.RecipeAdvancedPlate;
-import ab.api.recipe.RecipeAncientAlphirine;
-import ab.api.recipe.lexicon.AdvancedPlateCraftPage;
-import ab.api.recipe.lexicon.AlphirineCraftPage;
-import ab.common.block.tile.TileAgglomerationPlate;
-import ab.common.block.tile.TileLebethronCore;
-import ab.common.block.tile.TileMagicCraftCrate;
-import ab.common.core.handler.ConfigABHandler;
-import ab.common.item.ItemCraftingPattern;
-import cpw.mods.fml.common.registry.GameRegistry;
-import net.minecraft.init.Blocks;
-import net.minecraft.init.Items;
-import net.minecraft.item.ItemStack;
-import net.minecraft.item.crafting.CraftingManager;
-import net.minecraft.item.crafting.IRecipe;
-import net.minecraft.util.EnumChatFormatting;
-import net.minecraftforge.oredict.ShapedOreRecipe;
-import net.minecraftforge.oredict.ShapelessOreRecipe;
-import thaumcraft.common.config.ConfigBlocks;
-import thaumcraft.common.config.ConfigItems;
-import vazkii.botania.api.BotaniaAPI;
-import vazkii.botania.api.lexicon.KnowledgeType;
-import vazkii.botania.api.lexicon.LexiconCategory;
-import vazkii.botania.api.lexicon.LexiconEntry;
-import vazkii.botania.api.lexicon.LexiconPage;
-import vazkii.botania.api.recipe.RecipePetals;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.block.ModBlocks;
-import vazkii.botania.common.block.ModFluffBlocks;
-import vazkii.botania.common.item.ModItems;
-import vazkii.botania.common.item.block.ItemBlockSpecialFlower;
-import vazkii.botania.common.lexicon.BLexiconCategory;
-import vazkii.botania.common.lexicon.BLexiconEntry;
-import vazkii.botania.common.lexicon.RLexiconEntry;
-import vazkii.botania.common.lexicon.page.PageText;
-
-public class RecipeListAB {
-
- public static LexiconCategory categoryForgotten;
-
- public static RecipeAncientAlphirine lebethroneRecipe;
- public static RecipeAncientAlphirine forgottenLandRecipe;
- public static RecipeAncientAlphirine advancedSparkRecipe;
- public static RecipeAncientAlphirine manaFlowerRecipe;
- public static RecipeAncientAlphirine hopperRecipe;
- public static RecipeAncientAlphirine fateBoardRecipe;
-
- public static RecipeAdvancedPlate manaStarRecipe;
- public static RecipeAdvancedPlate terrasteelRecipe;
- public static RecipeAdvancedPlate mithrillRecipe;
- public static RecipeAdvancedPlate nebulaRecipe;
-
- public static RecipePetals alphirineRecipe;
- public static RecipePetals dictariusRecipe;
- public static RecipePetals aspecolusRecipe;
- public static RecipePetals pureGladRecipe;
-
- public static LexiconEntry advandedAgglomerationPlate;
- public static LexiconEntry ancientAlphirine;
- public static LexiconEntry lebethronWood;
- public static LexiconEntry lebethronSpreader;
- public static LexiconEntry mithrill;
- public static LexiconEntry manaContainer;
- public static LexiconEntry manaCrystalCube;
- public static LexiconEntry terraHoe;
- public static LexiconEntry manaRings;
- public static LexiconEntry manaFlower;
- public static LexiconEntry mithrillSword;
- public static LexiconEntry nebula;
- public static LexiconEntry blackHalo;
- public static LexiconEntry antigravityCharm;
- public static LexiconEntry nebulaBlaze;
- public static LexiconEntry aspecolus;
- public static LexiconEntry dictarius;
- public static LexiconEntry manaCharger;
- public static LexiconEntry nebulaArmor;
- public static LexiconEntry freyrSlingshot;
- public static LexiconEntry engineerHopper;
- public static LexiconEntry nebulaRod;
- public static LexiconEntry thaumAutoCraft;
- public static LexiconEntry gladious;
- public static LexiconEntry gameBoard;
- public static LexiconEntry fateBoard;
-
- public static KnowledgeType forgotten;
-
- public static void init() {
-
- BotaniaAPI.addCategory(categoryForgotten = new BLexiconCategory("forgotten", 5));
- forgotten = BotaniaAPI.registerKnowledgeType("ab_forgotten", EnumChatFormatting.BLUE, false);
-
- lebethroneRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(BlockListAB.blockLebethron), new ItemStack(ModBlocks.dreamwood, 1, 0), 15);
- forgottenLandRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(ItemListAB.itemABResource, 1, 3), new ItemStack(ModItems.manaResource, 1, 15), 75);
- advancedSparkRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(ItemListAB.itemAdvancedSpark), new ItemStack(ModItems.spark), 11);
- manaFlowerRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(ItemListAB.itemABResource, 1, 4), new ItemStack(ModBlocks.flower, 1, 32767), 32);
- hopperRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(BlockListAB.blockEngineerHopper), new ItemStack(Blocks.hopper), 23);
- fateBoardRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(BlockListAB.blockBoardFate, 1, 1), new ItemStack(BlockListAB.blockBoardFate), 60);
-
- mithrillRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ItemListAB.itemABResource, 1, 0), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModBlocks.storage, 1, 0), new ItemStack(ModItems.manaResource, 1, 18), 7500000, 0x25d6b7);
- terrasteelRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ModItems.manaResource, 1, 4), new ItemStack(ModItems.manaResource, 1, 2), new ItemStack(ModItems.manaResource, 1, 0), new ItemStack(ModItems.manaResource, 1, 1), 500000, 0x29de20);
- manaStarRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ItemListAB.itemABResource, 1, 2), new ItemStack(ModItems.manaResource, 1, 23), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(Items.nether_star), 250000, 0x6bc9ec);
- nebulaRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ItemListAB.itemABResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 8), new ItemStack(ModBlocks.storage, 1, 4), new ItemStack(ItemListAB.itemABResource, 1, 1), 50000000, 0x8d16e0);
-
- ancientAlphirine = new BLexiconEntry("ancientAlphirine", categoryForgotten);
- alphirineRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("ancientAlphirine"), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.rune, 1, 8), new ItemStack(ModItems.rune, 1, 4), new ItemStack(ModItems.rune, 1, 5), new ItemStack(ModItems.rune, 1, 6), new ItemStack(ModItems.rune, 1, 7), new ItemStack(ModItems.petal, 1, 1), new ItemStack(ModItems.petal, 1, 4));
- ancientAlphirine.setPriority().setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), new PageText("1"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", alphirineRecipe), new AlphirineCraftPage(ancientAlphirine, forgottenLandRecipe.getOutput(), ".alphirineCraft") }).setIcon(ItemBlockSpecialFlower.ofType("ancientAlphirine"));
-
- if(ConfigABHandler.hasAbPlate) {
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockABPlate), new Object[] { " ", "MPM", "BRB", Character.valueOf('M'), new ItemStack(ModBlocks.storage), Character.valueOf('P'), new ItemStack(ModBlocks.terraPlate), Character.valueOf('B'), new ItemStack(ItemListAB.itemABResource, 1, 3), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 3)});
- advandedAgglomerationPlate = new BLexiconEntry("advancedPlate", categoryForgotten);
- advandedAgglomerationPlate.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] {new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()), BotaniaAPI.internalHandler.multiblockPage(".structure", TileAgglomerationPlate.makeMultiblockSet()), new AdvancedPlateCraftPage(advandedAgglomerationPlate, terrasteelRecipe.getOutput(), ".abCraft0"), new AdvancedPlateCraftPage(advandedAgglomerationPlate, manaStarRecipe.getOutput(), ".abCraft1") }).setIcon(new ItemStack(BlockListAB.blockABPlate));
- }
-
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockABSpreader), new Object[] { "WMW", "PSP", "WMW", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource, 1, 2), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('S'), new ItemStack(ModBlocks.spreader, 1, 3), Character.valueOf('W'), new ItemStack(BlockListAB.blockLebethron, 1, 4)});
- lebethronSpreader = new BLexiconEntry("lebethronSpreader", categoryForgotten);
- lebethronSpreader.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(BlockListAB.blockABSpreader));
-
- addShapelessOreDictRecipe(new ItemStack(BlockListAB.blockLebethron, 4, 1), new Object[] { new ItemStack(BlockListAB.blockLebethron)});
- IRecipe leb1 = getLastRecipe();
- addShapelessOreDictRecipe(new ItemStack(BlockListAB.blockLebethron, 1, 2), new Object[] { new ItemStack(BlockListAB.blockLebethron, 1, 1), new ItemStack(Items.wheat_seeds)});
- IRecipe leb2 = getLastRecipe();
- addShapelessOreDictRecipe(new ItemStack(BlockListAB.blockLebethron, 1, 3), new Object[] { new ItemStack(BlockListAB.blockLebethron), new ItemStack(Items.glowstone_dust)});
- IRecipe leb3 = getLastRecipe();
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockLebethron, 1, 4), new Object[] { "4W5", "WPW", "6W7", Character.valueOf('P'), new ItemStack(ModBlocks.pylon, 1, 1), Character.valueOf('W'), new ItemStack(BlockListAB.blockLebethron), Character.valueOf('4'), new ItemStack(ModItems.rune, 1, 4), Character.valueOf('5'), new ItemStack(ModItems.rune, 1, 5), Character.valueOf('6'), new ItemStack(ModItems.rune, 1, 6), Character.valueOf('7'), new ItemStack(ModItems.rune, 1, 7)});
- IRecipe leb4 = getLastRecipe();
- lebethronWood = new BLexiconEntry("lebethronWood", categoryForgotten);
- lebethronWood.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AlphirineCraftPage(lebethronWood, lebethroneRecipe.getOutput(), ".alphirineCraft"), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb1), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb2), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb3), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb4), new PageText("1"), BotaniaAPI.internalHandler.multiblockPage(".structure", TileLebethronCore.makeMultiblockSet()) }).setIcon(new ItemStack(BlockListAB.blockLebethron));
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemMihrillMultiTool), new Object[] { " MB", " FM", "F ", Character.valueOf('F'), new ItemStack(ModItems.manaResource, 1, 3), Character.valueOf('B'), new ItemStack(ModBlocks.livingwood), Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource)});
- mithrill = new BLexiconEntry("mithrill", categoryForgotten);
- mithrill.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AdvancedPlateCraftPage(mithrill, mithrillRecipe.getOutput(), ".abCraft"), new PageText("1"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(ItemListAB.itemMihrillMultiTool));
- if(!ConfigABHandler.hasAbPlate)
- mithrill.pages.remove(1);
-
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaContainer), new Object[] { "MGM", "LPL", "M3M", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('L'), new ItemStack(ModBlocks.pool), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('3'), new ItemStack(ModItems.rune, 1, 3), Character.valueOf('G'), new ItemStack(ModItems.rune, 1, 15)});
- IRecipe cont1 = getLastRecipe();
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaContainer, 1, 1), new Object[] { "MGM", "LPL", "M3M", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource, 1, 1), Character.valueOf('L'), new ItemStack(ModBlocks.pool, 1, 2), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('3'), new ItemStack(ModItems.rune, 1, 3), Character.valueOf('G'), new ItemStack(ModItems.rune, 1, 15)});
- IRecipe cont2 = getLastRecipe();
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaContainer, 1, 2), new Object[] { "MGM", "LPL", "M3M", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('L'), new ItemStack(ModBlocks.pool, 1, 3), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('3'), new ItemStack(ModItems.rune, 1, 3), Character.valueOf('G'), new ItemStack(ModItems.rune, 1, 15)});
- IRecipe cont3 = getLastRecipe();
- manaContainer = new BLexiconEntry("manaContainer", categoryForgotten);
- manaContainer.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", cont1), BotaniaAPI.internalHandler.craftingRecipePage(".craft1", cont2), BotaniaAPI.internalHandler.craftingRecipePage(".craft2", cont3), new PageText("1"), new AlphirineCraftPage(manaContainer, advancedSparkRecipe.getOutput(), ".alphirineCraft") }).setIcon(new ItemStack(BlockListAB.blockManaContainer));
-
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaCrystalCube), new Object[] { "TST", "GWG", "DMD", Character.valueOf('D'), new ItemStack(ModBlocks.dreamwood), Character.valueOf('W'), new ItemStack(ModItems.twigWand, 1, 32767), Character.valueOf('G'), new ItemStack(ModBlocks.manaGlass), Character.valueOf('M'), new ItemStack(ModItems.manaResource), Character.valueOf('T'), new ItemStack(ModItems.manaResource, 1, 18), Character.valueOf('S'), new ItemStack(ModItems.spark)});
- manaCrystalCube = new BLexiconEntry("manaCrystalCube", BotaniaAPI.categoryMana);
- manaCrystalCube.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(BlockListAB.blockManaCrystalCube));
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemTerraHoe), new Object[] { "TTL", "RW ", " W ", Character.valueOf('T'), new ItemStack(ModItems.manaResource, 1, 4), Character.valueOf('L'), new ItemStack(ModItems.manaResource, 1, 18), Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 3), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 2)});
- terraHoe = new BLexiconEntry("terraHoe", BotaniaAPI.categoryTools);
- terraHoe.setLexiconPages(new LexiconPage[]{ new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(ItemListAB.itemTerraHoe));
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemMithrillRing), new Object[] { "LML", "MRM", "LML", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('L'), new ItemStack(ItemListAB.itemABResource, 1, 1), Character.valueOf('R'), new ItemStack(ModItems.manaRingGreater)});
- IRecipe ring1 = getLastRecipe();
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaRing), new Object[] { "LML", "MRM", "LML", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource, 1, 6), Character.valueOf('L'), new ItemStack(ModItems.manaResource, 1, 5), Character.valueOf('R'), new ItemStack(ItemListAB.itemMithrillRing)});
- IRecipe ring2 = getLastRecipe();
- manaRings = new BLexiconEntry("manaRings", categoryForgotten);
- manaRings.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[]{ new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", ring1), BotaniaAPI.internalHandler.craftingRecipePage(".craft1", ring2)}).setIcon(new ItemStack(ItemListAB.itemMithrillRing));
- AdvancedBotanyAPI.registerFarmlandSeed(Blocks.nether_wart, 3);
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemManaFlower), new Object[] { " F ", " M ", " R ", Character.valueOf('F'), new ItemStack(ItemListAB.itemABResource, 1, 4), Character.valueOf('M'), new ItemStack(ModItems.manaBottle), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 8)});
- manaFlower = new BLexiconEntry("manaFlower", categoryForgotten);
- manaFlower.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AlphirineCraftPage(manaFlower, manaFlowerRecipe.getOutput(), ".alphirineCraft"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())}).setIcon(new ItemStack(ItemListAB.itemManaFlower));
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemMithrillSword), new Object[] { " M", "SM ", "WS ", Character.valueOf('S'), new ItemStack(ItemListAB.itemABResource, 1, 6), Character.valueOf('T'), new ItemStack(ModItems.terraSword), Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 3)});
- mithrillSword = new BLexiconEntry("mithrillSword", categoryForgotten);
- mithrillSword.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(ItemListAB.itemMithrillSword));
-
- dictariusRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("dictarius"), new ItemStack(ItemListAB.itemABResource, 1, 4), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.rune, 1, 15), new ItemStack(ModItems.petal, 1, 4), new ItemStack(ModItems.petal, 1, 4), new ItemStack(ModItems.petal, 1, 1));
- dictarius = new BLexiconEntry("dictarius", BotaniaAPI.categoryGenerationFlowers);
- dictarius.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", dictariusRecipe)});
-
- nebula = new BLexiconEntry("nebula", categoryForgotten);
- nebula.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AdvancedPlateCraftPage(nebula, nebulaRecipe.getOutput(), ".abCraft")});
- if(!ConfigABHandler.hasAbPlate)
- nebula.pages.remove(1);
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemBlackHalo), new Object[] { " E ", "DHD", " E ", Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.autocraftingHalo), Character.valueOf('D'), new ItemStack(ModItems.blackHoleTalisman)});
- blackHalo = new BLexiconEntry("blackHalo", BotaniaAPI.categoryTools);
- blackHalo.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemAntigravityCharm), new Object[] { " G ", "GDG", "ERE", Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('G'), new ItemStack(ModBlocks.elfGlass), Character.valueOf('D'), new ItemStack(ModBlocks.floatingFlower, 1, 32767), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 3)});
- antigravityCharm = new BLexiconEntry("antigravityCharm", BotaniaAPI.categoryTools);
- antigravityCharm.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())}).setIcon(new ItemStack(ItemListAB.itemAntigravityCharm));
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaBlaze), new Object[] { " N ", "MMN", "AMN", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 6), Character.valueOf('A'), new ItemStack(ItemListAB.itemABResource, 1, 3), Character.valueOf('M'), new ItemStack(ModBlocks.storage)});
- nebulaBlaze = new BLexiconEntry("nebulaBlaze", categoryForgotten);
- nebulaBlaze.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
-
- if(ConfigABHandler.hasManaCharger) {
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaCharger), new Object[] { "NLN", "MPM", " R ", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 1), Character.valueOf('L'), new ItemStack(ModBlocks.livingrock), Character.valueOf('M'), new ItemStack(ModBlocks.bellows), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 8)});
- manaCharger = new BLexiconEntry("manaCharger", categoryForgotten);
- manaCharger.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
- }
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaHelm), new Object[] { "RNR", "NHN", " E ", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelHelm), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8)});
- IRecipe nHelm = getLastRecipe();
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaChest), new Object[] { "RTR", "NHN", "ENE", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelChest), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8), Character.valueOf('T'), new ItemStack(ModItems.flightTiara, 1, 32767)});
- IRecipe nChest = getLastRecipe();
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaLegs), new Object[] { "ENE", "RHR", "NAN", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelLegs), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8), Character.valueOf('A'), new ItemStack(ItemListAB.itemABResource, 1, 3)});
- IRecipe nLegs = getLastRecipe();
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaBoots), new Object[] { "RBR", "NHN", " E ", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelBoots), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8), Character.valueOf('B'), new ItemStack(ModItems.speedUpBelt)});
- IRecipe nBoots = getLastRecipe();
- nebulaArmor = new BLexiconEntry("nebulaArmor", categoryForgotten);
- nebulaArmor.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new PageText("1"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", nHelm), BotaniaAPI.internalHandler.craftingRecipePage(".craft", nChest), BotaniaAPI.internalHandler.craftingRecipePage(".craft", nLegs), BotaniaAPI.internalHandler.craftingRecipePage(".craft", nBoots)});
-
- freyrSlingshot = new RLexiconEntry("freyrSlingshot", BotaniaAPI.categoryAlfhomancy, AchievementRegister.relicSlingshot);
- freyrSlingshot.setLexiconPages(new LexiconPage[] { new PageText("0")});
-
- engineerHopper = new BLexiconEntry("engineerHopper", categoryForgotten);
- engineerHopper.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AlphirineCraftPage(engineerHopper, hopperRecipe.getOutput(), ".alphirineCraft")});
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaRod), new Object[] { " WN", " RW", "W ", Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 13), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 8), Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 6)});
- nebulaRod = new BLexiconEntry("nebulaRod", categoryForgotten);
- nebulaRod.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
-
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockBoardFate), new Object[] { " ", "QDQ", "MPM", Character.valueOf('Q'), new ItemStack(ModFluffBlocks.manaQuartz), Character.valueOf('D'), new ItemStack(ModItems.manaResource, 1, 2), Character.valueOf('M'), new ItemStack(ModItems.manaResource), Character.valueOf('P'), new ItemStack(ModItems.manaResource, 1, 23)});
- gameBoard = new BLexiconEntry("gameBoard", BotaniaAPI.categoryMisc);
- gameBoard.setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
-
- fateBoard = new BLexiconEntry("fateBoard", categoryForgotten);
- fateBoard.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AlphirineCraftPage(fateBoard, fateBoardRecipe.getOutput(), ".alphirineCraft")});
-
- if(Botania.thaumcraftLoaded)
- thaumcraft();
-
- addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemABResource, 9, 1), new Object[] { new ItemStack(ItemListAB.itemABResource)});
- addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemABResource, 9, 0), new Object[] { new ItemStack(BlockListAB.blockABStorage)});
- addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemABResource, 9, 6), new Object[] { new ItemStack(ItemListAB.itemABResource, 1, 5)});
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockABStorage), new Object[] { "III", "III", "III", Character.valueOf('I'), new ItemStack(ItemListAB.itemABResource)});
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemABResource, 1, 5), new Object[] { "III", "III", "III", Character.valueOf('I'), new ItemStack(ItemListAB.itemABResource, 1, 6)});
- }
-
- public static void thaumcraft() {
- aspecolus = new BLexiconEntry("aspecolus", BotaniaAPI.categoryFunctionalFlowers);
- aspecolusRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("aspecolus"), new ItemStack(ModItems.manaResource, 1, 6), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.rune, 1, 1), new ItemStack(ModItems.rune), new ItemStack(ItemListAB.itemABResource, 1, 2), new ItemStack(ModItems.petal, 1, 10), new ItemStack(ModItems.petal, 1, 13));
- aspecolus.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", aspecolusRecipe) }).setIcon(ItemBlockSpecialFlower.ofType("aspecolus"));
- addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemNebulaHelmReveal), new Object[] { new ItemStack(ItemListAB.itemNebulaHelm), new ItemStack(ConfigItems.itemGoggles)});
- List recipes = new ArrayList();
- for(int i = 1; i < 10; i++) {
- boolean[][] patterns = ItemCraftingPattern.getPattern(i);
- List str = new ArrayList();
- for(int j = 0; j < patterns.length; j++) {
- String str1 = "";
- for(int k = 0; k < patterns[j].length; k++)
- str1 += patterns[j][k] ? "T" : "H";
- str.add(str1);
- }
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemCraftingPattern, 1, i), new Object[] { str.get(0), str.get(1), str.get(2), Character.valueOf('T'), new ItemStack(ItemListAB.itemCraftingPattern), Character.valueOf('H'), new ItemStack(ConfigItems.itemNugget, 1, 6)});
- recipes.add(getLastRecipe());
- }
- IRecipe crate = GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockMagicCraftCrate), new Object[] { "TST", "WCW", "W W", Character.valueOf('W'), new ItemStack(ConfigBlocks.blockMagicalLog), Character.valueOf('S'), new ItemStack(ConfigItems.itemResource, 1, 14), Character.valueOf('T'), new ItemStack(ConfigItems.itemResource, 1, 7), Character.valueOf('C'), new ItemStack(ModBlocks.openCrate, 1, 1)});
- addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemCraftingPattern, 48), new Object[] { new ItemStack(Blocks.crafting_table), new ItemStack(ModBlocks.livingrock), new ItemStack(ConfigItems.itemResource, 1, 14)});
- thaumAutoCraft = new BLexiconEntry("thaumAutoCraft", BotaniaAPI.categoryDevices);
- thaumAutoCraft.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", crate) , BotaniaAPI.internalHandler.craftingRecipePage(".craft0", getLastRecipe()), BotaniaAPI.internalHandler.craftingRecipesPage(".craft1", recipes)});
-
- pureGladRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("pureGladiolus"), new ItemStack(ItemListAB.itemABResource, 1, 4), new ItemStack(ModItems.rune, 1, 8), new ItemStack(ModItems.petal, 1, 8), new ItemStack(ModItems.petal, 1, 4), new ItemStack(ModItems.petal, 1, 14), new ItemStack(ModItems.petal, 1, 5), new ItemStack(ModItems.petal, 1, 13), new ItemStack(ModItems.petal, 1, 11));
- gladious = new BLexiconEntry("gladious", BotaniaAPI.categoryFunctionalFlowers);
- gladious.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", pureGladRecipe)});
- }
-
- private static IRecipe getLastRecipe() {
- return (IRecipe)CraftingManager.getInstance().getRecipeList().get(CraftingManager.getInstance().getRecipeList().size() - 1);
- }
-
- private static void addOreDictRecipe(ItemStack output, Object... recipe) {
- CraftingManager.getInstance().getRecipeList().add(new ShapedOreRecipe(output, recipe));
- }
-
- private static void addShapelessOreDictRecipe(ItemStack output, Object... recipe) {
- CraftingManager.getInstance().getRecipeList().add(new ShapelessOreRecipe(output, recipe));
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/ac/50e9faa29cb1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/ac/50e9faa29cb1001c19bf8a91ac37238b
deleted file mode 100644
index 4fd9e6b..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/ac/50e9faa29cb1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,84 +0,0 @@
-package ab.client.core.handler;
-
-import java.awt.Color;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.armor.ItemNebulaArmor;
-import ab.common.item.equipment.armor.ItemNebulaHelm;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.ItemRenderer;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.texture.TextureMap;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraftforge.client.event.RenderPlayerEvent;
-import vazkii.botania.api.item.IPhantomInkable;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class PlayerRendererHandler {
-
- @SubscribeEvent
- public void onPlayerRender(RenderPlayerEvent.Specials.Pre event) {
- EntityPlayer player = event.entityPlayer;
- ItemStack item = player.getCurrentArmor(3);
- if(item != null && item.getItem() instanceof ItemNebulaHelm) {
- Item helm = player.getCurrentArmor(3).getItem();
- boolean hasPhantomInk = helm instanceof IPhantomInkable && ((IPhantomInkable)helm).hasPhantomInk(item);
- if(!hasPhantomInk && ((ItemNebulaHelm)helm).enableCosmicFace(item)) {
- float angelX = event.renderer.modelBipedMain.bipedHead.rotateAngleX * 180.0F / (float)Math.PI;
- float angelY = event.renderer.modelBipedMain.bipedHead.rotateAngleY * 180.0F / (float)Math.PI;
- GL11.glPushMatrix();
- if(player.isSneaking())
- GL11.glTranslatef(event.renderer.modelBipedMain.bipedHead.rotationPointX * 0.0625f, event.renderer.modelBipedMain.bipedHead.rotationPointY * 0.0625f, 0.0f);
- GL11.glRotatef(angelY, 0.0F, 1.0F, 0.0F);
- GL11.glRotatef(angelX, 1.0F, 0.0F, 0.0F);
- renderCosmicFace();
- GL11.glPopMatrix();
- }
- }
- }
-
- private void renderCosmicFace() {
- double worldTime = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- GL11.glPushMatrix();
- GL11.glEnable(GL11.GL_TEXTURE_2D);
- GL11.glDisable(2884);
-
- GL11.glPushMatrix();
- GL11.glScalef(0.5f, 0.4f, 0.4f);
- GL11.glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
- GL11.glTranslatef(-0.5f, -0.8675f, 0.0f);
- GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
-// ClientHelper.renderCosmicBackground();
- GL11.glPopMatrix();
-
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- (Minecraft.getMinecraft()).renderEngine.bindTexture(TextureMap.locationItemsTexture);
- GL11.glTranslatef(-0.2F, -0.35F, -0.25F);
- GL11.glScalef(0.4f, 0.4f, 0.4f);
- float f = ItemNebulaArmor.nebulaEyes.getMinU();
- float f1 = ItemNebulaArmor.nebulaEyes.getMaxU();
- float f2 = ItemNebulaArmor.nebulaEyes.getMinV();
- float f3 = ItemNebulaArmor.nebulaEyes.getMaxV();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float r = color.getRed() / 510.0F;
- float g = color.getGreen() / 510.0F;
- float b = color.getBlue() / 510.0F;
- GL11.glColor4f(0.5f + r, 0.5f + g, 0.5f + b, 0.685f + (float)Math.sin(worldTime / 50.0D) * 0.175F);
- ItemRenderer.renderItemIn2D(Tessellator.instance, f1, f2, f, f3, ItemNebulaArmor.nebulaEyes.getIconWidth(), ItemNebulaArmor.nebulaEyes.getIconHeight(), 0.03125F);
- GL11.glDisable(3042);
- GL11.glEnable(2884);
- GL11.glEnable(32826);
- GL11.glPopMatrix();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/e4/d057b8ec02b0001c1f81c3828fa5b218 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/ac/a07a85de8ac1001c11e398ea97007cb4
similarity index 100%
rename from 1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/e4/d057b8ec02b0001c1f81c3828fa5b218
rename to 1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/ac/a07a85de8ac1001c11e398ea97007cb4
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/ac/c0d2954cc1bc001c1a9f99005529f322 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/ac/c0d2954cc1bc001c1a9f99005529f322
new file mode 100644
index 0000000..c7c1739
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/ac/c0d2954cc1bc001c1a9f99005529f322
@@ -0,0 +1,38 @@
+package ab.client.render.block;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.client.render.tile.RenderTileManaContainer;
+import ab.common.block.tile.TileNidavellirForge;
+import ab.common.lib.register.BlockListAB;
+import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
+import net.minecraft.block.Block;
+import net.minecraft.client.renderer.RenderBlocks;
+import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.world.IBlockAccess;
+
+public class RenderBlockNidavellirForge implements ISimpleBlockRenderingHandler {
+
+ public void renderInventoryBlock(Block block, int metadata, int modelID, RenderBlocks renderer) {
+ GL11.glPushMatrix();
+ GL11.glTranslatef(-0.5F, -0.35F, -0.5F);
+ GL11.glScalef(1.25f, 1.25f, 1.25f);
+ TileNidavellirForge forge = new TileNidavellirForge();
+ RenderTileManaContainer.metadata = metadata;
+ TileEntityRendererDispatcher.instance.renderTileEntityAt((TileEntity)forge, 0.0D, 0.0D, 0.0D, 0.0F);
+ GL11.glPopMatrix();
+ }
+
+ public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId, RenderBlocks renderer) {
+ return false;
+ }
+
+ public int getRenderId() {
+ return BlockListAB.blockABPlateRI;
+ }
+
+ public boolean shouldRender3DInInventory(int modelId) {
+ return true;
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/ae/f0890f585fc1001c11e398ea97007cb4 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/ae/f0890f585fc1001c11e398ea97007cb4
new file mode 100644
index 0000000..ca0bb41
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/ae/f0890f585fc1001c11e398ea97007cb4
@@ -0,0 +1,179 @@
+package ab.common.item.relic;
+
+import java.awt.Color;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.common.core.handler.NetworkHandler;
+import ab.common.lib.register.ItemListAB;
+import net.minecraft.block.Block;
+import net.minecraft.client.renderer.texture.IIconRegister;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.MathHelper;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.api.mana.ManaItemHandler;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class ItemSphereNavigation extends ItemModRelic {
+
+ public static IIcon[] icons;
+ public static final int rangeSearch = 16;
+ public static final int maxCooldown = 112;
+ public static final int manaCost = 1750;
+
+ public ItemSphereNavigation() {
+ super("sphereNavigation");
+ }
+
+ public void registerIcons(IIconRegister ir) {
+ icons = new IIcon[5];
+ icons[0] = ir.registerIcon("ab:sphereNavigation");
+ icons[1] = ir.registerIcon("ab:sphereNavigation_hasblock");
+ icons[2] = ir.registerIcon("ab:sphereNavigation_nonBlock");
+ icons[3] = ir.registerIcon("ab:sphereNavigation_off");
+ icons[4] = ir.registerIcon("ab:sphereNavigation_on");
+ }
+
+ public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
+ if(getFindBlock(stack) != null && player.isSneaking()) {
+ int dmg = stack.getItemDamage();
+ stack.setItemDamage((dmg ^ 0xFFFFFFFF) & 0x1);
+ world.playSoundAtEntity(player, "random.orb", 0.3F, 0.1F);
+ }
+ return stack;
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int pos, boolean equipped) {
+ super.onUpdate(stack, world, entity, pos, equipped);
+ if(entity instanceof EntityPlayer) {
+ EntityPlayer player = (EntityPlayer)entity;
+ if(!world.isRemote && getFindBlock(stack) != null && canWork(stack) && ManaItemHandler.requestManaExactForTool(stack, player, manaCost, true)) {
+ setMaxTick(stack);
+ NetworkHandler.sendPacketToFindBlocks((EntityPlayerMP)player, getFindBlock(stack), getFindMeta(stack));
+ }
+ }
+ }
+
+ public static void findBlocks(World world, Block findBlock, int findMeta, EntityPlayer player) {
+ if(world.isRemote) {
+ ItemStack renderStack = null;
+ int maxFindedBlocks = 32;
+ int findedBlocks = 0;
+ label1703:
+ for(int y = -rangeSearch * 2; y < rangeSearch; y++) {
+ for(int x = -rangeSearch; x < rangeSearch; x++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks)) || world.rand.nextBoolean())
+ continue;
+ for(int z = -rangeSearch; z < rangeSearch; z++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks)) || world.rand.nextBoolean())
+ continue;
+ else if(findedBlocks >= maxFindedBlocks)
+ break label1703;
+ int posX = MathHelper.floor_double(player.posX) + x;
+ int posY = MathHelper.floor_double(player.posY) + y;
+ int posZ = MathHelper.floor_double(player.posZ) + z;
+ if(posY < 0)
+ continue;
+ Block block = world.getBlock(posX, posY, posZ);
+ if(!Block.isEqualTo(block, findBlock))
+ continue;
+ int meta = world.getBlockMetadata(posX, posY, posZ);
+ if(meta == findMeta) {
+ if(renderStack == null)
+ renderStack = getRenderStackForBlock(world, block, meta, posX, posY, posZ);
+ findedBlocks++;
+ float maxAge = 2.7f + (0.5f * (float)(Math.random()));
+ Botania.proxy.setWispFXDepthTest(false);
+ Botania.proxy.setWispFXDistanceLimit(false);
+ float far = 120.0f - (((Math.abs(x) + Math.min(rangeSearch, Math.abs(y)) + Math.abs(z)) / (rangeSearch * 4.0f)) * 120.0f);
+ if(far <= 40)
+ far *= 0.15f;
+ Color color = new Color(Color.HSBtoRGB(far / 360.0f, 0.9f + (float)(Math.random() * 0.1f), 1.0f));
+ for(int i = 0; i < 11; i++)
+ Botania.proxy.wispFX(world, posX + 0.5f + (Math.random() - 0.5f), posY + 0.5f + (Math.random() - 0.5f), posZ + 0.5f + (Math.random() - 0.5f), color.getRed() / 100.0f, color.getGreen() / 100.0f, color.getBlue() / 100.0f, 0.3f + (float)(Math.random() * 0.25f), 0.0f, maxAge);
+ Botania.proxy.setWispFXDistanceLimit(true);
+ Botania.proxy.setWispFXDepthTest(true);
+ }
+ }
+ }
+ }
+ if(renderStack != null)
+ ItemsRemainingRender.set(renderStack, "íàéäåíî: " + findedBlocks);
+ }
+ }
+
+ public static ItemStack getRenderStackForBlock(World world, Block block, int meta, int x, int y, int z) {
+ if(block != null) {
+ Item item = Item.getItemFromBlock(block);
+ if(item != null) {
+ ItemStack findStack = new ItemStack(block, 1, meta);
+ if(findStack != null)
+ return findStack;
+ } else {
+ Item item1 = block.getItem(world, x, y, z);
+ if(item1 != null) {
+ ItemStack findStack = new ItemStack(item1, 1, meta);
+ if(findStack != null)
+ return findStack;
+ }
+ }
+ }
+ return null;
+ }
+
+ public boolean onItemUse(ItemStack stack, EntityPlayer p, World world, int x, int y, int z, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
+ if(p.isSneaking()) {
+ Block block = world.getBlock(x, y, z);
+ if(block != null) {
+ int meta = world.getBlockMetadata(x, y, z);
+ ItemStack findStack = getRenderStackForBlock(world, block, meta, x, y, z);
+ if(findStack != null) {
+ setFindBlock(stack, block, meta);
+ if(world.isRemote)
+ ItemsRemainingRender.set(findStack, findStack.getDisplayName());
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public boolean canWork(ItemStack stack) {
+ int tick = ItemNBTHelper.getInt(stack, "cooldown", 0);
+ if(tick == 0)
+ return true;
+ else if(tick > 0)
+ ItemNBTHelper.setInt(stack, "cooldown", tick - 1);
+ return false;
+ }
+
+ public void setMaxTick(ItemStack stack) {
+ ItemNBTHelper.setInt(stack, "cooldown", maxCooldown);
+ }
+
+ public static void setFindBlock(ItemStack stack, Block block, int meta) {
+ ItemNBTHelper.setInt(stack, "findBlockID", Block.getIdFromBlock(block));
+ ItemNBTHelper.setInt(stack, "findBlockMeta", meta);
+ }
+
+ public static Block getFindBlock(ItemStack stack) {
+ int blockID = ItemNBTHelper.getInt(stack, "findBlockID", 0);
+ if(blockID == 0)
+ return null;
+ else
+ return Block.getBlockById(blockID);
+ }
+
+ public static int getFindMeta(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "findBlockMeta", -1);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/84/80e50d5b8aae001c11109eb5a6670b42 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/af/003acb3394c1001c11e398ea97007cb4
similarity index 91%
rename from 1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/84/80e50d5b8aae001c11109eb5a6670b42
rename to 1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/af/003acb3394c1001c11e398ea97007cb4
index eae9fa0..f17e93b 100644
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/84/80e50d5b8aae001c11109eb5a6670b42
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/af/003acb3394c1001c11e398ea97007cb4
@@ -2,7 +2,7 @@ package ab.common.lib.register;
import ab.common.block.BlockABSpreader;
import ab.common.block.BlockABStorage;
-import ab.common.block.BlockAgglomerationPlate;
+import ab.common.block.BlockNidavellirForge;
import ab.common.block.BlockAntigravitation;
import ab.common.block.BlockBoardFate;
import ab.common.block.BlockEngineerHopper;
@@ -15,7 +15,7 @@ import ab.common.block.BlockManaContainer;
import ab.common.block.BlockManaCrystalCube;
import ab.common.block.BlockTerraFarmland;
import ab.common.block.tile.TileABSpreader;
-import ab.common.block.tile.TileAgglomerationPlate;
+import ab.common.block.tile.TileNidavellirForge;
import ab.common.block.tile.TileBoardFate;
import ab.common.block.tile.TileEngineerHopper;
import ab.common.block.tile.TileGameBoard;
@@ -53,6 +53,7 @@ public class BlockListAB {
public static int blockManaCrystalCubeRI;
public static int blockManaChargerRI;
public static int blockEngineerHopperRI;
+ public static int blockABPlateRI;
public static void init() {
initializeBlocks();
@@ -62,7 +63,7 @@ public class BlockListAB {
private static void initializeBlocks() {
BlockListAB.blockABSpreader = new BlockABSpreader();
- BlockListAB.blockABPlate = new BlockAgglomerationPlate();
+ BlockListAB.blockABPlate = new BlockNidavellirForge();
BlockListAB.blockLebethron = new BlockLebethronWood();
BlockListAB.blockManaContainer = new BlockManaContainer();
BlockListAB.blockABStorage = new BlockABStorage();
@@ -74,7 +75,7 @@ public class BlockListAB {
BlockListAB.blockLuminousFreyrLiana = new BlockLuminousFreyrLiana();
BlockListAB.blockFreyrLiana = new BlockFreyrLiana();
BlockListAB.blockBoardFate = new BlockBoardFate();
- if(Botania.thaumcraftLoaded)
+ if(Botania.thaumcraftLoaded && ConfigABHandler.hasAutoThaum)
BlockListAB.blockMagicCraftCrate = new BlockMagicCraftCrate();
}
@@ -98,7 +99,7 @@ public class BlockListAB {
private static void registerTileEntities() {
GameRegistry.registerTileEntity(TileABSpreader.class, "tileABSpreader");
if(ConfigABHandler.hasAbPlate)
- GameRegistry.registerTileEntity(TileAgglomerationPlate.class, "tileAgglomerationPlate");
+ GameRegistry.registerTileEntity(TileNidavellirForge.class, "tileAgglomerationPlate");
GameRegistry.registerTileEntity(TileLebethronCore.class, "tileLebethronCore");
GameRegistry.registerTileEntity(TileManaContainer.class, "tileManaContainer");
GameRegistry.registerTileEntity(TileManaCrystalCube.class, "tileManaCrystalCube");
@@ -106,9 +107,8 @@ public class BlockListAB {
if(ConfigABHandler.hasManaCharger)
GameRegistry.registerTileEntity(TileManaCharger.class, "tileManaCharger");
GameRegistry.registerTileEntity(TileBoardFate.class, "tileBoardFate");
- if(ConfigHandler.relicsEnabled)
- GameRegistry.registerTileEntity(TileGameBoard.class, "tileGameBoard");
- if(Botania.thaumcraftLoaded)
+ GameRegistry.registerTileEntity(TileGameBoard.class, "tileGameBoard");
+ if(Botania.thaumcraftLoaded && ConfigABHandler.hasAutoThaum)
GameRegistry.registerTileEntity(TileMagicCraftCrate.class, "tileMagicCraftCrate");
}
@@ -118,5 +118,6 @@ public class BlockListAB {
BlockListAB.blockManaCrystalCubeRI = -1;
BlockListAB.blockManaChargerRI = -1;
BlockListAB.blockEngineerHopperRI = -1;
+ BlockListAB.blockABPlateRI = -1;
}
}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/b/c091c07948b0001c1746c57a5fe46fd3 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/b/c091c07948b0001c1746c57a5fe46fd3
deleted file mode 100644
index d1a9316..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/b/c091c07948b0001c1746c57a5fe46fd3
+++ /dev/null
@@ -1,95 +0,0 @@
-package ab.common.core.handler;
-
-import java.io.File;
-
-import ab.AdvancedBotany;
-import cpw.mods.fml.client.event.ConfigChangedEvent;
-import cpw.mods.fml.common.FMLCommonHandler;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraft.entity.passive.EntitySheep;
-import net.minecraftforge.common.config.Configuration;
-import net.minecraftforge.common.config.Property;
-
-public class ConfigABHandler {
-
- public static Configuration config;
- public static boolean useManaChargerAnimation = true;
- public static int maxContainerMana = 64000000;
- public static double protectionFactorNebula = 1.0f;
- public static double damageFactorSpaceSword = 1.0f;
- public static int nebulaWandCooldownTick = 18;
- public static boolean hasManaCharger = true;
- public static boolean hasAbPlate = true;
- public static int spreaderMaxMana = 128000;
- public static int spreaderBurstMana = 32000;
- public static String[] lockEntityListToHide = new String[] { EntitySheep.class.getName() };
-
- public static void loadConfig(File configFile) {
- config = new Configuration(configFile);
- config.load();
- load();
- FMLCommonHandler.instance().bus().register(new ChangeListener());
- }
-
- public static void load() {
- String desc = "Maximum mana capacity for Mana Container (Diluted Mana Container will receive an eighth of the set value)";
- maxContainerMana = loadPropInt("Mana Container capacity", desc, maxContainerMana);
- desc = "Activating the charging animation for the Mana Charger";
- useManaChargerAnimation = loadPropBool("Mana Charger lighting", desc, useManaChargerAnimation);
- desc = "Protection factor for nebula armour";
- protectionFactorNebula = loadPropDouble("Nebula Armor Protection Factor", desc, protectionFactorNebula);
- desc = "Damage factor for Space Blade";
- damageFactorSpaceSword = loadPropDouble("Space Sword Damage Factor", desc, damageFactorSpaceSword);
- desc = "The number of ticks needed to restore 1 unit of the Rod of Nebula strength.";
- nebulaWandCooldownTick = loadPropInt("Rod of Nebula Cooldown", desc, nebulaWandCooldownTick);
- desc = "Switching the Mana Charger on or off in the game";
- hasManaCharger = loadPropBool("Enable Mana Charger", desc, hasManaCharger);
- desc = "Enables or disables Advanced Agglomeration Plate in the game. When switched off, you need to set up recipes, for resources";
- hasAbPlate = loadPropBool("Enable Adv. Agg. Plate", desc, hasAbPlate);
- desc = "Maximum amount of mana held in a mana spreader";
- spreaderMaxMana = loadPropInt("Spreader Max Mana", desc, spreaderMaxMana);
- desc = "Amount of Mana in a Mana Burst";
- spreaderBurstMana = loadPropInt("Spreader Burst Mana", desc, spreaderBurstMana);
- desc = "sss";
- lockEntityListToHide = loadPropString("SpreSdsader Burst Mana", desc, lockEntityListToHide);
- if(config.hasChanged())
- config.save();
- }
-
- public static void loadPostInit() {
- if(config.hasChanged())
- config.save();
- }
-
- public static String[] loadPropString(String propName, String desc, String[] default_) {
- Property prop = config.get("general", propName, default_);
- prop.comment = desc;
- return prop.getStringList();
- }
-
- public static boolean loadPropBool(String propName, String desc, boolean default_) {
- Property prop = config.get("general", propName, default_);
- prop.comment = desc;
- return prop.getBoolean(default_);
- }
-
- public static int loadPropInt(String propName, String desc, int default_) {
- Property prop = config.get("general", propName, default_);
- prop.comment = desc;
- return prop.getInt(default_);
- }
-
- public static double loadPropDouble(String propName, String desc, double default_) {
- Property prop = config.get("general", propName, default_);
- prop.comment = desc;
- return prop.getDouble(default_);
- }
-
- public static class ChangeListener {
- @SubscribeEvent
- public void onConfigChanged(ConfigChangedEvent.OnConfigChangedEvent eventArgs) {
- if(eventArgs.modID.equals(AdvancedBotany.modid))
- ConfigABHandler.load();
- }
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/b/e0bbdb19c4b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/b/e0bbdb19c4b1001c19bf8a91ac37238b
deleted file mode 100644
index c829561..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/b/e0bbdb19c4b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,232 +0,0 @@
-package ab.common.block.tile;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.api.IRenderHud;
-import ab.common.core.CommonHelper;
-import ab.common.lib.register.BlockListAB;
-import net.minecraft.block.Block;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.gui.Gui;
-import net.minecraft.client.gui.ScaledResolution;
-import net.minecraft.client.renderer.RenderHelper;
-import net.minecraft.client.renderer.entity.RenderItem;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.ItemBlock;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.world.World;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.api.lexicon.multiblock.Multiblock;
-import vazkii.botania.api.lexicon.multiblock.MultiblockSet;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.block.ModBlocks;
-import vazkii.botania.common.block.ModFluffBlocks;
-import vazkii.botania.common.block.tile.TileMod;
-import vazkii.botania.common.core.handler.ConfigHandler;
-
-public class TileLebethronCore extends TileMod implements IRenderHud {
-
- protected int tick;
- protected Block block;
- protected int meta;
- protected boolean validTree;
- private String playerName = "";
-
- public static MultiblockSet makeMultiblockSet() {
- Multiblock mb = new Multiblock();
- mb.addComponent(0, 1, 0, BlockListAB.blockLebethron, 4);
- mb.addComponent(0, 0, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 2, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 3, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 4, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 5, 0, BlockListAB.blockLebethron, 0);
- mb.setRenderOffset(0, 1, 0);
- return mb.makeSet();
- }
-
- public void updateEntity() {
- if(!worldObj.isRemote) {
- if(tick <= 0) {
- updateStructure();
- if(validTree && getBlock() != null) {
- spawnLeaves();
- tick = 40;
- }
- } else
- tick--;
- } else if(worldObj.rand.nextBoolean())
- Botania.proxy.sparkleFX(this.worldObj, this.xCoord + Math.random(), this.yCoord + Math.random(), this.zCoord + Math.random(), 0.5F, 1.0F, 0.5F, (float)Math.random() * 2, 2);
- }
-
- public boolean getValidTree() {
- return this.validTree;
- }
-
- public void updateStructure() {
- boolean oldValidTree = validTree;
- validTree = hasValidTree();
- if(oldValidTree != validTree)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- }
-
- public void setPlayerName(String name) {
- if(playerName.isEmpty())
- playerName = name;
- }
-
- public void writeToNBT(NBTTagCompound nbtt) {
- super.writeToNBT(nbtt);
- nbtt.setString("playerName", playerName);
- }
-
- public void readFromNBT(NBTTagCompound nbtt) {
- super.readFromNBT(nbtt);
- playerName = nbtt.getString("playerName");
- }
-
- public void writeCustomNBT(NBTTagCompound nbtt) {
- nbtt.setInteger("blockID", Block.getIdFromBlock(block));
- nbtt.setInteger("blockMeta", this.meta);
- nbtt.setInteger("tick", this.tick);
- nbtt.setBoolean("validTree", validTree);
- }
-
- public void readCustomNBT(NBTTagCompound nbtt) {
- this.block = Block.getBlockById(nbtt.getInteger("blockID"));
- this.meta = nbtt.getInteger("blockMeta");
- this.tick = nbtt.getInteger("tick");
- this.validTree = nbtt.getBoolean("validTree");
- }
-
- public boolean setBlock(Block block, int meta) {
- if(this.block == null) {
- this.block = block;
- this.meta = meta;
- return true;
- } else {
- if(Block.isEqualTo(this.block, block) && this.meta == meta) {
- return false;
- }
- if(!this.worldObj.isRemote) {
- EntityItem entity = new EntityItem(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- entity.setEntityItemStack(new ItemStack(this.block, 1, this.meta));
- this.worldObj.spawnEntityInWorld(entity);
- }
- this.block = block;
- this.meta = meta;
- return true;
- }
- }
-
- public Block getBlock() {
- if(!Block.isEqualTo(block, Blocks.air) && block != null)
- return this.block;
- return null;
- }
-
- public int getMeta() {
- return this.meta;
- }
-
- public boolean hasValidTree() {
- if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord - 1, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord - 1, this.zCoord))) {
- return false;
- }
- for(int i = 1; i <= 4; i++) {
- if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord + i, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord + i, this.zCoord))) {
- return false;
- }
- }
- return true;
- }
-
- boolean checkBlock(Block block, int meta) {
- return block == BlockListAB.blockLebethron && meta == 0;
- }
-
- private void spawnLeaves() {
- for(int x = -1; x <= 1; x++)
- for(int z = -1; z <= 1; z++)
- for(int y = 0; y < 5; y++)
- this.setBlock(worldObj, this.xCoord + x, this.yCoord + y + 2, this.zCoord + z);
- this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 1, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 1, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord + 1);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord - 1);
- this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 7, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 7, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord + 1);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord - 1);
- for(int i = 0; i <= 3; i++)
- this.setBlock(worldObj, this.xCoord, this.yCoord + 6 + i, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord - 2);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord - 2);
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord - 2);
- }
- this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord - 2);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord + 2);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord + 2);
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord + 2);
- }
- this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord + 2);
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 2, this.zCoord);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 3, this.zCoord + i);
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 4, this.zCoord + i);
- }
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 5, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 2, this.zCoord);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 3, this.zCoord + i);
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 4, this.zCoord + i);
- }
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 5, this.zCoord);
- }
-
- private void setBlock(World world, int x, int y, int z) {
- EntityPlayer player = worldObj.getPlayerEntityByName(playerName);
- if(player != null) {
- if(world.rand.nextInt(10) <= 8)
- return;
- else
- CommonHelper.setBlock(world, block, meta, x, y, z, (EntityPlayerMP)player, true);
- }
- }
-
- public void renderHud(Minecraft mc, ScaledResolution res) {
- if(!validTree)
- return;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- ItemStack stack = getBlock() != null ? new ItemStack(block, 1, meta) : new ItemStack(Blocks.leaves);
- int x = res.getScaledWidth() / 2 - 7;
- int y = res.getScaledHeight() / 2 + 12;
- Gui.drawRect(x - 2, y - 2, x + 18, y + 18, 1140850688);
- Gui.drawRect(x, y, x + 16, y + 16, 1140850688);
- RenderHelper.enableGUIStandardItemLighting();
- GL11.glEnable(32826);
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, stack, x, y);
- RenderHelper.disableStandardItemLighting();
- GL11.glDisable(2929);
- boolean unicode = mc.fontRenderer.getUnicodeFlag();
- mc.fontRenderer.setUnicodeFlag(true);
- if(getBlock() != null) {
- mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 9, 19456);
- mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 8, 774669);
- } else {
- mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 9, 4980736);
- mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 8, 13764621);
- }
- mc.fontRenderer.setUnicodeFlag(unicode);
- GL11.glEnable(2929);
- GL11.glDisable(3042);
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/b0/2034e6e946b0001c1746c57a5fe46fd3 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/b0/2034e6e946b0001c1746c57a5fe46fd3
deleted file mode 100644
index 1fc75a9..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/b0/2034e6e946b0001c1746c57a5fe46fd3
+++ /dev/null
@@ -1,48 +0,0 @@
-package ab.common.item.relic;
-
-import java.lang.reflect.InvocationTargetException;
-import java.util.List;
-
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import cpw.mods.fml.relauncher.ReflectionHelper;
-import net.minecraft.entity.EntityLivingBase;
-import net.minecraft.entity.boss.IBossDisplayData;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.ItemStack;
-import net.minecraft.world.World;
-import net.minecraftforge.common.MinecraftForge;
-import net.minecraftforge.event.entity.living.LivingDropsEvent;
-
-public class ItemSehrimnirHide extends ItemModRelic {
-
- public static final String[] dropFewItems = new String[] { "dropFewItems", "func_70628_a" };
-
- public ItemSehrimnirHide() {
- super("sehrimnirHide");
- MinecraftForge.EVENT_BUS.register(this);
- }
-
- @SubscribeEvent
- public void onPlayerAttack(LivingDropsEvent event) {
- if(event != null && event.source != null && event.source.getSourceOfDamage() instanceof EntityPlayer) {
- EntityPlayer player = (EntityPlayer)event.source.getSourceOfDamage();
- if(player.inventory.hasItem(this)) {
- if(event.entityLiving != null && event.drops != null && !(event.entityLiving instanceof IBossDisplayData)) {
- List items = event.drops;
- World world = event.entityLiving.worldObj;
- double posX = event.entityLiving.posX;
- double posY = event.entityLiving.posY;
- double posZ = event.entityLiving.posZ;
- if(!world.isRemote) {
- for(EntityItem entity : items) {
- ItemStack loot = entity.getEntityItem().copy();
- EntityItem item = new EntityItem(world, posX, posY, posZ, loot);
- world.spawnEntityInWorld(item);
- }
- }
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/b1/600e5e41e2ad001c1bd4eaa9a9be6b81 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/b1/600e5e41e2ad001c1bd4eaa9a9be6b81
deleted file mode 100644
index 93d32a6..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/b1/600e5e41e2ad001c1bd4eaa9a9be6b81
+++ /dev/null
@@ -1,268 +0,0 @@
-package ab.common.lib.register;
-
-import java.io.Serializable;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.List;
-
-import ab.api.AdvancedBotanyAPI;
-import ab.api.recipe.RecipeAdvancedPlate;
-import ab.api.recipe.RecipeAncientAlphirine;
-import ab.api.recipe.lexicon.AdvancedPlateCraftPage;
-import ab.api.recipe.lexicon.AlphirineCraftPage;
-import ab.common.block.tile.TileAgglomerationPlate;
-import ab.common.block.tile.TileLebethronCore;
-import ab.common.block.tile.TileMagicCraftCrate;
-import ab.common.core.handler.ConfigABHandler;
-import ab.common.item.ItemCraftingPattern;
-import cpw.mods.fml.common.registry.GameRegistry;
-import net.minecraft.init.Blocks;
-import net.minecraft.init.Items;
-import net.minecraft.item.ItemStack;
-import net.minecraft.item.crafting.CraftingManager;
-import net.minecraft.item.crafting.IRecipe;
-import net.minecraft.util.EnumChatFormatting;
-import net.minecraftforge.oredict.ShapedOreRecipe;
-import net.minecraftforge.oredict.ShapelessOreRecipe;
-import thaumcraft.common.config.ConfigBlocks;
-import thaumcraft.common.config.ConfigItems;
-import vazkii.botania.api.BotaniaAPI;
-import vazkii.botania.api.lexicon.KnowledgeType;
-import vazkii.botania.api.lexicon.LexiconCategory;
-import vazkii.botania.api.lexicon.LexiconEntry;
-import vazkii.botania.api.lexicon.LexiconPage;
-import vazkii.botania.api.recipe.RecipePetals;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.block.ModBlocks;
-import vazkii.botania.common.item.ModItems;
-import vazkii.botania.common.item.block.ItemBlockSpecialFlower;
-import vazkii.botania.common.lexicon.BLexiconCategory;
-import vazkii.botania.common.lexicon.BLexiconEntry;
-import vazkii.botania.common.lexicon.RLexiconEntry;
-import vazkii.botania.common.lexicon.page.PageText;
-
-public class RecipeListAB {
-
- public static LexiconCategory categoryForgotten;
-
- public static RecipeAncientAlphirine lebethroneRecipe;
- public static RecipeAncientAlphirine forgottenLandRecipe;
- public static RecipeAncientAlphirine advancedSparkRecipe;
- public static RecipeAncientAlphirine manaFlowerRecipe;
- public static RecipeAncientAlphirine hopperRecipe;
-
- public static RecipeAdvancedPlate manaStarRecipe;
- public static RecipeAdvancedPlate terrasteelRecipe;
- public static RecipeAdvancedPlate mithrillRecipe;
- public static RecipeAdvancedPlate nebulaRecipe;
-
- public static RecipePetals alphirineRecipe;
- public static RecipePetals dictariusRecipe;
- public static RecipePetals aspecolusRecipe;
- public static RecipePetals pureGladRecipe;
-
- public static LexiconEntry advandedAgglomerationPlate;
- public static LexiconEntry ancientAlphirine;
- public static LexiconEntry lebethronWood;
- public static LexiconEntry lebethronSpreader;
- public static LexiconEntry mithrill;
- public static LexiconEntry manaContainer;
- public static LexiconEntry manaCrystalCube;
- public static LexiconEntry terraHoe;
- public static LexiconEntry manaRings;
- public static LexiconEntry manaFlower;
- public static LexiconEntry mithrillSword;
- public static LexiconEntry nebula;
- public static LexiconEntry blackHalo;
- public static LexiconEntry antigravityCharm;
- public static LexiconEntry nebulaBlaze;
- public static LexiconEntry aspecolus;
- public static LexiconEntry dictarius;
- public static LexiconEntry manaCharger;
- public static LexiconEntry nebulaArmor;
- public static LexiconEntry freyrSlingshot;
- public static LexiconEntry engineerHopper;
- public static LexiconEntry nebulaRod;
- public static LexiconEntry thaumAutoCraft;
- public static LexiconEntry gladious;
-
- public static KnowledgeType forgotten;
-
- public static void init() {
-
- BotaniaAPI.addCategory(categoryForgotten = new BLexiconCategory("forgotten", 5));
- forgotten = BotaniaAPI.registerKnowledgeType("ab_forgotten", EnumChatFormatting.BLUE, false);
-
- lebethroneRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(BlockListAB.blockLebethron), new ItemStack(ModBlocks.dreamwood, 1, 0), 15);
- forgottenLandRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(ItemListAB.itemABResource, 1, 3), new ItemStack(ModItems.manaResource, 1, 15), 75);
- advancedSparkRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(ItemListAB.itemAdvancedSpark), new ItemStack(ModItems.spark), 11);
- manaFlowerRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(ItemListAB.itemABResource, 1, 4), new ItemStack(ModBlocks.flower, 1, 32767), 32);
- hopperRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(BlockListAB.blockEngineerHopper), new ItemStack(Blocks.hopper), 23);
-
- mithrillRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ItemListAB.itemABResource, 1, 0), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModBlocks.storage, 1, 0), new ItemStack(ModItems.manaResource, 1, 18), 7500000, 0x25d6b7);
- terrasteelRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ModItems.manaResource, 1, 4), new ItemStack(ModItems.manaResource, 1, 2), new ItemStack(ModItems.manaResource, 1, 0), new ItemStack(ModItems.manaResource, 1, 1), 500000, 0x29de20);
- manaStarRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ItemListAB.itemABResource, 1, 2), new ItemStack(ModItems.manaResource, 1, 23), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(Items.nether_star), 250000, 0x6bc9ec);
- nebulaRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ItemListAB.itemABResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 8), new ItemStack(ModBlocks.storage, 1, 4), new ItemStack(ItemListAB.itemABResource, 1, 1), 50000000, 0x8d16e0);
-
- ancientAlphirine = new BLexiconEntry("ancientAlphirine", categoryForgotten);
- alphirineRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("ancientAlphirine"), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.rune, 1, 8), new ItemStack(ModItems.rune, 1, 4), new ItemStack(ModItems.rune, 1, 5), new ItemStack(ModItems.rune, 1, 6), new ItemStack(ModItems.rune, 1, 7), new ItemStack(ModItems.petal, 1, 1), new ItemStack(ModItems.petal, 1, 4));
- ancientAlphirine.setPriority().setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), new PageText("1"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", alphirineRecipe), new AlphirineCraftPage(ancientAlphirine, forgottenLandRecipe.getOutput(), ".alphirineCraft") }).setIcon(ItemBlockSpecialFlower.ofType("ancientAlphirine"));
-
- if(ConfigABHandler.hasAbPlate) {
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockABPlate), new Object[] { " ", "MPM", "BRB", Character.valueOf('M'), new ItemStack(ModBlocks.storage), Character.valueOf('P'), new ItemStack(ModBlocks.terraPlate), Character.valueOf('B'), new ItemStack(ItemListAB.itemABResource, 1, 3), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 3)});
- advandedAgglomerationPlate = new BLexiconEntry("advancedPlate", categoryForgotten);
- advandedAgglomerationPlate.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] {new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()), BotaniaAPI.internalHandler.multiblockPage(".structure", TileAgglomerationPlate.makeMultiblockSet()), new AdvancedPlateCraftPage(advandedAgglomerationPlate, terrasteelRecipe.getOutput(), ".abCraft0"), new AdvancedPlateCraftPage(advandedAgglomerationPlate, manaStarRecipe.getOutput(), ".abCraft1") }).setIcon(new ItemStack(BlockListAB.blockABPlate));
- }
-
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockABSpreader), new Object[] { "WMW", "PSP", "WMW", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource, 1, 2), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('S'), new ItemStack(ModBlocks.spreader, 1, 3), Character.valueOf('W'), new ItemStack(BlockListAB.blockLebethron, 1, 4)});
- lebethronSpreader = new BLexiconEntry("lebethronSpreader", categoryForgotten);
- lebethronSpreader.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(BlockListAB.blockABSpreader));
-
- addShapelessOreDictRecipe(new ItemStack(BlockListAB.blockLebethron, 4, 1), new Object[] { new ItemStack(BlockListAB.blockLebethron)});
- IRecipe leb1 = getLastRecipe();
- addShapelessOreDictRecipe(new ItemStack(BlockListAB.blockLebethron, 1, 2), new Object[] { new ItemStack(BlockListAB.blockLebethron, 1, 1), new ItemStack(Items.wheat_seeds)});
- IRecipe leb2 = getLastRecipe();
- addShapelessOreDictRecipe(new ItemStack(BlockListAB.blockLebethron, 1, 3), new Object[] { new ItemStack(BlockListAB.blockLebethron), new ItemStack(Items.glowstone_dust)});
- IRecipe leb3 = getLastRecipe();
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockLebethron, 1, 4), new Object[] { "4W5", "WPW", "6W7", Character.valueOf('P'), new ItemStack(ModBlocks.pylon, 1, 1), Character.valueOf('W'), new ItemStack(BlockListAB.blockLebethron), Character.valueOf('4'), new ItemStack(ModItems.rune, 1, 4), Character.valueOf('5'), new ItemStack(ModItems.rune, 1, 5), Character.valueOf('6'), new ItemStack(ModItems.rune, 1, 6), Character.valueOf('7'), new ItemStack(ModItems.rune, 1, 7)});
- IRecipe leb4 = getLastRecipe();
- lebethronWood = new BLexiconEntry("lebethronWood", categoryForgotten);
- lebethronWood.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AlphirineCraftPage(lebethronWood, lebethroneRecipe.getOutput(), ".alphirineCraft"), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb1), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb2), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb3), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb4), new PageText("1"), BotaniaAPI.internalHandler.multiblockPage(".structure", TileLebethronCore.makeMultiblockSet()) }).setIcon(new ItemStack(BlockListAB.blockLebethron));
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemMihrillMultiTool), new Object[] { " MB", " FM", "F ", Character.valueOf('F'), new ItemStack(ModItems.manaResource, 1, 3), Character.valueOf('B'), new ItemStack(ModBlocks.livingwood), Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource)});
- mithrill = new BLexiconEntry("mithrill", categoryForgotten);
- mithrill.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AdvancedPlateCraftPage(mithrill, mithrillRecipe.getOutput(), ".abCraft"), new PageText("1"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(ItemListAB.itemMihrillMultiTool));
- if(!ConfigABHandler.hasAbPlate)
- mithrill.pages.remove(1);
-
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaContainer), new Object[] { "MGM", "LPL", "M3M", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('L'), new ItemStack(ModBlocks.pool), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('3'), new ItemStack(ModItems.rune, 1, 3), Character.valueOf('G'), new ItemStack(ModItems.rune, 1, 15)});
- IRecipe cont1 = getLastRecipe();
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaContainer, 1, 1), new Object[] { "MGM", "LPL", "M3M", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource, 1, 1), Character.valueOf('L'), new ItemStack(ModBlocks.pool, 1, 2), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('3'), new ItemStack(ModItems.rune, 1, 3), Character.valueOf('G'), new ItemStack(ModItems.rune, 1, 15)});
- IRecipe cont2 = getLastRecipe();
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaContainer, 1, 2), new Object[] { "MGM", "LPL", "M3M", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('L'), new ItemStack(ModBlocks.pool, 1, 3), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('3'), new ItemStack(ModItems.rune, 1, 3), Character.valueOf('G'), new ItemStack(ModItems.rune, 1, 15)});
- IRecipe cont3 = getLastRecipe();
- manaContainer = new BLexiconEntry("manaContainer", categoryForgotten);
- manaContainer.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", cont1), BotaniaAPI.internalHandler.craftingRecipePage(".craft1", cont2), BotaniaAPI.internalHandler.craftingRecipePage(".craft2", cont3), new PageText("1"), new AlphirineCraftPage(manaContainer, advancedSparkRecipe.getOutput(), ".alphirineCraft") }).setIcon(new ItemStack(BlockListAB.blockManaContainer));
-
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaCrystalCube), new Object[] { "TST", "GWG", "DMD", Character.valueOf('D'), new ItemStack(ModBlocks.dreamwood), Character.valueOf('W'), new ItemStack(ModItems.twigWand, 1, 32767), Character.valueOf('G'), new ItemStack(ModBlocks.manaGlass), Character.valueOf('M'), new ItemStack(ModItems.manaResource), Character.valueOf('T'), new ItemStack(ModItems.manaResource, 1, 18), Character.valueOf('S'), new ItemStack(ModItems.spark)});
- manaCrystalCube = new BLexiconEntry("manaCrystalCube", BotaniaAPI.categoryMana);
- manaCrystalCube.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(BlockListAB.blockManaCrystalCube));
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemTerraHoe), new Object[] { "TTL", "RW ", " W ", Character.valueOf('T'), new ItemStack(ModItems.manaResource, 1, 4), Character.valueOf('L'), new ItemStack(ModItems.manaResource, 1, 18), Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 3), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 2)});
- terraHoe = new BLexiconEntry("terraHoe", BotaniaAPI.categoryTools);
- terraHoe.setLexiconPages(new LexiconPage[]{ new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(ItemListAB.itemTerraHoe));
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemMithrillRing), new Object[] { "LML", "MRM", "LML", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('L'), new ItemStack(ItemListAB.itemABResource, 1, 1), Character.valueOf('R'), new ItemStack(ModItems.manaRingGreater)});
- IRecipe ring1 = getLastRecipe();
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaRing), new Object[] { "LML", "MRM", "LML", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource, 1, 6), Character.valueOf('L'), new ItemStack(ModItems.manaResource, 1, 5), Character.valueOf('R'), new ItemStack(ItemListAB.itemMithrillRing)});
- IRecipe ring2 = getLastRecipe();
- manaRings = new BLexiconEntry("manaRings", categoryForgotten);
- manaRings.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[]{ new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", ring1), BotaniaAPI.internalHandler.craftingRecipePage(".craft1", ring2)}).setIcon(new ItemStack(ItemListAB.itemMithrillRing));
- AdvancedBotanyAPI.registerFarmlandSeed(Blocks.nether_wart, 3);
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemManaFlower), new Object[] { " F ", " M ", " R ", Character.valueOf('F'), new ItemStack(ItemListAB.itemABResource, 1, 4), Character.valueOf('M'), new ItemStack(ModItems.manaBottle), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 8)});
- manaFlower = new BLexiconEntry("manaFlower", categoryForgotten);
- manaFlower.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AlphirineCraftPage(manaFlower, manaFlowerRecipe.getOutput(), ".alphirineCraft"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())}).setIcon(new ItemStack(ItemListAB.itemManaFlower));
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemMithrillSword), new Object[] { " M", "SM ", "WS ", Character.valueOf('S'), new ItemStack(ItemListAB.itemABResource, 1, 6), Character.valueOf('T'), new ItemStack(ModItems.terraSword), Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 3)});
- mithrillSword = new BLexiconEntry("mithrillSword", categoryForgotten);
- mithrillSword.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(ItemListAB.itemMithrillSword));
-
- dictariusRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("dictarius"), new ItemStack(ItemListAB.itemABResource, 1, 4), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.rune, 1, 15), new ItemStack(ModItems.petal, 1, 4), new ItemStack(ModItems.petal, 1, 4), new ItemStack(ModItems.petal, 1, 1));
- dictarius = new BLexiconEntry("dictarius", BotaniaAPI.categoryGenerationFlowers);
- dictarius.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", dictariusRecipe)});
-
- nebula = new BLexiconEntry("nebula", categoryForgotten);
- nebula.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AdvancedPlateCraftPage(nebula, nebulaRecipe.getOutput(), ".abCraft")});
- if(!ConfigABHandler.hasAbPlate)
- nebula.pages.remove(1);
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemBlackHalo), new Object[] { " E ", "DHD", " E ", Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.autocraftingHalo), Character.valueOf('D'), new ItemStack(ModItems.blackHoleTalisman)});
- blackHalo = new BLexiconEntry("blackHalo", BotaniaAPI.categoryTools);
- blackHalo.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemAntigravityCharm), new Object[] { " G ", "GDG", "ERE", Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('G'), new ItemStack(ModBlocks.elfGlass), Character.valueOf('D'), new ItemStack(ModBlocks.floatingFlower, 1, 32767), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 3)});
- antigravityCharm = new BLexiconEntry("antigravityCharm", BotaniaAPI.categoryTools);
- antigravityCharm.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())}).setIcon(new ItemStack(ItemListAB.itemAntigravityCharm));
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaBlaze), new Object[] { " N ", "MMN", "AMN", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 6), Character.valueOf('A'), new ItemStack(ItemListAB.itemABResource, 1, 3), Character.valueOf('M'), new ItemStack(ModBlocks.storage)});
- nebulaBlaze = new BLexiconEntry("nebulaBlaze", categoryForgotten);
- nebulaBlaze.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
-
- if(ConfigABHandler.hasManaCharger) {
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaCharger), new Object[] { "NLN", "MPM", " R ", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 1), Character.valueOf('L'), new ItemStack(ModBlocks.livingrock), Character.valueOf('M'), new ItemStack(ModBlocks.bellows), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 8)});
- manaCharger = new BLexiconEntry("manaCharger", categoryForgotten);
- manaCharger.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
- }
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaHelm), new Object[] { "RNR", "NHN", " E ", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelHelm), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8)});
- IRecipe nHelm = getLastRecipe();
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaChest), new Object[] { "RTR", "NHN", "ENE", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelChest), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8), Character.valueOf('T'), new ItemStack(ModItems.flightTiara, 1, 32767)});
- IRecipe nChest = getLastRecipe();
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaLegs), new Object[] { "ENE", "RHR", "NAN", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelLegs), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8), Character.valueOf('A'), new ItemStack(ItemListAB.itemABResource, 1, 3)});
- IRecipe nLegs = getLastRecipe();
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaBoots), new Object[] { "RBR", "NHN", " E ", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelBoots), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8), Character.valueOf('B'), new ItemStack(ModItems.speedUpBelt)});
- IRecipe nBoots = getLastRecipe();
- nebulaArmor = new BLexiconEntry("nebulaArmor", categoryForgotten);
- nebulaArmor.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new PageText("1"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", nHelm), BotaniaAPI.internalHandler.craftingRecipePage(".craft", nChest), BotaniaAPI.internalHandler.craftingRecipePage(".craft", nLegs), BotaniaAPI.internalHandler.craftingRecipePage(".craft", nBoots)});
-
- freyrSlingshot = new RLexiconEntry("freyrSlingshot", categoryForgotten, AchievementRegister.relicSlingshot);
- freyrSlingshot.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0")});
-
- engineerHopper = new BLexiconEntry("engineerHopper", categoryForgotten);
- engineerHopper.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AlphirineCraftPage(engineerHopper, hopperRecipe.getOutput(), ".alphirineCraft")});
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaRod), new Object[] { " WN", " RW", "W ", Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 13), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 8), Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 6)});
- nebulaRod = new BLexiconEntry("nebulaRod", categoryForgotten);
- nebulaRod.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
-
- if(Botania.thaumcraftLoaded)
- thaumcraft();
-
- addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemABResource, 9, 1), new Object[] { new ItemStack(ItemListAB.itemABResource)});
- addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemABResource, 9, 0), new Object[] { new ItemStack(BlockListAB.blockABStorage)});
- addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemABResource, 9, 6), new Object[] { new ItemStack(ItemListAB.itemABResource, 1, 5)});
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockABStorage), new Object[] { "III", "III", "III", Character.valueOf('I'), new ItemStack(ItemListAB.itemABResource)});
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemABResource, 1, 5), new Object[] { "III", "III", "III", Character.valueOf('I'), new ItemStack(ItemListAB.itemABResource, 1, 6)});
- }
-
- public static void thaumcraft() {
- aspecolus = new BLexiconEntry("aspecolus", BotaniaAPI.categoryFunctionalFlowers);
- aspecolusRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("aspecolus"), new ItemStack(ModItems.manaResource, 1, 6), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.rune, 1, 1), new ItemStack(ModItems.rune), new ItemStack(ItemListAB.itemABResource, 1, 2), new ItemStack(ModItems.petal, 1, 10), new ItemStack(ModItems.petal, 1, 13));
- aspecolus.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", aspecolusRecipe) }).setIcon(ItemBlockSpecialFlower.ofType("aspecolus"));
- addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemNebulaHelmReveal), new Object[] { new ItemStack(ItemListAB.itemNebulaHelm), new ItemStack(ConfigItems.itemGoggles)});
- List recipes = new ArrayList();
- for(int i = 1; i < 10; i++) {
- boolean[][] patterns = ItemCraftingPattern.getPattern(i);
- List str = new ArrayList();
- for(int j = 0; j < patterns.length; j++) {
- String str1 = "";
- for(int k = 0; k < patterns[j].length; k++)
- str1 += patterns[j][k] ? "T" : "H";
- str.add(str1);
- }
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemCraftingPattern, 1, i), new Object[] { str.get(0), str.get(1), str.get(2), Character.valueOf('T'), new ItemStack(ItemListAB.itemCraftingPattern), Character.valueOf('H'), new ItemStack(ConfigItems.itemNugget, 1, 6)});
- recipes.add(getLastRecipe());
- }
- IRecipe crate = GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockMagicCraftCrate), new Object[] { "TST", "WCW", "W W", Character.valueOf('W'), new ItemStack(ConfigBlocks.blockMagicalLog), Character.valueOf('S'), new ItemStack(ConfigItems.itemResource, 1, 14), Character.valueOf('T'), new ItemStack(ConfigItems.itemResource, 1, 7), Character.valueOf('C'), new ItemStack(ModBlocks.openCrate, 1, 1)});
- addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemCraftingPattern, 48), new Object[] { new ItemStack(Blocks.crafting_table), new ItemStack(ModBlocks.livingrock), new ItemStack(ConfigItems.itemResource, 1, 14)});
- thaumAutoCraft = new BLexiconEntry("thaumAutoCraft", BotaniaAPI.categoryDevices);
- thaumAutoCraft.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", crate) , BotaniaAPI.internalHandler.craftingRecipePage(".craft0", getLastRecipe()), BotaniaAPI.internalHandler.craftingRecipesPage(".craft1", recipes)});
-
- pureGladRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("pureGladiolus"), new ItemStack(ItemListAB.itemABResource, 1, 4), new ItemStack(ModItems.rune, 1, 8), new ItemStack(ModItems.petal, 1, 8), new ItemStack(ModItems.petal, 1, 4), new ItemStack(ModItems.petal, 1, 14), new ItemStack(ModItems.petal, 1, 5), new ItemStack(ModItems.petal, 1, 13), new ItemStack(ModItems.petal, 1, 11));
- gladious = new BLexiconEntry("gladious", BotaniaAPI.categoryFunctionalFlowers);
- gladious.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", pureGladRecipe)});
- }
-
- private static IRecipe getLastRecipe() {
- return (IRecipe)CraftingManager.getInstance().getRecipeList().get(CraftingManager.getInstance().getRecipeList().size() - 1);
- }
-
- private static void addOreDictRecipe(ItemStack output, Object... recipe) {
- CraftingManager.getInstance().getRecipeList().add(new ShapedOreRecipe(output, recipe));
- }
-
- private static void addShapelessOreDictRecipe(ItemStack output, Object... recipe) {
- CraftingManager.getInstance().getRecipeList().add(new ShapelessOreRecipe(output, recipe));
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/b1/c0b7a0729db1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/b1/c0b7a0729db1001c19bf8a91ac37238b
deleted file mode 100644
index bb78350..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/b1/c0b7a0729db1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,242 +0,0 @@
-package ab.client.core;
-
-import java.awt.Color;
-import java.nio.FloatBuffer;
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.gui.ScaledResolution;
-import net.minecraft.client.renderer.ActiveRenderInfo;
-import net.minecraft.client.renderer.GLAllocation;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.RenderHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.entity.RenderItem;
-import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.IIcon;
-import net.minecraft.util.ResourceLocation;
-import net.minecraft.util.StatCollector;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-import vazkii.botania.client.core.handler.HUDHandler;
-import vazkii.botania.common.block.ModBlocks;
-import vazkii.botania.common.core.helper.Vector3;
-
-public class ClientHelper {
-
- public static final ResourceLocation miscHuds = new ResourceLocation("ab:textures/misc/miscHuds.png");
- private static final ResourceLocation field_147529_c = new ResourceLocation("textures/environment/end_sky.png");
- private static final ResourceLocation field_147526_d = new ResourceLocation("textures/entity/end_portal.png");
- private static final Random field_147527_e = new Random(31100L);
- public static Minecraft mc = Minecraft.getMinecraft();
- private static FloatBuffer field_147528_b = GLAllocation.createDirectFloatBuffer(16);
-
- public static void renderCosmicBackground() {
- field_147527_e.setSeed(31100L);
- float f4 = 0.24F;
- for (int i = 0; i < 16; i++) {
- GL11.glPushMatrix();
- float f5 = (16 - i);
- float f6 = 0.0625F;
- float f7 = 1.0F / (f5 + 1.0F);
- if (i == 0) {
- mc.renderEngine.bindTexture(field_147529_c);
- f7 = 0.1F;
- f5 = 65.0F;
- f6 = 0.125F;
- GL11.glEnable(GL11.GL_BLEND);
- GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
- }
- if (i == 1) {
- mc.renderEngine.bindTexture(field_147526_d);
- GL11.glEnable(GL11.GL_BLEND);
- GL11.glBlendFunc(GL11.GL_ONE, GL11.GL_ONE);
- f6 = 0.5F;
- }
- GL11.glTranslatef(0.0f, 1.5f, 0.0f);
- GL11.glTexGeni(GL11.GL_S, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_OBJECT_LINEAR);
- GL11.glTexGeni(GL11.GL_T, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_OBJECT_LINEAR);
- GL11.glTexGeni(GL11.GL_R, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_OBJECT_LINEAR);
- GL11.glTexGeni(GL11.GL_Q, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_EYE_LINEAR);
- GL11.glTexGen(GL11.GL_S, GL11.GL_OBJECT_PLANE, func_147525_a(1.0F, 0.0F, 0.0F, 0.0F));
- GL11.glTexGen(GL11.GL_T, GL11.GL_OBJECT_PLANE, func_147525_a(0.0F, 0.0F, 1.0F, 0.0F));
- GL11.glTexGen(GL11.GL_R, GL11.GL_OBJECT_PLANE, func_147525_a(0.0F, 0.0F, 0.0F, 1.0F));
- GL11.glTexGen(GL11.GL_Q, GL11.GL_EYE_PLANE, func_147525_a(0.0F, 1.0F, 0.0F, 0.0F));
- GL11.glEnable(GL11.GL_TEXTURE_GEN_S);
- GL11.glEnable(GL11.GL_TEXTURE_GEN_T);
- GL11.glEnable(GL11.GL_TEXTURE_GEN_R);
- GL11.glEnable(GL11.GL_TEXTURE_GEN_Q);
- GL11.glPopMatrix();
- GL11.glMatrixMode(GL11.GL_TEXTURE);
- GL11.glPushMatrix();
- GL11.glLoadIdentity();
- GL11.glTranslatef(0.0F, (float)(Minecraft.getSystemTime() % 20000L) / 20000.0F, 0.0F);
- GL11.glScalef(f6, f6, f6);
- GL11.glTranslatef(0.5F, 0.5F, 0.0F);
- GL11.glRotatef((i * i * 4321 + i * 9) * 2.0F, 0.0F, 0.0F, 1.0F);
- GL11.glTranslatef(-0.5F, -0.5F, 0.0F);
- Tessellator tessellator = Tessellator.instance;
- tessellator.startDrawingQuads();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float f11 = color.getRed() / 255.0F;
- float f12 = color.getGreen() / 255.0F;
- float f13 = color.getBlue() / 255.0F;
- tessellator.setBrightness(180);
- tessellator.setColorRGBA_F(f11 * f7, f12 * f7, f13 * f7, 1.0F);
- tessellator.addVertex(0.0D, f4, 0.0D);
- tessellator.addVertex(0.0D, f4, 1.0D);
- tessellator.addVertex(1.0D, f4, 1.0D);
- tessellator.addVertex(1.0D, f4, 0.0D);
- tessellator.draw();
- GL11.glPopMatrix();
- GL11.glMatrixMode(GL11.GL_MODELVIEW);
- }
- GL11.glDisable(GL11.GL_BLEND);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_S);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_T);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_R);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_Q);
- }
-
- private static FloatBuffer func_147525_a(float p_147525_1_, float p_147525_2_, float p_147525_3_, float p_147525_4_) {
- field_147528_b.clear();
- field_147528_b.put(p_147525_1_).put(p_147525_2_).put(p_147525_3_).put(p_147525_4_);
- field_147528_b.flip();
- return field_147528_b;
- }
-
- public static void drawArrow(int x, int y, boolean side) {
- mc.renderEngine.bindTexture(miscHuds);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0f);
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x, y, 0.0F, 0, 10, side ? 0 : 22, 38);
- }
-
- public static void drawChanceBar(int x, int y, int chance) {
- mc.renderEngine.bindTexture(miscHuds);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0f);
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x, y, 0.0F, 0, 0, 57, 6);
- int chancePercentage = Math.max(0, (int)((chance / 100.f) * 55.0D));
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x + 1, y + 1, 0.0F, 0, 6, 55, 4);
- Color color = new Color(Color.HSBtoRGB((chance) / 360.0f, ((float)Math.sin((ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks) * 0.2D) + 1.0F) * 0.3F + 0.4F, 1.0f));
- GL11.glColor4ub((byte)color.getRed(), (byte)color.getGreen(), (byte)color.getBlue(), (byte)255);
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x + 1, y + 1, 0.0F, 0, 6, Math.min(55, chancePercentage), 4);
- }
-
- public static void renderPoolManaBar(int x, int y, int color, float alpha, int mana) {
- Minecraft mc = Minecraft.getMinecraft();
- int poolCount = (int)Math.floor(mana / 1000000.0D);
- if(poolCount < 0)
- poolCount = 0;
- int onePoolMana = mana - (poolCount * 1000000);
- String strPool = poolCount + "x";
- int xc = x - mc.fontRenderer.getStringWidth(strPool) / 2;
- int yc = y;
- GL11.glPushMatrix();
- GL11.glTranslatef(xc + 42.0f, yc + 5.0f, 0.0f);
- RenderHelper.enableGUIStandardItemLighting();
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, new ItemStack(ModBlocks.pool), 0, 0);
- RenderHelper.disableStandardItemLighting();
- GL11.glTranslatef(18.0f, 5.0f, 300.0f);
- mc.fontRenderer.drawString(strPool, 0, 0, color);
- GL11.glPopMatrix();
- if((poolCount * 1000000) == mana)
- onePoolMana = poolCount * 1000000;
- HUDHandler.renderManaBar(x, y, color, alpha, onePoolMana, 1000000);
- }
-
- public static void drawPoolManaHUD(ScaledResolution res, String name, int mana, int maxMana, int color) {
- Minecraft mc = Minecraft.getMinecraft();
- int poolCount = (int)Math.floor(mana / 1000000.0D);
- int maxPoolCount = (int)Math.floor(maxMana / 1000000.0D);
- if(poolCount < 0)
- poolCount = 0;
- if(maxPoolCount < 0)
- maxPoolCount = 0;
- int onePoolMana = mana - (poolCount * 1000000);
- String strPool = poolCount + "x / " + maxPoolCount + "x";
- int xc = res.getScaledWidth() / 2 - mc.fontRenderer.getStringWidth(strPool) / 2 - 3;
- int yc = res.getScaledHeight() / 2;
- GL11.glPushMatrix();
- GL11.glTranslatef(xc - 6.0f, yc + 30.0f, 0.0f);
- RenderHelper.enableGUIStandardItemLighting();
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, new ItemStack(ModBlocks.pool), 0, 0);
- RenderHelper.disableStandardItemLighting();
- GL11.glTranslatef(18.0f, 4.5f, 300.0f);
- mc.fontRenderer.drawStringWithShadow(strPool, 0, 0, color);
- GL11.glPopMatrix();
- if((poolCount * 1000000) == mana)
- onePoolMana = poolCount * 1000000;
- HUDHandler.drawSimpleManaHUD(color, onePoolMana, 1000000, name, res);
- }
-
- public static void setLightmapTextureCoords() {
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- }
-
- public static Vector3 setRotation(float angel, float vX, float vY, float vZ, Vector3 v3) {
- Vector3 rVec = new Vector3(vX, vY, vZ);
- Vector3 rVec1 = v3.copy().normalize();
- double rAngel = Math.toRadians(angel) * 0.5f;
- double sin = Math.sin(rAngel);
- double x = rVec.x * sin;
- double y = rVec.y * sin;
- double z = rVec.z * sin;
- rAngel = Math.cos(rAngel);
- double d = -x * rVec1.x - y * rVec1.y - z * rVec1.z;
- double d1 = rAngel * rVec1.x + y * rVec1.z - z * rVec1.y;
- double d2 = rAngel * rVec1.y - x * rVec1.z + z * rVec1.x;
- double d3 = rAngel * rVec1.z + x * rVec1.y - y * rVec1.x;
- v3.x = d1 * rAngel - d * x - d2 * z + d3 * y;
- v3.y = d2 * rAngel - d * y + d1 * z - d3 * x;
- v3.z = d3 * rAngel - d * z - d1 * y + d2 * x;
- return v3;
- }
-
- public static Color getCorporeaRuneColor(int posX, int posY, int posZ, int meta) {
- double time = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- time += (new Random((posX ^ posY ^ posZ))).nextInt(360);
- float sin = (float)(Math.sin(time / 20.0f) * 0.15f) - 0.15f;
- int color = 0;
- switch(meta) {
- case 0:
- color = Color.HSBtoRGB(0.0f, 0.0f, 0.54f + (sin / 1.2f));
- break;
- case 1:
- color = Color.HSBtoRGB(0.688f, 0.93f, 0.96f + sin - 0.15f);
- break;
- case 2:
- color = Color.HSBtoRGB(0.983f, 0.99f, 1.0f + sin - 0.15f);
- break;
- case 3:
- color = Color.HSBtoRGB(0.319f, 0.92f, 0.95f + sin - 0.15f);
- break;
- case 4:
- color = Color.HSBtoRGB(0.536f, 0.53f, 0.92f + sin - 0.15f);
- break;
- }
- return new Color(color);
- }
-
- public static void renderIcon(IIcon icon, int light) {
- Tessellator tessellator = Tessellator.instance;
- float f = icon.getMinU();
- float f1 = icon.getMaxU();
- float f2 = icon.getMinV();
- float f3 = icon.getMaxV();
- float f4 = 1.0F;
- float f5 = 0.5F;
- float f6 = 0.25F;
- tessellator.startDrawingQuads();
- tessellator.setNormal(0.0F, 1.0F, 0.0F);
- tessellator.addVertexWithUV((0.0F - f5), (0.0F - f6), 0.0D, f, f3);
- tessellator.addVertexWithUV((f4 - f5), (0.0F - f6), 0.0D, f1, f3);
- tessellator.addVertexWithUV((f4 - f5), (f4 - f6), 0.0D, f1, f2);
- tessellator.addVertexWithUV((0.0F - f5), (f4 - f6), 0.0D, f, f2);
- tessellator.draw();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/b2/600e86c5a5b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/b2/600e86c5a5b1001c19bf8a91ac37238b
deleted file mode 100644
index a99258c..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/b2/600e86c5a5b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,317 +0,0 @@
-package ab.common.item.relic;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.AdvancedBotany;
-import ab.client.core.ClientHelper;
-import ab.common.entity.EntityAnonymousSteve;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.entity.AbstractClientPlayer;
-import net.minecraft.client.entity.EntityClientPlayerMP;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.entity.RenderManager;
-import net.minecraft.entity.Entity;
-import net.minecraft.entity.EntityLivingBase;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.nbt.NBTTagList;
-import net.minecraft.util.MathHelper;
-import net.minecraft.util.ResourceLocation;
-import net.minecraft.world.World;
-import net.minecraftforge.client.event.RenderWorldLastEvent;
-import net.minecraftforge.common.MinecraftForge;
-import net.minecraftforge.event.entity.living.LivingAttackEvent;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-import vazkii.botania.common.core.helper.ItemNBTHelper;
-
-public class ItemPocketWardrobe extends ItemModRelic {
-
- protected static final ResourceLocation glowPriorityTexture = new ResourceLocation("ab:textures/misc/glow2.png");
- protected static final ResourceLocation glowTexture = new ResourceLocation("ab:textures/misc/glow1.png");
- protected static final int segmentCount = 5;
- protected static final int maxSegmentCount = 12;
-
- public ItemPocketWardrobe() {
- super("autoPocketWardrobe");
- MinecraftForge.EVENT_BUS.register(this);
- }
-
- public void onUpdate(ItemStack pocketWardrobe, World world, Entity entity, int pos, boolean equipped) {
- boolean eqLastTick = wasEquipped(pocketWardrobe);
- if(!equipped && eqLastTick)
- setEquipped(pocketWardrobe, equipped);
- if(!eqLastTick && equipped && entity instanceof EntityLivingBase) {
- setEquipped(pocketWardrobe, equipped);
- int angles = 360;
- int segAngles = angles / maxSegmentCount;
- float shift = segAngles / 2.0f * segmentCount;
- setRotationBase(pocketWardrobe, getCheckingAngle((EntityLivingBase)entity) - shift);
- }
- int tick = getFightingTick(pocketWardrobe);
- if(tick > 0)
- setFightingTick(pocketWardrobe, tick - 1);
- else if(!world.isRemote && tick == 0 && getFightingMode(pocketWardrobe) && entity != null && entity instanceof EntityPlayer) {
- EntityPlayer player = (EntityPlayer)entity;
- setFightingMode(pocketWardrobe, false);
- swapArmorSet(pocketWardrobe, player, getPrioritySet(pocketWardrobe));
- }
- }
-
- public void setArmorSet(ItemStack pocketWardrobe, ItemStack[] armorSet, int segment) {
- NBTTagList nbtList = new NBTTagList();
- int i = -1;
- for(ItemStack armor : armorSet) {
- i++;
- if(armor == null)
- continue;
- NBTTagCompound cmp = new NBTTagCompound();
- cmp.setByte("slot", (byte)i);
- armor.copy().writeToNBT(cmp);
- nbtList.appendTag(cmp);
- }
- ItemNBTHelper.setList(pocketWardrobe, "armorSet" + segment, nbtList);
- }
-
- public static ItemStack[] getArmorSet(ItemStack pocketWardrobe, int segment) {
- if(segment >= segmentCount)
- return null;
- ItemStack[] armorSet = new ItemStack[4];
- NBTTagList nbtList = ItemNBTHelper.getList(pocketWardrobe, "armorSet" + segment, 10, false);
- for(int i = 0; i < nbtList.tagCount(); i++) {
- NBTTagCompound cmp = nbtList.getCompoundTagAt(i);
- byte slotCount = cmp.getByte("slot");
- if(slotCount >= 0 && slotCount <= segmentCount)
- armorSet[slotCount] = ItemStack.loadItemStackFromNBT(cmp);
- }
- return armorSet;
- }
-
- public ItemStack onItemRightClick(ItemStack pocketWardrobe, World world, EntityPlayer player) {
- int segment = getSegmentLookedAt(pocketWardrobe, player);
- if(segment == -1)
- return pocketWardrobe;
- if(player.isSneaking()) {
- setPrioritySet(pocketWardrobe, segment);
- } else {
- swapArmorSet(pocketWardrobe, player, segment);
- }
- return pocketWardrobe;
- }
-
- public void swapArmorSet(ItemStack stack, EntityPlayer player, int segment) {
- ItemStack[] playerSet = player.inventory.armorInventory;
- player.inventory.armorInventory = getArmorSet(stack, segment);
- setArmorSet(stack, playerSet, segment);
- }
-
- @SubscribeEvent
- public void onPlayerAttack(LivingAttackEvent event) {
- if(event.entityLiving != null && event.entityLiving instanceof EntityPlayer) {
- EntityPlayer player = (EntityPlayer)event.entityLiving;
- if(player.capabilities.isCreativeMode)
- return;
- for(int i = 0; i < player.inventory.getSizeInventory(); i++) {
- ItemStack stack = player.inventory.getStackInSlot(i);
- if(stack != null && stack.getItem() instanceof ItemPocketWardrobe) {
- ItemPocketWardrobe item = (ItemPocketWardrobe)stack.getItem();
- if(!item.getFightingMode(stack)) {
- int armorPriorirySlot = item.getPrioritySet(stack);
- ItemStack[] armorSet = item.getArmorSet(stack, armorPriorirySlot);
- boolean hasArmor = false;
- for(int j = 0; j < armorSet.length; j++)
- if(armorSet[j] != null) {
- hasArmor = true;
- break;
- }
- if(hasArmor) {
- item.setFightingTick(stack, 32);
- item.setFightingMode(stack, true);
- item.swapArmorSet(stack, player, armorPriorirySlot);
- return;
- }
- } else {
- item.setFightingTick(stack, 32);
- return;
- }
- }
- }
- }
- }
-
- public ResourceLocation getGlowTexture(ItemStack stack, int segment) {
- return getPrioritySet(stack) == segment ? glowPriorityTexture : glowTexture;
- }
-
- @SideOnly(Side.CLIENT)
- @SubscribeEvent
- public void onRenderWorldLast(RenderWorldLastEvent event) {
- EntityClientPlayerMP entityClientPlayerMP = (Minecraft.getMinecraft()).thePlayer;
- ItemStack stack = entityClientPlayerMP.getCurrentEquippedItem();
- if(stack != null && stack.getItem() instanceof ItemPocketWardrobe)
- render(stack, (EntityPlayer)entityClientPlayerMP, event.partialTicks);
- }
-
- @SideOnly(Side.CLIENT)
- public void render(ItemStack stack, EntityPlayer player, float partialTicks) {
- Minecraft mc = Minecraft.getMinecraft();
- Tessellator tess = Tessellator.instance;
- Tessellator.renderingWorldRenderer = false;
- GL11.glPushMatrix();
- float alpha = ((float)Math.sin(((ClientTickHandler.ticksInGame + partialTicks) * 0.2F)) * 0.5F + 0.5F) * 0.4F + 0.3F;
- double posX = player.prevPosX + (player.posX - player.prevPosX) * partialTicks;
- double posY = player.prevPosY + (player.posY - player.prevPosY) * partialTicks;
- double posZ = player.prevPosZ + (player.posZ - player.prevPosZ) * partialTicks;
- GL11.glTranslated(posX - RenderManager.renderPosX, posY - RenderManager.renderPosY, posZ - RenderManager.renderPosZ);
- float base = getRotationBase(stack);
- int angles = 360;
- int segAngles = angles / maxSegmentCount;
- float shift = base - ((segAngles / 2.0f) * segmentCount);
- float u = 1.0F;
- float v = 0.25F;
- float s = 3.6F;
- float m = 0.8F;
- float y = v * 6.0F;
- float y0 = 0.0F;
- int segmentLookedAt = getSegmentLookedAt(stack, (EntityLivingBase)player);
- for(int seg = 0; seg < segmentCount; seg++) {
- ClientHelper.setLightmapTextureCoords();
- float rotationAngle = (seg + 0.5F) * segAngles + shift;
- GL11.glPushMatrix();
- System.out.println(GL11.glGetBoolean(2912));
- GL11.glDisable(GL11.GL_LIGHTING);
- GL11.glDisable(2912);
- System.out.println(GL11.glGetBoolean(2912));
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- GL11.glRotatef(180.0F, 1.0F, 0.0F, 0.0F);
- GL11.glDisable(GL11.GL_CULL_FACE);
- float a = alpha;
- if(segmentLookedAt == seg) {
- a += 0.3F;
- y0 = -y;
- }
- if(seg % 2 == 0) {
- GL11.glColor4f(0.6F, 0.6F, 0.6F, a);
- } else {
- GL11.glColor4f(1.0F, 1.0F, 1.0F, a);
- }
- ItemPocketWardrobe item = (ItemPocketWardrobe)stack.getItem();
- mc.renderEngine.bindTexture(item.getGlowTexture(stack, seg));
- tess.startDrawingQuads();
- for(int i = 0; i < segAngles; i++) {
- float ang = (i + seg * segAngles) + shift;
- double xp = Math.cos(ang * Math.PI / 180.0D) * s;
- double zp = Math.sin(ang * Math.PI / 180.0D) * s;
- tess.addVertexWithUV(xp * m, y, zp * m, u, v);
- tess.addVertexWithUV(xp, y0, zp, u, 0.0D);
- xp = Math.cos((ang + 1.0F) * Math.PI / 180.0D) * s;
- zp = Math.sin((ang + 1.0F) * Math.PI / 180.0D) * s;
- tess.addVertexWithUV(xp, y0, zp, 0.0D, 0.0D);
- tess.addVertexWithUV(xp * m, y, zp * m, 0.0D, v);
- }
- y0 = 0.0F;
- tess.draw();
- GL11.glPopMatrix();
- AbstractClientPlayer steve = new EntityAnonymousSteve(player.worldObj);
- steve.inventory.armorInventory = getArmorSet(stack, seg);
- boolean hasArmor = false;
- for(int l = 0; l < steve.inventory.armorInventory.length; l++)
- if(steve.inventory.armorItemInSlot(l) != null) {
- hasArmor = true;
- break;
- }
- if(hasArmor) {
- GL11.glPushMatrix();
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- GL11.glRotatef(rotationAngle, 0.0F, 1.0F, 0.0F);
- GL11.glTranslatef(s * m, -0.75F, 0.0F);
- float scale = 0.6F;
- GL11.glRotatef(-90.0f, 0.0f, 1.0f, 0.0f);
- GL11.glTranslatef(0.0f, 0.8125f, 0.0f);
- GL11.glScalef(scale, scale, scale);
- steve.setPositionAndRotation(player.posX, player.posY, player.posZ, 0.0f, 10.0f);
- RenderManager.instance.renderEntityWithPosYaw(steve, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f);
- Minecraft.getMinecraft().entityRenderer.disableLightmap(partialTicks);
- GL11.glPopMatrix();
- }
- ClientHelper.setLightmapTextureCoords();
- GL11.glEnable(GL11.GL_CULL_FACE);
- GL11.glDisable(3042);
- }
- GL11.glPopMatrix();
- }
-
- protected static int getSegmentLookedAt(ItemStack stack, EntityLivingBase player) {
- float yaw = getCheckingAngle(player, getRotationBase(stack));
- int angles = 360;
- int segAngles = angles / maxSegmentCount;
- for(int seg = 0; seg < segmentCount; seg++) {
- float calcAngle = seg * segAngles;
- if(yaw >= calcAngle && yaw < calcAngle + segAngles)
- return seg;
- }
- return -1;
- }
-
- protected static float getCheckingAngle(EntityLivingBase player, float base) {
- float yaw = MathHelper.wrapAngleTo180_float(player.rotationYaw) + 90.0f;
- int angles = 360;
- int segAngles = angles / maxSegmentCount;
- float shift = segAngles / 2.0f * segmentCount;
- if(yaw < 0.0f)
- yaw = 360.0F + yaw;
- yaw -= 360.0F - base;
- float angle = 360.0F - yaw + shift;
- if(angle > 360.0F)
- angle %= 360.0F;
- return angle;
- }
-
- protected static float getCheckingAngle(EntityLivingBase player) {
- return getCheckingAngle(player, 0.0F);
- }
-
- public static void setEquipped(ItemStack stack, boolean equipped) {
- ItemNBTHelper.setBoolean(stack, "equipped", equipped);
- }
-
- public static boolean wasEquipped(ItemStack stack) {
- return ItemNBTHelper.getBoolean(stack, "equipped", false);
- }
-
- public static void setRotationBase(ItemStack stack, float rotation) {
- ItemNBTHelper.setFloat(stack, "rotationBase", rotation);
- }
-
- public static float getRotationBase(ItemStack stack) {
- return ItemNBTHelper.getFloat(stack, "rotationBase", 0.0F);
- }
-
- public static void setFightingMode(ItemStack stack, boolean mode) {
- ItemNBTHelper.setBoolean(stack, "fightingMode", mode);
- }
-
- public static boolean getFightingMode(ItemStack stack) {
- return ItemNBTHelper.getBoolean(stack, "fightingMode", false);
- }
-
- public static void setFightingTick(ItemStack stack, int tick) {
- ItemNBTHelper.setInt(stack, "fightingTick", tick);
- }
-
- public static int getFightingTick(ItemStack stack) {
- return ItemNBTHelper.getInt(stack, "fightingTick", 0);
- }
-
- public static void setPrioritySet(ItemStack stack, int segment) {
- ItemNBTHelper.setInt(stack, "prioritySet", segment);
- }
-
- public static int getPrioritySet(ItemStack stack) {
- return ItemNBTHelper.getInt(stack, "prioritySet", 2);
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/b3/301ef371c8bd001c1664fb18d0506bc0 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/b3/301ef371c8bd001c1664fb18d0506bc0
new file mode 100644
index 0000000..e69de29
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/b4/8034fe01b0b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/b4/8034fe01b0b1001c19bf8a91ac37238b
deleted file mode 100644
index 9f02222..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/b4/8034fe01b0b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,81 +0,0 @@
-package ab.common.item;
-
-import java.util.List;
-
-import ab.common.lib.register.BlockListAB;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.renderer.texture.IIconRegister;
-import net.minecraft.entity.Entity;
-import net.minecraft.entity.item.EntityFallingBlock;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.IIcon;
-import net.minecraft.world.World;
-import vazkii.botania.common.core.helper.ItemNBTHelper;
-
-public class ItemAntigravityCharm extends ItemMod {
-
- public static IIcon[] icons;
-
- public ItemAntigravityCharm() {
- super("antigravityCharm");
- this.setMaxStackSize(1);
- this.setNoRepair();
- }
-
- public void registerIcons(IIconRegister ir) {
- icons = new IIcon[2];
- for(int i = 0; i < icons.length; i++) {
- icons[i] = icons[i] = ir.registerIcon("ab:" + "itemAntigravityCharm_" + i);
- }
- }
-
- @SideOnly(Side.CLIENT)
- public IIcon getIcon(ItemStack stack, int pass) {
- int iconID = Math.min(1, pass);
- return this.icons[iconID];
- }
-
- public boolean requiresMultipleRenderPasses() {
- return true;
- }
-
- public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
- if(player.isSneaking())
- ItemNBTHelper.setBoolean(stack, "isActive", !ItemNBTHelper.getBoolean(stack, "isActive", true));
- return stack;
- }
-
- public void onUpdate(ItemStack stack, World world, Entity entity, int par4, boolean inHand) {
- if(ItemNBTHelper.getBoolean(stack, "isActive", true)) {
- double posX = entity.posX;
- double posY = entity.posY;
- double posZ = entity.posZ;
- final AxisAlignedBB asis = AxisAlignedBB.getBoundingBox(posX, posY, posZ, posX + 1, posY + 1, posZ + 1).expand(8, 8, 8);
- final List listEntity = (List)world.getEntitiesWithinAABB((Class)EntityFallingBlock.class, asis);
- for(EntityFallingBlock fallBlock : listEntity) {
- int x = (int) (fallBlock.posX >= 0 ? fallBlock.posX : fallBlock.posX - 1);
- int y = (int) fallBlock.posY;
- int z = (int) (fallBlock.posZ >= 0 ? fallBlock.posZ : fallBlock.posZ - 1);
- Block block = fallBlock.func_145805_f();
- fallBlock.setInvisible(true);
- if(!world.isRemote) {
- setBlock(world, x, y, z, block, fallBlock.field_145814_a);
- setBlock(world, x, y - 1, z, BlockListAB.blockAntigravitation, 0);
- }
- fallBlock.setDead();
- }
- }
- }
-
- private void setBlock(World world, int x, int y, int z, Block block, int meta) {
- if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256) {
- world.setBlock(x, y, z, block, meta, 3);
- }
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/b4/b0023a9663c1001c11e398ea97007cb4 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/b4/b0023a9663c1001c11e398ea97007cb4
new file mode 100644
index 0000000..4282740
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/b4/b0023a9663c1001c11e398ea97007cb4
@@ -0,0 +1,179 @@
+package ab.common.item.relic;
+
+import java.awt.Color;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.common.core.handler.NetworkHandler;
+import ab.common.lib.register.ItemListAB;
+import net.minecraft.block.Block;
+import net.minecraft.client.renderer.texture.IIconRegister;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.MathHelper;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.api.mana.ManaItemHandler;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class ItemSphereNavigation extends ItemModRelic {
+
+ public static IIcon[] icons;
+ public static final int rangeSearch = 16;
+ public static final int maxCooldown = 158;
+ public static final int manaCost = 1750;
+
+ public ItemSphereNavigation() {
+ super("sphereNavigation");
+ }
+
+ public void registerIcons(IIconRegister ir) {
+ icons = new IIcon[5];
+ icons[0] = ir.registerIcon("ab:sphereNavigation");
+ icons[1] = ir.registerIcon("ab:sphereNavigation_hasblock");
+ icons[2] = ir.registerIcon("ab:sphereNavigation_nonBlock");
+ icons[3] = ir.registerIcon("ab:sphereNavigation_off");
+ icons[4] = ir.registerIcon("ab:sphereNavigation_on");
+ }
+
+ public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
+ if(getFindBlock(stack) != null && player.isSneaking()) {
+ int dmg = stack.getItemDamage();
+ stack.setItemDamage((dmg ^ 0xFFFFFFFF) & 0x1);
+ world.playSoundAtEntity(player, "random.orb", 0.3F, 0.1F);
+ }
+ return stack;
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int pos, boolean equipped) {
+ super.onUpdate(stack, world, entity, pos, equipped);
+ if(entity instanceof EntityPlayer) {
+ EntityPlayer player = (EntityPlayer)entity;
+ if(!world.isRemote && stack.getItemDamage() == 0 && getFindBlock(stack) != null && canWork(stack) && ManaItemHandler.requestManaExactForTool(stack, player, manaCost, true)) {
+ setMaxTick(stack);
+ NetworkHandler.sendPacketToFindBlocks((EntityPlayerMP)player, getFindBlock(stack), getFindMeta(stack));
+ }
+ }
+ }
+
+ public static void findBlocks(World world, Block findBlock, int findMeta, EntityPlayer player) {
+ if(world.isRemote) {
+ ItemStack renderStack = null;
+ int maxFindedBlocks = 32;
+ int findedBlocks = 0;
+ label1703:
+ for(int y = -rangeSearch * 2; y < rangeSearch; y++) {
+ for(int x = -rangeSearch; x < rangeSearch; x++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks)) || world.rand.nextBoolean())
+ continue;
+ for(int z = -rangeSearch; z < rangeSearch; z++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks)) || world.rand.nextBoolean())
+ continue;
+ else if(findedBlocks >= maxFindedBlocks)
+ break label1703;
+ int posX = MathHelper.floor_double(player.posX) + x;
+ int posY = MathHelper.floor_double(player.posY) + y;
+ int posZ = MathHelper.floor_double(player.posZ) + z;
+ if(posY < 0)
+ continue;
+ Block block = world.getBlock(posX, posY, posZ);
+ if(!Block.isEqualTo(block, findBlock))
+ continue;
+ int meta = world.getBlockMetadata(posX, posY, posZ);
+ if(meta == findMeta) {
+ if(renderStack == null)
+ renderStack = getRenderStackForBlock(world, block, meta, posX, posY, posZ);
+ findedBlocks++;
+ float maxAge = 2.7f + (0.5f * (float)(Math.random()));
+ Botania.proxy.setWispFXDepthTest(false);
+ Botania.proxy.setWispFXDistanceLimit(false);
+ float far = 120.0f - (((Math.abs(x) + Math.min(rangeSearch, Math.abs(y)) + Math.abs(z)) / (rangeSearch * 4.0f)) * 120.0f);
+ if(far <= 40)
+ far *= 0.15f;
+ Color color = new Color(Color.HSBtoRGB(far / 360.0f, 0.9f + (float)(Math.random() * 0.1f), 1.0f));
+ for(int i = 0; i < 11; i++)
+ Botania.proxy.wispFX(world, posX + 0.5f + (Math.random() - 0.5f), posY + 0.5f + (Math.random() - 0.5f), posZ + 0.5f + (Math.random() - 0.5f), color.getRed() / 100.0f, color.getGreen() / 100.0f, color.getBlue() / 100.0f, 0.3f + (float)(Math.random() * 0.25f), 0.0f, maxAge);
+ Botania.proxy.setWispFXDistanceLimit(true);
+ Botania.proxy.setWispFXDepthTest(true);
+ }
+ }
+ }
+ }
+ if(renderStack != null)
+ ItemsRemainingRender.set(renderStack, "íàéäåíî: " + findedBlocks);
+ }
+ }
+
+ public static ItemStack getRenderStackForBlock(World world, Block block, int meta, int x, int y, int z) {
+ if(block != null) {
+ Item item = Item.getItemFromBlock(block);
+ if(item != null) {
+ ItemStack findStack = new ItemStack(block, 1, meta);
+ if(findStack != null)
+ return findStack;
+ } else {
+ Item item1 = block.getItem(world, x, y, z);
+ if(item1 != null) {
+ ItemStack findStack = new ItemStack(item1, 1, meta);
+ if(findStack != null)
+ return findStack;
+ }
+ }
+ }
+ return null;
+ }
+
+ public boolean onItemUse(ItemStack stack, EntityPlayer p, World world, int x, int y, int z, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
+ if(p.isSneaking()) {
+ Block block = world.getBlock(x, y, z);
+ if(block != null) {
+ int meta = world.getBlockMetadata(x, y, z);
+ ItemStack findStack = getRenderStackForBlock(world, block, meta, x, y, z);
+ if(findStack != null) {
+ setFindBlock(stack, block, meta);
+ if(world.isRemote)
+ ItemsRemainingRender.set(findStack, findStack.getDisplayName());
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public boolean canWork(ItemStack stack) {
+ int tick = ItemNBTHelper.getInt(stack, "cooldown", 0);
+ if(tick == 0)
+ return true;
+ else if(tick > 0)
+ ItemNBTHelper.setInt(stack, "cooldown", tick - 1);
+ return false;
+ }
+
+ public void setMaxTick(ItemStack stack) {
+ ItemNBTHelper.setInt(stack, "cooldown", maxCooldown);
+ }
+
+ public static void setFindBlock(ItemStack stack, Block block, int meta) {
+ ItemNBTHelper.setInt(stack, "findBlockID", Block.getIdFromBlock(block));
+ ItemNBTHelper.setInt(stack, "findBlockMeta", meta);
+ }
+
+ public static Block getFindBlock(ItemStack stack) {
+ int blockID = ItemNBTHelper.getInt(stack, "findBlockID", 0);
+ if(blockID == 0)
+ return null;
+ else
+ return Block.getBlockById(blockID);
+ }
+
+ public static int getFindMeta(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "findBlockMeta", -1);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/b6/1074df76b7b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/b6/1074df76b7b1001c19bf8a91ac37238b
deleted file mode 100644
index ef6c85e..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/b6/1074df76b7b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,89 +0,0 @@
-package ab.common.item;
-
-import java.util.List;
-
-import ab.common.core.CommonHelper;
-import ab.common.lib.register.BlockListAB;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.renderer.texture.IIconRegister;
-import net.minecraft.entity.Entity;
-import net.minecraft.entity.item.EntityFallingBlock;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.IIcon;
-import net.minecraft.world.World;
-import vazkii.botania.common.core.helper.ItemNBTHelper;
-
-public class ItemAntigravityCharm extends ItemMod {
-
- public static IIcon[] icons;
-
- public ItemAntigravityCharm() {
- super("antigravityCharm");
- this.setMaxStackSize(1);
- this.setNoRepair();
- }
-
- public void registerIcons(IIconRegister ir) {
- icons = new IIcon[2];
- for(int i = 0; i < icons.length; i++) {
- icons[i] = icons[i] = ir.registerIcon("ab:" + "itemAntigravityCharm_" + i);
- }
- }
-
- @SideOnly(Side.CLIENT)
- public IIcon getIcon(ItemStack stack, int pass) {
- int iconID = Math.min(1, pass);
- return this.icons[iconID];
- }
-
- public boolean requiresMultipleRenderPasses() {
- return true;
- }
-
- public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
- if(player.isSneaking())
- ItemNBTHelper.setBoolean(stack, "isActive", !ItemNBTHelper.getBoolean(stack, "isActive", true));
- return stack;
- }
-
- public void onUpdate(ItemStack stack, World world, Entity entity, int par4, boolean inHand) {
- if(entity instanceof EntityPlayer) {
- EntityPlayer player = (EntityPlayer)entity;
- if(ItemNBTHelper.getBoolean(stack, "isActive", true)) {
- double posX = player.posX;
- double posY = player.posY;
- double posZ = player.posZ;
- final AxisAlignedBB asis = AxisAlignedBB.getBoundingBox(posX, posY, posZ, posX + 1, posY + 1, posZ + 1).expand(8, 8, 8);
- final List listEntity = world.getEntitiesWithinAABB(EntityFallingBlock.class, asis);
- for(EntityFallingBlock fallBlock : listEntity) {
- int x = (int) (fallBlock.posX >= 0 ? fallBlock.posX : fallBlock.posX - 1);
- int y = (int) fallBlock.posY;
- int z = (int) (fallBlock.posZ >= 0 ? fallBlock.posZ : fallBlock.posZ - 1);
- Block block = fallBlock.func_145805_f();
- fallBlock.setInvisible(true);
- if(!world.isRemote) {
- if(CommonHelper.setBlock(world, BlockListAB.blockAntigravitation, 0, x, y - 1, z, (EntityPlayerMP)player, true)) {
- CommonHelper.setBlock(world, block, fallBlock.field_145814_a, x, y, z, (EntityPlayerMP)player, true);
- fallBlock.setDead();
- }
- // setBlock(world, x, y, z, block, fallBlock.field_145814_a);
-// setBlock(world, x, y - 1, z, BlockListAB.blockAntigravitation, 0);
- }
- }
- }
- }
- }
-
- private void setBlock(World world, int x, int y, int z, Block block, int meta) {
- if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256) {
- world.setBlock(x, y, z, block, meta, 3);
- }
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/b8/a0d0534902c0001c1965b122d2f8f403 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/b8/a0d0534902c0001c1965b122d2f8f403
new file mode 100644
index 0000000..c9b2cd5
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/b8/a0d0534902c0001c1965b122d2f8f403
@@ -0,0 +1,158 @@
+package ab.common.item.relic;
+
+import java.awt.Color;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.common.core.handler.NetworkHandler;
+import ab.common.lib.register.ItemListAB;
+import net.minecraft.block.Block;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.util.MathHelper;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.api.mana.ManaItemHandler;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class ItemSphereNavigation extends ItemModRelic {
+
+ public static final int rangeSearch = 16;
+ public static final int maxCooldown = 112;
+ public static final int manaCost = 1750;
+
+ public ItemSphereNavigation() {
+ super("sphereNavigation");
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int pos, boolean equipped) {
+ super.onUpdate(stack, world, entity, pos, equipped);
+ if(entity instanceof EntityPlayer) {
+ EntityPlayer player = (EntityPlayer)entity;
+ if(!world.isRemote && getFindBlock(stack) != null && canWork(stack) && ManaItemHandler.requestManaExactForTool(stack, player, manaCost, true)) {
+ setMaxTick(stack);
+ NetworkHandler.sendPacketToFindBlocks((EntityPlayerMP)player, getFindBlock(stack), getFindMeta(stack));
+ }
+ }
+ }
+
+ public static void findBlocks(World world, Block findBlock, int findMeta, EntityPlayer player) {
+ if(world.isRemote) {
+ ItemStack renderStack = null;
+ int maxFindedBlocks = 25;
+ int findedBlocks = 0;
+ label1703:
+ for(int y = -rangeSearch * 2; y < rangeSearch; y++) {
+ for(int x = -rangeSearch; x < rangeSearch; x++) {
+// if(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks))
+// continue;
+ for(int z = -rangeSearch; z < rangeSearch; z++) {
+// if(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks))
+// continue;
+ if(findedBlocks >= maxFindedBlocks)
+ break label1703;
+ int posX = MathHelper.floor_double(player.posX) + x;
+ int posY = MathHelper.floor_double(player.posY) + y;
+ int posZ = MathHelper.floor_double(player.posZ) + z;
+ if(posY < 0)
+ continue;
+ Block block = world.getBlock(posX, posY, posZ);
+ if(!Block.isEqualTo(block, findBlock))
+ continue;
+ int meta = world.getBlockMetadata(posX, posY, posZ);
+ if(meta == findMeta) {
+ if(renderStack == null)
+ renderStack = getRenderStackForBlock(world, block, meta, posX, posY, posZ);
+ findedBlocks++;
+ float maxAge = 2.7f + (0.5f * (float)(Math.random()));
+ Botania.proxy.setWispFXDepthTest(false);
+ Botania.proxy.setWispFXDistanceLimit(false);
+ float far = 120.0f - (((Math.abs(x) + Math.min(rangeSearch, Math.abs(y)) + Math.abs(z)) / (rangeSearch * 4.0f)) * 120.0f);
+ if(far <= 60)
+ far *= 0.15f;
+ Color color = new Color(Color.HSBtoRGB(far / 360.0f, 0.9f + (float)(Math.random() * 0.1f), 1.0f));
+ for(int i = 0; i < 11; i++)
+ Botania.proxy.wispFX(world, posX + 0.5f + (Math.random() - 0.5f), posY + 0.5f + (Math.random() - 0.5f), posZ + 0.5f + (Math.random() - 0.5f), color.getRed() / 100.0f, color.getGreen() / 100.0f, color.getBlue() / 100.0f, 0.3f + (float)(Math.random() * 0.25f), 0.0f, maxAge);
+ Botania.proxy.setWispFXDistanceLimit(true);
+ Botania.proxy.setWispFXDepthTest(true);
+ }
+ }
+ }
+ }
+ if(renderStack != null)
+ ItemsRemainingRender.set(renderStack, "íàéäåíî: " + findedBlocks);
+ }
+ }
+
+ public static ItemStack getRenderStackForBlock(World world, Block block, int meta, int x, int y, int z) {
+ if(block != null) {
+ Item item = Item.getItemFromBlock(block);
+ if(item != null) {
+ ItemStack findStack = new ItemStack(block, 1, meta);
+ if(findStack != null)
+ return findStack;
+ } else {
+ Item item1 = block.getItem(world, x, y, z);
+ if(item1 != null) {
+ ItemStack findStack = new ItemStack(item1, 1, meta);
+ if(findStack != null)
+ return findStack;
+ }
+ }
+ }
+ return null;
+ }
+
+ public boolean onItemUse(ItemStack stack, EntityPlayer p, World world, int x, int y, int z, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
+ if(p.isSneaking()) {
+ Block block = world.getBlock(x, y, z);
+ if(block != null) {
+ int meta = world.getBlockMetadata(x, y, z);
+ ItemStack findStack = getRenderStackForBlock(world, block, meta, x, y, z);
+ if(findStack != null) {
+ setFindBlock(stack, block, meta);
+ if(world.isRemote)
+ ItemsRemainingRender.set(findStack, findStack.getDisplayName());
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public boolean canWork(ItemStack stack) {
+ int tick = ItemNBTHelper.getInt(stack, "cooldown", 0);
+ if(tick == 0)
+ return true;
+ else if(tick > 0)
+ ItemNBTHelper.setInt(stack, "cooldown", tick - 1);
+ return false;
+ }
+
+ public void setMaxTick(ItemStack stack) {
+ ItemNBTHelper.setInt(stack, "cooldown", maxCooldown);
+ }
+
+ public static void setFindBlock(ItemStack stack, Block block, int meta) {
+ ItemNBTHelper.setInt(stack, "findBlockID", Block.getIdFromBlock(block));
+ ItemNBTHelper.setInt(stack, "findBlockMeta", meta);
+ }
+
+ public static Block getFindBlock(ItemStack stack) {
+ int blockID = ItemNBTHelper.getInt(stack, "findBlockID", 0);
+ if(blockID == 0)
+ return null;
+ else
+ return Block.getBlockById(blockID);
+ }
+
+ public static int getFindMeta(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "findBlockMeta", -1);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/b8/b058d7d2babc001c1a9f99005529f322 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/b8/b058d7d2babc001c1a9f99005529f322
new file mode 100644
index 0000000..f971260
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/b8/b058d7d2babc001c1a9f99005529f322
@@ -0,0 +1,139 @@
+package ab.common.block;
+
+import ab.AdvancedBotany;
+import ab.common.block.tile.TileNidavellirForge;
+import ab.common.block.tile.TileInventory;
+import ab.common.lib.register.RecipeListAB;
+import net.minecraft.block.Block;
+import net.minecraft.block.BlockContainer;
+import net.minecraft.block.material.Material;
+import net.minecraft.client.renderer.texture.IIconRegister;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.MathHelper;
+import net.minecraft.util.Vec3;
+import net.minecraft.world.IBlockAccess;
+import net.minecraft.world.World;
+import vazkii.botania.api.BotaniaAPI;
+import vazkii.botania.api.lexicon.ILexiconable;
+import vazkii.botania.api.lexicon.LexiconEntry;
+
+public class BlockNidavellirForge extends BlockContainer implements ILexiconable {
+
+ public BlockNidavellirForge() {
+ super(Material.iron);
+ this.setCreativeTab(AdvancedBotany.tabAB);
+ this.setHardness(3.0F);
+ this.setResistance(10.0F);
+ this.setStepSound(soundTypeMetal);
+ this.setBlockName("ABPlate");
+ }
+
+ public void setBlockBoundsBasedOnState(IBlockAccess world, int x, int y, int z) {
+ float f = 0.1875F;
+ float f1 = 0.125F;
+ switch(world.getBlockMetadata(x, y, z)) {
+ case 0: this.setBlockBounds(f, 0.0F, 0.0F, 1.0F - f, 0.75F, 1.0F - f1);
+ break;
+ default: this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
+ }
+// if(world.getBlockMetadata(x, y, z) % 2 == 0)
+// this.setBlockBounds(f, 0.0F, 0.0F, 1.0F - f, 0.75F, 1.0F);
+// else
+// this.setBlockBounds(0.0F, 0.0F, f, 1.0F, 0.75F, 1.0F - f);
+ }
+
+ public void onBlockPlacedBy(World world, int x, int y, int z, EntityLivingBase liv, ItemStack stack) {
+ int meta = MathHelper.floor_double((double)(liv.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3;
+ world.setBlockMetadataWithNotify(x, y, z, meta, 3);
+ }
+
+ public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int par6, float par7, float par8, float par9) {
+ TileNidavellirForge tile = (TileNidavellirForge)world.getTileEntity(x, y, z);
+ if(player.isSneaking()) {
+ if(tile.getStackInSlot(0) != null) {
+ ItemStack copy = tile.getStackInSlot(0).copy();
+ if(!world.isRemote) {
+ Vec3 vec3 = player.getLook(1.0F).normalize();
+ EntityItem entityitem = new EntityItem(world, player.posX + vec3.xCoord, player.posY + 1.2f, player.posZ + vec3.zCoord, copy);
+ world.spawnEntityInWorld(entityitem);
+ tile.requestUpdate = true;
+ }
+ tile.setInventorySlotContents(0, null);
+ world.func_147453_f(x, y, z, (Block)this);
+ return true;
+ }
+ for(int i = tile.getSizeInventory() - 1; i > 0; i--) {
+ ItemStack stack = tile.getStackInSlot(i);
+ if(stack != null) {
+ ItemStack copy = stack.copy();
+ if(!world.isRemote) {
+ Vec3 vec3 = player.getLook(1.0F).normalize();
+ EntityItem entityitem = new EntityItem(world, player.posX + vec3.xCoord, player.posY + 1.2f, player.posZ + vec3.zCoord, copy);
+ world.spawnEntityInWorld(entityitem);
+ tile.requestUpdate = true;
+ }
+ tile.setInventorySlotContents(i, null);
+ world.func_147453_f(x, y, z, (Block)this);
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public void breakBlock(World world, int x, int y, int z, Block block, int meta) {
+ if(!world.isRemote) {
+ TileInventory inv = (TileInventory)world.getTileEntity(x, y, z);
+ if (inv != null) {
+ for (int i = 0; i < inv.getSizeInventory(); i++) {
+ ItemStack stack = inv.getStackInSlot(i);
+ if (stack != null) {
+ float f = world.rand.nextFloat() * 0.8F + 0.1F;
+ float f1 = world.rand.nextFloat() * 0.8F + 0.1F;
+ float f2 = world.rand.nextFloat() * 0.8F + 0.1F;
+ EntityItem entityitem = new EntityItem(world, (x + f), (y + f1), (z + f2), stack.copy());
+ float f3 = 0.05F;
+ entityitem.motionX = ((float)world.rand.nextGaussian() * f3);
+ entityitem.motionY = ((float)world.rand.nextGaussian() * f3 + 0.2F);
+ entityitem.motionZ = ((float)world.rand.nextGaussian() * f3);
+ if (stack.hasTagCompound())
+ entityitem.getEntityItem().setTagCompound((NBTTagCompound)stack.getTagCompound().copy());
+ world.spawnEntityInWorld(entityitem);
+ }
+ }
+ }
+ }
+ super.breakBlock(world, x, y, z, block, meta);
+ }
+
+ public int getRenderType() {
+ return -1;
+ }
+
+ public boolean renderAsNormalBlock() {
+ return false;
+ }
+
+ public boolean isOpaqueCube() {
+ return false;
+ }
+
+ public boolean getBlocksMovement(IBlockAccess p_149655_1_, int p_149655_2_, int p_149655_3_, int p_149655_4_) {
+ return false;
+ }
+
+ public TileEntity createNewTileEntity(World world, int meta) {
+ return new TileNidavellirForge();
+ }
+
+ public LexiconEntry getEntry(World arg0, int arg1, int arg2, int arg3, EntityPlayer arg4, ItemStack arg5) {
+ return RecipeListAB.advandedAgglomerationPlate;
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/b9/1063f5b0e6ac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/b9/1063f5b0e6ac001c1d59e42be7477558
deleted file mode 100644
index 0b1040d..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/b9/1063f5b0e6ac001c1d59e42be7477558
+++ /dev/null
@@ -1,176 +0,0 @@
-package ab.common.block.tile;
-
-import java.util.List;
-
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.ChatComponentTranslation;
-import net.minecraft.util.ChatStyle;
-import net.minecraft.util.EnumChatFormatting;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.common.block.tile.TileMod;
-
-public class TileGameBoard extends TileMod {
-
- protected String[] playersName = new String[] { "", "" };
- public byte[] slotChance = new byte[] { 0, 0, 0, 0 };
- protected int botTick = -1;
- public int endGameTick = -1;
- protected boolean requestUpdate;
- public boolean isSingleGame = false;
- public int clientTick[] = new int[] { 0, 0, 0, 0};
-
- public void updateEntity() {
- if(botTick > 0)
- botTick--;
- if(endGameTick > 0)
- endGameTick--;
- if(!worldObj.isRemote)
- updateServer();
- else
- updateClient();
- }
-
- protected void updateClient() {
- for(int i = 0; i < slotChance.length; i++)
- if(slotChance[i] > 0)
- clientTick[i]++;
- else
- clientTick[i] = 0;
- }
-
- protected void updateServer() {
- if(requestUpdate)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- boolean hasUpdate = false;
- if(isSingleGame && botTick == 0 && hasGame()) {
- for(int i = 2; i < 4; i++) {
- if(slotChance[i] == 0) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = -1;
- hasUpdate = true;
- break;
- }
- }
- }
- if(hasGame() && endGameTick == 0)
- finishGame();
- requestUpdate = hasUpdate;
- }
-
- public void setPlayer(EntityPlayer player) {
- if(isSingleGame) {
- playersName[0] = player.getCommandSenderName();
- playersName[1] = "";
- requestUpdate = true;
- botTick = 8;
- } else {
- if(playersName[0].isEmpty()) {
- playersName[0] = player.getCommandSenderName();
- requestUpdate = true;
- } else if(!playersName[0].equals(player.getCommandSenderName())) {
- playersName[1] = player.getCommandSenderName();
- requestUpdate = true;
- }
- }
- }
-
- public boolean dropDice(EntityPlayer player) {
- if(isSingleGame) {
- if(player.getCommandSenderName().equals(playersName[0]) && botTick == -1) {
- boolean isLastDice = false;
- for(int i = 0; i < 2; i++) {
- if(slotChance[i] == 0 && !worldObj.isRemote) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = 18;
- requestUpdate = true;
- if(i == 1)
- isLastDice = true;
- break;
- }
- }
- if(isLastDice)
- endGameTick = 28;
- return true;
- }
- } else {
- for(int i = 0; i < playersName.length; i++) {
- if(player.getCommandSenderName().equals(playersName[i])) {
- for(int j = 0; j < (i + 1) * 2; j++) {
- if(slotChance[i] == 0 && !worldObj.isRemote) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- requestUpdate = true;
- break;
- }
- }
- return true;
- }
- }
- }
- return false;
- }
-
- public boolean hasGame() {
- if(isSingleGame)
- return !playersName[0].isEmpty();
- return !playersName[0].isEmpty() && !playersName[1].isEmpty();
- }
-
- public void finishGame() {
- if(worldObj.isRemote)
- return;
- if(isSingleGame) {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won");
- else if((slotChance[0] + slotChance[1]) == (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " not win");
- else
- sendNearMessage(playersName[0] + " you Lose!");
- resetGame();
- requestUpdate = true;
- }
- }
-
- public void sendNearMessage(String text) {
- List players = this.worldObj.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(this.xCoord, this.yCoord, this.zCoord, (this.xCoord + 1), (this.yCoord + 1), (this.zCoord + 1)).expand(3.5f, 3.5f, 3.5f));
- for(EntityPlayer player : players) {
- if(player != null)
- player.addChatMessage((new ChatComponentTranslation(text, new Object[] {})).setChatStyle((new ChatStyle()).setColor(EnumChatFormatting.DARK_GREEN)));
- }
- }
-
- public void resetGame() {
- playersName[0] = "";
- playersName[1] = "";
- for(int i = 0; i < slotChance.length; i++)
- slotChance[i] = 0;
- requestUpdate = true;
- botTick = -1;
- endGameTick = -1;
- }
-
- public void writeCustomNBT(NBTTagCompound cmp) {
- super.writeCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- cmp.setString("playerName" + i, playersName[i]);
- cmp.setByteArray("slotChance", slotChance);
- cmp.setInteger("botTick", botTick);
- cmp.setInteger("endGameTick", endGameTick);
- cmp.setBoolean("requestUpdate", requestUpdate);
- cmp.setBoolean("isSingleGame", isSingleGame);
- }
-
- public void readCustomNBT(NBTTagCompound cmp) {
- super.readCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- playersName[i] = cmp.getString("playerName" + i);
- botTick = cmp.getInteger("botTick");
- endGameTick = cmp.getInteger("endGameTick");
- slotChance = cmp.getByteArray("slotChance");
- requestUpdate = cmp.getBoolean("requestUpdate");
- isSingleGame = cmp.getBoolean("isSingleGame");
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/b9/2068066dbdbc001c1a9f99005529f322 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/b9/2068066dbdbc001c1a9f99005529f322
new file mode 100644
index 0000000..7642cdf
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/b9/2068066dbdbc001c1a9f99005529f322
@@ -0,0 +1,38 @@
+package ab.client.render.block;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.client.render.tile.RenderTileManaContainer;
+import ab.common.block.tile.TileNidavellirForge;
+import ab.common.lib.register.BlockListAB;
+import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
+import net.minecraft.block.Block;
+import net.minecraft.client.renderer.RenderBlocks;
+import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.world.IBlockAccess;
+
+public class RenderBlockNidavellirForge implements ISimpleBlockRenderingHandler {
+
+ public void renderInventoryBlock(Block block, int metadata, int modelID, RenderBlocks renderer) {
+ GL11.glPushMatrix();
+ GL11.glTranslatef(-0.5F, -0.3125F, -0.5F);
+ GL11.glScalef(1.25f, 1.25f, 1.25f);
+ TileNidavellirForge forge = new TileNidavellirForge();
+ RenderTileManaContainer.metadata = metadata;
+ TileEntityRendererDispatcher.instance.renderTileEntityAt((TileEntity)forge, 0.0D, 0.0D, 0.0D, 0.0F);
+ GL11.glPopMatrix();
+ }
+
+ public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId, RenderBlocks renderer) {
+ return false;
+ }
+
+ public int getRenderId() {
+ return BlockListAB.blockABPlateRI;
+ }
+
+ public boolean shouldRender3DInInventory(int modelId) {
+ return true;
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/b9/40a391c560c1001c11e398ea97007cb4 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/b9/40a391c560c1001c11e398ea97007cb4
new file mode 100644
index 0000000..dab13f6
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/b9/40a391c560c1001c11e398ea97007cb4
@@ -0,0 +1,56 @@
+package ab.client.render.item;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.common.item.relic.ItemSphereNavigation;
+import net.minecraft.client.Minecraft;
+import net.minecraft.client.renderer.ItemRenderer;
+import net.minecraft.client.renderer.OpenGlHelper;
+import net.minecraft.client.renderer.Tessellator;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.IIcon;
+import net.minecraftforge.client.IItemRenderer;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class RenderItemSphereNavigation implements IItemRenderer {
+
+ public boolean handleRenderType(ItemStack item, IItemRenderer.ItemRenderType type) {
+ return true;
+ }
+
+ public boolean shouldUseRenderHelper(IItemRenderer.ItemRenderType type, ItemStack item, IItemRenderer.ItemRendererHelper helper) {
+ return (helper == IItemRenderer.ItemRendererHelper.ENTITY_ROTATION || helper == IItemRenderer.ItemRendererHelper.ENTITY_BOBBING);
+ }
+
+ public void renderItem(IItemRenderer.ItemRenderType type, ItemStack stack, Object... data) {
+ GL11.glPushMatrix();
+ if(type == type.INVENTORY) {
+ GL11.glScalef(16, 16, 16);
+ GL11.glRotatef(180, 0, 0, 1);
+ GL11.glTranslatef(-1.0f, -1.0f, 0);
+ } else if(type == type.ENTITY) {
+ GL11.glTranslatef(-0.5F, 0.0F, 0.0F);
+ if(stack.isOnItemFrame())
+ GL11.glTranslatef(0.0F, -0.3F, 0.01F);
+ }
+ GL11.glEnable(GL11.GL_BLEND);
+ OpenGlHelper.glBlendFunc(770, 771, 1, 0);
+ GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
+ IIcon icon = ItemSphereNavigation.icons[0];
+ ItemRenderer.renderItemIn2D(Tessellator.instance, icon.getMaxU(), icon.getMinV(), icon.getMinU(), icon.getMaxV(), icon.getIconWidth(), icon.getIconHeight(), 0.0625F);
+ IIcon iconEnable = ItemSphereNavigation.icons[stack.getItemDamage() == 0 ? 4 : 3];
+ ItemRenderer.renderItemIn2D(Tessellator.instance, iconEnable.getMaxU(), iconEnable.getMinV(), iconEnable.getMinU(), iconEnable.getMaxV(), iconEnable.getIconWidth(), iconEnable.getIconHeight(), 0.0625F);
+ double time = (double) Minecraft.getSystemTime();
+ if(type != type.INVENTORY) {
+ GL11.glScalef(1.0f, 1.0f, 1.05f);
+ GL11.glTranslated(0.0f, 0.0f, 0.0015625f);
+ }
+ IIcon iconBlock = ItemSphereNavigation.icons[ItemSphereNavigation.getFindBlock(stack) != null ? 1 : 2];
+ if(ItemSphereNavigation.getFindBlock(stack) != null) {
+ GL11.glTranslated(0, Math.cos(time / 650.0) * 0.0075 -0.05f, 0.0f);
+ }
+ ItemRenderer.renderItemIn2D(Tessellator.instance, iconBlock.getMaxU(), iconBlock.getMinV(), iconBlock.getMinU(), iconBlock.getMaxV(), iconBlock.getIconWidth(), iconBlock.getIconHeight(), 0.0625F);
+ GL11.glDisable(GL11.GL_BLEND);
+ GL11.glPopMatrix();
+ }
+}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/bb/d0c4f6899fb1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/bb/d0c4f6899fb1001c19bf8a91ac37238b
deleted file mode 100644
index 23ffaea..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/bb/d0c4f6899fb1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,242 +0,0 @@
-package ab.client.core;
-
-import java.awt.Color;
-import java.nio.FloatBuffer;
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.gui.ScaledResolution;
-import net.minecraft.client.renderer.ActiveRenderInfo;
-import net.minecraft.client.renderer.GLAllocation;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.RenderHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.entity.RenderItem;
-import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.IIcon;
-import net.minecraft.util.ResourceLocation;
-import net.minecraft.util.StatCollector;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-import vazkii.botania.client.core.handler.HUDHandler;
-import vazkii.botania.common.block.ModBlocks;
-import vazkii.botania.common.core.helper.Vector3;
-
-public class ClientHelper {
-
- public static final ResourceLocation miscHuds = new ResourceLocation("ab:textures/misc/miscHuds.png");
- private static final ResourceLocation field_147529_c = new ResourceLocation("textures/environment/end_sky.png");
- private static final ResourceLocation field_147526_d = new ResourceLocation("textures/entity/end_portal.png");
- private static final Random field_147527_e = new Random(31100L);
- public static Minecraft mc = Minecraft.getMinecraft();
- private static FloatBuffer field_147528_b = GLAllocation.createDirectFloatBuffer(16);
-
- public static void renderCosmicBackground() {
- field_147527_e.setSeed(31100L);
- float f4 = 0.24F;
- for (int i = 0; i < 16; i++) {
- GL11.glPushMatrix();
- float f5 = (16 - i);
- float f6 = 0.0625F;
- float f7 = 1.0F / (f5 + 1.0F);
- if (i == 0) {
- mc.renderEngine.bindTexture(field_147529_c);
- f7 = 0.1F;
- f5 = 65.0F;
- f6 = 0.125F;
- GL11.glEnable(GL11.GL_BLEND);
- GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
- }
- if (i == 1) {
- mc.renderEngine.bindTexture(field_147526_d);
- GL11.glEnable(GL11.GL_BLEND);
- GL11.glBlendFunc(GL11.GL_ONE, GL11.GL_ONE);
- f6 = 0.5F;
- }
- GL11.glTranslatef(0.0f, 1.5f, 0.0f);
- GL11.glTexGeni(GL11.GL_S, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_OBJECT_LINEAR);
- GL11.glTexGeni(GL11.GL_T, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_OBJECT_LINEAR);
- GL11.glTexGeni(GL11.GL_R, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_OBJECT_LINEAR);
- GL11.glTexGeni(GL11.GL_Q, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_EYE_LINEAR);
- GL11.glTexGen(GL11.GL_S, GL11.GL_OBJECT_PLANE, func_147525_a(1.0F, 0.0F, 0.0F, 0.0F));
- GL11.glTexGen(GL11.GL_T, GL11.GL_OBJECT_PLANE, func_147525_a(0.0F, 0.0F, 1.0F, 0.0F));
- GL11.glTexGen(GL11.GL_R, GL11.GL_OBJECT_PLANE, func_147525_a(0.0F, 0.0F, 0.0F, 1.0F));
- GL11.glTexGen(GL11.GL_Q, GL11.GL_EYE_PLANE, func_147525_a(0.0F, 1.0F, 0.0F, 0.0F));
- GL11.glEnable(GL11.GL_TEXTURE_GEN_S);
- GL11.glEnable(GL11.GL_TEXTURE_GEN_T);
- GL11.glEnable(GL11.GL_TEXTURE_GEN_R);
- GL11.glEnable(GL11.GL_TEXTURE_GEN_Q);
- GL11.glPopMatrix();
- GL11.glMatrixMode(GL11.GL_TEXTURE);
- GL11.glPushMatrix();
- GL11.glLoadIdentity();
- GL11.glTranslatef(0.0F, (float)(Minecraft.getSystemTime() % 20000L) / 20000.0F, 0.0F);
- GL11.glScalef(f6, f6, f6);
- GL11.glTranslatef(0.5F, 0.5F, 0.0F);
- GL11.glRotatef((i * i * 4321 + i * 9) * 2.0F, 0.0F, 0.0F, 1.0F);
- GL11.glTranslatef(-0.5F, -0.5F, 0.0F);
- Tessellator tessellator = Tessellator.instance;
- tessellator.startDrawingQuads();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float f11 = color.getRed() / 255.0F;
- float f12 = color.getGreen() / 255.0F;
- float f13 = color.getBlue() / 255.0F;
- tessellator.setBrightness(20);
- tessellator.setColorRGBA_F(f11 * f7, f12 * f7, f13 * f7, 1.0F);
- tessellator.addVertex(0.0D, f4, 0.0D);
- tessellator.addVertex(0.0D, f4, 1.0D);
- tessellator.addVertex(1.0D, f4, 1.0D);
- tessellator.addVertex(1.0D, f4, 0.0D);
- tessellator.draw();
- GL11.glPopMatrix();
- GL11.glMatrixMode(GL11.GL_MODELVIEW);
- }
- GL11.glDisable(GL11.GL_BLEND);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_S);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_T);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_R);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_Q);
- }
-
- private static FloatBuffer func_147525_a(float p_147525_1_, float p_147525_2_, float p_147525_3_, float p_147525_4_) {
- field_147528_b.clear();
- field_147528_b.put(p_147525_1_).put(p_147525_2_).put(p_147525_3_).put(p_147525_4_);
- field_147528_b.flip();
- return field_147528_b;
- }
-
- public static void drawArrow(int x, int y, boolean side) {
- mc.renderEngine.bindTexture(miscHuds);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0f);
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x, y, 0.0F, 0, 10, side ? 0 : 22, 38);
- }
-
- public static void drawChanceBar(int x, int y, int chance) {
- mc.renderEngine.bindTexture(miscHuds);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0f);
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x, y, 0.0F, 0, 0, 57, 6);
- int chancePercentage = Math.max(0, (int)((chance / 100.f) * 55.0D));
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x + 1, y + 1, 0.0F, 0, 6, 55, 4);
- Color color = new Color(Color.HSBtoRGB((chance) / 360.0f, ((float)Math.sin((ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks) * 0.2D) + 1.0F) * 0.3F + 0.4F, 1.0f));
- GL11.glColor4ub((byte)color.getRed(), (byte)color.getGreen(), (byte)color.getBlue(), (byte)255);
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x + 1, y + 1, 0.0F, 0, 6, Math.min(55, chancePercentage), 4);
- }
-
- public static void renderPoolManaBar(int x, int y, int color, float alpha, int mana) {
- Minecraft mc = Minecraft.getMinecraft();
- int poolCount = (int)Math.floor(mana / 1000000.0D);
- if(poolCount < 0)
- poolCount = 0;
- int onePoolMana = mana - (poolCount * 1000000);
- String strPool = poolCount + "x";
- int xc = x - mc.fontRenderer.getStringWidth(strPool) / 2;
- int yc = y;
- GL11.glPushMatrix();
- GL11.glTranslatef(xc + 42.0f, yc + 5.0f, 0.0f);
- RenderHelper.enableGUIStandardItemLighting();
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, new ItemStack(ModBlocks.pool), 0, 0);
- RenderHelper.disableStandardItemLighting();
- GL11.glTranslatef(18.0f, 5.0f, 300.0f);
- mc.fontRenderer.drawString(strPool, 0, 0, color);
- GL11.glPopMatrix();
- if((poolCount * 1000000) == mana)
- onePoolMana = poolCount * 1000000;
- HUDHandler.renderManaBar(x, y, color, alpha, onePoolMana, 1000000);
- }
-
- public static void drawPoolManaHUD(ScaledResolution res, String name, int mana, int maxMana, int color) {
- Minecraft mc = Minecraft.getMinecraft();
- int poolCount = (int)Math.floor(mana / 1000000.0D);
- int maxPoolCount = (int)Math.floor(maxMana / 1000000.0D);
- if(poolCount < 0)
- poolCount = 0;
- if(maxPoolCount < 0)
- maxPoolCount = 0;
- int onePoolMana = mana - (poolCount * 1000000);
- String strPool = poolCount + "x / " + maxPoolCount + "x";
- int xc = res.getScaledWidth() / 2 - mc.fontRenderer.getStringWidth(strPool) / 2 - 3;
- int yc = res.getScaledHeight() / 2;
- GL11.glPushMatrix();
- GL11.glTranslatef(xc - 6.0f, yc + 30.0f, 0.0f);
- RenderHelper.enableGUIStandardItemLighting();
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, new ItemStack(ModBlocks.pool), 0, 0);
- RenderHelper.disableStandardItemLighting();
- GL11.glTranslatef(18.0f, 4.5f, 300.0f);
- mc.fontRenderer.drawStringWithShadow(strPool, 0, 0, color);
- GL11.glPopMatrix();
- if((poolCount * 1000000) == mana)
- onePoolMana = poolCount * 1000000;
- HUDHandler.drawSimpleManaHUD(color, onePoolMana, 1000000, name, res);
- }
-
- public static void setLightmapTextureCoords() {
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- }
-
- public static Vector3 setRotation(float angel, float vX, float vY, float vZ, Vector3 v3) {
- Vector3 rVec = new Vector3(vX, vY, vZ);
- Vector3 rVec1 = v3.copy().normalize();
- double rAngel = Math.toRadians(angel) * 0.5f;
- double sin = Math.sin(rAngel);
- double x = rVec.x * sin;
- double y = rVec.y * sin;
- double z = rVec.z * sin;
- rAngel = Math.cos(rAngel);
- double d = -x * rVec1.x - y * rVec1.y - z * rVec1.z;
- double d1 = rAngel * rVec1.x + y * rVec1.z - z * rVec1.y;
- double d2 = rAngel * rVec1.y - x * rVec1.z + z * rVec1.x;
- double d3 = rAngel * rVec1.z + x * rVec1.y - y * rVec1.x;
- v3.x = d1 * rAngel - d * x - d2 * z + d3 * y;
- v3.y = d2 * rAngel - d * y + d1 * z - d3 * x;
- v3.z = d3 * rAngel - d * z - d1 * y + d2 * x;
- return v3;
- }
-
- public static Color getCorporeaRuneColor(int posX, int posY, int posZ, int meta) {
- double time = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- time += (new Random((posX ^ posY ^ posZ))).nextInt(360);
- float sin = (float)(Math.sin(time / 20.0f) * 0.15f) - 0.15f;
- int color = 0;
- switch(meta) {
- case 0:
- color = Color.HSBtoRGB(0.0f, 0.0f, 0.54f + (sin / 1.2f));
- break;
- case 1:
- color = Color.HSBtoRGB(0.688f, 0.93f, 0.96f + sin - 0.15f);
- break;
- case 2:
- color = Color.HSBtoRGB(0.983f, 0.99f, 1.0f + sin - 0.15f);
- break;
- case 3:
- color = Color.HSBtoRGB(0.319f, 0.92f, 0.95f + sin - 0.15f);
- break;
- case 4:
- color = Color.HSBtoRGB(0.536f, 0.53f, 0.92f + sin - 0.15f);
- break;
- }
- return new Color(color);
- }
-
- public static void renderIcon(IIcon icon, int light) {
- Tessellator tessellator = Tessellator.instance;
- float f = icon.getMinU();
- float f1 = icon.getMaxU();
- float f2 = icon.getMinV();
- float f3 = icon.getMaxV();
- float f4 = 1.0F;
- float f5 = 0.5F;
- float f6 = 0.25F;
- tessellator.startDrawingQuads();
- tessellator.setNormal(0.0F, 1.0F, 0.0F);
- tessellator.addVertexWithUV((0.0F - f5), (0.0F - f6), 0.0D, f, f3);
- tessellator.addVertexWithUV((f4 - f5), (0.0F - f6), 0.0D, f1, f3);
- tessellator.addVertexWithUV((f4 - f5), (f4 - f6), 0.0D, f1, f2);
- tessellator.addVertexWithUV((0.0F - f5), (f4 - f6), 0.0D, f, f2);
- tessellator.draw();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/bc/608176809bb1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/bc/608176809bb1001c19bf8a91ac37238b
deleted file mode 100644
index d199b94..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/bc/608176809bb1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,83 +0,0 @@
-package ab.client.core.handler;
-
-import java.awt.Color;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.armor.ItemNebulaArmor;
-import ab.common.item.equipment.armor.ItemNebulaHelm;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.ItemRenderer;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.texture.TextureMap;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraftforge.client.event.RenderPlayerEvent;
-import vazkii.botania.api.item.IPhantomInkable;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class PlayerRendererHandler {
-
- @SubscribeEvent
- public void onPlayerRender(RenderPlayerEvent.Specials.Pre event) {
- EntityPlayer player = event.entityPlayer;
- ItemStack item = player.getCurrentArmor(3);
- if(item != null && item.getItem() instanceof ItemNebulaHelm) {
- Item helm = player.getCurrentArmor(3).getItem();
- boolean hasPhantomInk = helm instanceof IPhantomInkable && ((IPhantomInkable)helm).hasPhantomInk(item);
- if(!hasPhantomInk && ((ItemNebulaHelm)helm).enableCosmicFace(item)) {
- float angelX = event.renderer.modelBipedMain.bipedHead.rotateAngleX * 180.0F / (float)Math.PI;
- float angelY = event.renderer.modelBipedMain.bipedHead.rotateAngleY * 180.0F / (float)Math.PI;
- GL11.glPushMatrix();
- if(player.isSneaking())
- GL11.glTranslatef(event.renderer.modelBipedMain.bipedHead.rotationPointX * 0.0625f, event.renderer.modelBipedMain.bipedHead.rotationPointY * 0.0625f, 0.0f);
- GL11.glRotatef(angelY, 0.0F, 1.0F, 0.0F);
- GL11.glRotatef(angelX, 1.0F, 0.0F, 0.0F);
- renderCosmicFace();
- GL11.glPopMatrix();
- }
- }
- }
-
- private void renderCosmicFace() {
- double worldTime = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- GL11.glPushMatrix();
- GL11.glEnable(GL11.GL_TEXTURE_2D);
- GL11.glDisable(2884);
-
- GL11.glPushMatrix();
- GL11.glScalef(0.5f, 0.4f, 0.4f);
- GL11.glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
- GL11.glTranslatef(-0.5f, -0.8675f, 0.0f);
- GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
- ClientHelper.renderCosmicBackground();
- GL11.glPopMatrix();
-
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- (Minecraft.getMinecraft()).renderEngine.bindTexture(TextureMap.locationItemsTexture);
- GL11.glTranslatef(-0.2F, -0.35F, -0.25F);
- GL11.glScalef(0.4f, 0.4f, 0.4f);
- float f = ItemNebulaArmor.nebulaEyes.getMinU();
- float f1 = ItemNebulaArmor.nebulaEyes.getMaxU();
- float f2 = ItemNebulaArmor.nebulaEyes.getMinV();
- float f3 = ItemNebulaArmor.nebulaEyes.getMaxV();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float r = color.getRed() / 510.0F;
- float g = color.getGreen() / 510.0F;
- float b = color.getBlue() / 510.0F;
- GL11.glColor4f(0.5f + r, 0.5f + g, 0.5f + b, 0.685f + (float)Math.sin(worldTime / 50.0D) * 0.175F);
- ItemRenderer.renderItemIn2D(Tessellator.instance, f1, f2, f, f3, ItemNebulaArmor.nebulaEyes.getIconWidth(), ItemNebulaArmor.nebulaEyes.getIconHeight(), 0.03125F);
- GL11.glDisable(3042);
- GL11.glEnable(32826);
- GL11.glPopMatrix();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/5b/4071385e9ab1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/bd/10dcfbf69dc1001c1056f0256f545f23
similarity index 84%
rename from 1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/5b/4071385e9ab1001c19bf8a91ac37238b
rename to 1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/bd/10dcfbf69dc1001c1056f0256f545f23
index cb004c3..41f8566 100644
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/5b/4071385e9ab1001c19bf8a91ac37238b
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/bd/10dcfbf69dc1001c1056f0256f545f23
@@ -19,11 +19,12 @@ public class ConfigABHandler {
public static double damageFactorSpaceSword = 1.0f;
public static int nebulaWandCooldownTick = 18;
public static boolean hasManaCharger = true;
- public static boolean hasAbPlate = true;
public static int spreaderMaxMana = 128000;
public static int spreaderBurstMana = 32000;
- public static String[] lockEntityListToHide = new String[] {};
+ public static String[] lockEntityListToHorn = new String[] {};
+ public static String[] lockWorldNameNebulaRod = new String[] {};
public static int limitXZCoords = 30000000;
+// public static boolean hasAutoThaum = true;
public static void loadConfig(File configFile) {
config = new Configuration(configFile);
@@ -44,17 +45,19 @@ public class ConfigABHandler {
desc = "The number of ticks needed to restore 1 unit of the Rod of Nebula strength.";
nebulaWandCooldownTick = loadPropInt("Rod of Nebula Cooldown", desc, nebulaWandCooldownTick);
desc = "Switching the Mana Charger on or off in the game";
- hasManaCharger = loadPropBool("Enable Mana Charger", desc, hasManaCharger);
- desc = "Enables or disables Advanced Agglomeration Plate in the game. When switched off, you need to set up recipes, for resources";
- hasAbPlate = loadPropBool("Enable Adv. Agg. Plate", desc, hasAbPlate);
+ hasManaCharger = loadPropBool("Enable Mana Charger", desc, hasManaCharger);
desc = "Maximum amount of mana held in a mana spreader";
spreaderMaxMana = loadPropInt("Spreader Max Mana", desc, spreaderMaxMana);
desc = "Amount of Mana in a Mana Burst";
spreaderBurstMana = loadPropInt("Spreader Burst Mana", desc, spreaderBurstMana);
-// desc = "To block a creature, type it's class name";
-// lockEntityListToHide = loadPropString("Blocked creatures for double drop", desc, lockEntityListToHide);
+ desc = "To block a creature, type it's class name";
+ lockEntityListToHorn = loadPropString("Blocked creatures for double drop", desc, lockEntityListToHorn);
+ desc = "Enter the name of the World you want to add to the blacklist";
+ lockWorldNameNebulaRod = loadPropString("Locking Worlds for Teleportation with Nebula Rod", desc, lockWorldNameNebulaRod);
desc = "Limitation on X Z coordinates for teleportation, do not increase the default value";
limitXZCoords = loadPropInt("Restriction on X Z coordinates for Rod of Nebula", desc, limitXZCoords);
+ desc = "Switching the Thaumim Crafty Crate on or off in the game";
+ hasAutoThaum = loadPropBool("Enable Thaumim Crafty Crate", desc, hasAutoThaum);
if(config.hasChanged())
config.save();
}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/bd/5094b753e7bc001c1a9f99005529f322 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/bd/5094b753e7bc001c1a9f99005529f322
new file mode 100644
index 0000000..b1bdd64
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/bd/5094b753e7bc001c1a9f99005529f322
@@ -0,0 +1,101 @@
+package ab.client.render.tile;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Random;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.client.model.ModelNidavellirForge;
+import ab.common.block.tile.TileNidavellirForge;
+import net.minecraft.client.Minecraft;
+import net.minecraft.client.renderer.OpenGlHelper;
+import net.minecraft.client.renderer.Tessellator;
+import net.minecraft.client.renderer.entity.Render;
+import net.minecraft.client.renderer.entity.RenderManager;
+import net.minecraft.client.renderer.texture.TextureMap;
+import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.ResourceLocation;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.client.core.helper.ShaderHelper;
+import vazkii.botania.common.block.mana.BlockTerraPlate;
+
+public class RenderTileNidavellirForge extends TileEntitySpecialRenderer {
+
+ private List entityList = null;
+ private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/nidavellirForge.png");
+ private static final ModelNidavellirForge model = new ModelNidavellirForge();
+
+ public void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float f) {
+ TileNidavellirForge tile = (TileNidavellirForge)tileentity;
+ double worldTime = 0.0D;
+ int meta = 2;
+ float invRender = 0.0f;
+ if(tileentity != null && tileentity.getWorldObj() != null) {
+ worldTime = ClientTickHandler.ticksInGame + f + (new Random((tileentity.xCoord ^ tileentity.yCoord ^ tileentity.zCoord))).nextInt(360);
+ meta = tileentity.getWorldObj().getBlockMetadata(tileentity.xCoord, tileentity.yCoord, tileentity.zCoord);
+ } else
+ invRender = 0.1f;
+ float indetY = (float)(Math.sin(worldTime / 18.0D) / 24.0D);
+ GL11.glPushMatrix();
+ GL11.glEnable(32826);
+ GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
+ GL11.glTranslated(x - invRender, y, z);
+ GL11.glTranslatef(0.5f, 1.5f, 0.5f);
+ GL11.glRotatef(180.0f, 1.0f, 0.0f, 1.0f);
+ GL11.glRotatef(90.0f * meta, 0.0f, 1.0f, 0.0f);
+ Minecraft.getMinecraft().renderEngine.bindTexture(texture);
+ model.renderBottom();
+ GL11.glTranslatef(0.0f, indetY, 0.0f);
+ model.renderTop();
+ GL11.glEnable(32826);
+ GL11.glPopMatrix();
+ if(entityList == null) {
+ List list = new ArrayList();
+ for(int i = 0; i < tile.getSizeInventory(); i++) {
+ list.add(new EntityItem(tile.getWorldObj(), tile.xCoord, tile.yCoord, tile.zCoord));
+ }
+ entityList = list;
+ }
+ GL11.glPushMatrix();
+ GL11.glTranslated(x + 0.5f, y + 0.675f - indetY, z + 0.5f);
+ GL11.glScalef(0.2F, 0.225F, 0.225F);
+ for(int i = 1; i < entityList.size(); i++) {
+ GL11.glPushMatrix();
+ ItemStack stack = tile.getStackInSlot(i);
+ if(stack != null) {
+ switch(i) {
+ case 1:
+ GL11.glTranslated(0.15f, 0.0f, 0.0f);
+ break;
+ case 2:
+ GL11.glTranslated(-0.15f, 0.0f, -0.15f);
+ break;
+ case 3:
+ GL11.glTranslated(-0.15f, 0.0f, 0.15f);
+ break;
+ }
+ entityList.get(i).setEntityItemStack(stack);
+ entityList.get(i).age = ClientTickHandler.ticksInGame;
+ ((Render)RenderManager.instance.entityRenderMap.get(EntityItem.class)).doRender((Entity)entityList.get(i), 0.0D, 0.0D, 0.0D, 1.0F, f);
+ }
+ GL11.glPopMatrix();
+ }
+ GL11.glPopMatrix();
+ if(tile.getStackInSlot(0) != null) {
+ GL11.glPushMatrix();
+ GL11.glTranslated(x + 0.5, y + 0.915f - indetY, z + 0.5);
+ GL11.glScalef(0.45f, 0.45f, 0.45f);
+ entityList.get(0).setEntityItemStack(tile.getStackInSlot(0));
+ entityList.get(0).age = ClientTickHandler.ticksInGame;
+ ((Render)RenderManager.instance.entityRenderMap.get(EntityItem.class)).doRender((Entity)entityList.get(0), 0.0D, 0.0D, 0.0D, 1.0F, f);
+ GL11.glPopMatrix();
+ }
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/bd/50f2ace3f5ac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/bd/50f2ace3f5ac001c1d59e42be7477558
deleted file mode 100644
index 025d089..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/bd/50f2ace3f5ac001c1d59e42be7477558
+++ /dev/null
@@ -1,91 +0,0 @@
-package ab.client.render.tile;
-
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.model.ModelDiceFate;
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.ResourceLocation;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class RenderTileGameBoard extends TileEntitySpecialRenderer {
-
- private static final ModelDiceFate model = new ModelDiceFate();
- private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/gameDice.png");
- private static final ResourceLocation textureEnemy = new ResourceLocation("ab:textures/model/gameDice_enemy.png");
-
- public void renderTileEntityAt(TileEntity tile, double x, double y, double z, float ticks) {
- double time = (tile.getWorldObj() == null) ? 0.0D : (ClientTickHandler.ticksInGame + ticks);
- if(tile != null)
- time += (new Random((tile.xCoord ^ tile.yCoord ^ tile.zCoord))).nextInt(360);
- TileGameBoard board = (TileGameBoard)tile;
- GL11.glEnable(3042);
- GL11.glEnable(32826);
- for(int i = 0; i < board.slotChance.length; i++) {
- if(board.slotChance[i] == 0)
- continue;
- time += i * 65;
- GL11.glPushMatrix();
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- float posX = 0.0f;
- float posY = 0.0f;
- float dropAnim = (1.0f - (Math.min(100.0f, board.clientTick[i] * board.clientTick[i] * 1.25f) / 100.0f));
- dropAnim = Math.min(1.0f, Math.max(dropAnim, 0));
- float alpha = (float)Math.cos(dropAnim);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, alpha);
- switch(i) {
- case 0:
- posX = 0.16f + 0.08f * dropAnim;
- posY = 0.16f + 0.08f * dropAnim;
- break;
- case 1:
- posX = -0.16f - 0.08f * dropAnim;
- posY = 0.16f + 0.08f * dropAnim;
- break;
- case 2:
- posX = 0.16f + 0.08f * dropAnim;
- posY = -0.16f - 0.08f * dropAnim;
- break;
- case 3:
- posX = -0.16f - 0.08f * dropAnim;
- posY = -0.16f - 0.08f * dropAnim;
- break;
- }
- GL11.glTranslated(x, y, z);
- GL11.glTranslated(0.5f + posX, 0.02f + Math.sin(time / 12.0D) / 48.0D + (0.28f * dropAnim), 0.5f + posY);
- GL11.glScalef(0.25f, 0.25f, 0.25f);
- Minecraft.getMinecraft().renderEngine.bindTexture(i > 1 ? textureEnemy : texture);
- float dropAngel = 70.0f * dropAnim;
- switch(board.slotChance[i]) {
- case 1:
- model.render(180.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 2:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 3:
- model.render(90.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 4:
- model.render(270.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 5:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 270.0f);
- break;
- case 6:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 90.0f);
- break;
- default:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- }
- GL11.glPopMatrix();
- }
- GL11.glEnable(32826);
- GL11.glDisable(3042);
- }
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/be/906da8cab7b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/be/906da8cab7b1001c19bf8a91ac37238b
deleted file mode 100644
index 4dd039f..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/be/906da8cab7b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,169 +0,0 @@
-package ab.common.entity;
-
-import java.awt.Color;
-import java.util.List;
-import java.util.Random;
-
-import ab.client.core.ClientHelper;
-import ab.common.core.CommonHelper;
-import ab.common.lib.register.BlockListAB;
-import cpw.mods.fml.relauncher.ReflectionHelper;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockBush;
-import net.minecraft.block.BlockCrops;
-import net.minecraft.block.BlockGrass;
-import net.minecraft.block.BlockSapling;
-import net.minecraft.block.IGrowable;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.EntityLivingBase;
-import net.minecraft.entity.passive.EntityAnimal;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.entity.projectile.EntityThrowable;
-import net.minecraft.init.Blocks;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.potion.PotionEffect;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.MathHelper;
-import net.minecraft.util.MovingObjectPosition;
-import net.minecraft.util.Vec3;
-import net.minecraft.world.World;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.core.handler.ConfigHandler;
-import vazkii.botania.common.lib.LibObfuscation;
-
-public class EntityManaVine extends EntityThrowable {
-
- public EntityManaVine(World world) {
- super(world);
- }
-
- public EntityManaVine(World world, EntityLivingBase entity) {
- super(world, entity);
- }
-
- protected void entityInit() {
- super.entityInit();
- this.dataWatcher.addObject(28, "");
- this.dataWatcher.setObjectWatched(28);
- }
-
- public String getAttacker() {
- return this.dataWatcher.getWatchableObjectString(28);
- }
-
- public void setAttacker(String str) {
- this.dataWatcher.updateObject(28, str);
- }
-
- public void onUpdate() {
- super.onUpdate();
- ticksExisted++;
- if(ticksExisted >= 240)
- setDead();
- if(this.worldObj.isRemote) {
- float m = 0.02F;
- float f1 = 6.0f;
- for(int i = 0; i < 4; i++) {
- double posX = this.posX + (Math.random() / f1 - (0.5f / f1));
- double posY = this.posY + (Math.random() / f1 - (0.5f / f1));
- double posZ = this.posZ + (Math.random() / f1 - (0.5f / f1));
- float mx = (float)(Math.random() - 0.5D) * m;
- float my = (float)(Math.random() - 0.5D) * m;
- float mz = (float)(Math.random() - 0.5D) * m;
- Color color = ClientHelper.getCorporeaRuneColor((int)posX, (int)posY, (int)posZ, 3);
- Botania.proxy.wispFX(worldObj, posX, posY, posZ, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float) (0.15f + (Math.random() * 0.12f)), mx, my, mz, 0.7f);
- }
- }
- }
-
- protected void onImpact(MovingObjectPosition pos) {
- if(pos != null && pos.entityHit == null) {
- World world = this.worldObj;
- int x = pos.blockX;
- int y = pos.blockY;
- int z = pos.blockZ;
- List list = (List) (world.getEntitiesWithinAABB(EntityLivingBase.class, AxisAlignedBB.getBoundingBox(x - 10, y - 10, z - 10, x + 10, y + 10, z + 10)));
- for(EntityLivingBase target : list) {
- if(target instanceof EntityAnimal) {
- EntityAnimal animal = (EntityAnimal) target;
- ReflectionHelper.setPrivateValue(EntityAnimal.class, animal, 1200, LibObfuscation.IN_LOVE);
- animal.setTarget(null);
- this.worldObj.setEntityState(animal, (byte) 18);
- }
- }
- for(int k = 0; k < 7; k++)
- for(int k1 = 0; k1 < 7; k1++)
- for(int k2 = 0; k2 < 7; k2++) {
- int xCoord = x + k - 3;
- int yCoord = y + k1 - 1;
- int zCoord = z + k2 - 3;
- Block block = this.worldObj.getBlock(xCoord, yCoord, zCoord);
- if(block instanceof IGrowable && !(block instanceof BlockGrass)) {
- CommonHelper.fertilizer(world, block, xCoord, yCoord, zCoord, 12);
- if(ConfigHandler.blockBreakParticles) {
- worldObj.playAuxSFX(2005, xCoord, yCoord, zCoord, 6 + this.worldObj.rand.nextInt(4));
- worldObj.playSoundEffect(x, y, z, "botania:agricarnation", 0.01F, 0.5F + (float) Math.random() * 0.5F);
- }
- } else if(!world.isRemote && BlockListAB.blockFreyrLiana.canBlockStay(world, xCoord, yCoord - 1, zCoord)) {
- Vec3 vec = Vec3.createVectorHelper(xCoord, yCoord, zCoord);
- int distant = (int)vec.squareDistanceTo(Vec3.createVectorHelper(x, y, z));
- yCoord--;
- if(this.worldObj.rand.nextInt(distant + 1) == 0)
- while (yCoord > 0) {
- block = worldObj.getBlock(xCoord, yCoord, zCoord);
- if(block.isAir(worldObj, xCoord, yCoord, zCoord)) {
- EntityPlayer player = worldObj.getPlayerEntityByName(getAttacker());
- if(player != null) {
- EntityPlayerMP playerMP = (EntityPlayerMP)player;
- if(world.rand.nextInt(4) < 3)
- CommonHelper.setBlock(world, BlockListAB.blockFreyrLiana, 0, xCoord, yCoord, zCoord, playerMP, false);
- else
- CommonHelper.setBlock(world, BlockListAB.blockLuminousFreyrLiana, 0, xCoord, yCoord, zCoord, playerMP, false);
- worldObj.playAuxSFX(2001, xCoord, yCoord, zCoord, Block.getIdFromBlock(BlockListAB.blockFreyrLiana));
- yCoord--;
- }
- } else
- break;
- }
- }
- }
- this.setDead();
- }
- }
-
- @SideOnly(Side.CLIENT)
- public void setPositionAndRotation2(double p_70056_1_, double p_70056_3_, double p_70056_5_, float p_70056_7_, float p_70056_8_, int p_70056_9_) {}
-
- protected float getGravityVelocity() {
- return 0.0f;
- }
-
- public void setDead() {
- if(this.worldObj.isRemote) {
- float m = 0.175F;
- for(int i = 0; i < 32; i++) {
- float mx = (float)(Math.random() - 0.5D) * m;
- float my = (float)(Math.random() - 0.5D) * m;
- float mz = (float)(Math.random() - 0.5D) * m;
- Color color = ClientHelper.getCorporeaRuneColor((int)posX, (int)posY, (int)posZ, 3);
- Botania.proxy.wispFX(worldObj, posX, posY, posZ, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float) (0.2f + (Math.random() * 0.12f)), mx, my, mz, 2.0f);
- }
- }
- super.setDead();
- }
-
- public void readEntityFromNBT(NBTTagCompound nbtt) {
- super.readEntityFromNBT(nbtt);
- ticksExisted = nbtt.getInteger("ticks");
- setAttacker(nbtt.getString("attacker"));
- }
-
- public void writeEntityToNBT(NBTTagCompound nbtt) {
- super.writeEntityToNBT(nbtt);
- nbtt.setInteger("ticks", ticksExisted);
- nbtt.setString("attacker", getAttacker());
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/bf/006a22acd2b0001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/bf/006a22acd2b0001c19bf8a91ac37238b
deleted file mode 100644
index 039ac0f..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/bf/006a22acd2b0001c19bf8a91ac37238b
+++ /dev/null
@@ -1,131 +0,0 @@
-package ab.common.item.equipment;
-
-import java.awt.Color;
-
-import ab.client.core.ClientHelper;
-import ab.common.core.handler.ConfigABHandler;
-import ab.common.item.ItemMod;
-import net.minecraft.block.Block;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.Minecraft;
-import net.minecraft.entity.Entity;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.EnumAction;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.ChunkCoordinates;
-import net.minecraft.util.MathHelper;
-import net.minecraft.util.Vec3;
-import net.minecraft.world.World;
-import net.minecraft.world.chunk.Chunk;
-import vazkii.botania.api.mana.IManaUsingItem;
-import vazkii.botania.api.mana.ManaItemHandler;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.core.helper.Vector3;
-
-public class ItemNebulaRod extends ItemMod implements IManaUsingItem {
-
- public ItemNebulaRod() {
- super("nebulaRod");
- this.setMaxStackSize(1);
- this.setNoRepair();
- this.setMaxDamage(100);
- }
-
- public boolean usesMana(ItemStack stack) {
- return true;
- }
-
- public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
- if(stack.getItemDamage() == 0)
- player.setItemInUse(stack, getMaxItemUseDuration(stack));
- return stack;
- }
-
- public EnumAction getItemUseAction(ItemStack par1ItemStack) {
- return EnumAction.bow;
- }
-
- public void onUpdate(ItemStack stack, World world, Entity player, int par4, boolean par5) {
- if(!world.isRemote && player instanceof EntityPlayer && player.ticksExisted % ConfigABHandler.nebulaWandCooldownTick == 0 && stack.getItemDamage() > 0 && ManaItemHandler.requestManaExactForTool(stack, (EntityPlayer)player, 140, true))
- stack.setItemDamage(stack.getItemDamage() - 1);
- }
-
- public void onUsingTick(ItemStack stack, EntityPlayer p, int time) {
- time = this.getMaxItemUseDuration(stack) - time;
- if(time > 110 && !p.isSneaking()) {
- Vec3 vec3 = p.getLook(1.0F).normalize();
- MathHelper.floor_double(time);
- int limitXZ = ConfigABHandler.limitXZCoords;
- int posX = MathHelper.floor_double(p.posX + vec3.xCoord * 256);
- int posY = MathHelper.floor_double(p.posY);
- int posZ = MathHelper.floor_double(p.posZ + vec3.zCoord * 256);
- ChunkCoordinates chunkcoordinates = new ChunkCoordinates(Math.min(Math.max(posX, -(limitXZ - 1)), limitXZ - 1), posY, Math.min(Math.max(posZ, -(limitXZ - 1)), limitXZ - 1));
- int topY = getTopBlock(p.worldObj, posX, posZ);
- if(topY == -1) {
- p.stopUsingItem();
- return;
- }
- chunkcoordinates.posY = topY;
- if(!p.worldObj.isRemote)
- ((EntityPlayerMP)p).playerNetServerHandler.setPlayerLocation(chunkcoordinates.posX + 0.5D, chunkcoordinates.posY + 1.6D, chunkcoordinates.posZ + 0.5D, p.rotationYaw, p.rotationPitch);
- if(!p.capabilities.isCreativeMode)
- stack.setItemDamage(100);
- p.stopUsingItem();
- }
- spawnPortalParticle(p.worldObj, p, time);
- }
-
- public void spawnPortalParticle(World world, EntityPlayer p, int time) {
- if(world.isRemote) {
- boolean isFinish = time > 80;
- int ticks = Math.min(100, time);
- int totalSpiritCount = (int)Math.max(3, ticks / 100.0f * 18);
- double tickIncrement = 360.0D / totalSpiritCount;
- int speed = 8;
- double wticks = (ticks * speed) - tickIncrement;
- double r = Math.sin((ticks) / 100.0D) * Math.max(0.75f, 1.4D * ticks / 100.0f);
- Vec3 look = p.getLookVec();
- float yawOffset = Minecraft.getMinecraft().thePlayer.getDisplayName() == p.getDisplayName() ? 0.0f : 1.62f;
- Vector3 l = new Vector3(look.xCoord, look.yCoord + yawOffset, look.zCoord);
- Vector3 player = Vector3.fromEntity(p).add(0.0f, 0.0f, 0.0f);
- Vector3 v3 = new Vector3();
- for(int i = 0; i < totalSpiritCount; i++) {
- float size = Math.max(0.215f, ticks / 100.0f);
- v3.set(Math.sin(wticks * Math.PI / 180.0D) / 1.825f * r, Math.cos(wticks * Math.PI / 180.0D) * r, 0.8f);
- ClientHelper.setRotation(p.rotationPitch, 1.0f, 0.0f, 0.0f, v3);
- ClientHelper.setRotation(-p.rotationYaw, 0.0f, 1.0f, 0.0f, v3);
- v3.add(l.multiply(1.0f)).add(player);
- wticks += tickIncrement;
- int color = world.rand.nextBoolean() ? 0x931fec : 0x4b1682;
- float hsb[] = Color.RGBtoHSB(color & 255, color >> 8 & 255, color >> 16 & 255, null);
- int color1 = Color.HSBtoRGB(hsb[0], hsb[1], ticks / 100.0f);
- float[] colorsfx = { (color1 & 255) / 255.0f, (color1 >> 8 & 255) / 255.0f, (color1 >> 16 & 255) / 255.0f };
- float motionSpeed = 0.25f * Math.min(1.0f, (time - 80) / 30.0f);
- Botania.proxy.wispFX(world, v3.x, v3.y, v3.z, colorsfx[0], colorsfx[1], colorsfx[2], 0.3F * size, isFinish ? (float)(look.xCoord * -1) * motionSpeed : 0.0f, isFinish ? (float)(look.yCoord * -1) * motionSpeed : 0.0f, isFinish ? (float)(look.zCoord * -1) * motionSpeed : 0.0f, 0.3F);
- Botania.proxy.wispFX(world, v3.x, v3.y, v3.z, colorsfx[0], colorsfx[1], colorsfx[2], (float)(Math.random() * 0.1F + 0.05F) * size, (float)(Math.random() - 0.5D) * 0.05F, (float)(Math.random() - 0.5D) * 0.05F, (float)(Math.random() - 0.5D) * 0.05F, 0.4F);
- }
- }
- }
-
- public int getMaxItemUseDuration(ItemStack par1ItemStack) {
- return 72000;
- }
-
- public boolean isFull3D() {
- return true;
- }
-
- public int getTopBlock(World world, int posX, int posZ) {
- Chunk chunk = world.getChunkFromBlockCoords(posX, posZ);
- posX &= 15;
- posZ &= 15;
- for(int k = chunk.getTopFilledSegment() + 15; k > 0; --k) {
- Block block = chunk.getBlock(posX, k, posZ);
- if(!block.isAir(world, posX, k, posZ) && block != Blocks.bedrock && block.isAir(world, posX, k + 1, posZ))
- return k + 1;
- }
- return -1;
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/bf/006cdea4deac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/bf/006cdea4deac001c1d59e42be7477558
deleted file mode 100644
index 0e1c780..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/bf/006cdea4deac001c1d59e42be7477558
+++ /dev/null
@@ -1,90 +0,0 @@
-package ab.client.render.tile;
-
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.model.ModelDiceFate;
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.ResourceLocation;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class RenderTileGameBoard extends TileEntitySpecialRenderer {
-
- private static final ModelDiceFate model = new ModelDiceFate();
- private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/gameDice.png");
- private static final ResourceLocation textureEnemy = new ResourceLocation("ab:textures/model/gameDice_enemy.png");
-
- public void renderTileEntityAt(TileEntity tile, double x, double y, double z, float ticks) {
- double time = (tile.getWorldObj() == null) ? 0.0D : (ClientTickHandler.ticksInGame + ticks);
- if(tile != null)
- time += (new Random((tile.xCoord ^ tile.yCoord ^ tile.zCoord))).nextInt(360);
- TileGameBoard board = (TileGameBoard)tile;
- GL11.glEnable(3042);
- GL11.glEnable(32826);
- for(int i = 0; i < board.slotChance.length; i++) {
- if(board.slotChance[i] == 0)
- continue;
- time += i * 65;
- GL11.glPushMatrix();
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- float posX = 0.0f;
- float posY = 0.0f;
- float dropAnim = (1.0f - (Math.min(100.0f, board.clientTick[i] * board.clientTick[i] * 1.125f) / 100.0f));
- dropAnim = Math.min(1.0f, Math.max(dropAnim, 0));
- GL11.glColor4f(1.0F, 1.0F, 1.0F, Math.min(1.0f - (dropAnim * 3.0f), 0.0f));
- switch(i) {
- case 0:
- posX = 0.16f + 0.08f * dropAnim;
- posY = 0.16f + 0.08f * dropAnim;
- break;
- case 1:
- posX = -0.16f - 0.08f * dropAnim;
- posY = 0.16f + 0.08f * dropAnim;
- break;
- case 2:
- posX = 0.16f + 0.08f * dropAnim;
- posY = -0.16f - 0.08f * dropAnim;
- break;
- case 3:
- posX = -0.16f - 0.08f * dropAnim;
- posY = -0.16f - 0.08f * dropAnim;
- break;
- }
- GL11.glTranslated(x, y, z);
- GL11.glTranslated(0.5f + posX, 0.02f + Math.sin(time / 12.0D) / 48.0D + (0.28f * dropAnim), 0.5f + posY);
- GL11.glScalef(0.25f, 0.25f, 0.25f);
- Minecraft.getMinecraft().renderEngine.bindTexture(i > 1 ? textureEnemy : texture);
- float dropAngel = 70.0f * dropAnim;
- switch(board.slotChance[i]) {
- case 1:
- model.render(180.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 2:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 3:
- model.render(90.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 4:
- model.render(270.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 5:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 270.0f);
- break;
- case 6:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 90.0f);
- break;
- default:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- }
- GL11.glPopMatrix();
- }
- GL11.glEnable(32826);
- GL11.glDisable(3042);
- }
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/bf/603b50fa96c1001c11e398ea97007cb4 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/bf/603b50fa96c1001c11e398ea97007cb4
new file mode 100644
index 0000000..365cd5c
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/bf/603b50fa96c1001c11e398ea97007cb4
@@ -0,0 +1,313 @@
+package ab.common.lib.register;
+
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+
+import ab.api.AdvancedBotanyAPI;
+import ab.api.recipe.RecipeAdvancedPlate;
+import ab.api.recipe.RecipeAncientAlphirine;
+import ab.api.recipe.lexicon.AdvancedPlateCraftPage;
+import ab.api.recipe.lexicon.AlphirineCraftPage;
+import ab.common.block.tile.TileNidavellirForge;
+import ab.common.block.tile.TileLebethronCore;
+import ab.common.block.tile.TileMagicCraftCrate;
+import ab.common.core.handler.ConfigABHandler;
+import ab.common.item.ItemCraftingPattern;
+import cpw.mods.fml.common.registry.GameRegistry;
+import net.minecraft.init.Blocks;
+import net.minecraft.init.Items;
+import net.minecraft.item.ItemStack;
+import net.minecraft.item.crafting.CraftingManager;
+import net.minecraft.item.crafting.IRecipe;
+import net.minecraft.util.EnumChatFormatting;
+import net.minecraftforge.oredict.ShapedOreRecipe;
+import net.minecraftforge.oredict.ShapelessOreRecipe;
+import thaumcraft.common.config.ConfigBlocks;
+import thaumcraft.common.config.ConfigItems;
+import vazkii.botania.api.BotaniaAPI;
+import vazkii.botania.api.lexicon.KnowledgeType;
+import vazkii.botania.api.lexicon.LexiconCategory;
+import vazkii.botania.api.lexicon.LexiconEntry;
+import vazkii.botania.api.lexicon.LexiconPage;
+import vazkii.botania.api.recipe.RecipePetals;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.block.ModBlocks;
+import vazkii.botania.common.block.ModFluffBlocks;
+import vazkii.botania.common.core.handler.ConfigHandler;
+import vazkii.botania.common.item.ModItems;
+import vazkii.botania.common.item.block.ItemBlockSpecialFlower;
+import vazkii.botania.common.lexicon.BLexiconCategory;
+import vazkii.botania.common.lexicon.BLexiconEntry;
+import vazkii.botania.common.lexicon.RLexiconEntry;
+import vazkii.botania.common.lexicon.page.PageImage;
+import vazkii.botania.common.lexicon.page.PageText;
+
+public class RecipeListAB {
+
+ public static LexiconCategory categoryForgotten;
+
+ public static RecipeAncientAlphirine lebethroneRecipe;
+ public static RecipeAncientAlphirine forgottenLandRecipe;
+ public static RecipeAncientAlphirine advancedSparkRecipe;
+ public static RecipeAncientAlphirine manaFlowerRecipe;
+ public static RecipeAncientAlphirine hopperRecipe;
+ public static RecipeAncientAlphirine fateBoardRecipe;
+
+ public static RecipeAdvancedPlate manaStarRecipe;
+ public static RecipeAdvancedPlate terrasteelRecipe;
+ public static RecipeAdvancedPlate mithrillRecipe;
+ public static RecipeAdvancedPlate nebulaRecipe;
+
+ public static RecipePetals alphirineRecipe;
+ public static RecipePetals dictariusRecipe;
+ public static RecipePetals aspecolusRecipe;
+ public static RecipePetals pureGladRecipe;
+ public static RecipePetals azartFlowerRecipe;
+
+ public static LexiconEntry advandedAgglomerationPlate;
+ public static LexiconEntry ancientAlphirine;
+ public static LexiconEntry lebethronWood;
+ public static LexiconEntry lebethronSpreader;
+ public static LexiconEntry mithrill;
+ public static LexiconEntry manaContainer;
+ public static LexiconEntry manaCrystalCube;
+ public static LexiconEntry terraHoe;
+ public static LexiconEntry manaRings;
+ public static LexiconEntry manaFlower;
+ public static LexiconEntry mithrillSword;
+ public static LexiconEntry nebula;
+ public static LexiconEntry blackHalo;
+ public static LexiconEntry antigravityCharm;
+ public static LexiconEntry nebulaBlaze;
+ public static LexiconEntry aspecolus;
+ public static LexiconEntry dictarius;
+ public static LexiconEntry manaCharger;
+ public static LexiconEntry nebulaArmor;
+ public static LexiconEntry freyrSlingshot;
+ public static LexiconEntry engineerHopper;
+ public static LexiconEntry nebulaRod;
+ public static LexiconEntry thaumAutoCraft;
+ public static LexiconEntry gladious;
+ public static LexiconEntry gameBoard;
+ public static LexiconEntry fateBoard;
+ public static LexiconEntry richesKey;
+ public static LexiconEntry cubeWardrobe;
+ public static LexiconEntry sprawlRod;
+ public static LexiconEntry azartFlower;
+
+ public static KnowledgeType forgotten;
+
+ public static void init() {
+
+ BotaniaAPI.addCategory(categoryForgotten = new BLexiconCategory("forgotten", 5));
+ forgotten = BotaniaAPI.registerKnowledgeType("ab_forgotten", EnumChatFormatting.BLUE, false);
+
+ lebethroneRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(BlockListAB.blockLebethron), new ItemStack(ModBlocks.dreamwood, 1, 0), 15);
+ forgottenLandRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(ItemListAB.itemABResource, 1, 3), new ItemStack(ModItems.manaResource, 1, 15), 75);
+ advancedSparkRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(ItemListAB.itemAdvancedSpark), new ItemStack(ModItems.spark), 11);
+ manaFlowerRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(ItemListAB.itemABResource, 1, 4), new ItemStack(ModBlocks.flower, 1, 32767), 32);
+ hopperRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(BlockListAB.blockEngineerHopper), new ItemStack(Blocks.hopper), 23);
+ fateBoardRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(BlockListAB.blockBoardFate, 1, 1), new ItemStack(BlockListAB.blockBoardFate), 60);
+
+ mithrillRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ItemListAB.itemABResource, 1, 0), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModBlocks.storage, 1, 0), new ItemStack(ModItems.manaResource, 1, 18), 7500000, 0x25d6b7);
+ terrasteelRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ModItems.manaResource, 1, 4), new ItemStack(ModItems.manaResource, 1, 2), new ItemStack(ModItems.manaResource, 1, 0), new ItemStack(ModItems.manaResource, 1, 1), 500000, 0x29de20);
+ manaStarRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ItemListAB.itemABResource, 1, 2), new ItemStack(ModItems.manaResource, 1, 23), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(Items.nether_star), 250000, 0x6bc9ec);
+ nebulaRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ItemListAB.itemABResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 8), new ItemStack(ModBlocks.storage, 1, 4), new ItemStack(ItemListAB.itemABResource, 1, 1), 50000000, 0x8d16e0);
+
+ ancientAlphirine = new BLexiconEntry("ancientAlphirine", categoryForgotten);
+ alphirineRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("ancientAlphirine"), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.rune, 1, 8), new ItemStack(ModItems.rune, 1, 4), new ItemStack(ModItems.rune, 1, 5), new ItemStack(ModItems.rune, 1, 6), new ItemStack(ModItems.rune, 1, 7), new ItemStack(ModItems.petal, 1, 1), new ItemStack(ModItems.petal, 1, 4));
+ ancientAlphirine.setPriority().setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), new PageText("1"), new PageImage("2", "ab:textures/misc/ancientAlphirine.png"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", alphirineRecipe), new AlphirineCraftPage(ancientAlphirine, forgottenLandRecipe.getOutput(), ".alphirineCraft") }).setIcon(ItemBlockSpecialFlower.ofType("ancientAlphirine"));
+
+ GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockABPlate), new Object[] { "MPM", " F ", "BRB", Character.valueOf('F'), new ItemStack(Blocks.anvil), Character.valueOf('M'), new ItemStack(ModBlocks.storage), Character.valueOf('P'), new ItemStack(ModBlocks.terraPlate), Character.valueOf('B'), new ItemStack(ItemListAB.itemABResource, 1, 3), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 3)});
+ advandedAgglomerationPlate = new BLexiconEntry("advancedPlate", categoryForgotten);
+ advandedAgglomerationPlate.setPriority().setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] {new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()), new AdvancedPlateCraftPage(advandedAgglomerationPlate, terrasteelRecipe.getOutput(), ".abCraft0"), new AdvancedPlateCraftPage(advandedAgglomerationPlate, manaStarRecipe.getOutput(), ".abCraft1") }).setIcon(new ItemStack(BlockListAB.blockABPlate));
+
+ GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockABSpreader), new Object[] { "WMW", "PSP", "WMW", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource, 1, 2), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('S'), new ItemStack(ModBlocks.spreader, 1, 3), Character.valueOf('W'), new ItemStack(BlockListAB.blockLebethron, 1, 4)});
+ lebethronSpreader = new BLexiconEntry("lebethronSpreader", categoryForgotten);
+ lebethronSpreader.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(BlockListAB.blockABSpreader));
+
+ addShapelessOreDictRecipe(new ItemStack(BlockListAB.blockLebethron, 4, 1), new Object[] { new ItemStack(BlockListAB.blockLebethron)});
+ IRecipe leb1 = getLastRecipe();
+ addShapelessOreDictRecipe(new ItemStack(BlockListAB.blockLebethron, 1, 2), new Object[] { new ItemStack(BlockListAB.blockLebethron, 1, 1), new ItemStack(Items.wheat_seeds)});
+ IRecipe leb2 = getLastRecipe();
+ addShapelessOreDictRecipe(new ItemStack(BlockListAB.blockLebethron, 1, 3), new Object[] { new ItemStack(BlockListAB.blockLebethron), new ItemStack(Items.glowstone_dust)});
+ IRecipe leb3 = getLastRecipe();
+ GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockLebethron, 1, 4), new Object[] { "4W5", "WPW", "6W7", Character.valueOf('P'), new ItemStack(ModBlocks.pylon, 1, 1), Character.valueOf('W'), new ItemStack(BlockListAB.blockLebethron), Character.valueOf('4'), new ItemStack(ModItems.rune, 1, 4), Character.valueOf('5'), new ItemStack(ModItems.rune, 1, 5), Character.valueOf('6'), new ItemStack(ModItems.rune, 1, 6), Character.valueOf('7'), new ItemStack(ModItems.rune, 1, 7)});
+ IRecipe leb4 = getLastRecipe();
+ lebethronWood = new BLexiconEntry("lebethronWood", categoryForgotten);
+ lebethronWood.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AlphirineCraftPage(lebethronWood, lebethroneRecipe.getOutput(), ".alphirineCraft"), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb1), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb2), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb3), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb4), new PageText("1"), BotaniaAPI.internalHandler.multiblockPage(".structure", TileLebethronCore.makeMultiblockSet()) }).setIcon(new ItemStack(BlockListAB.blockLebethron));
+
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemMihrillMultiTool), new Object[] { " MB", " FM", "F ", Character.valueOf('F'), new ItemStack(ModItems.manaResource, 1, 3), Character.valueOf('B'), new ItemStack(ModBlocks.livingwood), Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource)});
+ mithrill = new BLexiconEntry("mithrill", categoryForgotten);
+ mithrill.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AdvancedPlateCraftPage(mithrill, mithrillRecipe.getOutput(), ".abCraft"), new PageText("1"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(ItemListAB.itemMihrillMultiTool));
+
+ GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaContainer), new Object[] { "MGM", "LPL", "M3M", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('L'), new ItemStack(ModBlocks.pool), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('3'), new ItemStack(ModItems.rune, 1, 3), Character.valueOf('G'), new ItemStack(ModItems.rune, 1, 15)});
+ IRecipe cont1 = getLastRecipe();
+ GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaContainer, 1, 1), new Object[] { "MGM", "LPL", "M3M", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource, 1, 1), Character.valueOf('L'), new ItemStack(ModBlocks.pool, 1, 2), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('3'), new ItemStack(ModItems.rune, 1, 3), Character.valueOf('G'), new ItemStack(ModItems.rune, 1, 15)});
+ IRecipe cont2 = getLastRecipe();
+ GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaContainer, 1, 2), new Object[] { "MGM", "LPL", "M3M", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('L'), new ItemStack(ModBlocks.pool, 1, 3), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('3'), new ItemStack(ModItems.rune, 1, 3), Character.valueOf('G'), new ItemStack(ModItems.rune, 1, 15)});
+ IRecipe cont3 = getLastRecipe();
+ manaContainer = new BLexiconEntry("manaContainer", categoryForgotten);
+ manaContainer.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", cont1), BotaniaAPI.internalHandler.craftingRecipePage(".craft1", cont2), BotaniaAPI.internalHandler.craftingRecipePage(".craft2", cont3), new PageText("1"), new AlphirineCraftPage(manaContainer, advancedSparkRecipe.getOutput(), ".alphirineCraft") }).setIcon(new ItemStack(BlockListAB.blockManaContainer));
+
+ GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaCrystalCube), new Object[] { "TST", "GWG", "DMD", Character.valueOf('D'), new ItemStack(ModBlocks.dreamwood), Character.valueOf('W'), new ItemStack(ModItems.twigWand, 1, 32767), Character.valueOf('G'), new ItemStack(ModBlocks.manaGlass), Character.valueOf('M'), new ItemStack(ModItems.manaResource), Character.valueOf('T'), new ItemStack(ModItems.manaResource, 1, 18), Character.valueOf('S'), new ItemStack(ModItems.spark)});
+ manaCrystalCube = new BLexiconEntry("manaCrystalCube", BotaniaAPI.categoryMana);
+ manaCrystalCube.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(BlockListAB.blockManaCrystalCube));
+
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemTerraHoe), new Object[] { "TTL", "RW ", " W ", Character.valueOf('T'), new ItemStack(ModItems.manaResource, 1, 4), Character.valueOf('L'), new ItemStack(ModItems.manaResource, 1, 18), Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 3), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 2)});
+ terraHoe = new BLexiconEntry("terraHoe", BotaniaAPI.categoryTools);
+ terraHoe.setLexiconPages(new LexiconPage[]{ new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(ItemListAB.itemTerraHoe));
+
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemMithrillRing), new Object[] { "LML", "MRM", "LML", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('L'), new ItemStack(ItemListAB.itemABResource, 1, 1), Character.valueOf('R'), new ItemStack(ModItems.manaRingGreater)});
+ IRecipe ring1 = getLastRecipe();
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaRing), new Object[] { "LML", "MRM", "LML", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource, 1, 6), Character.valueOf('L'), new ItemStack(ModItems.manaResource, 1, 5), Character.valueOf('R'), new ItemStack(ItemListAB.itemMithrillRing)});
+ IRecipe ring2 = getLastRecipe();
+ manaRings = new BLexiconEntry("manaRings", categoryForgotten);
+ manaRings.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[]{ new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", ring1), BotaniaAPI.internalHandler.craftingRecipePage(".craft1", ring2)}).setIcon(new ItemStack(ItemListAB.itemMithrillRing));
+ AdvancedBotanyAPI.registerFarmlandSeed(Blocks.nether_wart, 3);
+
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemManaFlower), new Object[] { " F ", " M ", " R ", Character.valueOf('F'), new ItemStack(ItemListAB.itemABResource, 1, 4), Character.valueOf('M'), new ItemStack(ModItems.manaBottle), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 8)});
+ manaFlower = new BLexiconEntry("manaFlower", categoryForgotten);
+ manaFlower.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AlphirineCraftPage(manaFlower, manaFlowerRecipe.getOutput(), ".alphirineCraft"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())}).setIcon(new ItemStack(ItemListAB.itemManaFlower));
+
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemMithrillSword), new Object[] { " M", "SM ", "WS ", Character.valueOf('S'), new ItemStack(ItemListAB.itemABResource, 1, 6), Character.valueOf('T'), new ItemStack(ModItems.terraSword), Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 3)});
+ mithrillSword = new BLexiconEntry("mithrillSword", categoryForgotten);
+ mithrillSword.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(ItemListAB.itemMithrillSword));
+
+ dictariusRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("dictarius"), new ItemStack(ItemListAB.itemABResource, 1, 4), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.rune, 1, 15), new ItemStack(ModItems.petal, 1, 4), new ItemStack(ModItems.petal, 1, 4), new ItemStack(ModItems.petal, 1, 1));
+ dictarius = new BLexiconEntry("dictarius", BotaniaAPI.categoryGenerationFlowers);
+ dictarius.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", dictariusRecipe)});
+
+ nebula = new BLexiconEntry("nebula", categoryForgotten);
+ nebula.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AdvancedPlateCraftPage(nebula, nebulaRecipe.getOutput(), ".abCraft")});
+
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemBlackHalo), new Object[] { " E ", "DHD", " E ", Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.autocraftingHalo), Character.valueOf('D'), new ItemStack(ModItems.blackHoleTalisman)});
+ blackHalo = new BLexiconEntry("blackHalo", BotaniaAPI.categoryTools);
+ blackHalo.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
+
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemAntigravityCharm), new Object[] { " G ", "GDG", "ERE", Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('G'), new ItemStack(ModBlocks.elfGlass), Character.valueOf('D'), new ItemStack(ModBlocks.floatingFlower, 1, 32767), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 3)});
+ antigravityCharm = new BLexiconEntry("antigravityCharm", BotaniaAPI.categoryTools);
+ antigravityCharm.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())}).setIcon(new ItemStack(ItemListAB.itemAntigravityCharm));
+
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaBlaze), new Object[] { " N ", "MMN", "AMN", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 6), Character.valueOf('A'), new ItemStack(ItemListAB.itemABResource, 1, 3), Character.valueOf('M'), new ItemStack(ModBlocks.storage)});
+ nebulaBlaze = new BLexiconEntry("nebulaBlaze", categoryForgotten);
+ nebulaBlaze.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
+
+ if(ConfigABHandler.hasManaCharger) {
+ GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaCharger), new Object[] { "NLN", "MPM", " R ", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 1), Character.valueOf('L'), new ItemStack(ModBlocks.livingrock), Character.valueOf('M'), new ItemStack(ModBlocks.bellows), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 8)});
+ manaCharger = new BLexiconEntry("manaCharger", categoryForgotten);
+ manaCharger.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
+ }
+
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaHelm), new Object[] { "RNR", "NHN", " E ", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelHelm), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8)});
+ IRecipe nHelm = getLastRecipe();
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaChest), new Object[] { "RTR", "NHN", "ENE", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelChest), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8), Character.valueOf('T'), new ItemStack(ModItems.flightTiara, 1, 32767)});
+ IRecipe nChest = getLastRecipe();
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaLegs), new Object[] { "ENE", "RHR", "NAN", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelLegs), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8), Character.valueOf('A'), new ItemStack(ItemListAB.itemABResource, 1, 3)});
+ IRecipe nLegs = getLastRecipe();
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaBoots), new Object[] { "RBR", "NHN", " E ", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelBoots), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8), Character.valueOf('B'), new ItemStack(ModItems.speedUpBelt)});
+ IRecipe nBoots = getLastRecipe();
+ nebulaArmor = new BLexiconEntry("nebulaArmor", categoryForgotten);
+ nebulaArmor.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new PageText("1"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", nHelm), BotaniaAPI.internalHandler.craftingRecipePage(".craft", nChest), BotaniaAPI.internalHandler.craftingRecipePage(".craft", nLegs), BotaniaAPI.internalHandler.craftingRecipePage(".craft", nBoots)});
+
+ engineerHopper = new BLexiconEntry("engineerHopper", categoryForgotten);
+ engineerHopper.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AlphirineCraftPage(engineerHopper, hopperRecipe.getOutput(), ".alphirineCraft")});
+
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaRod), new Object[] { " WN", " RW", "W ", Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 13), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 8), Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 6)});
+ nebulaRod = new BLexiconEntry("nebulaRod", categoryForgotten);
+ nebulaRod.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
+
+ GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockBoardFate), new Object[] { " ", "QDQ", "MPM", Character.valueOf('Q'), new ItemStack(ModFluffBlocks.manaQuartz), Character.valueOf('D'), new ItemStack(ModItems.manaResource, 1, 2), Character.valueOf('M'), new ItemStack(ModItems.manaResource), Character.valueOf('P'), new ItemStack(ModItems.manaResource, 1, 23)});
+ gameBoard = new BLexiconEntry("gameBoard", BotaniaAPI.categoryMisc);
+ gameBoard.setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
+
+ fateBoard = new BLexiconEntry("fateBoard", categoryForgotten);
+ fateBoard.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AlphirineCraftPage(fateBoard, fateBoardRecipe.getOutput(), ".alphirineCraft")});
+
+ freyrSlingshot = new RLexiconEntry("freyrSlingshot", BotaniaAPI.categoryAlfhomancy, AchievementRegister.relicSlingshot);
+ freyrSlingshot.setLexiconPages(new LexiconPage[] { new PageText("0"), new PageText("1")});
+
+ richesKey = new RLexiconEntry("richesKey", BotaniaAPI.categoryAlfhomancy, AchievementRegister.relicItemChest);
+ richesKey.setLexiconPages(new LexiconPage[] { new PageText("0")});
+
+ cubeWardrobe = new RLexiconEntry("cubeWardrobe", BotaniaAPI.categoryAlfhomancy, AchievementRegister.relicPocketArmor);
+ cubeWardrobe.setLexiconPages(new LexiconPage[] { new PageText("0")});
+
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemSprawlRod), new Object[] { " SC", " WS", "W ", Character.valueOf('S'), new ItemStack(ModItems.grassSeeds, 1, 32767), Character.valueOf('C'), new ItemStack(BlockListAB.blockLebethron, 1, 4), Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 3)});
+ sprawlRod = new BLexiconEntry("sprawlRod", categoryForgotten);
+ sprawlRod.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
+
+ azartFlowerRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("ardentAzarcissus"), new ItemStack(ItemListAB.itemABResource, 1, 4), new ItemStack(ModItems.petal, 1, 11), new ItemStack(ModItems.petal, 1, 11), new ItemStack(ModItems.petal, 1, 14), new ItemStack(ModItems.petal, 1, 14), new ItemStack(ModItems.petal, 1, 13), new ItemStack(ModItems.manaResource, 1, 5));
+ azartFlower = new BLexiconEntry("azartFlower", BotaniaAPI.categoryGenerationFlowers);
+ azartFlower.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", azartFlowerRecipe)});
+
+ if(Botania.thaumcraftLoaded)
+ thaumcraft();
+
+ addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemABResource, 9, 1), new Object[] { new ItemStack(ItemListAB.itemABResource)});
+ addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemABResource, 9, 0), new Object[] { new ItemStack(BlockListAB.blockABStorage)});
+ addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemABResource, 9, 6), new Object[] { new ItemStack(ItemListAB.itemABResource, 1, 5)});
+ GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockABStorage), new Object[] { "III", "III", "III", Character.valueOf('I'), new ItemStack(ItemListAB.itemABResource)});
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemABResource, 1, 5), new Object[] { "III", "III", "III", Character.valueOf('I'), new ItemStack(ItemListAB.itemABResource, 1, 6)});
+ }
+
+ public static void thaumcraft() {
+ aspecolus = new BLexiconEntry("aspecolus", BotaniaAPI.categoryFunctionalFlowers);
+ aspecolusRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("aspecolus"), new ItemStack(ModItems.manaResource, 1, 6), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.rune, 1, 1), new ItemStack(ModItems.rune), new ItemStack(ItemListAB.itemABResource, 1, 2), new ItemStack(ModItems.petal, 1, 10), new ItemStack(ModItems.petal, 1, 13));
+ aspecolus.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", aspecolusRecipe) }).setIcon(ItemBlockSpecialFlower.ofType("aspecolus"));
+ addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemNebulaHelmReveal), new Object[] { new ItemStack(ItemListAB.itemNebulaHelm), new ItemStack(ConfigItems.itemGoggles)});
+
+ if(ConfigABHandler.hasAutoThaum) {
+ List recipes = new ArrayList();
+ for(int i = 1; i < 10; i++) {
+ boolean[][] patterns = ItemCraftingPattern.getPattern(i);
+ List str = new ArrayList();
+ for(int j = 0; j < patterns.length; j++) {
+ String str1 = "";
+ for(int k = 0; k < patterns[j].length; k++)
+ str1 += patterns[j][k] ? "T" : "H";
+ str.add(str1);
+ }
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemCraftingPattern, 1, i), new Object[] { str.get(0), str.get(1), str.get(2), Character.valueOf('T'), new ItemStack(ItemListAB.itemCraftingPattern), Character.valueOf('H'), new ItemStack(ConfigItems.itemNugget, 1, 6)});
+ recipes.add(getLastRecipe());
+ }
+ IRecipe crate = GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockMagicCraftCrate), new Object[] { "TST", "WCW", "W W", Character.valueOf('W'), new ItemStack(ConfigBlocks.blockMagicalLog), Character.valueOf('S'), new ItemStack(ConfigItems.itemResource, 1, 14), Character.valueOf('T'), new ItemStack(ConfigItems.itemResource, 1, 7), Character.valueOf('C'), new ItemStack(ModBlocks.openCrate, 1, 1)});
+ addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemCraftingPattern, 48), new Object[] { new ItemStack(Blocks.crafting_table), new ItemStack(ModBlocks.livingrock), new ItemStack(ConfigItems.itemResource, 1, 14)});
+ thaumAutoCraft = new BLexiconEntry("thaumAutoCraft", BotaniaAPI.categoryDevices);
+ thaumAutoCraft.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", crate) , BotaniaAPI.internalHandler.craftingRecipePage(".craft0", getLastRecipe()), BotaniaAPI.internalHandler.craftingRecipesPage(".craft1", recipes)});
+
+ }
+
+ pureGladRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("pureGladiolus"), new ItemStack(ItemListAB.itemABResource, 1, 4), new ItemStack(ModItems.rune, 1, 8), new ItemStack(ModItems.petal, 1, 8), new ItemStack(ModItems.petal, 1, 4), new ItemStack(ModItems.petal, 1, 14), new ItemStack(ModItems.petal, 1, 5), new ItemStack(ModItems.petal, 1, 13), new ItemStack(ModItems.petal, 1, 11));
+ gladious = new BLexiconEntry("gladious", BotaniaAPI.categoryFunctionalFlowers);
+ gladious.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", pureGladRecipe)});
+ }
+
+ public static void relicInit() {
+ AdvancedBotanyAPI.relicList.add(new ItemStack(ModItems.infiniteFruit));
+ AdvancedBotanyAPI.relicList.add(new ItemStack(ModItems.kingKey));
+ AdvancedBotanyAPI.relicList.add(new ItemStack(ModItems.flugelEye));
+ AdvancedBotanyAPI.relicList.add(new ItemStack(ModItems.thorRing));
+ AdvancedBotanyAPI.relicList.add(new ItemStack(ModItems.odinRing));
+ AdvancedBotanyAPI.relicList.add(new ItemStack(ModItems.lokiRing));
+ AdvancedBotanyAPI.relicList.add(new ItemStack(ItemListAB.itemFreyrSlingshot));
+ AdvancedBotanyAPI.relicList.add(new ItemStack(ItemListAB.itemTalismanHiddenRiches));
+ AdvancedBotanyAPI.relicList.add(new ItemStack(ItemListAB.itemPocketWardrobe));
+ AdvancedBotanyAPI.relicList.add(new ItemStack(ItemListAB.itemSphereNavigation));
+ AdvancedBotanyAPI.relicList.add(new ItemStack(ItemListAB.itemHornPlenty));
+ }
+
+ private static IRecipe getLastRecipe() {
+ return (IRecipe)CraftingManager.getInstance().getRecipeList().get(CraftingManager.getInstance().getRecipeList().size() - 1);
+ }
+
+ private static void addOreDictRecipe(ItemStack output, Object... recipe) {
+ CraftingManager.getInstance().getRecipeList().add(new ShapedOreRecipe(output, recipe));
+ }
+
+ private static void addShapelessOreDictRecipe(ItemStack output, Object... recipe) {
+ CraftingManager.getInstance().getRecipeList().add(new ShapelessOreRecipe(output, recipe));
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c/30b4d0b5bcbc001c1a9f99005529f322 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c/30b4d0b5bcbc001c1a9f99005529f322
new file mode 100644
index 0000000..f01c18a
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c/30b4d0b5bcbc001c1a9f99005529f322
@@ -0,0 +1,86 @@
+package ab.client.core.proxy;
+
+import ab.client.core.handler.BoundRenderHandler;
+import ab.client.core.handler.ClientHandler;
+import ab.client.core.handler.HudRenderHandler;
+import ab.client.core.handler.PlayerRendererHandler;
+import ab.client.render.block.*;
+import ab.client.render.entity.*;
+import ab.client.render.item.RenderItemAntigravityCharm;
+import ab.client.render.tile.*;
+import ab.common.block.tile.*;
+import ab.common.core.handler.ConfigABHandler;
+import ab.common.core.proxy.CommonProxy;
+import ab.common.entity.*;
+import ab.common.lib.register.BlockListAB;
+import ab.common.lib.register.ItemListAB;
+import cpw.mods.fml.client.registry.ClientRegistry;
+import cpw.mods.fml.client.registry.RenderingRegistry;
+import cpw.mods.fml.common.FMLCommonHandler;
+import cpw.mods.fml.common.event.FMLInitializationEvent;
+import cpw.mods.fml.common.event.FMLPostInitializationEvent;
+import cpw.mods.fml.common.event.FMLPreInitializationEvent;
+import net.minecraft.client.renderer.entity.Render;
+import net.minecraft.client.renderer.entity.RenderSnowball;
+import net.minecraft.item.ItemStack;
+import net.minecraftforge.client.MinecraftForgeClient;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.item.ModItems;
+
+public class ClientProxy extends CommonProxy {
+
+ public void preInit(FMLPreInitializationEvent event) {
+ super.preInit(event);
+ }
+
+ public void init(FMLInitializationEvent event) {
+ super.init(event);
+
+ FMLCommonHandler.instance().bus().register(new ClientHandler());
+ MinecraftForge.EVENT_BUS.register(new HudRenderHandler());
+ MinecraftForge.EVENT_BUS.register(new PlayerRendererHandler());
+ MinecraftForge.EVENT_BUS.register(new BoundRenderHandler());
+
+ if(ConfigABHandler.hasAbPlate)
+ ClientRegistry.bindTileEntitySpecialRenderer(TileNidavellirForge.class, new RenderTileNidavellirForge());
+ ClientRegistry.bindTileEntitySpecialRenderer(TileABSpreader.class, new RenderTileABSpreader());
+ ClientRegistry.bindTileEntitySpecialRenderer(TileManaContainer.class, new RenderTileManaContainer());
+ ClientRegistry.bindTileEntitySpecialRenderer(TileManaCrystalCube.class, new RenderTileManaCrystalCube());
+ if(ConfigABHandler.hasManaCharger)
+ ClientRegistry.bindTileEntitySpecialRenderer(TileManaCharger.class, new RenderTileManaCharger());
+ ClientRegistry.bindTileEntitySpecialRenderer(TileEngineerHopper.class, new RenderTileEngineerHopper());
+ ClientRegistry.bindTileEntitySpecialRenderer(TileBoardFate.class, new RenderTileBoardFate());
+ ClientRegistry.bindTileEntitySpecialRenderer(TileGameBoard.class, new RenderTileGameBoard());
+ if(Botania.thaumcraftLoaded && ConfigABHandler.hasAutoThaum)
+ ClientRegistry.bindTileEntitySpecialRenderer(TileMagicCraftCrate.class, new RenderTileMagicCraftingCrate());
+
+ BlockListAB.blockABSpreaderRI = RenderingRegistry.getNextAvailableRenderId();
+ BlockListAB.blockManaContainerRI = RenderingRegistry.getNextAvailableRenderId();
+ BlockListAB.blockManaCrystalCubeRI = RenderingRegistry.getNextAvailableRenderId();
+ BlockListAB.blockManaChargerRI = RenderingRegistry.getNextAvailableRenderId();
+ BlockListAB.blockEngineerHopperRI = RenderingRegistry.getNextAvailableRenderId();
+ BlockListAB.blockABPlateRI = RenderingRegistry.getNextAvailableRenderId();
+
+ RenderingRegistry.registerBlockHandler(new RenderBlockABSpreader());
+ RenderingRegistry.registerBlockHandler(new RenderBlockManaContainer());
+ RenderingRegistry.registerBlockHandler(new RenderBlockManaCrystalCube());
+ RenderingRegistry.registerBlockHandler(new RenderBlockManaCharger());
+ RenderingRegistry.registerBlockHandler(new RenderBlockEngineerHopper());
+
+ RenderingRegistry.registerEntityRenderingHandler(EntityAdvancedSpark.class, new RenderEntityAdvancedSpark());
+ RenderingRegistry.registerEntityRenderingHandler(EntityNebulaBlaze.class, new EntityNullRender());
+ RenderingRegistry.registerEntityRenderingHandler(EntityManaVine.class, new EntityNullRender());
+ RenderingRegistry.registerEntityRenderingHandler(EntityAlphirinePortal.class, new RenderEntityAlphirinePortal());
+ RenderingRegistry.registerEntityRenderingHandler(EntitySword.class, new EntityNullRender());
+ RenderingRegistry.registerEntityRenderingHandler(EntitySeed.class, new EntityNullRender());
+
+ MinecraftForgeClient.registerItemRenderer(ItemListAB.itemAntigravityCharm, new RenderItemAntigravityCharm());
+ }
+
+ public void postInit(FMLPostInitializationEvent event) {
+ super.postInit(event);
+// ItemStack crashGameForRender = null;
+// System.out.println(crashGameForRender.stackSize);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c/50cacef192c1001c11e398ea97007cb4 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c/50cacef192c1001c11e398ea97007cb4
new file mode 100644
index 0000000..c7d6188
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c/50cacef192c1001c11e398ea97007cb4
@@ -0,0 +1,305 @@
+package ab.common.lib.register;
+
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+
+import ab.api.AdvancedBotanyAPI;
+import ab.api.recipe.RecipeAdvancedPlate;
+import ab.api.recipe.RecipeAncientAlphirine;
+import ab.api.recipe.lexicon.AdvancedPlateCraftPage;
+import ab.api.recipe.lexicon.AlphirineCraftPage;
+import ab.common.block.tile.TileNidavellirForge;
+import ab.common.block.tile.TileLebethronCore;
+import ab.common.block.tile.TileMagicCraftCrate;
+import ab.common.core.handler.ConfigABHandler;
+import ab.common.item.ItemCraftingPattern;
+import cpw.mods.fml.common.registry.GameRegistry;
+import net.minecraft.init.Blocks;
+import net.minecraft.init.Items;
+import net.minecraft.item.ItemStack;
+import net.minecraft.item.crafting.CraftingManager;
+import net.minecraft.item.crafting.IRecipe;
+import net.minecraft.util.EnumChatFormatting;
+import net.minecraftforge.oredict.ShapedOreRecipe;
+import net.minecraftforge.oredict.ShapelessOreRecipe;
+import thaumcraft.common.config.ConfigBlocks;
+import thaumcraft.common.config.ConfigItems;
+import vazkii.botania.api.BotaniaAPI;
+import vazkii.botania.api.lexicon.KnowledgeType;
+import vazkii.botania.api.lexicon.LexiconCategory;
+import vazkii.botania.api.lexicon.LexiconEntry;
+import vazkii.botania.api.lexicon.LexiconPage;
+import vazkii.botania.api.recipe.RecipePetals;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.block.ModBlocks;
+import vazkii.botania.common.block.ModFluffBlocks;
+import vazkii.botania.common.core.handler.ConfigHandler;
+import vazkii.botania.common.item.ModItems;
+import vazkii.botania.common.item.block.ItemBlockSpecialFlower;
+import vazkii.botania.common.lexicon.BLexiconCategory;
+import vazkii.botania.common.lexicon.BLexiconEntry;
+import vazkii.botania.common.lexicon.RLexiconEntry;
+import vazkii.botania.common.lexicon.page.PageImage;
+import vazkii.botania.common.lexicon.page.PageText;
+
+public class RecipeListAB {
+
+ public static LexiconCategory categoryForgotten;
+
+ public static RecipeAncientAlphirine lebethroneRecipe;
+ public static RecipeAncientAlphirine forgottenLandRecipe;
+ public static RecipeAncientAlphirine advancedSparkRecipe;
+ public static RecipeAncientAlphirine manaFlowerRecipe;
+ public static RecipeAncientAlphirine hopperRecipe;
+ public static RecipeAncientAlphirine fateBoardRecipe;
+
+ public static RecipeAdvancedPlate manaStarRecipe;
+ public static RecipeAdvancedPlate terrasteelRecipe;
+ public static RecipeAdvancedPlate mithrillRecipe;
+ public static RecipeAdvancedPlate nebulaRecipe;
+
+ public static RecipePetals alphirineRecipe;
+ public static RecipePetals dictariusRecipe;
+ public static RecipePetals aspecolusRecipe;
+ public static RecipePetals pureGladRecipe;
+ public static RecipePetals azartFlowerRecipe;
+
+ public static LexiconEntry advandedAgglomerationPlate;
+ public static LexiconEntry ancientAlphirine;
+ public static LexiconEntry lebethronWood;
+ public static LexiconEntry lebethronSpreader;
+ public static LexiconEntry mithrill;
+ public static LexiconEntry manaContainer;
+ public static LexiconEntry manaCrystalCube;
+ public static LexiconEntry terraHoe;
+ public static LexiconEntry manaRings;
+ public static LexiconEntry manaFlower;
+ public static LexiconEntry mithrillSword;
+ public static LexiconEntry nebula;
+ public static LexiconEntry blackHalo;
+ public static LexiconEntry antigravityCharm;
+ public static LexiconEntry nebulaBlaze;
+ public static LexiconEntry aspecolus;
+ public static LexiconEntry dictarius;
+ public static LexiconEntry manaCharger;
+ public static LexiconEntry nebulaArmor;
+ public static LexiconEntry freyrSlingshot;
+ public static LexiconEntry engineerHopper;
+ public static LexiconEntry nebulaRod;
+ public static LexiconEntry thaumAutoCraft;
+ public static LexiconEntry gladious;
+ public static LexiconEntry gameBoard;
+ public static LexiconEntry fateBoard;
+ public static LexiconEntry richesKey;
+ public static LexiconEntry cubeWardrobe;
+ public static LexiconEntry sprawlRod;
+ public static LexiconEntry azartFlower;
+
+ public static KnowledgeType forgotten;
+
+ public static void init() {
+
+ BotaniaAPI.addCategory(categoryForgotten = new BLexiconCategory("forgotten", 5));
+ forgotten = BotaniaAPI.registerKnowledgeType("ab_forgotten", EnumChatFormatting.BLUE, false);
+
+ lebethroneRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(BlockListAB.blockLebethron), new ItemStack(ModBlocks.dreamwood, 1, 0), 15);
+ forgottenLandRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(ItemListAB.itemABResource, 1, 3), new ItemStack(ModItems.manaResource, 1, 15), 75);
+ advancedSparkRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(ItemListAB.itemAdvancedSpark), new ItemStack(ModItems.spark), 11);
+ manaFlowerRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(ItemListAB.itemABResource, 1, 4), new ItemStack(ModBlocks.flower, 1, 32767), 32);
+ hopperRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(BlockListAB.blockEngineerHopper), new ItemStack(Blocks.hopper), 23);
+ fateBoardRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(BlockListAB.blockBoardFate, 1, 1), new ItemStack(BlockListAB.blockBoardFate), 60);
+
+ mithrillRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ItemListAB.itemABResource, 1, 0), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModBlocks.storage, 1, 0), new ItemStack(ModItems.manaResource, 1, 18), 7500000, 0x25d6b7);
+ terrasteelRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ModItems.manaResource, 1, 4), new ItemStack(ModItems.manaResource, 1, 2), new ItemStack(ModItems.manaResource, 1, 0), new ItemStack(ModItems.manaResource, 1, 1), 500000, 0x29de20);
+ manaStarRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ItemListAB.itemABResource, 1, 2), new ItemStack(ModItems.manaResource, 1, 23), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(Items.nether_star), 250000, 0x6bc9ec);
+ nebulaRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ItemListAB.itemABResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 8), new ItemStack(ModBlocks.storage, 1, 4), new ItemStack(ItemListAB.itemABResource, 1, 1), 50000000, 0x8d16e0);
+
+ ancientAlphirine = new BLexiconEntry("ancientAlphirine", categoryForgotten);
+ alphirineRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("ancientAlphirine"), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.rune, 1, 8), new ItemStack(ModItems.rune, 1, 4), new ItemStack(ModItems.rune, 1, 5), new ItemStack(ModItems.rune, 1, 6), new ItemStack(ModItems.rune, 1, 7), new ItemStack(ModItems.petal, 1, 1), new ItemStack(ModItems.petal, 1, 4));
+ ancientAlphirine.setPriority().setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), new PageText("1"), new PageImage("2", "ab:textures/misc/ancientAlphirine.png"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", alphirineRecipe), new AlphirineCraftPage(ancientAlphirine, forgottenLandRecipe.getOutput(), ".alphirineCraft") }).setIcon(ItemBlockSpecialFlower.ofType("ancientAlphirine"));
+
+ if(ConfigABHandler.hasAbPlate) {
+ GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockABPlate), new Object[] { "MPM", " F ", "BRB", Character.valueOf('F'), new ItemStack(Blocks.anvil), Character.valueOf('M'), new ItemStack(ModBlocks.storage), Character.valueOf('P'), new ItemStack(ModBlocks.terraPlate), Character.valueOf('B'), new ItemStack(ItemListAB.itemABResource, 1, 3), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 3)});
+ advandedAgglomerationPlate = new BLexiconEntry("advancedPlate", categoryForgotten);
+ advandedAgglomerationPlate.setPriority().setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] {new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()), new AdvancedPlateCraftPage(advandedAgglomerationPlate, terrasteelRecipe.getOutput(), ".abCraft0"), new AdvancedPlateCraftPage(advandedAgglomerationPlate, manaStarRecipe.getOutput(), ".abCraft1") }).setIcon(new ItemStack(BlockListAB.blockABPlate));
+ }
+
+ GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockABSpreader), new Object[] { "WMW", "PSP", "WMW", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource, 1, 2), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('S'), new ItemStack(ModBlocks.spreader, 1, 3), Character.valueOf('W'), new ItemStack(BlockListAB.blockLebethron, 1, 4)});
+ lebethronSpreader = new BLexiconEntry("lebethronSpreader", categoryForgotten);
+ lebethronSpreader.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(BlockListAB.blockABSpreader));
+
+ addShapelessOreDictRecipe(new ItemStack(BlockListAB.blockLebethron, 4, 1), new Object[] { new ItemStack(BlockListAB.blockLebethron)});
+ IRecipe leb1 = getLastRecipe();
+ addShapelessOreDictRecipe(new ItemStack(BlockListAB.blockLebethron, 1, 2), new Object[] { new ItemStack(BlockListAB.blockLebethron, 1, 1), new ItemStack(Items.wheat_seeds)});
+ IRecipe leb2 = getLastRecipe();
+ addShapelessOreDictRecipe(new ItemStack(BlockListAB.blockLebethron, 1, 3), new Object[] { new ItemStack(BlockListAB.blockLebethron), new ItemStack(Items.glowstone_dust)});
+ IRecipe leb3 = getLastRecipe();
+ GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockLebethron, 1, 4), new Object[] { "4W5", "WPW", "6W7", Character.valueOf('P'), new ItemStack(ModBlocks.pylon, 1, 1), Character.valueOf('W'), new ItemStack(BlockListAB.blockLebethron), Character.valueOf('4'), new ItemStack(ModItems.rune, 1, 4), Character.valueOf('5'), new ItemStack(ModItems.rune, 1, 5), Character.valueOf('6'), new ItemStack(ModItems.rune, 1, 6), Character.valueOf('7'), new ItemStack(ModItems.rune, 1, 7)});
+ IRecipe leb4 = getLastRecipe();
+ lebethronWood = new BLexiconEntry("lebethronWood", categoryForgotten);
+ lebethronWood.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AlphirineCraftPage(lebethronWood, lebethroneRecipe.getOutput(), ".alphirineCraft"), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb1), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb2), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb3), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb4), new PageText("1"), BotaniaAPI.internalHandler.multiblockPage(".structure", TileLebethronCore.makeMultiblockSet()) }).setIcon(new ItemStack(BlockListAB.blockLebethron));
+
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemMihrillMultiTool), new Object[] { " MB", " FM", "F ", Character.valueOf('F'), new ItemStack(ModItems.manaResource, 1, 3), Character.valueOf('B'), new ItemStack(ModBlocks.livingwood), Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource)});
+ mithrill = new BLexiconEntry("mithrill", categoryForgotten);
+ mithrill.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AdvancedPlateCraftPage(mithrill, mithrillRecipe.getOutput(), ".abCraft"), new PageText("1"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(ItemListAB.itemMihrillMultiTool));
+ if(!ConfigABHandler.hasAbPlate)
+ mithrill.pages.remove(1);
+
+ GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaContainer), new Object[] { "MGM", "LPL", "M3M", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('L'), new ItemStack(ModBlocks.pool), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('3'), new ItemStack(ModItems.rune, 1, 3), Character.valueOf('G'), new ItemStack(ModItems.rune, 1, 15)});
+ IRecipe cont1 = getLastRecipe();
+ GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaContainer, 1, 1), new Object[] { "MGM", "LPL", "M3M", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource, 1, 1), Character.valueOf('L'), new ItemStack(ModBlocks.pool, 1, 2), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('3'), new ItemStack(ModItems.rune, 1, 3), Character.valueOf('G'), new ItemStack(ModItems.rune, 1, 15)});
+ IRecipe cont2 = getLastRecipe();
+ GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaContainer, 1, 2), new Object[] { "MGM", "LPL", "M3M", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('L'), new ItemStack(ModBlocks.pool, 1, 3), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('3'), new ItemStack(ModItems.rune, 1, 3), Character.valueOf('G'), new ItemStack(ModItems.rune, 1, 15)});
+ IRecipe cont3 = getLastRecipe();
+ manaContainer = new BLexiconEntry("manaContainer", categoryForgotten);
+ manaContainer.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", cont1), BotaniaAPI.internalHandler.craftingRecipePage(".craft1", cont2), BotaniaAPI.internalHandler.craftingRecipePage(".craft2", cont3), new PageText("1"), new AlphirineCraftPage(manaContainer, advancedSparkRecipe.getOutput(), ".alphirineCraft") }).setIcon(new ItemStack(BlockListAB.blockManaContainer));
+
+ GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaCrystalCube), new Object[] { "TST", "GWG", "DMD", Character.valueOf('D'), new ItemStack(ModBlocks.dreamwood), Character.valueOf('W'), new ItemStack(ModItems.twigWand, 1, 32767), Character.valueOf('G'), new ItemStack(ModBlocks.manaGlass), Character.valueOf('M'), new ItemStack(ModItems.manaResource), Character.valueOf('T'), new ItemStack(ModItems.manaResource, 1, 18), Character.valueOf('S'), new ItemStack(ModItems.spark)});
+ manaCrystalCube = new BLexiconEntry("manaCrystalCube", BotaniaAPI.categoryMana);
+ manaCrystalCube.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(BlockListAB.blockManaCrystalCube));
+
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemTerraHoe), new Object[] { "TTL", "RW ", " W ", Character.valueOf('T'), new ItemStack(ModItems.manaResource, 1, 4), Character.valueOf('L'), new ItemStack(ModItems.manaResource, 1, 18), Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 3), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 2)});
+ terraHoe = new BLexiconEntry("terraHoe", BotaniaAPI.categoryTools);
+ terraHoe.setLexiconPages(new LexiconPage[]{ new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(ItemListAB.itemTerraHoe));
+
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemMithrillRing), new Object[] { "LML", "MRM", "LML", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('L'), new ItemStack(ItemListAB.itemABResource, 1, 1), Character.valueOf('R'), new ItemStack(ModItems.manaRingGreater)});
+ IRecipe ring1 = getLastRecipe();
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaRing), new Object[] { "LML", "MRM", "LML", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource, 1, 6), Character.valueOf('L'), new ItemStack(ModItems.manaResource, 1, 5), Character.valueOf('R'), new ItemStack(ItemListAB.itemMithrillRing)});
+ IRecipe ring2 = getLastRecipe();
+ manaRings = new BLexiconEntry("manaRings", categoryForgotten);
+ manaRings.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[]{ new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", ring1), BotaniaAPI.internalHandler.craftingRecipePage(".craft1", ring2)}).setIcon(new ItemStack(ItemListAB.itemMithrillRing));
+ AdvancedBotanyAPI.registerFarmlandSeed(Blocks.nether_wart, 3);
+
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemManaFlower), new Object[] { " F ", " M ", " R ", Character.valueOf('F'), new ItemStack(ItemListAB.itemABResource, 1, 4), Character.valueOf('M'), new ItemStack(ModItems.manaBottle), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 8)});
+ manaFlower = new BLexiconEntry("manaFlower", categoryForgotten);
+ manaFlower.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AlphirineCraftPage(manaFlower, manaFlowerRecipe.getOutput(), ".alphirineCraft"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())}).setIcon(new ItemStack(ItemListAB.itemManaFlower));
+
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemMithrillSword), new Object[] { " M", "SM ", "WS ", Character.valueOf('S'), new ItemStack(ItemListAB.itemABResource, 1, 6), Character.valueOf('T'), new ItemStack(ModItems.terraSword), Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 3)});
+ mithrillSword = new BLexiconEntry("mithrillSword", categoryForgotten);
+ mithrillSword.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(ItemListAB.itemMithrillSword));
+
+ dictariusRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("dictarius"), new ItemStack(ItemListAB.itemABResource, 1, 4), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.rune, 1, 15), new ItemStack(ModItems.petal, 1, 4), new ItemStack(ModItems.petal, 1, 4), new ItemStack(ModItems.petal, 1, 1));
+ dictarius = new BLexiconEntry("dictarius", BotaniaAPI.categoryGenerationFlowers);
+ dictarius.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", dictariusRecipe)});
+
+ nebula = new BLexiconEntry("nebula", categoryForgotten);
+ nebula.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AdvancedPlateCraftPage(nebula, nebulaRecipe.getOutput(), ".abCraft")});
+ if(!ConfigABHandler.hasAbPlate)
+ nebula.pages.remove(1);
+
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemBlackHalo), new Object[] { " E ", "DHD", " E ", Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.autocraftingHalo), Character.valueOf('D'), new ItemStack(ModItems.blackHoleTalisman)});
+ blackHalo = new BLexiconEntry("blackHalo", BotaniaAPI.categoryTools);
+ blackHalo.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
+
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemAntigravityCharm), new Object[] { " G ", "GDG", "ERE", Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('G'), new ItemStack(ModBlocks.elfGlass), Character.valueOf('D'), new ItemStack(ModBlocks.floatingFlower, 1, 32767), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 3)});
+ antigravityCharm = new BLexiconEntry("antigravityCharm", BotaniaAPI.categoryTools);
+ antigravityCharm.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())}).setIcon(new ItemStack(ItemListAB.itemAntigravityCharm));
+
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaBlaze), new Object[] { " N ", "MMN", "AMN", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 6), Character.valueOf('A'), new ItemStack(ItemListAB.itemABResource, 1, 3), Character.valueOf('M'), new ItemStack(ModBlocks.storage)});
+ nebulaBlaze = new BLexiconEntry("nebulaBlaze", categoryForgotten);
+ nebulaBlaze.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
+
+ if(ConfigABHandler.hasManaCharger) {
+ GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaCharger), new Object[] { "NLN", "MPM", " R ", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 1), Character.valueOf('L'), new ItemStack(ModBlocks.livingrock), Character.valueOf('M'), new ItemStack(ModBlocks.bellows), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 8)});
+ manaCharger = new BLexiconEntry("manaCharger", categoryForgotten);
+ manaCharger.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
+ }
+
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaHelm), new Object[] { "RNR", "NHN", " E ", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelHelm), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8)});
+ IRecipe nHelm = getLastRecipe();
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaChest), new Object[] { "RTR", "NHN", "ENE", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelChest), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8), Character.valueOf('T'), new ItemStack(ModItems.flightTiara, 1, 32767)});
+ IRecipe nChest = getLastRecipe();
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaLegs), new Object[] { "ENE", "RHR", "NAN", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelLegs), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8), Character.valueOf('A'), new ItemStack(ItemListAB.itemABResource, 1, 3)});
+ IRecipe nLegs = getLastRecipe();
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaBoots), new Object[] { "RBR", "NHN", " E ", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelBoots), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8), Character.valueOf('B'), new ItemStack(ModItems.speedUpBelt)});
+ IRecipe nBoots = getLastRecipe();
+ nebulaArmor = new BLexiconEntry("nebulaArmor", categoryForgotten);
+ nebulaArmor.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new PageText("1"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", nHelm), BotaniaAPI.internalHandler.craftingRecipePage(".craft", nChest), BotaniaAPI.internalHandler.craftingRecipePage(".craft", nLegs), BotaniaAPI.internalHandler.craftingRecipePage(".craft", nBoots)});
+
+ engineerHopper = new BLexiconEntry("engineerHopper", categoryForgotten);
+ engineerHopper.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AlphirineCraftPage(engineerHopper, hopperRecipe.getOutput(), ".alphirineCraft")});
+
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaRod), new Object[] { " WN", " RW", "W ", Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 13), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 8), Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 6)});
+ nebulaRod = new BLexiconEntry("nebulaRod", categoryForgotten);
+ nebulaRod.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
+
+ GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockBoardFate), new Object[] { " ", "QDQ", "MPM", Character.valueOf('Q'), new ItemStack(ModFluffBlocks.manaQuartz), Character.valueOf('D'), new ItemStack(ModItems.manaResource, 1, 2), Character.valueOf('M'), new ItemStack(ModItems.manaResource), Character.valueOf('P'), new ItemStack(ModItems.manaResource, 1, 23)});
+ gameBoard = new BLexiconEntry("gameBoard", BotaniaAPI.categoryMisc);
+ gameBoard.setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
+
+ fateBoard = new BLexiconEntry("fateBoard", categoryForgotten);
+ fateBoard.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AlphirineCraftPage(fateBoard, fateBoardRecipe.getOutput(), ".alphirineCraft")});
+
+ freyrSlingshot = new RLexiconEntry("freyrSlingshot", BotaniaAPI.categoryAlfhomancy, AchievementRegister.relicSlingshot);
+ freyrSlingshot.setLexiconPages(new LexiconPage[] { new PageText("0"), new PageText("1")});
+
+ richesKey = new RLexiconEntry("richesKey", BotaniaAPI.categoryAlfhomancy, AchievementRegister.relicItemChest);
+ richesKey.setLexiconPages(new LexiconPage[] { new PageText("0")});
+
+ cubeWardrobe = new RLexiconEntry("cubeWardrobe", BotaniaAPI.categoryAlfhomancy, AchievementRegister.relicPocketArmor);
+ cubeWardrobe.setLexiconPages(new LexiconPage[] { new PageText("0")});
+
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemSprawlRod), new Object[] { " SC", " WS", "W ", Character.valueOf('S'), new ItemStack(ModItems.grassSeeds, 1, 32767), Character.valueOf('C'), new ItemStack(BlockListAB.blockLebethron, 1, 4), Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 3)});
+ sprawlRod = new BLexiconEntry("sprawlRod", categoryForgotten);
+ sprawlRod.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
+
+ azartFlowerRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("ardentAzarcissus"), new ItemStack(ItemListAB.itemABResource, 1, 4), new ItemStack(ModItems.petal, 1, 11), new ItemStack(ModItems.petal, 1, 11), new ItemStack(ModItems.petal, 1, 14), new ItemStack(ModItems.petal, 1, 14), new ItemStack(ModItems.petal, 1, 13), new ItemStack(ModItems.manaResource, 1, 5));
+ azartFlower = new BLexiconEntry("azartFlower", BotaniaAPI.categoryGenerationFlowers);
+ azartFlower.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", azartFlowerRecipe)});
+
+ if(Botania.thaumcraftLoaded)
+ thaumcraft();
+
+ addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemABResource, 9, 1), new Object[] { new ItemStack(ItemListAB.itemABResource)});
+ addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemABResource, 9, 0), new Object[] { new ItemStack(BlockListAB.blockABStorage)});
+ addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemABResource, 9, 6), new Object[] { new ItemStack(ItemListAB.itemABResource, 1, 5)});
+ GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockABStorage), new Object[] { "III", "III", "III", Character.valueOf('I'), new ItemStack(ItemListAB.itemABResource)});
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemABResource, 1, 5), new Object[] { "III", "III", "III", Character.valueOf('I'), new ItemStack(ItemListAB.itemABResource, 1, 6)});
+ }
+
+ public static void thaumcraft() {
+ aspecolus = new BLexiconEntry("aspecolus", BotaniaAPI.categoryFunctionalFlowers);
+ aspecolusRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("aspecolus"), new ItemStack(ModItems.manaResource, 1, 6), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.rune, 1, 1), new ItemStack(ModItems.rune), new ItemStack(ItemListAB.itemABResource, 1, 2), new ItemStack(ModItems.petal, 1, 10), new ItemStack(ModItems.petal, 1, 13));
+ aspecolus.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", aspecolusRecipe) }).setIcon(ItemBlockSpecialFlower.ofType("aspecolus"));
+ addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemNebulaHelmReveal), new Object[] { new ItemStack(ItemListAB.itemNebulaHelm), new ItemStack(ConfigItems.itemGoggles)});
+
+ if(ConfigABHandler.hasAutoThaum) {
+ List recipes = new ArrayList();
+ for(int i = 1; i < 10; i++) {
+ boolean[][] patterns = ItemCraftingPattern.getPattern(i);
+ List str = new ArrayList();
+ for(int j = 0; j < patterns.length; j++) {
+ String str1 = "";
+ for(int k = 0; k < patterns[j].length; k++)
+ str1 += patterns[j][k] ? "T" : "H";
+ str.add(str1);
+ }
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemCraftingPattern, 1, i), new Object[] { str.get(0), str.get(1), str.get(2), Character.valueOf('T'), new ItemStack(ItemListAB.itemCraftingPattern), Character.valueOf('H'), new ItemStack(ConfigItems.itemNugget, 1, 6)});
+ recipes.add(getLastRecipe());
+ }
+ IRecipe crate = GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockMagicCraftCrate), new Object[] { "TST", "WCW", "W W", Character.valueOf('W'), new ItemStack(ConfigBlocks.blockMagicalLog), Character.valueOf('S'), new ItemStack(ConfigItems.itemResource, 1, 14), Character.valueOf('T'), new ItemStack(ConfigItems.itemResource, 1, 7), Character.valueOf('C'), new ItemStack(ModBlocks.openCrate, 1, 1)});
+ addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemCraftingPattern, 48), new Object[] { new ItemStack(Blocks.crafting_table), new ItemStack(ModBlocks.livingrock), new ItemStack(ConfigItems.itemResource, 1, 14)});
+ thaumAutoCraft = new BLexiconEntry("thaumAutoCraft", BotaniaAPI.categoryDevices);
+ thaumAutoCraft.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", crate) , BotaniaAPI.internalHandler.craftingRecipePage(".craft0", getLastRecipe()), BotaniaAPI.internalHandler.craftingRecipesPage(".craft1", recipes)});
+
+ }
+
+ pureGladRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("pureGladiolus"), new ItemStack(ItemListAB.itemABResource, 1, 4), new ItemStack(ModItems.rune, 1, 8), new ItemStack(ModItems.petal, 1, 8), new ItemStack(ModItems.petal, 1, 4), new ItemStack(ModItems.petal, 1, 14), new ItemStack(ModItems.petal, 1, 5), new ItemStack(ModItems.petal, 1, 13), new ItemStack(ModItems.petal, 1, 11));
+ gladious = new BLexiconEntry("gladious", BotaniaAPI.categoryFunctionalFlowers);
+ gladious.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", pureGladRecipe)});
+ }
+
+ private static IRecipe getLastRecipe() {
+ return (IRecipe)CraftingManager.getInstance().getRecipeList().get(CraftingManager.getInstance().getRecipeList().size() - 1);
+ }
+
+ private static void addOreDictRecipe(ItemStack output, Object... recipe) {
+ CraftingManager.getInstance().getRecipeList().add(new ShapedOreRecipe(output, recipe));
+ }
+
+ private static void addShapelessOreDictRecipe(ItemStack output, Object... recipe) {
+ CraftingManager.getInstance().getRecipeList().add(new ShapelessOreRecipe(output, recipe));
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c/90c15b956cc1001c11e398ea97007cb4 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c/90c15b956cc1001c11e398ea97007cb4
new file mode 100644
index 0000000..99fa344
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c/90c15b956cc1001c11e398ea97007cb4
@@ -0,0 +1,29 @@
+package ab.common.core.handler;
+
+import ab.common.core.proxy.packet.S00PacketHornChargeHud;
+import ab.common.core.proxy.packet.S01PacketFindNearBlocks;
+import cpw.mods.fml.common.network.NetworkRegistry;
+import cpw.mods.fml.common.network.simpleimpl.IMessage;
+import cpw.mods.fml.common.network.simpleimpl.SimpleNetworkWrapper;
+import cpw.mods.fml.relauncher.Side;
+import net.minecraft.block.Block;
+import net.minecraft.entity.player.EntityPlayerMP;
+
+public class NetworkHandler {
+
+ public static final SimpleNetworkWrapper NETWORK = NetworkRegistry.INSTANCE.newSimpleChannel("advancedBotanyChanel");
+
+ public static void registerPackets() {
+ int id = 0;
+ NETWORK.registerMessage(S00PacketHornChargeHud.class, S00PacketHornChargeHud.class, id++, Side.CLIENT);
+ NETWORK.registerMessage(S01PacketFindNearBlocks.class, S01PacketFindNearBlocks.class, id++, Side.CLIENT);
+ }
+
+ public static void sendPacketToFindBlocks(EntityPlayerMP playerMP, Block block, int meta) {
+ NETWORK.sendTo(new S01PacketFindNearBlocks(block, meta), playerMP);
+ }
+
+ public static void sendPacketToHornHud(EntityPlayerMP playerMP, short chargeLoot) {
+ NETWORK.sendTo(new S00PacketHornChargeHud(chargeLoot), playerMP);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c/f02117ece5ac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c/f02117ece5ac001c1d59e42be7477558
deleted file mode 100644
index b8b17a3..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c/f02117ece5ac001c1d59e42be7477558
+++ /dev/null
@@ -1,155 +0,0 @@
-package ab.common.block.tile;
-
-import java.util.List;
-
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.ChatComponentTranslation;
-import net.minecraft.util.ChatStyle;
-import net.minecraft.util.EnumChatFormatting;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.common.block.tile.TileMod;
-
-public class TileGameBoard extends TileMod {
-
- protected String[] playersName = new String[] { "", "" };
- public byte[] slotChance = new byte[] { 0, 0, 0, 0 };
- protected int botTick = -1;
- public int endGameTick = -1;
- protected boolean requestUpdate;
- public boolean isSingleGame = true;
- public int clientTick[] = new int[] { 0, 0, 0, 0};
-
- public void updateEntity() {
- if(botTick > 0)
- botTick--;
- if(endGameTick > 0)
- endGameTick--;
- if(!worldObj.isRemote)
- updateServer();
- else
- updateClient();
- }
-
- protected void updateClient() {
- for(int i = 0; i < slotChance.length; i++)
- if(slotChance[i] > 0)
- clientTick[i]++;
- else
- clientTick[i] = 0;
- }
-
- protected void updateServer() {
- if(requestUpdate)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- boolean hasUpdate = false;
- if(isSingleGame && botTick == 0 && hasGame()) {
- for(int i = 2; i < 4; i++) {
- if(slotChance[i] == 0) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = -1;
- hasUpdate = true;
- break;
- }
- }
- }
- if(hasGame() && endGameTick == 0)
- finishGame();
- requestUpdate = hasUpdate;
- }
-
- public void setPlayer(EntityPlayer player) {
- if(isSingleGame) {
- playersName[0] = player.getCommandSenderName();
- playersName[1] = "";
- requestUpdate = true;
- botTick = 8;
- }
- }
-
- public boolean dropDice(EntityPlayer player) {
- if(isSingleGame) {
- if(player.getCommandSenderName().equals(playersName[0]) && botTick == -1) {
- boolean isLastDice = false;
- for(int i = 0; i < 2; i++) {
- if(slotChance[i] == 0 && !worldObj.isRemote) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = 18;
- requestUpdate = true;
- if(i == 1)
- isLastDice = true;
- break;
- }
- }
- if(isLastDice)
- endGameTick = 28;
- return true;
- }
- }
- return false;
- }
-
- public boolean hasGame() {
- if(isSingleGame)
- return !playersName[0].isEmpty();
- return !playersName[0].isEmpty() && !playersName[1].isEmpty();
- }
-
- public void finishGame() {
- if(worldObj.isRemote)
- return;
- if(isSingleGame) {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won");
- else if((slotChance[0] + slotChance[1]) == (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " not win");
- else
- sendNearMessage(playersName[0] + " you Lose!");
- resetGame();
- requestUpdate = true;
- }
- }
-
- public void sendNearMessage(String text) {
- List players = this.worldObj.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(this.xCoord, this.yCoord, this.zCoord, (this.xCoord + 1), (this.yCoord + 1), (this.zCoord + 1)).expand(3.5f, 3.5f, 3.5f));
- for(EntityPlayer player : players) {
- if(player != null)
- player.addChatMessage((new ChatComponentTranslation(text, new Object[] {})).setChatStyle((new ChatStyle()).setColor(EnumChatFormatting.DARK_GREEN)));
- }
- }
-
- public void resetGame() {
- playersName[0] = "";
- playersName[1] = "";
- for(int i = 0; i < slotChance.length; i++)
- slotChance[i] = 0;
- requestUpdate = true;
- botTick = -1;
- endGameTick = -1;
- }
-
- public void writeCustomNBT(NBTTagCompound cmp) {
- super.writeCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- cmp.setString("playerName" + i, playersName[i]);
- cmp.setByteArray("slotChance", slotChance);
- cmp.setInteger("botTick", botTick);
- cmp.setInteger("endGameTick", endGameTick);
- cmp.setBoolean("requestUpdate", requestUpdate);
- cmp.setBoolean("isSingleGame", isSingleGame);
- }
-
- public void readCustomNBT(NBTTagCompound cmp) {
- super.readCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- playersName[i] = cmp.getString("playerName" + i);
- botTick = cmp.getInteger("botTick");
- endGameTick = cmp.getInteger("endGameTick");
- slotChance = cmp.getByteArray("slotChance");
- requestUpdate = cmp.getBoolean("requestUpdate");
- isSingleGame = cmp.getBoolean("isSingleGame");
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c0/105042b99fb1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c0/105042b99fb1001c19bf8a91ac37238b
deleted file mode 100644
index 79ae43b..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c0/105042b99fb1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,242 +0,0 @@
-package ab.client.core;
-
-import java.awt.Color;
-import java.nio.FloatBuffer;
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.gui.ScaledResolution;
-import net.minecraft.client.renderer.ActiveRenderInfo;
-import net.minecraft.client.renderer.GLAllocation;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.RenderHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.entity.RenderItem;
-import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.IIcon;
-import net.minecraft.util.ResourceLocation;
-import net.minecraft.util.StatCollector;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-import vazkii.botania.client.core.handler.HUDHandler;
-import vazkii.botania.common.block.ModBlocks;
-import vazkii.botania.common.core.helper.Vector3;
-
-public class ClientHelper {
-
- public static final ResourceLocation miscHuds = new ResourceLocation("ab:textures/misc/miscHuds.png");
- private static final ResourceLocation field_147529_c = new ResourceLocation("textures/environment/end_sky.png");
- private static final ResourceLocation field_147526_d = new ResourceLocation("textures/entity/end_portal.png");
- private static final Random field_147527_e = new Random(31100L);
- public static Minecraft mc = Minecraft.getMinecraft();
- private static FloatBuffer field_147528_b = GLAllocation.createDirectFloatBuffer(16);
-
- public static void renderCosmicBackground() {
- field_147527_e.setSeed(31100L);
- float f4 = 0.24F;
- for (int i = 0; i < 16; i++) {
- GL11.glPushMatrix();
- float f5 = (16 - i);
- float f6 = 0.0625F;
- float f7 = 1.0F / (f5 + 1.0F);
- if (i == 0) {
- mc.renderEngine.bindTexture(field_147529_c);
- f7 = 0.1F;
- f5 = 65.0F;
- f6 = 0.125F;
- GL11.glEnable(GL11.GL_BLEND);
- GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
- }
- if (i == 1) {
- mc.renderEngine.bindTexture(field_147526_d);
- GL11.glEnable(GL11.GL_BLEND);
- GL11.glBlendFunc(GL11.GL_ONE, GL11.GL_ONE);
- f6 = 0.5F;
- }
- GL11.glTranslatef(0.0f, 1.5f, 0.0f);
- GL11.glTexGeni(GL11.GL_S, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_OBJECT_LINEAR);
- GL11.glTexGeni(GL11.GL_T, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_OBJECT_LINEAR);
- GL11.glTexGeni(GL11.GL_R, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_OBJECT_LINEAR);
- GL11.glTexGeni(GL11.GL_Q, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_EYE_LINEAR);
- GL11.glTexGen(GL11.GL_S, GL11.GL_OBJECT_PLANE, func_147525_a(1.0F, 0.0F, 0.0F, 0.0F));
- GL11.glTexGen(GL11.GL_T, GL11.GL_OBJECT_PLANE, func_147525_a(0.0F, 0.0F, 1.0F, 0.0F));
- GL11.glTexGen(GL11.GL_R, GL11.GL_OBJECT_PLANE, func_147525_a(0.0F, 0.0F, 0.0F, 1.0F));
- GL11.glTexGen(GL11.GL_Q, GL11.GL_EYE_PLANE, func_147525_a(0.0F, 1.0F, 0.0F, 0.0F));
- GL11.glEnable(GL11.GL_TEXTURE_GEN_S);
- GL11.glEnable(GL11.GL_TEXTURE_GEN_T);
- GL11.glEnable(GL11.GL_TEXTURE_GEN_R);
- GL11.glEnable(GL11.GL_TEXTURE_GEN_Q);
- GL11.glPopMatrix();
- GL11.glMatrixMode(GL11.GL_TEXTURE);
- GL11.glPushMatrix();
- GL11.glLoadIdentity();
- GL11.glTranslatef(0.0F, (float)(Minecraft.getSystemTime() % 20000L) / 20000.0F, 0.0F);
- GL11.glScalef(f6, f6, f6);
- GL11.glTranslatef(0.5F, 0.5F, 0.0F);
- GL11.glRotatef((i * i * 4321 + i * 9) * 2.0F, 0.0F, 0.0F, 1.0F);
- GL11.glTranslatef(-0.5F, -0.5F, 0.0F);
- Tessellator tessellator = Tessellator.instance;
- tessellator.startDrawingQuads();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float f11 = color.getRed() / 255.0F;
- float f12 = color.getGreen() / 255.0F;
- float f13 = color.getBlue() / 255.0F;
- tessellator.setBrightness(30);
- tessellator.setColorRGBA_F(f11 * f7, f12 * f7, f13 * f7, 1.0F);
- tessellator.addVertex(0.0D, f4, 0.0D);
- tessellator.addVertex(0.0D, f4, 1.0D);
- tessellator.addVertex(1.0D, f4, 1.0D);
- tessellator.addVertex(1.0D, f4, 0.0D);
- tessellator.draw();
- GL11.glPopMatrix();
- GL11.glMatrixMode(GL11.GL_MODELVIEW);
- }
- GL11.glDisable(GL11.GL_BLEND);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_S);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_T);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_R);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_Q);
- }
-
- private static FloatBuffer func_147525_a(float p_147525_1_, float p_147525_2_, float p_147525_3_, float p_147525_4_) {
- field_147528_b.clear();
- field_147528_b.put(p_147525_1_).put(p_147525_2_).put(p_147525_3_).put(p_147525_4_);
- field_147528_b.flip();
- return field_147528_b;
- }
-
- public static void drawArrow(int x, int y, boolean side) {
- mc.renderEngine.bindTexture(miscHuds);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0f);
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x, y, 0.0F, 0, 10, side ? 0 : 22, 38);
- }
-
- public static void drawChanceBar(int x, int y, int chance) {
- mc.renderEngine.bindTexture(miscHuds);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0f);
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x, y, 0.0F, 0, 0, 57, 6);
- int chancePercentage = Math.max(0, (int)((chance / 100.f) * 55.0D));
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x + 1, y + 1, 0.0F, 0, 6, 55, 4);
- Color color = new Color(Color.HSBtoRGB((chance) / 360.0f, ((float)Math.sin((ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks) * 0.2D) + 1.0F) * 0.3F + 0.4F, 1.0f));
- GL11.glColor4ub((byte)color.getRed(), (byte)color.getGreen(), (byte)color.getBlue(), (byte)255);
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x + 1, y + 1, 0.0F, 0, 6, Math.min(55, chancePercentage), 4);
- }
-
- public static void renderPoolManaBar(int x, int y, int color, float alpha, int mana) {
- Minecraft mc = Minecraft.getMinecraft();
- int poolCount = (int)Math.floor(mana / 1000000.0D);
- if(poolCount < 0)
- poolCount = 0;
- int onePoolMana = mana - (poolCount * 1000000);
- String strPool = poolCount + "x";
- int xc = x - mc.fontRenderer.getStringWidth(strPool) / 2;
- int yc = y;
- GL11.glPushMatrix();
- GL11.glTranslatef(xc + 42.0f, yc + 5.0f, 0.0f);
- RenderHelper.enableGUIStandardItemLighting();
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, new ItemStack(ModBlocks.pool), 0, 0);
- RenderHelper.disableStandardItemLighting();
- GL11.glTranslatef(18.0f, 5.0f, 300.0f);
- mc.fontRenderer.drawString(strPool, 0, 0, color);
- GL11.glPopMatrix();
- if((poolCount * 1000000) == mana)
- onePoolMana = poolCount * 1000000;
- HUDHandler.renderManaBar(x, y, color, alpha, onePoolMana, 1000000);
- }
-
- public static void drawPoolManaHUD(ScaledResolution res, String name, int mana, int maxMana, int color) {
- Minecraft mc = Minecraft.getMinecraft();
- int poolCount = (int)Math.floor(mana / 1000000.0D);
- int maxPoolCount = (int)Math.floor(maxMana / 1000000.0D);
- if(poolCount < 0)
- poolCount = 0;
- if(maxPoolCount < 0)
- maxPoolCount = 0;
- int onePoolMana = mana - (poolCount * 1000000);
- String strPool = poolCount + "x / " + maxPoolCount + "x";
- int xc = res.getScaledWidth() / 2 - mc.fontRenderer.getStringWidth(strPool) / 2 - 3;
- int yc = res.getScaledHeight() / 2;
- GL11.glPushMatrix();
- GL11.glTranslatef(xc - 6.0f, yc + 30.0f, 0.0f);
- RenderHelper.enableGUIStandardItemLighting();
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, new ItemStack(ModBlocks.pool), 0, 0);
- RenderHelper.disableStandardItemLighting();
- GL11.glTranslatef(18.0f, 4.5f, 300.0f);
- mc.fontRenderer.drawStringWithShadow(strPool, 0, 0, color);
- GL11.glPopMatrix();
- if((poolCount * 1000000) == mana)
- onePoolMana = poolCount * 1000000;
- HUDHandler.drawSimpleManaHUD(color, onePoolMana, 1000000, name, res);
- }
-
- public static void setLightmapTextureCoords() {
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- }
-
- public static Vector3 setRotation(float angel, float vX, float vY, float vZ, Vector3 v3) {
- Vector3 rVec = new Vector3(vX, vY, vZ);
- Vector3 rVec1 = v3.copy().normalize();
- double rAngel = Math.toRadians(angel) * 0.5f;
- double sin = Math.sin(rAngel);
- double x = rVec.x * sin;
- double y = rVec.y * sin;
- double z = rVec.z * sin;
- rAngel = Math.cos(rAngel);
- double d = -x * rVec1.x - y * rVec1.y - z * rVec1.z;
- double d1 = rAngel * rVec1.x + y * rVec1.z - z * rVec1.y;
- double d2 = rAngel * rVec1.y - x * rVec1.z + z * rVec1.x;
- double d3 = rAngel * rVec1.z + x * rVec1.y - y * rVec1.x;
- v3.x = d1 * rAngel - d * x - d2 * z + d3 * y;
- v3.y = d2 * rAngel - d * y + d1 * z - d3 * x;
- v3.z = d3 * rAngel - d * z - d1 * y + d2 * x;
- return v3;
- }
-
- public static Color getCorporeaRuneColor(int posX, int posY, int posZ, int meta) {
- double time = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- time += (new Random((posX ^ posY ^ posZ))).nextInt(360);
- float sin = (float)(Math.sin(time / 20.0f) * 0.15f) - 0.15f;
- int color = 0;
- switch(meta) {
- case 0:
- color = Color.HSBtoRGB(0.0f, 0.0f, 0.54f + (sin / 1.2f));
- break;
- case 1:
- color = Color.HSBtoRGB(0.688f, 0.93f, 0.96f + sin - 0.15f);
- break;
- case 2:
- color = Color.HSBtoRGB(0.983f, 0.99f, 1.0f + sin - 0.15f);
- break;
- case 3:
- color = Color.HSBtoRGB(0.319f, 0.92f, 0.95f + sin - 0.15f);
- break;
- case 4:
- color = Color.HSBtoRGB(0.536f, 0.53f, 0.92f + sin - 0.15f);
- break;
- }
- return new Color(color);
- }
-
- public static void renderIcon(IIcon icon, int light) {
- Tessellator tessellator = Tessellator.instance;
- float f = icon.getMinU();
- float f1 = icon.getMaxU();
- float f2 = icon.getMinV();
- float f3 = icon.getMaxV();
- float f4 = 1.0F;
- float f5 = 0.5F;
- float f6 = 0.25F;
- tessellator.startDrawingQuads();
- tessellator.setNormal(0.0F, 1.0F, 0.0F);
- tessellator.addVertexWithUV((0.0F - f5), (0.0F - f6), 0.0D, f, f3);
- tessellator.addVertexWithUV((f4 - f5), (0.0F - f6), 0.0D, f1, f3);
- tessellator.addVertexWithUV((f4 - f5), (f4 - f6), 0.0D, f1, f2);
- tessellator.addVertexWithUV((0.0F - f5), (f4 - f6), 0.0D, f, f2);
- tessellator.draw();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c0/701cb796dfac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c0/701cb796dfac001c1d59e42be7477558
deleted file mode 100644
index 5956732..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c0/701cb796dfac001c1d59e42be7477558
+++ /dev/null
@@ -1,91 +0,0 @@
-package ab.client.render.tile;
-
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.model.ModelDiceFate;
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.ResourceLocation;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class RenderTileGameBoard extends TileEntitySpecialRenderer {
-
- private static final ModelDiceFate model = new ModelDiceFate();
- private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/gameDice.png");
- private static final ResourceLocation textureEnemy = new ResourceLocation("ab:textures/model/gameDice_enemy.png");
-
- public void renderTileEntityAt(TileEntity tile, double x, double y, double z, float ticks) {
- double time = (tile.getWorldObj() == null) ? 0.0D : (ClientTickHandler.ticksInGame + ticks);
- if(tile != null)
- time += (new Random((tile.xCoord ^ tile.yCoord ^ tile.zCoord))).nextInt(360);
- TileGameBoard board = (TileGameBoard)tile;
- GL11.glEnable(3042);
- GL11.glEnable(32826);
- for(int i = 0; i < board.slotChance.length; i++) {
- if(board.slotChance[i] == 0)
- continue;
- time += i * 65;
- GL11.glPushMatrix();
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- float posX = 0.0f;
- float posY = 0.0f;
- float dropAnim = (1.0f - (Math.min(100.0f, board.clientTick[i] * board.clientTick[i] * 1.125f) / 100.0f));
- dropAnim = Math.min(1.0f, Math.max(dropAnim, 0));
- float alpha = (float)Math.sin(1.0f - dropAnim);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, alpha);
- switch(i) {
- case 0:
- posX = 0.16f + 0.08f * dropAnim;
- posY = 0.16f + 0.08f * dropAnim;
- break;
- case 1:
- posX = -0.16f - 0.08f * dropAnim;
- posY = 0.16f + 0.08f * dropAnim;
- break;
- case 2:
- posX = 0.16f + 0.08f * dropAnim;
- posY = -0.16f - 0.08f * dropAnim;
- break;
- case 3:
- posX = -0.16f - 0.08f * dropAnim;
- posY = -0.16f - 0.08f * dropAnim;
- break;
- }
- GL11.glTranslated(x, y, z);
- GL11.glTranslated(0.5f + posX, 0.02f + Math.sin(time / 12.0D) / 48.0D + (0.28f * dropAnim), 0.5f + posY);
- GL11.glScalef(0.25f, 0.25f, 0.25f);
- Minecraft.getMinecraft().renderEngine.bindTexture(i > 1 ? textureEnemy : texture);
- float dropAngel = 70.0f * dropAnim;
- switch(board.slotChance[i]) {
- case 1:
- model.render(180.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 2:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 3:
- model.render(90.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 4:
- model.render(270.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 5:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 270.0f);
- break;
- case 6:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 90.0f);
- break;
- default:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- }
- GL11.glPopMatrix();
- }
- GL11.glEnable(32826);
- GL11.glDisable(3042);
- }
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c0/b0e9236bceb0001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c0/b0e9236bceb0001c19bf8a91ac37238b
deleted file mode 100644
index f835381..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c0/b0e9236bceb0001c19bf8a91ac37238b
+++ /dev/null
@@ -1,133 +0,0 @@
-package ab.common.item.equipment;
-
-import java.awt.Color;
-
-import ab.client.core.ClientHelper;
-import ab.common.core.handler.ConfigABHandler;
-import ab.common.item.ItemMod;
-import net.minecraft.block.Block;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.Minecraft;
-import net.minecraft.entity.Entity;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.EnumAction;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.ChunkCoordinates;
-import net.minecraft.util.MathHelper;
-import net.minecraft.util.Vec3;
-import net.minecraft.world.World;
-import net.minecraft.world.chunk.Chunk;
-import vazkii.botania.api.mana.IManaUsingItem;
-import vazkii.botania.api.mana.ManaItemHandler;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.core.helper.Vector3;
-
-public class ItemNebulaRod extends ItemMod implements IManaUsingItem {
-
- public ItemNebulaRod() {
- super("nebulaRod");
- this.setMaxStackSize(1);
- this.setNoRepair();
- this.setMaxDamage(100);
- }
-
- public boolean usesMana(ItemStack stack) {
- return true;
- }
-
- public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
- if(stack.getItemDamage() == 0)
- player.setItemInUse(stack, getMaxItemUseDuration(stack));
- return stack;
- }
-
- public EnumAction getItemUseAction(ItemStack par1ItemStack) {
- return EnumAction.bow;
- }
-
- public void onUpdate(ItemStack stack, World world, Entity player, int par4, boolean par5) {
- if(!world.isRemote && player instanceof EntityPlayer && player.ticksExisted % ConfigABHandler.nebulaWandCooldownTick == 0 && stack.getItemDamage() > 0 && ManaItemHandler.requestManaExactForTool(stack, (EntityPlayer)player, 140, true))
- stack.setItemDamage(stack.getItemDamage() - 1);
- }
-
- public void onUsingTick(ItemStack stack, EntityPlayer p, int time) {
- time = this.getMaxItemUseDuration(stack) - time;
- if(time > 110 && !p.isSneaking()) {
- Vec3 vec3 = p.getLook(1.0F).normalize();
- MathHelper.floor_double(time);
- int limitXZ = ConfigABHandler.limitXZCoords;
- int posX = MathHelper.floor_double(p.posX + vec3.xCoord * 256);
- int posY = MathHelper.floor_double(p.posY);
- int posZ = MathHelper.floor_double(p.posZ + vec3.zCoord * 256);
- ChunkCoordinates chunkcoordinates = new ChunkCoordinates(Math.min(Math.max(posX, -(limitXZ - 1)), limitXZ - 1), posY, Math.min(Math.max(posZ, -(limitXZ - 1)), limitXZ - 1));
- int topY = getTopBlock(p.worldObj, posX, posZ);
- if(topY == -1) {
- p.stopUsingItem();
- return;
- }
- chunkcoordinates.posY = topY;
- if(!p.worldObj.isRemote)
- ((EntityPlayerMP)p).playerNetServerHandler.setPlayerLocation(chunkcoordinates.posX + 0.5D, chunkcoordinates.posY + 1.6D, chunkcoordinates.posZ + 0.5D, p.rotationYaw, p.rotationPitch);
- if(!p.capabilities.isCreativeMode)
- stack.setItemDamage(100);
- p.stopUsingItem();
- }
- spawnPortalParticle(p.worldObj, p, time);
- }
-
- public void spawnPortalParticle(World world, EntityPlayer p, int time) {
- if(world.isRemote) {
- boolean isFinish = time > 80;
- int ticks = Math.min(100, time);
- int totalSpiritCount = (int)Math.max(3, ticks / 100.0f * 18);
- double tickIncrement = 360.0D / totalSpiritCount;
- int speed = 8;
- double wticks = (ticks * speed) - tickIncrement;
- double r = Math.sin((ticks) / 100.0D) * Math.max(0.75f, 1.4D * ticks / 100.0f);
- Vec3 look = p.getLookVec();
- float yawOffset = Minecraft.getMinecraft().thePlayer.getDisplayName() == p.getDisplayName() ? 0.0f : 1.62f;
- Vector3 l = new Vector3(look.xCoord, look.yCoord + yawOffset, look.zCoord);
- Vector3 player = Vector3.fromEntity(p).add(0.0f, 0.0f, 0.0f);
- Vector3 v3 = new Vector3();
- for(int i = 0; i < totalSpiritCount; i++) {
- float size = Math.max(0.215f, ticks / 100.0f);
- v3.set(Math.sin(wticks * Math.PI / 180.0D) / 1.825f * r, Math.cos(wticks * Math.PI / 180.0D) * r, 0.8f);
- ClientHelper.setRotation(p.rotationPitch, 1.0f, 0.0f, 0.0f, v3);
- ClientHelper.setRotation(-p.rotationYaw, 0.0f, 1.0f, 0.0f, v3);
- v3.add(l.multiply(1.0f)).add(player);
- wticks += tickIncrement;
- int color = world.rand.nextBoolean() ? 0x931fec : 0x4b1682;
- float hsb[] = Color.RGBtoHSB(color & 255, color >> 8 & 255, color >> 16 & 255, null);
- int color1 = Color.HSBtoRGB(hsb[0], hsb[1], ticks / 100.0f);
- float[] colorsfx = { (color1 & 255) / 255.0f, (color1 >> 8 & 255) / 255.0f, (color1 >> 16 & 255) / 255.0f };
- float motionSpeed = 0.25f * Math.min(1.0f, (time - 80) / 30.0f);
- Botania.proxy.wispFX(world, v3.x, v3.y, v3.z, colorsfx[0], colorsfx[1], colorsfx[2], 0.3F * size, isFinish ? (float)(look.xCoord * -1) * motionSpeed : 0.0f, isFinish ? (float)(look.yCoord * -1) * motionSpeed : 0.0f, isFinish ? (float)(look.zCoord * -1) * motionSpeed : 0.0f, 0.3F);
- Botania.proxy.wispFX(world, v3.x, v3.y, v3.z, colorsfx[0], colorsfx[1], colorsfx[2], (float)(Math.random() * 0.1F + 0.05F) * size, (float)(Math.random() - 0.5D) * 0.05F, (float)(Math.random() - 0.5D) * 0.05F, (float)(Math.random() - 0.5D) * 0.05F, 0.4F);
- }
- }
- }
-
- public int getMaxItemUseDuration(ItemStack par1ItemStack) {
- return 72000;
- }
-
- public boolean isFull3D() {
- return true;
- }
-
- public int getTopBlock(World world, int posX, int posZ) {
- Chunk chunk = world.getChunkFromBlockCoords(posX, posZ);
- int x = posX;
- int z = posZ;
- int k = chunk.getTopFilledSegment() + 15;
- posX &= 15;
- for(posZ &= 15; k > 0; --k) {
- Block block = chunk.getBlock(posX, k, posZ);
- if(!block.isAir(world, x, k, z) && block != Blocks.bedrock && block.isAir(world, x, k + 1, z) && block.isAir(world, x, k + 2, z))
- return k + 1;
- }
- return -1;
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c1/b01258cbb0b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c1/b01258cbb0b1001c19bf8a91ac37238b
deleted file mode 100644
index 4e0442f..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c1/b01258cbb0b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,86 +0,0 @@
-package ab.common.item;
-
-import java.util.List;
-
-import ab.common.core.CommonHelper;
-import ab.common.lib.register.BlockListAB;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.renderer.texture.IIconRegister;
-import net.minecraft.entity.Entity;
-import net.minecraft.entity.item.EntityFallingBlock;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.IIcon;
-import net.minecraft.world.World;
-import vazkii.botania.common.core.helper.ItemNBTHelper;
-
-public class ItemAntigravityCharm extends ItemMod {
-
- public static IIcon[] icons;
-
- public ItemAntigravityCharm() {
- super("antigravityCharm");
- this.setMaxStackSize(1);
- this.setNoRepair();
- }
-
- public void registerIcons(IIconRegister ir) {
- icons = new IIcon[2];
- for(int i = 0; i < icons.length; i++) {
- icons[i] = icons[i] = ir.registerIcon("ab:" + "itemAntigravityCharm_" + i);
- }
- }
-
- @SideOnly(Side.CLIENT)
- public IIcon getIcon(ItemStack stack, int pass) {
- int iconID = Math.min(1, pass);
- return this.icons[iconID];
- }
-
- public boolean requiresMultipleRenderPasses() {
- return true;
- }
-
- public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
- if(player.isSneaking())
- ItemNBTHelper.setBoolean(stack, "isActive", !ItemNBTHelper.getBoolean(stack, "isActive", true));
- return stack;
- }
-
- public void onUpdate(ItemStack stack, World world, Entity entity, int par4, boolean inHand) {
- if(entity instanceof EntityPlayer) {
- EntityPlayer player = (EntityPlayer)entity;
- if(ItemNBTHelper.getBoolean(stack, "isActive", true)) {
- double posX = entity.posX;
- double posY = entity.posY;
- double posZ = entity.posZ;
- final AxisAlignedBB asis = AxisAlignedBB.getBoundingBox(posX, posY, posZ, posX + 1, posY + 1, posZ + 1).expand(8, 8, 8);
- final List listEntity = (List)world.getEntitiesWithinAABB((Class)EntityFallingBlock.class, asis);
- for(EntityFallingBlock fallBlock : listEntity) {
- int x = (int) (fallBlock.posX >= 0 ? fallBlock.posX : fallBlock.posX - 1);
- int y = (int) fallBlock.posY;
- int z = (int) (fallBlock.posZ >= 0 ? fallBlock.posZ : fallBlock.posZ - 1);
- Block block = fallBlock.func_145805_f();
- fallBlock.setInvisible(true);
- if(!world.isRemote) {
- CommonHelper.setBlock(world, block, fallBlock.field_145814_a, x, y, z, (EntityPlayerMP)player, true);
- CommonHelper.setBlock(world, BlockListAB.blockAntigravitation, 0, x, y - 1, z, (EntityPlayerMP)player, true);
- }
- fallBlock.setDead();
- }
- }
- }
- }
-
- private void setBlock(World world, int x, int y, int z, Block block, int meta) {
- if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256) {
- world.setBlock(x, y, z, block, meta, 3);
- }
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c2/60ec1753c7b0001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c2/60ec1753c7b0001c19bf8a91ac37238b
deleted file mode 100644
index e4f9e31..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c2/60ec1753c7b0001c19bf8a91ac37238b
+++ /dev/null
@@ -1,125 +0,0 @@
-package ab.common.item.equipment;
-
-import java.awt.Color;
-
-import ab.client.core.ClientHelper;
-import ab.common.core.handler.ConfigABHandler;
-import ab.common.item.ItemMod;
-import net.minecraft.block.Block;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.Minecraft;
-import net.minecraft.entity.Entity;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.item.EnumAction;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.ChunkCoordinates;
-import net.minecraft.util.MathHelper;
-import net.minecraft.util.Vec3;
-import net.minecraft.world.World;
-import net.minecraft.world.chunk.Chunk;
-import vazkii.botania.api.mana.IManaUsingItem;
-import vazkii.botania.api.mana.ManaItemHandler;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.core.helper.Vector3;
-
-public class ItemNebulaRod extends ItemMod implements IManaUsingItem {
-
- public ItemNebulaRod() {
- super("nebulaRod");
- this.setMaxStackSize(1);
- this.setNoRepair();
- this.setMaxDamage(100);
- }
-
- public boolean usesMana(ItemStack stack) {
- return true;
- }
-
- public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
- if(stack.getItemDamage() == 0 && world.provider.dimensionId == 0)
- player.setItemInUse(stack, getMaxItemUseDuration(stack));
- return stack;
- }
-
- public EnumAction getItemUseAction(ItemStack par1ItemStack) {
- return EnumAction.bow;
- }
-
- public void onUpdate(ItemStack stack, World world, Entity player, int par4, boolean par5) {
- if(!world.isRemote && player instanceof EntityPlayer && player.ticksExisted % ConfigABHandler.nebulaWandCooldownTick == 0 && stack.getItemDamage() > 0 && ManaItemHandler.requestManaExactForTool(stack, (EntityPlayer)player, 140, true))
- stack.setItemDamage(stack.getItemDamage() - 1);
- }
-
- public void onUsingTick(ItemStack stack, EntityPlayer p, int time) {
- time = this.getMaxItemUseDuration(stack) - time;
- boolean isFinish = time > 80;
- if(time > 110 && !p.isSneaking()) {
- if(!p.capabilities.isCreativeMode)
- stack.setItemDamage(100);
- p.stopUsingItem();
- if(!p.worldObj.isRemote) {
- Vec3 vec3 = p.getLook(1.0F).normalize();
- MathHelper.floor_double(time);
- int limitXZ = 30000000;
- int posX = MathHelper.floor_double(p.posX + vec3.xCoord * 256);
- int posY = MathHelper.floor_double(p.posY);
- int posZ = MathHelper.floor_double(p.posZ + vec3.zCoord * 256);
- ChunkCoordinates chunkcoordinates = new ChunkCoordinates(Math.min(Math.max(posX, -(limitXZ - 1)), limitXZ - 1), posY, Math.min(Math.max(posZ, -(limitXZ - 1)), limitXZ - 1));
- int topY = getTopBlock(p.worldObj, posX, posZ);
- chunkcoordinates.posY = topY == -1 ? posY : topY;
- ((EntityPlayerMP)p).playerNetServerHandler.setPlayerLocation(chunkcoordinates.posX + 0.5D, chunkcoordinates.posY + 1.6D, chunkcoordinates.posZ + 0.5D, p.rotationYaw, p.rotationPitch);
- }
- }
- if(p.worldObj.isRemote) {
- int ticks = Math.min(100, time);
- int totalSpiritCount = (int)Math.max(3, ticks / 100.0f * 18);
- double tickIncrement = 360.0D / totalSpiritCount;
- int speed = 8;
- double wticks = (ticks * speed) - tickIncrement;
- double r = Math.sin((ticks) / 100.0D) * Math.max(0.75f, 1.4D * ticks / 100.0f);
- Vec3 look = p.getLookVec();
- float yawOffset = Minecraft.getMinecraft().thePlayer.getDisplayName() == p.getDisplayName() ? 0.0f : 1.62f;
- Vector3 l = new Vector3(look.xCoord, look.yCoord + yawOffset, look.zCoord);
- Vector3 player = Vector3.fromEntity(p).add(0.0f, 0.0f, 0.0f);
- Vector3 v3 = new Vector3();
- for(int i = 0; i < totalSpiritCount; i++) {
- float size = Math.max(0.215f, ticks / 100.0f);
- v3.set(Math.sin(wticks * Math.PI / 180.0D) / 1.825f * r, Math.cos(wticks * Math.PI / 180.0D) * r, 0.8f);
- ClientHelper.setRotation(p.rotationPitch, 1.0f, 0.0f, 0.0f, v3);
- ClientHelper.setRotation(-p.rotationYaw, 0.0f, 1.0f, 0.0f, v3);
- v3.add(l.multiply(1.0f)).add(player);
- wticks += tickIncrement;
- int color = p.worldObj.rand.nextBoolean() ? 0x931fec : 0x4b1682;
- float hsb[] = Color.RGBtoHSB(color & 255, color >> 8 & 255, color >> 16 & 255, null);
- int color1 = Color.HSBtoRGB(hsb[0], hsb[1], ticks / 100.0f);
- float[] colorsfx = { (color1 & 255) / 255.0f, (color1 >> 8 & 255) / 255.0f, (color1 >> 16 & 255) / 255.0f };
- float motionSpeed = 0.25f * Math.min(1.0f, (time - 80) / 30.0f);
- Botania.proxy.wispFX(p.worldObj, v3.x, v3.y, v3.z, colorsfx[0], colorsfx[1], colorsfx[2], 0.3F * size, isFinish ? (float)(look.xCoord * -1) * motionSpeed : 0.0f, isFinish ? (float)(look.yCoord * -1) * motionSpeed : 0.0f, isFinish ? (float)(look.zCoord * -1) * motionSpeed : 0.0f, 0.3F);
- Botania.proxy.wispFX(p.worldObj, v3.x, v3.y, v3.z, colorsfx[0], colorsfx[1], colorsfx[2], (float)(Math.random() * 0.1F + 0.05F) * size, (float)(Math.random() - 0.5D) * 0.05F, (float)(Math.random() - 0.5D) * 0.05F, (float)(Math.random() - 0.5D) * 0.05F, 0.4F);
- }
- }
- }
-
- public int getMaxItemUseDuration(ItemStack par1ItemStack) {
- return 72000;
- }
-
- public boolean isFull3D() {
- return true;
- }
-
- public int getTopBlock(World world, int posX, int posZ) {
- Chunk chunk = world.getChunkFromBlockCoords(posX, posZ);
- int x = posX;
- int z = posZ;
- int k = chunk.getTopFilledSegment() + 15;
- posX &= 15;
- for(posZ &= 15; k > 0; --k) {
- Block block = chunk.getBlock(posX, k, posZ);
- if(!block.isAir(world, x, k, z))
- return k + 1;
- }
- return -1;
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c2/909212ddcdbd001c1664fb18d0506bc0 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c2/909212ddcdbd001c1664fb18d0506bc0
new file mode 100644
index 0000000..4dcc53f
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c2/909212ddcdbd001c1664fb18d0506bc0
@@ -0,0 +1,135 @@
+package ab.common.item.relic;
+
+import java.awt.Color;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.common.core.handler.NetworkHandler;
+import net.minecraft.block.Block;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.MathHelper;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.api.mana.ManaItemHandler;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class ItemSphereNavigation extends ItemModRelic {
+
+ public static final int rangeSearch = 24;
+ public static final int maxCooldown = 88;
+ public static final int manaCost = 8750;
+
+ public ItemSphereNavigation() {
+ super("sphereNavigation");
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int pos, boolean equipped) {
+ super.onUpdate(stack, world, entity, pos, equipped);
+ if(entity instanceof EntityPlayer) {
+ EntityPlayer player = (EntityPlayer)entity;
+ if(!world.isRemote && getFindBlock(stack) != null && canWork(stack) && ManaItemHandler.requestManaExactForTool(stack, player, manaCost, true)) {
+ setMaxTick(stack);
+ NetworkHandler.sendPacketToFindBlocks((EntityPlayerMP)player, getFindBlock(stack), getFindMeta(stack));
+ }
+ }
+ }
+
+ public static void findBlocks(World world, Block findBlock, int findMeta, EntityPlayer player) {
+ System.out.println(findBlock);
+ if(world.isRemote) {
+ int findedBlocks = 0;
+ label1703:
+ for(int x = -rangeSearch; x < rangeSearch; x++) {
+ if(world.rand.nextBoolean())
+ continue;
+ for(int y = -rangeSearch * 4; y < rangeSearch; y++) {
+ if(world.rand.nextBoolean())
+ continue;
+ for(int z = -rangeSearch; z < rangeSearch; z++) {
+ if(world.rand.nextBoolean())
+ continue;
+ else if(findedBlocks > 16)
+ break label1703;
+ int posX = MathHelper.floor_double(player.posX) + x;
+ int posY = MathHelper.floor_double(player.posY) + y;
+ int posZ = MathHelper.floor_double(player.posZ) + z;
+ if(posY < 0)
+ continue;
+ Block block = world.getBlock(posX, posY, posZ);
+ if(!Block.isEqualTo(block, findBlock))
+ continue;
+ int meta = world.getBlockMetadata(posX, posY, posZ);
+ if(meta == findMeta) {
+ findedBlocks++;
+ float maxAge = 2.7f + (0.5f * (float)(Math.random()));
+ Botania.proxy.setWispFXDepthTest(false);
+ float far = 120.0f - (((Math.abs(x) + Math.min(rangeSearch * 2.0f, Math.abs(y)) + Math.abs(z)) / (rangeSearch * 4.0f)) * 120.0f);
+ if(far <= 60)
+ far *= 0.15f;
+ Color color = new Color(Color.HSBtoRGB(far / 360.0f, 0.9f + (float)(Math.random() * 0.1f), 1.0f));
+ for(int i = 0; i < 11; i++)
+ Botania.proxy.wispFX(world, posX + 0.5f + (Math.random() - 0.5f), posY + 0.5f + (Math.random() - 0.5f), posZ + 0.5f + (Math.random() - 0.5f), color.getRed() / 100.0f, color.getGreen() / 100.0f, color.getBlue() / 100.0f, 0.3f + (float)(Math.random() * 0.25f), 0.0f, maxAge);
+ Botania.proxy.setWispFXDepthTest(true);
+ }
+ }
+ }
+ }
+ }
+ }
+
+ public boolean onItemUse(ItemStack stack, EntityPlayer p, World world, int x, int y, int z, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
+ if(p.isSneaking()) {
+ Block block = world.getBlock(x, y, z);
+ if(block != null) {
+ int meta = world.getBlockMetadata(x, y, z);
+ Item item = Item.getItemFromBlock(block);
+ if(item != null) {
+ ItemStack findStack = new ItemStack(block, 1, meta);
+ if(findStack != null) {
+ setFindBlock(stack, block, meta);
+ if(world.isRemote)
+ ItemsRemainingRender.set(findStack, findStack.getDisplayName());
+ }
+ }
+ return true;
+ }
+ }
+ return false;
+ }
+
+ public boolean canWork(ItemStack stack) {
+ int tick = ItemNBTHelper.getInt(stack, "cooldown", 0);
+ if(tick == 0)
+ return true;
+ else if(tick > 0)
+ ItemNBTHelper.setInt(stack, "cooldown", tick - 1);
+ return false;
+ }
+
+ public void setMaxTick(ItemStack stack) {
+ ItemNBTHelper.setInt(stack, "cooldown", maxCooldown);
+ }
+
+ public static void setFindBlock(ItemStack stack, Block block, int meta) {
+ ItemNBTHelper.setInt(stack, "findBlockID", Block.getIdFromBlock(block));
+ ItemNBTHelper.setInt(stack, "findBlockMeta", meta);
+ }
+
+ public static Block getFindBlock(ItemStack stack) {
+ int blockID = ItemNBTHelper.getInt(stack, "findBlockID", 0);
+ if(blockID == 0)
+ return null;
+ else
+ return Block.getBlockById(blockID);
+ }
+
+ public static int getFindMeta(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "findBlockMeta", -1);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/69/800304dedfad001c1bd4eaa9a9be6b81 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c2/90d3342e93c1001c11e398ea97007cb4
similarity index 73%
rename from 1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/69/800304dedfad001c1bd4eaa9a9be6b81
rename to 1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c2/90d3342e93c1001c11e398ea97007cb4
index 3dd0684..b217a0e 100644
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/69/800304dedfad001c1bd4eaa9a9be6b81
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c2/90d3342e93c1001c11e398ea97007cb4
@@ -9,6 +9,7 @@ import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.stats.Achievement;
import net.minecraftforge.common.AchievementPage;
+import vazkii.botania.common.core.handler.ConfigHandler;
import vazkii.botania.common.item.ModItems;
public class AchievementRegister {
@@ -17,11 +18,15 @@ public class AchievementRegister {
public static Achievement relicPocketArmor;
public static Achievement relicItemChest;
public static Achievement fateBoard;
+ public static Achievement hornPlenty;
+ public static Achievement sphereNavigation;
public static void init() {
relicSlingshot = new AchievementAB("relicSlingshot", 0, 2, new ItemStack(ItemListAB.itemFreyrSlingshot), null);
relicPocketArmor = new AchievementAB("relicPocketArmor", 0, -2, new ItemStack(ItemListAB.itemPocketWardrobe), null);
- relicItemChest = new AchievementAB("relicItemChest", 2, 2, new ItemStack(ItemListAB.itemTalismanHiddenRiches), null);
+ relicItemChest = new AchievementAB("relicItemChest", 2, 1, new ItemStack(ItemListAB.itemTalismanHiddenRiches), null);
+ hornPlenty = new AchievementAB("relicHornPlenty", 2, 2, new ItemStack(ItemListAB.itemHornPlenty), null);
+ sphereNavigation = new AchievementAB("relicSphereNavigation", -2, 1, new ItemStack(ItemListAB.itemSphereNavigation), null);
fateBoard = new AchievementAB("fateBoard", 0, 0, new ItemStack(BlockListAB.blockBoardFate, 1, 1), null).setSpecial();
AchievementPage page = new AchievementPage("Advanced Botany", AdvancedBotanyAPI.achievements.toArray(new Achievement[AdvancedBotanyAPI.achievements.size()]));
AchievementPage.registerAchievementPage(page);
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c2/a052c31c9cb1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c2/a052c31c9cb1001c19bf8a91ac37238b
deleted file mode 100644
index 66b19d6..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c2/a052c31c9cb1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,83 +0,0 @@
-package ab.client.core.handler;
-
-import java.awt.Color;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.armor.ItemNebulaArmor;
-import ab.common.item.equipment.armor.ItemNebulaHelm;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.ItemRenderer;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.texture.TextureMap;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraftforge.client.event.RenderPlayerEvent;
-import vazkii.botania.api.item.IPhantomInkable;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class PlayerRendererHandler {
-
- @SubscribeEvent
- public void onPlayerRender(RenderPlayerEvent.Specials.Pre event) {
- EntityPlayer player = event.entityPlayer;
- ItemStack item = player.getCurrentArmor(3);
- if(item != null && item.getItem() instanceof ItemNebulaHelm) {
- Item helm = player.getCurrentArmor(3).getItem();
- boolean hasPhantomInk = helm instanceof IPhantomInkable && ((IPhantomInkable)helm).hasPhantomInk(item);
- if(!hasPhantomInk && ((ItemNebulaHelm)helm).enableCosmicFace(item)) {
- float angelX = event.renderer.modelBipedMain.bipedHead.rotateAngleX * 180.0F / (float)Math.PI;
- float angelY = event.renderer.modelBipedMain.bipedHead.rotateAngleY * 180.0F / (float)Math.PI;
- GL11.glPushMatrix();
- if(player.isSneaking())
- GL11.glTranslatef(event.renderer.modelBipedMain.bipedHead.rotationPointX * 0.0625f, event.renderer.modelBipedMain.bipedHead.rotationPointY * 0.0625f, 0.0f);
- GL11.glRotatef(angelY, 0.0F, 1.0F, 0.0F);
- GL11.glRotatef(angelX, 1.0F, 0.0F, 0.0F);
- renderCosmicFace();
- GL11.glPopMatrix();
- }
- }
- }
-
- private void renderCosmicFace() {
- double worldTime = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- GL11.glPushMatrix();
- GL11.glEnable(GL11.GL_TEXTURE_2D);
- GL11.glDisable(2884);
-
- GL11.glPushMatrix();
- GL11.glScalef(0.5f, 0.4f, 0.4f);
- GL11.glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
- GL11.glTranslatef(-0.5f, -0.8675f, 0.0f);
- GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
- ClientHelper.renderCosmicBackground();
- GL11.glPopMatrix();
-
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
-// OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- (Minecraft.getMinecraft()).renderEngine.bindTexture(TextureMap.locationItemsTexture);
- GL11.glTranslatef(-0.2F, -0.35F, -0.25F);
- GL11.glScalef(0.4f, 0.4f, 0.4f);
- float f = ItemNebulaArmor.nebulaEyes.getMinU();
- float f1 = ItemNebulaArmor.nebulaEyes.getMaxU();
- float f2 = ItemNebulaArmor.nebulaEyes.getMinV();
- float f3 = ItemNebulaArmor.nebulaEyes.getMaxV();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float r = color.getRed() / 510.0F;
- float g = color.getGreen() / 510.0F;
- float b = color.getBlue() / 510.0F;
- GL11.glColor4f(0.5f + r, 0.5f + g, 0.5f + b, 0.685f + (float)Math.sin(worldTime / 50.0D) * 0.175F);
- ItemRenderer.renderItemIn2D(Tessellator.instance, f1, f2, f, f3, ItemNebulaArmor.nebulaEyes.getIconWidth(), ItemNebulaArmor.nebulaEyes.getIconHeight(), 0.03125F);
- GL11.glDisable(3042);
- GL11.glEnable(32826);
- GL11.glPopMatrix();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c3/6047bce09db1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c3/6047bce09db1001c19bf8a91ac37238b
deleted file mode 100644
index 2de15c0..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c3/6047bce09db1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,244 +0,0 @@
-package ab.client.core;
-
-import java.awt.Color;
-import java.nio.FloatBuffer;
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.gui.ScaledResolution;
-import net.minecraft.client.renderer.ActiveRenderInfo;
-import net.minecraft.client.renderer.GLAllocation;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.RenderHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.entity.RenderItem;
-import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.IIcon;
-import net.minecraft.util.ResourceLocation;
-import net.minecraft.util.StatCollector;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-import vazkii.botania.client.core.handler.HUDHandler;
-import vazkii.botania.common.block.ModBlocks;
-import vazkii.botania.common.core.helper.Vector3;
-
-public class ClientHelper {
-
- public static final ResourceLocation miscHuds = new ResourceLocation("ab:textures/misc/miscHuds.png");
- private static final ResourceLocation field_147529_c = new ResourceLocation("textures/environment/end_sky.png");
- private static final ResourceLocation field_147526_d = new ResourceLocation("textures/entity/end_portal.png");
- private static final Random field_147527_e = new Random(31100L);
- public static Minecraft mc = Minecraft.getMinecraft();
- private static FloatBuffer field_147528_b = GLAllocation.createDirectFloatBuffer(16);
-
- public static void renderCosmicBackground() {
- GL11.glDisable(GL11.GL_LIGHTING);
- field_147527_e.setSeed(31100L);
- float f4 = 0.24F;
- for (int i = 0; i < 16; i++) {
- GL11.glPushMatrix();
- float f5 = (16 - i);
- float f6 = 0.0625F;
- float f7 = 1.0F / (f5 + 1.0F);
- if (i == 0) {
- mc.renderEngine.bindTexture(field_147529_c);
- f7 = 0.1F;
- f5 = 65.0F;
- f6 = 0.125F;
- GL11.glEnable(GL11.GL_BLEND);
- GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
- }
- if (i == 1) {
- mc.renderEngine.bindTexture(field_147526_d);
- GL11.glEnable(GL11.GL_BLEND);
- GL11.glBlendFunc(GL11.GL_ONE, GL11.GL_ONE);
- f6 = 0.5F;
- }
- GL11.glTranslatef(0.0f, 1.5f, 0.0f);
- GL11.glTexGeni(GL11.GL_S, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_OBJECT_LINEAR);
- GL11.glTexGeni(GL11.GL_T, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_OBJECT_LINEAR);
- GL11.glTexGeni(GL11.GL_R, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_OBJECT_LINEAR);
- GL11.glTexGeni(GL11.GL_Q, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_EYE_LINEAR);
- GL11.glTexGen(GL11.GL_S, GL11.GL_OBJECT_PLANE, func_147525_a(1.0F, 0.0F, 0.0F, 0.0F));
- GL11.glTexGen(GL11.GL_T, GL11.GL_OBJECT_PLANE, func_147525_a(0.0F, 0.0F, 1.0F, 0.0F));
- GL11.glTexGen(GL11.GL_R, GL11.GL_OBJECT_PLANE, func_147525_a(0.0F, 0.0F, 0.0F, 1.0F));
- GL11.glTexGen(GL11.GL_Q, GL11.GL_EYE_PLANE, func_147525_a(0.0F, 1.0F, 0.0F, 0.0F));
- GL11.glEnable(GL11.GL_TEXTURE_GEN_S);
- GL11.glEnable(GL11.GL_TEXTURE_GEN_T);
- GL11.glEnable(GL11.GL_TEXTURE_GEN_R);
- GL11.glEnable(GL11.GL_TEXTURE_GEN_Q);
- GL11.glPopMatrix();
- GL11.glMatrixMode(GL11.GL_TEXTURE);
- GL11.glPushMatrix();
- GL11.glLoadIdentity();
- GL11.glTranslatef(0.0F, (float)(Minecraft.getSystemTime() % 20000L) / 20000.0F, 0.0F);
- GL11.glScalef(f6, f6, f6);
- GL11.glTranslatef(0.5F, 0.5F, 0.0F);
- GL11.glRotatef((i * i * 4321 + i * 9) * 2.0F, 0.0F, 0.0F, 1.0F);
- GL11.glTranslatef(-0.5F, -0.5F, 0.0F);
- Tessellator tessellator = Tessellator.instance;
- tessellator.startDrawingQuads();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float f11 = color.getRed() / 255.0F;
- float f12 = color.getGreen() / 255.0F;
- float f13 = color.getBlue() / 255.0F;
- tessellator.setBrightness(180);
- tessellator.setColorRGBA_F(f11 * f7, f12 * f7, f13 * f7, 1.0F);
- tessellator.addVertex(0.0D, f4, 0.0D);
- tessellator.addVertex(0.0D, f4, 1.0D);
- tessellator.addVertex(1.0D, f4, 1.0D);
- tessellator.addVertex(1.0D, f4, 0.0D);
- tessellator.draw();
- GL11.glPopMatrix();
- GL11.glMatrixMode(GL11.GL_MODELVIEW);
- }
- GL11.glDisable(GL11.GL_BLEND);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_S);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_T);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_R);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_Q);
- GL11.glEnable(GL11.GL_LIGHTING);
- }
-
- private static FloatBuffer func_147525_a(float p_147525_1_, float p_147525_2_, float p_147525_3_, float p_147525_4_) {
- field_147528_b.clear();
- field_147528_b.put(p_147525_1_).put(p_147525_2_).put(p_147525_3_).put(p_147525_4_);
- field_147528_b.flip();
- return field_147528_b;
- }
-
- public static void drawArrow(int x, int y, boolean side) {
- mc.renderEngine.bindTexture(miscHuds);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0f);
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x, y, 0.0F, 0, 10, side ? 0 : 22, 38);
- }
-
- public static void drawChanceBar(int x, int y, int chance) {
- mc.renderEngine.bindTexture(miscHuds);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0f);
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x, y, 0.0F, 0, 0, 57, 6);
- int chancePercentage = Math.max(0, (int)((chance / 100.f) * 55.0D));
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x + 1, y + 1, 0.0F, 0, 6, 55, 4);
- Color color = new Color(Color.HSBtoRGB((chance) / 360.0f, ((float)Math.sin((ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks) * 0.2D) + 1.0F) * 0.3F + 0.4F, 1.0f));
- GL11.glColor4ub((byte)color.getRed(), (byte)color.getGreen(), (byte)color.getBlue(), (byte)255);
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x + 1, y + 1, 0.0F, 0, 6, Math.min(55, chancePercentage), 4);
- }
-
- public static void renderPoolManaBar(int x, int y, int color, float alpha, int mana) {
- Minecraft mc = Minecraft.getMinecraft();
- int poolCount = (int)Math.floor(mana / 1000000.0D);
- if(poolCount < 0)
- poolCount = 0;
- int onePoolMana = mana - (poolCount * 1000000);
- String strPool = poolCount + "x";
- int xc = x - mc.fontRenderer.getStringWidth(strPool) / 2;
- int yc = y;
- GL11.glPushMatrix();
- GL11.glTranslatef(xc + 42.0f, yc + 5.0f, 0.0f);
- RenderHelper.enableGUIStandardItemLighting();
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, new ItemStack(ModBlocks.pool), 0, 0);
- RenderHelper.disableStandardItemLighting();
- GL11.glTranslatef(18.0f, 5.0f, 300.0f);
- mc.fontRenderer.drawString(strPool, 0, 0, color);
- GL11.glPopMatrix();
- if((poolCount * 1000000) == mana)
- onePoolMana = poolCount * 1000000;
- HUDHandler.renderManaBar(x, y, color, alpha, onePoolMana, 1000000);
- }
-
- public static void drawPoolManaHUD(ScaledResolution res, String name, int mana, int maxMana, int color) {
- Minecraft mc = Minecraft.getMinecraft();
- int poolCount = (int)Math.floor(mana / 1000000.0D);
- int maxPoolCount = (int)Math.floor(maxMana / 1000000.0D);
- if(poolCount < 0)
- poolCount = 0;
- if(maxPoolCount < 0)
- maxPoolCount = 0;
- int onePoolMana = mana - (poolCount * 1000000);
- String strPool = poolCount + "x / " + maxPoolCount + "x";
- int xc = res.getScaledWidth() / 2 - mc.fontRenderer.getStringWidth(strPool) / 2 - 3;
- int yc = res.getScaledHeight() / 2;
- GL11.glPushMatrix();
- GL11.glTranslatef(xc - 6.0f, yc + 30.0f, 0.0f);
- RenderHelper.enableGUIStandardItemLighting();
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, new ItemStack(ModBlocks.pool), 0, 0);
- RenderHelper.disableStandardItemLighting();
- GL11.glTranslatef(18.0f, 4.5f, 300.0f);
- mc.fontRenderer.drawStringWithShadow(strPool, 0, 0, color);
- GL11.glPopMatrix();
- if((poolCount * 1000000) == mana)
- onePoolMana = poolCount * 1000000;
- HUDHandler.drawSimpleManaHUD(color, onePoolMana, 1000000, name, res);
- }
-
- public static void setLightmapTextureCoords() {
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- }
-
- public static Vector3 setRotation(float angel, float vX, float vY, float vZ, Vector3 v3) {
- Vector3 rVec = new Vector3(vX, vY, vZ);
- Vector3 rVec1 = v3.copy().normalize();
- double rAngel = Math.toRadians(angel) * 0.5f;
- double sin = Math.sin(rAngel);
- double x = rVec.x * sin;
- double y = rVec.y * sin;
- double z = rVec.z * sin;
- rAngel = Math.cos(rAngel);
- double d = -x * rVec1.x - y * rVec1.y - z * rVec1.z;
- double d1 = rAngel * rVec1.x + y * rVec1.z - z * rVec1.y;
- double d2 = rAngel * rVec1.y - x * rVec1.z + z * rVec1.x;
- double d3 = rAngel * rVec1.z + x * rVec1.y - y * rVec1.x;
- v3.x = d1 * rAngel - d * x - d2 * z + d3 * y;
- v3.y = d2 * rAngel - d * y + d1 * z - d3 * x;
- v3.z = d3 * rAngel - d * z - d1 * y + d2 * x;
- return v3;
- }
-
- public static Color getCorporeaRuneColor(int posX, int posY, int posZ, int meta) {
- double time = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- time += (new Random((posX ^ posY ^ posZ))).nextInt(360);
- float sin = (float)(Math.sin(time / 20.0f) * 0.15f) - 0.15f;
- int color = 0;
- switch(meta) {
- case 0:
- color = Color.HSBtoRGB(0.0f, 0.0f, 0.54f + (sin / 1.2f));
- break;
- case 1:
- color = Color.HSBtoRGB(0.688f, 0.93f, 0.96f + sin - 0.15f);
- break;
- case 2:
- color = Color.HSBtoRGB(0.983f, 0.99f, 1.0f + sin - 0.15f);
- break;
- case 3:
- color = Color.HSBtoRGB(0.319f, 0.92f, 0.95f + sin - 0.15f);
- break;
- case 4:
- color = Color.HSBtoRGB(0.536f, 0.53f, 0.92f + sin - 0.15f);
- break;
- }
- return new Color(color);
- }
-
- public static void renderIcon(IIcon icon, int light) {
- Tessellator tessellator = Tessellator.instance;
- float f = icon.getMinU();
- float f1 = icon.getMaxU();
- float f2 = icon.getMinV();
- float f3 = icon.getMaxV();
- float f4 = 1.0F;
- float f5 = 0.5F;
- float f6 = 0.25F;
- tessellator.startDrawingQuads();
- tessellator.setNormal(0.0F, 1.0F, 0.0F);
- tessellator.addVertexWithUV((0.0F - f5), (0.0F - f6), 0.0D, f, f3);
- tessellator.addVertexWithUV((f4 - f5), (0.0F - f6), 0.0D, f1, f3);
- tessellator.addVertexWithUV((f4 - f5), (f4 - f6), 0.0D, f1, f2);
- tessellator.addVertexWithUV((0.0F - f5), (f4 - f6), 0.0D, f, f2);
- tessellator.draw();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c3/b0fa38aacbad001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c3/b0fa38aacbad001c1d59e42be7477558
deleted file mode 100644
index 6c11cfa..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c3/b0fa38aacbad001c1d59e42be7477558
+++ /dev/null
@@ -1,137 +0,0 @@
-package ab.common.block;
-
-import static net.minecraftforge.common.util.ForgeDirection.UP;
-
-import java.util.List;
-import java.util.Random;
-import ab.api.AdvancedBotanyAPI;
-import ab.api.TerraFarmlandList;
-import ab.common.lib.register.RecipeListAB;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockBush;
-import net.minecraft.block.BlockCrops;
-import net.minecraft.block.BlockFarmland;
-import net.minecraft.block.IGrowable;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.renderer.texture.IIconRegister;
-import net.minecraft.entity.EntityLivingBase;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.IIcon;
-import net.minecraft.world.IBlockAccess;
-import net.minecraft.world.World;
-import net.minecraftforge.common.EnumPlantType;
-import net.minecraftforge.common.IPlantable;
-import net.minecraftforge.common.util.ForgeDirection;
-import vazkii.botania.api.lexicon.ILexiconable;
-import vazkii.botania.api.lexicon.LexiconEntry;
-
-public class BlockTerraFarmland extends Block implements ILexiconable {
-
- private IIcon icon;
-
- public BlockTerraFarmland() {
- super(Material.ground);
- this.setTickRandomly(true);
- this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.9375F, 1.0F);
- this.setBlockName("terraFarmland");
- this.setLightOpacity(255);
- }
-
- public boolean canSustainPlant(IBlockAccess world, int x, int y, int z, ForgeDirection direction, IPlantable plantable) {
- Block plant = plantable.getPlant(world, x, y + 1, z);
- return plant != Blocks.cactus && plant != Blocks.reeds;
- }
-
- public void updateTick(World world, int x, int y, int z, Random rand) {
- if(world.isRemote)
- return;
- Block block = world.getBlock(x, y + 1, z);
- int meta = world.getBlockMetadata(x, y + 1, z);
- if(block instanceof BlockCrops) {
- if(meta == 7) {
- refreshSeed(world, x, y, z, block, meta);
- return;
- }
- } else if(block instanceof IPlantable) {
- for(TerraFarmlandList fSeed : AdvancedBotanyAPI.farmlandList) {
- int meta1 = fSeed.getMeta();
- Block block1 = fSeed.getBlock();
- if(block != block1)
- continue;
- if(meta == meta1) {
- refreshSeed(world, x, y, z, block1, meta1);
- return;
- }
- }
- } else {
- world.setBlock(x, y, z, Blocks.dirt);
- }
- }
-
- private void refreshSeed(World world, int x, int y, int z, Block block, int meta) {
- List items = world.getEntitiesWithinAABB(EntityItem.class, AxisAlignedBB.getBoundingBox(x - 4, y - 4, z - 4, x + 4, y + 4, z + 4));
- if(!items.isEmpty() && items.size() > 4)
- return;
- IPlantable seed = (IPlantable)block;
- List list = block.getDrops(world, x, y + 1, z, meta, 0);
- for(ItemStack stack : list) {
- if(stack == null)
- continue;
- else if(stack.getItem() == seed) {
- if(stack.stackSize > 1)
- stack.stackSize -= 1;
- } else {
- stack.stackSize = Math.min(64, (int)(stack.stackSize * 3.5f));
- }
- }
- for(ItemStack stack : list) {
- if(stack == null)
- continue;
- EntityItem itemEnt = new EntityItem(world, x + 0.5f, y + 1, z + 0.5f, stack);
- world.spawnEntityInWorld(itemEnt);
- }
- world.setBlock(x, y + 1, z, block, 0, 3);
- }
-
- public AxisAlignedBB getCollisionBoundingBoxFromPool(World p_149668_1_, int p_149668_2_, int p_149668_3_, int p_149668_4_) {
- return AxisAlignedBB.getBoundingBox((double)(p_149668_2_ + 0), (double)(p_149668_3_ + 0), (double)(p_149668_4_ + 0), (double)(p_149668_2_ + 1), (double)(p_149668_3_ + 1), (double)(p_149668_4_ + 1));
- }
-
- public boolean isOpaqueCube() {
- return false;
- }
-
- public boolean renderAsNormalBlock() {
- return false;
- }
-
- public Item getItemDropped(int p_149650_1_, Random p_149650_2_, int p_149650_3_) {
- return Blocks.dirt.getItemDropped(0, p_149650_2_, p_149650_3_);
- }
-
- @SideOnly(Side.CLIENT)
- public Item getItem(World p_149694_1_, int p_149694_2_, int p_149694_3_, int p_149694_4_) {
- return Item.getItemFromBlock(Blocks.dirt);
- }
-
- @SideOnly(Side.CLIENT)
- public IIcon getIcon(int p_149691_1_, int p_149691_2_) {
- return p_149691_1_ == 1 ? icon : Blocks.dirt.getIcon(0, 0);
- }
-
- @SideOnly(Side.CLIENT)
- public void registerBlockIcons(IIconRegister reg) {
- icon = reg.registerIcon("ab:terraFarmland");
- }
-
- public LexiconEntry getEntry(World world, int x, int y, int z, EntityPlayer player, ItemStack lexicon) {
- return RecipeListAB.terraHoe;
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c4/c0b6c1b891b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c4/c0b6c1b891b1001c19bf8a91ac37238b
deleted file mode 100644
index 2eaec94..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c4/c0b6c1b891b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,84 +0,0 @@
-package ab.client.core.handler;
-
-import java.awt.Color;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.armor.ItemNebulaArmor;
-import ab.common.item.equipment.armor.ItemNebulaHelm;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.ItemRenderer;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.texture.TextureMap;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraftforge.client.event.RenderPlayerEvent;
-import vazkii.botania.api.item.IPhantomInkable;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class PlayerRendererHandler {
-
- @SubscribeEvent
- public void onPlayerRender(RenderPlayerEvent.Specials.Post event) {
- EntityPlayer player = event.entityPlayer;
- ItemStack item = player.getCurrentArmor(3);
- if(item != null && item.getItem() instanceof ItemNebulaHelm) {
- Item helm = player.getCurrentArmor(3).getItem();
- boolean hasPhantomInk = helm instanceof IPhantomInkable && ((IPhantomInkable)helm).hasPhantomInk(item);
- if(!hasPhantomInk && ((ItemNebulaHelm)helm).enableCosmicFace(item)) {
- float angelX = event.renderer.modelBipedMain.bipedHead.rotateAngleX * 180.0F / (float)Math.PI;
- float angelY = event.renderer.modelBipedMain.bipedHead.rotateAngleY * 180.0F / (float)Math.PI;
- GL11.glPushMatrix();
- if(player.isSneaking())
- GL11.glTranslatef(event.renderer.modelBipedMain.bipedHead.rotationPointX * 0.0625f, event.renderer.modelBipedMain.bipedHead.rotationPointY * 0.0625f, 0.0f);
- GL11.glRotatef(angelY, 0.0F, 1.0F, 0.0F);
- GL11.glRotatef(angelX, 1.0F, 0.0F, 0.0F);
- renderCosmicFace();
- GL11.glPopMatrix();
- }
- }
- }
-
- private void renderCosmicFace() {
- double worldTime = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- GL11.glPushMatrix();
- GL11.glEnable(GL11.GL_TEXTURE_2D);
- GL11.glDisable(2912);
- GL11.glDisable(2884);
-
- GL11.glPushMatrix();
- GL11.glScalef(0.5f, 0.4f, 0.4f);
- GL11.glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
- GL11.glTranslatef(-0.5f, -0.8675f, 0.0f);
- GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
- ClientHelper.renderCosmicBackground();
- GL11.glPopMatrix();
-
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- (Minecraft.getMinecraft()).renderEngine.bindTexture(TextureMap.locationItemsTexture);
- GL11.glTranslatef(-0.2F, -0.35F, -0.25F);
- GL11.glScalef(0.4f, 0.4f, 0.4f);
- float f = ItemNebulaArmor.nebulaEyes.getMinU();
- float f1 = ItemNebulaArmor.nebulaEyes.getMaxU();
- float f2 = ItemNebulaArmor.nebulaEyes.getMinV();
- float f3 = ItemNebulaArmor.nebulaEyes.getMaxV();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float r = color.getRed() / 510.0F;
- float g = color.getGreen() / 510.0F;
- float b = color.getBlue() / 510.0F;
- GL11.glColor4f(0.5f + r, 0.5f + g, 0.5f + b, 0.685f + (float)Math.sin(worldTime / 50.0D) * 0.175F);
- ItemRenderer.renderItemIn2D(Tessellator.instance, f1, f2, f, f3, ItemNebulaArmor.nebulaEyes.getIconWidth(), ItemNebulaArmor.nebulaEyes.getIconHeight(), 0.03125F);
- GL11.glDisable(3042);
- GL11.glEnable(32826);
- GL11.glPopMatrix();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c5/300383b206c0001c1965b122d2f8f403 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c5/300383b206c0001c1965b122d2f8f403
new file mode 100644
index 0000000..052720c
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c5/300383b206c0001c1965b122d2f8f403
@@ -0,0 +1,157 @@
+package ab.common.item.relic;
+
+import java.awt.Color;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.common.core.handler.NetworkHandler;
+import ab.common.lib.register.ItemListAB;
+import net.minecraft.block.Block;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.util.MathHelper;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.api.mana.ManaItemHandler;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class ItemSphereNavigation extends ItemModRelic {
+
+ public static final int rangeSearch = 16;
+ public static final int maxCooldown = 112;
+ public static final int manaCost = 1750;
+
+ public ItemSphereNavigation() {
+ super("sphereNavigation");
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int pos, boolean equipped) {
+ super.onUpdate(stack, world, entity, pos, equipped);
+ if(entity instanceof EntityPlayer) {
+ EntityPlayer player = (EntityPlayer)entity;
+ if(!world.isRemote && getFindBlock(stack) != null && canWork(stack) && ManaItemHandler.requestManaExactForTool(stack, player, manaCost, true)) {
+ setMaxTick(stack);
+ NetworkHandler.sendPacketToFindBlocks((EntityPlayerMP)player, getFindBlock(stack), getFindMeta(stack));
+ }
+ }
+ }
+
+ public static void findBlocks(World world, Block findBlock, int findMeta, EntityPlayer player) {
+ if(world.isRemote) {
+ ItemStack renderStack = null;
+ int maxFindedBlocks = 32;
+ int findedBlocks = 0;
+ label1703:
+ for(int y = -rangeSearch * 2; y < rangeSearch; y++) {
+ for(int x = -rangeSearch; x < rangeSearch; x++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks)) || world.rand.nextBoolean())
+ continue;
+ for(int z = -rangeSearch; z < rangeSearch; z++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks)) || world.rand.nextBoolean())
+ continue;
+ else if(findedBlocks >= maxFindedBlocks)
+ break label1703;
+ int posX = MathHelper.floor_double(player.posX) + x;
+ int posY = MathHelper.floor_double(player.posY) + y;
+ int posZ = MathHelper.floor_double(player.posZ) + z;
+ if(posY < 0)
+ continue;
+ Block block = world.getBlock(posX, posY, posZ);
+ if(!Block.isEqualTo(block, findBlock))
+ continue;
+ int meta = world.getBlockMetadata(posX, posY, posZ);
+ if(meta == findMeta) {
+ if(renderStack == null)
+ renderStack = getRenderStackForBlock(world, block, meta, posX, posY, posZ);
+ findedBlocks++;
+ float maxAge = 2.7f + (0.5f * (float)(Math.random()));
+ Botania.proxy.setWispFXDepthTest(false);
+ Botania.proxy.setWispFXDistanceLimit(false);
+ float far = 120.0f - (((Math.abs(x) + Math.min(rangeSearch, Math.abs(y)) + Math.abs(z)) / (rangeSearch * 4.0f)) * 120.0f);
+ far *= far / 100.0f;
+ Color color = new Color(Color.HSBtoRGB(far / 360.0f, 0.9f + (float)(Math.random() * 0.1f), 1.0f));
+ for(int i = 0; i < 11; i++)
+ Botania.proxy.wispFX(world, posX + 0.5f + (Math.random() - 0.5f), posY + 0.5f + (Math.random() - 0.5f), posZ + 0.5f + (Math.random() - 0.5f), color.getRed() / 100.0f, color.getGreen() / 100.0f, color.getBlue() / 100.0f, 0.3f + (float)(Math.random() * 0.25f), 0.0f, maxAge);
+ Botania.proxy.setWispFXDistanceLimit(true);
+ Botania.proxy.setWispFXDepthTest(true);
+ }
+ }
+ }
+ }
+ if(renderStack != null)
+ ItemsRemainingRender.set(renderStack, "íàéäåíî: " + findedBlocks);
+ }
+ }
+
+ public static ItemStack getRenderStackForBlock(World world, Block block, int meta, int x, int y, int z) {
+ if(block != null) {
+ Item item = Item.getItemFromBlock(block);
+ if(item != null) {
+ ItemStack findStack = new ItemStack(block, 1, meta);
+ if(findStack != null)
+ return findStack;
+ } else {
+ Item item1 = block.getItem(world, x, y, z);
+ if(item1 != null) {
+ ItemStack findStack = new ItemStack(item1, 1, meta);
+ if(findStack != null)
+ return findStack;
+ }
+ }
+ }
+ return null;
+ }
+
+ public boolean onItemUse(ItemStack stack, EntityPlayer p, World world, int x, int y, int z, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
+ if(p.isSneaking()) {
+ Block block = world.getBlock(x, y, z);
+ if(block != null) {
+ int meta = world.getBlockMetadata(x, y, z);
+ ItemStack findStack = getRenderStackForBlock(world, block, meta, x, y, z);
+ if(findStack != null) {
+ setFindBlock(stack, block, meta);
+ if(world.isRemote)
+ ItemsRemainingRender.set(findStack, findStack.getDisplayName());
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public boolean canWork(ItemStack stack) {
+ int tick = ItemNBTHelper.getInt(stack, "cooldown", 0);
+ if(tick == 0)
+ return true;
+ else if(tick > 0)
+ ItemNBTHelper.setInt(stack, "cooldown", tick - 1);
+ return false;
+ }
+
+ public void setMaxTick(ItemStack stack) {
+ ItemNBTHelper.setInt(stack, "cooldown", maxCooldown);
+ }
+
+ public static void setFindBlock(ItemStack stack, Block block, int meta) {
+ ItemNBTHelper.setInt(stack, "findBlockID", Block.getIdFromBlock(block));
+ ItemNBTHelper.setInt(stack, "findBlockMeta", meta);
+ }
+
+ public static Block getFindBlock(ItemStack stack) {
+ int blockID = ItemNBTHelper.getInt(stack, "findBlockID", 0);
+ if(blockID == 0)
+ return null;
+ else
+ return Block.getBlockById(blockID);
+ }
+
+ public static int getFindMeta(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "findBlockMeta", -1);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c5/d0ba21a839b0001c1746c57a5fe46fd3 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c5/d0ba21a839b0001c1746c57a5fe46fd3
deleted file mode 100644
index e822bb7..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c5/d0ba21a839b0001c1746c57a5fe46fd3
+++ /dev/null
@@ -1,53 +0,0 @@
-package ab.common.item.relic;
-
-import java.lang.reflect.InvocationTargetException;
-import java.util.List;
-
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import cpw.mods.fml.relauncher.ReflectionHelper;
-import net.minecraft.entity.EntityLivingBase;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.item.ItemStack;
-import net.minecraft.world.World;
-import net.minecraftforge.common.MinecraftForge;
-import net.minecraftforge.event.entity.living.LivingDropsEvent;
-
-public class ItemSehrimnirHide extends ItemModRelic {
-
- public static final String[] dropFewItems = new String[] { "dropFewItems", "func_70628_a" };
-
- public ItemSehrimnirHide() {
- super("sehrimnirHide");
- MinecraftForge.EVENT_BUS.register(this);
- }
-
- @SubscribeEvent
- public void onPlayerAttack(LivingDropsEvent event) {
-
-// .invoke(event.entityLiving, new Object[] {true, 5});
-
-
-
- EntityLivingBase liv = event.entityLiving;
- try {
- ReflectionHelper.findMethod(EntityLivingBase.class, liv, dropFewItems, new Class[] {boolean.class, int.class} ).invoke(liv, new Object[] {true, 5});
- } catch (Exception e) {
- e.printStackTrace();
- }
-
-
-// List items = event.drops;
-// World world = event.entityLiving.worldObj;
-// double posX = event.entityLiving.posX;
-// double posY = event.entityLiving.posY;
-// double posZ = event.entityLiving.posZ;
-// for(EntityItem entity : items) {
-// if(!world.isRemote) {
-// ItemStack loot = entity.getEntityItem().copy();
-// loot.stackSize = Math.max(1, (int)(loot.stackSize / 1.5f));
-// EntityItem item = new EntityItem(world, posX, posY, posZ, loot);
-// world.spawnEntityInWorld(item);
-// }
-// }
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c5/e0ff1046ccbd001c1664fb18d0506bc0 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c5/e0ff1046ccbd001c1664fb18d0506bc0
new file mode 100644
index 0000000..5cf4de9
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c5/e0ff1046ccbd001c1664fb18d0506bc0
@@ -0,0 +1,30 @@
+package ab.common.core.handler;
+
+import ab.common.core.proxy.packet.S00PacketHornChargeHud;
+import ab.common.core.proxy.packet.S01PacketFindNearBlocks;
+import ab.common.item.relic.ItemSphereNavigation;
+import cpw.mods.fml.common.network.NetworkRegistry;
+import cpw.mods.fml.common.network.simpleimpl.IMessage;
+import cpw.mods.fml.common.network.simpleimpl.SimpleNetworkWrapper;
+import cpw.mods.fml.relauncher.Side;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.ItemStack;
+
+public class NetworkHandler {
+
+ public static final SimpleNetworkWrapper NETWORK = NetworkRegistry.INSTANCE.newSimpleChannel("advancedBotanyChanel");
+
+ public static void registerPackets() {
+ int id = 0;
+ NETWORK.registerMessage(S00PacketHornChargeHud.class, S00PacketHornChargeHud.class, id++, Side.CLIENT);
+ NETWORK.registerMessage(S01PacketFindNearBlocks.class, S01PacketFindNearBlocks.class, id++, Side.CLIENT);
+ }
+
+ public static void sendPacketToFindBlocks(EntityPlayerMP playerMP, ItemStack stack) {
+ NETWORK.sendTo(new S01PacketFindNearBlocks(playerMP, ItemSphereNavigation.getFindBlock(stack), ItemSphereNavigation.getFindMeta(stack)), playerMP);
+ }
+
+ public static void sendPacketToHornHud(EntityPlayerMP playerMP, short chargeLoot) {
+ NETWORK.sendTo(new S00PacketHornChargeHud(chargeLoot), playerMP);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c6/30de4159a2b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c6/30de4159a2b1001c19bf8a91ac37238b
deleted file mode 100644
index 10a449a..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c6/30de4159a2b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,84 +0,0 @@
-package ab.client.core.handler;
-
-import java.awt.Color;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.armor.ItemNebulaArmor;
-import ab.common.item.equipment.armor.ItemNebulaHelm;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.ItemRenderer;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.texture.TextureMap;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraftforge.client.event.RenderPlayerEvent;
-import vazkii.botania.api.item.IPhantomInkable;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class PlayerRendererHandler {
-
- @SubscribeEvent
- public void onPlayerRender(RenderPlayerEvent.Specials.Pre event) {
- EntityPlayer player = event.entityPlayer;
- ItemStack item = player.getCurrentArmor(3);
- if(item != null && item.getItem() instanceof ItemNebulaHelm) {
- Item helm = player.getCurrentArmor(3).getItem();
- boolean hasPhantomInk = helm instanceof IPhantomInkable && ((IPhantomInkable)helm).hasPhantomInk(item);
- if(!hasPhantomInk && ((ItemNebulaHelm)helm).enableCosmicFace(item)) {
- float angelX = event.renderer.modelBipedMain.bipedHead.rotateAngleX * 180.0F / (float)Math.PI;
- float angelY = event.renderer.modelBipedMain.bipedHead.rotateAngleY * 180.0F / (float)Math.PI;
- GL11.glPushMatrix();
- if(player.isSneaking())
- GL11.glTranslatef(event.renderer.modelBipedMain.bipedHead.rotationPointX * 0.0625f, event.renderer.modelBipedMain.bipedHead.rotationPointY * 0.0625f, 0.0f);
- GL11.glRotatef(angelY, 0.0F, 1.0F, 0.0F);
- GL11.glRotatef(angelX, 1.0F, 0.0F, 0.0F);
- renderCosmicFace();
- GL11.glPopMatrix();
- }
- }
- }
-
- private void renderCosmicFace() {
- double worldTime = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- GL11.glPushMatrix();
- GL11.glEnable(GL11.GL_TEXTURE_2D);
- GL11.glDisable(2884);
-
- GL11.glPushMatrix();
- GL11.glScalef(0.5f, 0.4f, 0.4f);
- GL11.glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
- GL11.glTranslatef(-0.5f, -0.8675f, 0.0f);
- GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
- ClientHelper.renderCosmicBackground();
- GL11.glPopMatrix();
-
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- (Minecraft.getMinecraft()).renderEngine.bindTexture(TextureMap.locationItemsTexture);
- GL11.glTranslatef(-0.2F, -0.35F, -0.25F);
- GL11.glScalef(0.4f, 0.4f, 0.4f);
- float f = ItemNebulaArmor.nebulaEyes.getMinU();
- float f1 = ItemNebulaArmor.nebulaEyes.getMaxU();
- float f2 = ItemNebulaArmor.nebulaEyes.getMinV();
- float f3 = ItemNebulaArmor.nebulaEyes.getMaxV();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float r = color.getRed() / 510.0F;
- float g = color.getGreen() / 510.0F;
- float b = color.getBlue() / 510.0F;
- GL11.glColor4f(0.5f + r, 0.5f + g, 0.5f + b, 0.685f + (float)Math.sin(worldTime / 50.0D) * 0.175F);
- ItemRenderer.renderItemIn2D(Tessellator.instance, f1, f2, f, f3, ItemNebulaArmor.nebulaEyes.getIconWidth(), ItemNebulaArmor.nebulaEyes.getIconHeight(), 0.03125F);
- GL11.glDisable(3042);
- GL11.glEnable(2884);
- GL11.glEnable(32826);
- GL11.glPopMatrix();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c6/40751013ceb0001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c6/40751013ceb0001c19bf8a91ac37238b
deleted file mode 100644
index 286fe74..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c6/40751013ceb0001c19bf8a91ac37238b
+++ /dev/null
@@ -1,126 +0,0 @@
-package ab.common.item.equipment;
-
-import java.awt.Color;
-
-import ab.client.core.ClientHelper;
-import ab.common.core.handler.ConfigABHandler;
-import ab.common.item.ItemMod;
-import net.minecraft.block.Block;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.Minecraft;
-import net.minecraft.entity.Entity;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.EnumAction;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.ChunkCoordinates;
-import net.minecraft.util.MathHelper;
-import net.minecraft.util.Vec3;
-import net.minecraft.world.World;
-import net.minecraft.world.chunk.Chunk;
-import vazkii.botania.api.mana.IManaUsingItem;
-import vazkii.botania.api.mana.ManaItemHandler;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.core.helper.Vector3;
-
-public class ItemNebulaRod extends ItemMod implements IManaUsingItem {
-
- public ItemNebulaRod() {
- super("nebulaRod");
- this.setMaxStackSize(1);
- this.setNoRepair();
- this.setMaxDamage(100);
- }
-
- public boolean usesMana(ItemStack stack) {
- return true;
- }
-
- public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
- if(stack.getItemDamage() == 0)
- player.setItemInUse(stack, getMaxItemUseDuration(stack));
- return stack;
- }
-
- public EnumAction getItemUseAction(ItemStack par1ItemStack) {
- return EnumAction.bow;
- }
-
- public void onUpdate(ItemStack stack, World world, Entity player, int par4, boolean par5) {
- if(!world.isRemote && player instanceof EntityPlayer && player.ticksExisted % ConfigABHandler.nebulaWandCooldownTick == 0 && stack.getItemDamage() > 0 && ManaItemHandler.requestManaExactForTool(stack, (EntityPlayer)player, 140, true))
- stack.setItemDamage(stack.getItemDamage() - 1);
- }
-
- public void onUsingTick(ItemStack stack, EntityPlayer p, int time) {
- time = this.getMaxItemUseDuration(stack) - time;
- boolean isFinish = time > 80;
- if(time > 110 && !p.isSneaking()) {
- if(!p.capabilities.isCreativeMode)
- stack.setItemDamage(100);
- p.stopUsingItem();
- if(!p.worldObj.isRemote) {
- Vec3 vec3 = p.getLook(1.0F).normalize();
- MathHelper.floor_double(time);
- int limitXZ = ConfigABHandler.limitXZCoords;
- int posX = MathHelper.floor_double(p.posX + vec3.xCoord * 256);
- int posY = MathHelper.floor_double(p.posY);
- int posZ = MathHelper.floor_double(p.posZ + vec3.zCoord * 256);
- ChunkCoordinates chunkcoordinates = new ChunkCoordinates(Math.min(Math.max(posX, -(limitXZ - 1)), limitXZ - 1), posY, Math.min(Math.max(posZ, -(limitXZ - 1)), limitXZ - 1));
- int topY = getTopBlock(p.worldObj, posX, posZ);
- chunkcoordinates.posY = topY == -1 ? posY : topY;
- ((EntityPlayerMP)p).playerNetServerHandler.setPlayerLocation(chunkcoordinates.posX + 0.5D, chunkcoordinates.posY + 1.6D, chunkcoordinates.posZ + 0.5D, p.rotationYaw, p.rotationPitch);
- }
- }
- if(p.worldObj.isRemote) {
- int ticks = Math.min(100, time);
- int totalSpiritCount = (int)Math.max(3, ticks / 100.0f * 18);
- double tickIncrement = 360.0D / totalSpiritCount;
- int speed = 8;
- double wticks = (ticks * speed) - tickIncrement;
- double r = Math.sin((ticks) / 100.0D) * Math.max(0.75f, 1.4D * ticks / 100.0f);
- Vec3 look = p.getLookVec();
- float yawOffset = Minecraft.getMinecraft().thePlayer.getDisplayName() == p.getDisplayName() ? 0.0f : 1.62f;
- Vector3 l = new Vector3(look.xCoord, look.yCoord + yawOffset, look.zCoord);
- Vector3 player = Vector3.fromEntity(p).add(0.0f, 0.0f, 0.0f);
- Vector3 v3 = new Vector3();
- for(int i = 0; i < totalSpiritCount; i++) {
- float size = Math.max(0.215f, ticks / 100.0f);
- v3.set(Math.sin(wticks * Math.PI / 180.0D) / 1.825f * r, Math.cos(wticks * Math.PI / 180.0D) * r, 0.8f);
- ClientHelper.setRotation(p.rotationPitch, 1.0f, 0.0f, 0.0f, v3);
- ClientHelper.setRotation(-p.rotationYaw, 0.0f, 1.0f, 0.0f, v3);
- v3.add(l.multiply(1.0f)).add(player);
- wticks += tickIncrement;
- int color = p.worldObj.rand.nextBoolean() ? 0x931fec : 0x4b1682;
- float hsb[] = Color.RGBtoHSB(color & 255, color >> 8 & 255, color >> 16 & 255, null);
- int color1 = Color.HSBtoRGB(hsb[0], hsb[1], ticks / 100.0f);
- float[] colorsfx = { (color1 & 255) / 255.0f, (color1 >> 8 & 255) / 255.0f, (color1 >> 16 & 255) / 255.0f };
- float motionSpeed = 0.25f * Math.min(1.0f, (time - 80) / 30.0f);
- Botania.proxy.wispFX(p.worldObj, v3.x, v3.y, v3.z, colorsfx[0], colorsfx[1], colorsfx[2], 0.3F * size, isFinish ? (float)(look.xCoord * -1) * motionSpeed : 0.0f, isFinish ? (float)(look.yCoord * -1) * motionSpeed : 0.0f, isFinish ? (float)(look.zCoord * -1) * motionSpeed : 0.0f, 0.3F);
- Botania.proxy.wispFX(p.worldObj, v3.x, v3.y, v3.z, colorsfx[0], colorsfx[1], colorsfx[2], (float)(Math.random() * 0.1F + 0.05F) * size, (float)(Math.random() - 0.5D) * 0.05F, (float)(Math.random() - 0.5D) * 0.05F, (float)(Math.random() - 0.5D) * 0.05F, 0.4F);
- }
- }
- }
-
- public int getMaxItemUseDuration(ItemStack par1ItemStack) {
- return 72000;
- }
-
- public boolean isFull3D() {
- return true;
- }
-
- public int getTopBlock(World world, int posX, int posZ) {
- Chunk chunk = world.getChunkFromBlockCoords(posX, posZ);
- int x = posX;
- int z = posZ;
- int k = chunk.getTopFilledSegment() + 15;
- posX &= 15;
- for(posZ &= 15; k > 0; --k) {
- Block block = chunk.getBlock(posX, k, posZ);
- if(!block.isAir(world, x, k, z) && block != Blocks.bedrock && block.isAir(world, x, k + 1, z) && block.isAir(world, x, k + 2, z))
- return k + 1;
- }
- return -1;
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c6/50963e5dc8ad001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c6/50963e5dc8ad001c1d59e42be7477558
deleted file mode 100644
index ac6ece3..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c6/50963e5dc8ad001c1d59e42be7477558
+++ /dev/null
@@ -1,5 +0,0 @@
-package ab.common.core;
-
-public class CommonHelper {
-
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c7/008e6e4e16b0001c18a5eba32f24fffa b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c7/008e6e4e16b0001c18a5eba32f24fffa
deleted file mode 100644
index fa1bad8..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c7/008e6e4e16b0001c18a5eba32f24fffa
+++ /dev/null
@@ -1,79 +0,0 @@
-package ab.common.block.subtile;
-
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.world.World;
-import vazkii.botania.api.subtile.SubTileGenerating;
-
-public class SubTileArdentAzarcissus extends SubTileGenerating {
-
- public static final String playerName = "ArdentAzarcissus#21sda2gaj91*21df#111sfq3jrns@#";
- int cooldown;
- int workMana = 400;
-
- public void onUpdate() {
- super.onUpdate();
- World world = this.supertile.getWorldObj();
- int posX = this.supertile.xCoord;
- int posY = this.supertile.yCoord;
- int posZ = this.supertile.zCoord;
- if(world.isRemote)
- return;
- if(cooldown > 0) {
- cooldown--;
- return;
- }
- boolean needSync = false;
- for(int i = -1; i <= 1; i++)
- for(int f = 0; f < 2; f++)
- for(int j = -1; j <= 1; j++) {
- int x = posX + i;
- int y = posY + f;
- int z = posZ + j;
- TileEntity tile = world.getTileEntity(x, y, z);
- if(tile != null && tile instanceof TileGameBoard) {
- TileGameBoard board = (TileGameBoard)tile;
- if(board.isSingleGame) {
- if(!board.hasGame()) {
- board.setPlayer(playerName, true);
- cooldown = 40;
- } else {
- if(!board.playersName[0].equals(playerName))
- board.playersName[0] = playerName;
- if(board.endGameTick == 0) {
- int winCount = (board.slotChance[0] + board.slotChance[1]) - (board.slotChance[2] + board.slotChance[3]);
- if(winCount > 0) {
- this.mana = Math.min(this.getMaxMana(), this.mana + (workMana * winCount));
- needSync = true;
- }
- board.finishGame(false);
- } else
- board.dropDice(playerName);
- cooldown = 120;
- }
- }
- }
- }
- if(needSync)
- sync();
- }
-
- public int getMaxMana() {
- return 16000;
- }
-
- public int getColor() {
- return 0xd2cdb2;
- }
-
- public void writeToPacketNBT(NBTTagCompound cmp) {
- super.writeToPacketNBT(cmp);
- cmp.setInteger("cooldown", this.cooldown);
- }
-
- public void readFromPacketNBT(NBTTagCompound cmp) {
- super.readFromPacketNBT(cmp);
- this.cooldown = cmp.getInteger("cooldown");
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c7/40d9d017f9ac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c7/40d9d017f9ac001c1d59e42be7477558
deleted file mode 100644
index 4f57bdf..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c7/40d9d017f9ac001c1d59e42be7477558
+++ /dev/null
@@ -1,197 +0,0 @@
-package ab.common.block.tile;
-
-import java.util.List;
-
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.ChatComponentTranslation;
-import net.minecraft.util.ChatStyle;
-import net.minecraft.util.EnumChatFormatting;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.common.block.tile.TileMod;
-
-public class TileGameBoard extends TileMod {
-
- public String[] playersName = new String[] { "", "" };
- public byte[] slotChance = new byte[] { 0, 0, 0, 0 };
- protected int botTick = -1;
- public int endGameTick = -1;
- protected boolean requestUpdate;
- public boolean isSingleGame = false;
- public int clientTick[] = new int[] { 0, 0, 0, 0 };
-
- public void updateEntity() {
- if(botTick > 0)
- botTick--;
- if(endGameTick > 0)
- endGameTick--;
- if(!worldObj.isRemote)
- updateServer();
- else
- updateAnimationTicks();
- }
-
- public void updateAnimationTicks() {
- for(int i = 0; i < slotChance.length; i++)
- if(slotChance[i] > 0)
- clientTick[i]++;
- else
- clientTick[i] = 0;
- }
-
- protected void updateServer() {
- if(hasGame() && endGameTick == 0)
- finishGame();
- if(requestUpdate)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- boolean hasUpdate = false;
- if(isSingleGame && botTick == 0 && hasGame()) {
- for(int i = 2; i < 4; i++) {
- if(slotChance[i] == 0) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = -1;
- hasUpdate = true;
- break;
- }
- }
- }
- requestUpdate = hasUpdate;
- }
-
- public void setPlayer(EntityPlayer player) {
- if(isSingleGame) {
- playersName[0] = player.getCommandSenderName();
- playersName[1] = "";
- requestUpdate = true;
- botTick = 8;
- } else {
- if(playersName[0].isEmpty())
- playersName[0] = player.getCommandSenderName();
- else if(!playersName[0].equals(player.getCommandSenderName()))
- playersName[1] = player.getCommandSenderName();
- requestUpdate = true;
- }
- }
-
- public boolean dropDice(EntityPlayer player) {
- if(isSingleGame) {
- if(player.getCommandSenderName().equals(playersName[0]) && botTick == -1) {
- boolean isLastDice = false;
- for(int i = 0; i < 2; i++) {
- if(slotChance[i] == 0 && !worldObj.isRemote) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = 18;
- requestUpdate = true;
- if(i == 1)
- isLastDice = true;
- break;
- }
- }
- if(isLastDice)
- endGameTick = 28;
- return true;
- }
- } else {
- for(int i = 0; i < playersName.length; i++) {
- if(player.getCommandSenderName().equals(playersName[i])) {
- for(int j = i * 2; j < (i + 1) * 2; j++) {
- if(slotChance[j] == 0 && !worldObj.isRemote) {
- slotChance[j] = (byte)(worldObj.rand.nextInt(6) + 1);
- requestUpdate = true;
- if(hasFullDice())
- endGameTick = 28;
- break;
- }
- }
- return true;
- }
- }
- }
- return false;
- }
-
- public boolean hasFullDice() {
- boolean hasFull = false;
- for(int i = 0; i < slotChance.length; i++) {
- if(!(slotChance[i] > 0))
- return false;
- hasFull = slotChance[i] > 0;
- }
- return hasFull;
- }
-
- public boolean hasGame() {
- if(isSingleGame)
- return !playersName[0].isEmpty();
- else
- for(int i = 0; i < playersName.length; i++)
- if(!playersName[i].isEmpty())
- return true;
- return false;
- }
-
- public void finishGame() {
- if(worldObj.isRemote)
- return;
- if(isSingleGame) {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won");
- else if((slotChance[0] + slotChance[1]) == (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " not win");
- else
- sendNearMessage(playersName[0] + " you Lose!");
- resetGame();
- } else {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won!");
- else if((slotChance[0] + slotChance[1]) == (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " " + playersName[1] + "we are not win");
- else
- sendNearMessage(playersName[1] + " you Won!");
- resetGame();
- }
- }
-
- public void sendNearMessage(String text) {
- List players = this.worldObj.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(this.xCoord, this.yCoord, this.zCoord, (this.xCoord + 1), (this.yCoord + 1), (this.zCoord + 1)).expand(3.5f, 3.5f, 3.5f));
- for(EntityPlayer player : players) {
- if(player != null)
- player.addChatMessage((new ChatComponentTranslation(text, new Object[] {})).setChatStyle((new ChatStyle()).setColor(EnumChatFormatting.DARK_GREEN)));
- }
- }
-
- public void resetGame() {
- playersName[0] = "";
- playersName[1] = "";
- for(int i = 0; i < slotChance.length; i++)
- slotChance[i] = 0;
- botTick = -1;
- endGameTick = -1;
- requestUpdate = true;
- }
-
- public void writeCustomNBT(NBTTagCompound cmp) {
- super.writeCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- cmp.setString("playerName" + i, playersName[i]);
- cmp.setByteArray("slotChance", slotChance);
- cmp.setInteger("botTick", botTick);
- cmp.setInteger("endGameTick", endGameTick);
- cmp.setBoolean("requestUpdate", requestUpdate);
- cmp.setBoolean("isSingleGame", isSingleGame);
- }
-
- public void readCustomNBT(NBTTagCompound cmp) {
- super.readCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- playersName[i] = cmp.getString("playerName" + i);
- botTick = cmp.getInteger("botTick");
- endGameTick = cmp.getInteger("endGameTick");
- slotChance = cmp.getByteArray("slotChance");
- requestUpdate = cmp.getBoolean("requestUpdate");
- isSingleGame = cmp.getBoolean("isSingleGame");
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c8/802532029fb1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c8/802532029fb1001c19bf8a91ac37238b
deleted file mode 100644
index 380be0a..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c8/802532029fb1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,243 +0,0 @@
-package ab.client.core;
-
-import java.awt.Color;
-import java.nio.FloatBuffer;
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.gui.ScaledResolution;
-import net.minecraft.client.renderer.ActiveRenderInfo;
-import net.minecraft.client.renderer.GLAllocation;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.RenderHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.entity.RenderItem;
-import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.IIcon;
-import net.minecraft.util.ResourceLocation;
-import net.minecraft.util.StatCollector;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-import vazkii.botania.client.core.handler.HUDHandler;
-import vazkii.botania.common.block.ModBlocks;
-import vazkii.botania.common.core.helper.Vector3;
-
-public class ClientHelper {
-
- public static final ResourceLocation miscHuds = new ResourceLocation("ab:textures/misc/miscHuds.png");
- private static final ResourceLocation field_147529_c = new ResourceLocation("textures/environment/end_sky.png");
- private static final ResourceLocation field_147526_d = new ResourceLocation("textures/entity/end_portal.png");
- private static final Random field_147527_e = new Random(31100L);
- public static Minecraft mc = Minecraft.getMinecraft();
- private static FloatBuffer field_147528_b = GLAllocation.createDirectFloatBuffer(16);
-
- public static void renderCosmicBackground() {
- GL11.glDisable(GL11.GL_LIGHTING);
- field_147527_e.setSeed(31100L);
- float f4 = 0.24F;
- for (int i = 0; i < 16; i++) {
- GL11.glPushMatrix();
- float f5 = (16 - i);
- float f6 = 0.0625F;
- float f7 = 1.0F / (f5 + 1.0F);
- if (i == 0) {
- mc.renderEngine.bindTexture(field_147529_c);
- f7 = 0.1F;
- f5 = 65.0F;
- f6 = 0.125F;
- GL11.glEnable(GL11.GL_BLEND);
- GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
- }
- if (i == 1) {
- mc.renderEngine.bindTexture(field_147526_d);
- GL11.glEnable(GL11.GL_BLEND);
- GL11.glBlendFunc(GL11.GL_ONE, GL11.GL_ONE);
- f6 = 0.5F;
- }
- GL11.glTranslatef(0.0f, 1.5f, 0.0f);
- GL11.glTexGeni(GL11.GL_S, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_OBJECT_LINEAR);
- GL11.glTexGeni(GL11.GL_T, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_OBJECT_LINEAR);
- GL11.glTexGeni(GL11.GL_R, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_OBJECT_LINEAR);
- GL11.glTexGeni(GL11.GL_Q, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_EYE_LINEAR);
- GL11.glTexGen(GL11.GL_S, GL11.GL_OBJECT_PLANE, func_147525_a(1.0F, 0.0F, 0.0F, 0.0F));
- GL11.glTexGen(GL11.GL_T, GL11.GL_OBJECT_PLANE, func_147525_a(0.0F, 0.0F, 1.0F, 0.0F));
- GL11.glTexGen(GL11.GL_R, GL11.GL_OBJECT_PLANE, func_147525_a(0.0F, 0.0F, 0.0F, 1.0F));
- GL11.glTexGen(GL11.GL_Q, GL11.GL_EYE_PLANE, func_147525_a(0.0F, 1.0F, 0.0F, 0.0F));
- GL11.glEnable(GL11.GL_TEXTURE_GEN_S);
- GL11.glEnable(GL11.GL_TEXTURE_GEN_T);
- GL11.glEnable(GL11.GL_TEXTURE_GEN_R);
- GL11.glEnable(GL11.GL_TEXTURE_GEN_Q);
- GL11.glPopMatrix();
- GL11.glMatrixMode(GL11.GL_TEXTURE);
- GL11.glPushMatrix();
- GL11.glLoadIdentity();
- GL11.glTranslatef(0.0F, (float)(Minecraft.getSystemTime() % 20000L) / 20000.0F, 0.0F);
- GL11.glScalef(f6, f6, f6);
- GL11.glTranslatef(0.5F, 0.5F, 0.0F);
- GL11.glRotatef((i * i * 4321 + i * 9) * 2.0F, 0.0F, 0.0F, 1.0F);
- GL11.glTranslatef(-0.5F, -0.5F, 0.0F);
- Tessellator tessellator = Tessellator.instance;
- tessellator.startDrawingQuads();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float f11 = color.getRed() / 255.0F;
- float f12 = color.getGreen() / 255.0F;
- float f13 = color.getBlue() / 255.0F;
- tessellator.setBrightness(180);
- tessellator.setColorRGBA_F(f11 * f7, f12 * f7, f13 * f7, 1.0F);
- tessellator.addVertex(0.0D, f4, 0.0D);
- tessellator.addVertex(0.0D, f4, 1.0D);
- tessellator.addVertex(1.0D, f4, 1.0D);
- tessellator.addVertex(1.0D, f4, 0.0D);
- tessellator.draw();
- GL11.glPopMatrix();
- GL11.glMatrixMode(GL11.GL_MODELVIEW);
- }
- GL11.glDisable(GL11.GL_BLEND);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_S);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_T);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_R);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_Q);
- }
-
- private static FloatBuffer func_147525_a(float p_147525_1_, float p_147525_2_, float p_147525_3_, float p_147525_4_) {
- field_147528_b.clear();
- field_147528_b.put(p_147525_1_).put(p_147525_2_).put(p_147525_3_).put(p_147525_4_);
- field_147528_b.flip();
- return field_147528_b;
- }
-
- public static void drawArrow(int x, int y, boolean side) {
- mc.renderEngine.bindTexture(miscHuds);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0f);
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x, y, 0.0F, 0, 10, side ? 0 : 22, 38);
- }
-
- public static void drawChanceBar(int x, int y, int chance) {
- mc.renderEngine.bindTexture(miscHuds);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0f);
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x, y, 0.0F, 0, 0, 57, 6);
- int chancePercentage = Math.max(0, (int)((chance / 100.f) * 55.0D));
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x + 1, y + 1, 0.0F, 0, 6, 55, 4);
- Color color = new Color(Color.HSBtoRGB((chance) / 360.0f, ((float)Math.sin((ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks) * 0.2D) + 1.0F) * 0.3F + 0.4F, 1.0f));
- GL11.glColor4ub((byte)color.getRed(), (byte)color.getGreen(), (byte)color.getBlue(), (byte)255);
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x + 1, y + 1, 0.0F, 0, 6, Math.min(55, chancePercentage), 4);
- }
-
- public static void renderPoolManaBar(int x, int y, int color, float alpha, int mana) {
- Minecraft mc = Minecraft.getMinecraft();
- int poolCount = (int)Math.floor(mana / 1000000.0D);
- if(poolCount < 0)
- poolCount = 0;
- int onePoolMana = mana - (poolCount * 1000000);
- String strPool = poolCount + "x";
- int xc = x - mc.fontRenderer.getStringWidth(strPool) / 2;
- int yc = y;
- GL11.glPushMatrix();
- GL11.glTranslatef(xc + 42.0f, yc + 5.0f, 0.0f);
- RenderHelper.enableGUIStandardItemLighting();
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, new ItemStack(ModBlocks.pool), 0, 0);
- RenderHelper.disableStandardItemLighting();
- GL11.glTranslatef(18.0f, 5.0f, 300.0f);
- mc.fontRenderer.drawString(strPool, 0, 0, color);
- GL11.glPopMatrix();
- if((poolCount * 1000000) == mana)
- onePoolMana = poolCount * 1000000;
- HUDHandler.renderManaBar(x, y, color, alpha, onePoolMana, 1000000);
- }
-
- public static void drawPoolManaHUD(ScaledResolution res, String name, int mana, int maxMana, int color) {
- Minecraft mc = Minecraft.getMinecraft();
- int poolCount = (int)Math.floor(mana / 1000000.0D);
- int maxPoolCount = (int)Math.floor(maxMana / 1000000.0D);
- if(poolCount < 0)
- poolCount = 0;
- if(maxPoolCount < 0)
- maxPoolCount = 0;
- int onePoolMana = mana - (poolCount * 1000000);
- String strPool = poolCount + "x / " + maxPoolCount + "x";
- int xc = res.getScaledWidth() / 2 - mc.fontRenderer.getStringWidth(strPool) / 2 - 3;
- int yc = res.getScaledHeight() / 2;
- GL11.glPushMatrix();
- GL11.glTranslatef(xc - 6.0f, yc + 30.0f, 0.0f);
- RenderHelper.enableGUIStandardItemLighting();
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, new ItemStack(ModBlocks.pool), 0, 0);
- RenderHelper.disableStandardItemLighting();
- GL11.glTranslatef(18.0f, 4.5f, 300.0f);
- mc.fontRenderer.drawStringWithShadow(strPool, 0, 0, color);
- GL11.glPopMatrix();
- if((poolCount * 1000000) == mana)
- onePoolMana = poolCount * 1000000;
- HUDHandler.drawSimpleManaHUD(color, onePoolMana, 1000000, name, res);
- }
-
- public static void setLightmapTextureCoords() {
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- }
-
- public static Vector3 setRotation(float angel, float vX, float vY, float vZ, Vector3 v3) {
- Vector3 rVec = new Vector3(vX, vY, vZ);
- Vector3 rVec1 = v3.copy().normalize();
- double rAngel = Math.toRadians(angel) * 0.5f;
- double sin = Math.sin(rAngel);
- double x = rVec.x * sin;
- double y = rVec.y * sin;
- double z = rVec.z * sin;
- rAngel = Math.cos(rAngel);
- double d = -x * rVec1.x - y * rVec1.y - z * rVec1.z;
- double d1 = rAngel * rVec1.x + y * rVec1.z - z * rVec1.y;
- double d2 = rAngel * rVec1.y - x * rVec1.z + z * rVec1.x;
- double d3 = rAngel * rVec1.z + x * rVec1.y - y * rVec1.x;
- v3.x = d1 * rAngel - d * x - d2 * z + d3 * y;
- v3.y = d2 * rAngel - d * y + d1 * z - d3 * x;
- v3.z = d3 * rAngel - d * z - d1 * y + d2 * x;
- return v3;
- }
-
- public static Color getCorporeaRuneColor(int posX, int posY, int posZ, int meta) {
- double time = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- time += (new Random((posX ^ posY ^ posZ))).nextInt(360);
- float sin = (float)(Math.sin(time / 20.0f) * 0.15f) - 0.15f;
- int color = 0;
- switch(meta) {
- case 0:
- color = Color.HSBtoRGB(0.0f, 0.0f, 0.54f + (sin / 1.2f));
- break;
- case 1:
- color = Color.HSBtoRGB(0.688f, 0.93f, 0.96f + sin - 0.15f);
- break;
- case 2:
- color = Color.HSBtoRGB(0.983f, 0.99f, 1.0f + sin - 0.15f);
- break;
- case 3:
- color = Color.HSBtoRGB(0.319f, 0.92f, 0.95f + sin - 0.15f);
- break;
- case 4:
- color = Color.HSBtoRGB(0.536f, 0.53f, 0.92f + sin - 0.15f);
- break;
- }
- return new Color(color);
- }
-
- public static void renderIcon(IIcon icon, int light) {
- Tessellator tessellator = Tessellator.instance;
- float f = icon.getMinU();
- float f1 = icon.getMaxU();
- float f2 = icon.getMinV();
- float f3 = icon.getMaxV();
- float f4 = 1.0F;
- float f5 = 0.5F;
- float f6 = 0.25F;
- tessellator.startDrawingQuads();
- tessellator.setNormal(0.0F, 1.0F, 0.0F);
- tessellator.addVertexWithUV((0.0F - f5), (0.0F - f6), 0.0D, f, f3);
- tessellator.addVertexWithUV((f4 - f5), (0.0F - f6), 0.0D, f1, f3);
- tessellator.addVertexWithUV((f4 - f5), (f4 - f6), 0.0D, f1, f2);
- tessellator.addVertexWithUV((0.0F - f5), (f4 - f6), 0.0D, f, f2);
- tessellator.draw();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c9/408d58956cc1001c11e398ea97007cb4 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c9/408d58956cc1001c11e398ea97007cb4
new file mode 100644
index 0000000..2754fc0
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c9/408d58956cc1001c11e398ea97007cb4
@@ -0,0 +1,5 @@
+package ab.common.core.proxy.packet;
+
+public class S02PacketSpaceBladeDash {
+
+}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c9/e07e28c5e0ac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c9/e07e28c5e0ac001c1d59e42be7477558
deleted file mode 100644
index 7a45576..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/c9/e07e28c5e0ac001c1d59e42be7477558
+++ /dev/null
@@ -1,165 +0,0 @@
-package ab.common.block.tile;
-
-import java.util.List;
-
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.ChatComponentTranslation;
-import net.minecraft.util.ChatStyle;
-import net.minecraft.util.EnumChatFormatting;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-
-public class TileGameBoard extends TileInventory {
-
- protected String[] playersName = new String[] { "", "" };
- public byte[] slotChance = new byte[] { 0, 0, 0, 0 };
- protected int botTick = -1;
- public int endGameTick = -1;
- protected boolean requestUpdate;
- public boolean isSingleGame = true;
- public int clientTick[] = new int[] { 0, 0, 0, 0};
-
- public void updateEntity() {
- if(botTick > 0)
- botTick--;
- if(endGameTick > 0)
- endGameTick--;
- if(!worldObj.isRemote)
- updateServer();
- else
- updateClient();
- }
-
- protected void updateClient() {
- for(int i = 0; i < slotChance.length; i++)
- if(slotChance[i] > 0)
- clientTick[i]++;
- else
- clientTick[i] = 0;
- }
-
- protected void updateServer() {
- if(requestUpdate)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- boolean hasUpdate = false;
- if(isSingleGame && botTick == 0 && hasGame()) {
- for(int i = 2; i < 4; i++) {
- if(slotChance[i] == 0) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = -1;
- hasUpdate = true;
- break;
- }
- }
- }
- if(hasGame() && endGameTick == 0)
- finishGame();
- requestUpdate = hasUpdate;
- }
-
- public void setPlayer(EntityPlayer player) {
- if(isSingleGame) {
- playersName[0] = player.getCommandSenderName();
- playersName[1] = "";
- requestUpdate = true;
- botTick = 8;
- }
- }
-
- public boolean dropDice(EntityPlayer player) {
- if(isSingleGame) {
- System.out.println(playersName[0]);
- if(player.getCommandSenderName() == playersName[0] && botTick <= 0) {
- boolean isLastDice = false;
- for(int i = 0; i < 2; i++) {
- if(slotChance[i] == 0 && !worldObj.isRemote) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = 18;
- requestUpdate = true;
- if(i == 1)
- isLastDice = true;
- break;
- }
- }
- if(isLastDice)
- endGameTick = 28;
- return true;
- }
- }
- return false;
- }
-
- public boolean hasGame() {
- if(isSingleGame)
- return !playersName[0].isEmpty();
- return !playersName[0].isEmpty() && !playersName[1].isEmpty();
- }
-
- public void finishGame() {
- if(worldObj.isRemote)
- return;
- if(isSingleGame) {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won");
- else
- sendNearMessage(playersName[0] + " you Lose!");
- resetGame();
- requestUpdate = true;
- }
- }
-
- public void sendNearMessage(String text) {
- List players = this.worldObj.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(this.xCoord, this.yCoord, this.zCoord, (this.xCoord + 1), (this.yCoord + 1), (this.zCoord + 1)).expand(3.5f, 3.5f, 3.5f));
- for(EntityPlayer player : players) {
- if(player != null)
- player.addChatMessage((new ChatComponentTranslation(text, new Object[] {})).setChatStyle((new ChatStyle()).setColor(EnumChatFormatting.DARK_GREEN)));
- }
- }
-
- public void resetGame() {
- playersName[0] = "";
- playersName[1] = "";
- for(int i = 0; i < slotChance.length; i++)
- slotChance[i] = 0;
- requestUpdate = true;
- botTick = -1;
- endGameTick = -1;
- }
-
- public void writeCustomNBT(NBTTagCompound cmp) {
- super.writeCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- cmp.setString("playerName" + i, playersName[i]);
- cmp.setByteArray("slotChance", slotChance);
- cmp.setInteger("botTick", botTick);
- cmp.setInteger("endGameTick", endGameTick);
- cmp.setBoolean("requestUpdate", requestUpdate);
- cmp.setBoolean("isSingleGame", isSingleGame);
- }
-
- public void readCustomNBT(NBTTagCompound cmp) {
- super.readCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- playersName[i] = cmp.getString("playerName" + i);
- botTick = cmp.getInteger("botTick");
- endGameTick = cmp.getInteger("endGameTick");
- slotChance = cmp.getByteArray("slotChance");
- requestUpdate = cmp.getBoolean("requestUpdate");
- isSingleGame = cmp.getBoolean("isSingleGame");
- }
-
- public int getInventoryStackLimit() {
- return 1;
- }
-
- public int getSizeInventory() {
- return 4;
- }
-
- public String getInventoryName() {
- return "inv.gameBoard";
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/cb/50660f7bb0b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/cb/50660f7bb0b1001c19bf8a91ac37238b
deleted file mode 100644
index 2f60979..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/cb/50660f7bb0b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,86 +0,0 @@
-package ab.common.item;
-
-import java.util.List;
-
-import ab.common.core.CommonHelper;
-import ab.common.lib.register.BlockListAB;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.renderer.texture.IIconRegister;
-import net.minecraft.entity.Entity;
-import net.minecraft.entity.item.EntityFallingBlock;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.IIcon;
-import net.minecraft.world.World;
-import vazkii.botania.common.core.helper.ItemNBTHelper;
-
-public class ItemAntigravityCharm extends ItemMod {
-
- public static IIcon[] icons;
-
- public ItemAntigravityCharm() {
- super("antigravityCharm");
- this.setMaxStackSize(1);
- this.setNoRepair();
- }
-
- public void registerIcons(IIconRegister ir) {
- icons = new IIcon[2];
- for(int i = 0; i < icons.length; i++) {
- icons[i] = icons[i] = ir.registerIcon("ab:" + "itemAntigravityCharm_" + i);
- }
- }
-
- @SideOnly(Side.CLIENT)
- public IIcon getIcon(ItemStack stack, int pass) {
- int iconID = Math.min(1, pass);
- return this.icons[iconID];
- }
-
- public boolean requiresMultipleRenderPasses() {
- return true;
- }
-
- public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
- if(player.isSneaking())
- ItemNBTHelper.setBoolean(stack, "isActive", !ItemNBTHelper.getBoolean(stack, "isActive", true));
- return stack;
- }
-
- public void onUpdate(ItemStack stack, World world, Entity entity, int par4, boolean inHand) {
- if(entity instanceof EntityPlayer) {
- EntityPlayer player = (EntityPlayer)entity;
- if(ItemNBTHelper.getBoolean(stack, "isActive", true)) {
- double posX = entity.posX;
- double posY = entity.posY;
- double posZ = entity.posZ;
- final AxisAlignedBB asis = AxisAlignedBB.getBoundingBox(posX, posY, posZ, posX + 1, posY + 1, posZ + 1).expand(8, 8, 8);
- final List listEntity = (List)world.getEntitiesWithinAABB((Class)EntityFallingBlock.class, asis);
- for(EntityFallingBlock fallBlock : listEntity) {
- int x = (int) (fallBlock.posX >= 0 ? fallBlock.posX : fallBlock.posX - 1);
- int y = (int) fallBlock.posY;
- int z = (int) (fallBlock.posZ >= 0 ? fallBlock.posZ : fallBlock.posZ - 1);
- Block block = fallBlock.func_145805_f();
- fallBlock.setInvisible(true);
- if(!world.isRemote) {
- if(CommonHelper.setBlock(world, block, fallBlock.field_145814_a, x, y, z, (EntityPlayerMP)player, true))
- CommonHelper.setBlock(world, BlockListAB.blockAntigravitation, 0, x, y - 1, z, (EntityPlayerMP)player, true);
- }
- fallBlock.setDead();
- }
- }
- }
- }
-
- private void setBlock(World world, int x, int y, int z, Block block, int meta) {
- if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256) {
- world.setBlock(x, y, z, block, meta, 3);
- }
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/cb/6084edbf63c1001c11e398ea97007cb4 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/cb/6084edbf63c1001c11e398ea97007cb4
new file mode 100644
index 0000000..14fabdb
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/cb/6084edbf63c1001c11e398ea97007cb4
@@ -0,0 +1,196 @@
+package ab.common.item.relic;
+
+import java.awt.Color;
+import java.util.List;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.common.core.handler.NetworkHandler;
+import ab.common.lib.register.ItemListAB;
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
+import net.minecraft.block.Block;
+import net.minecraft.client.renderer.texture.IIconRegister;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.MathHelper;
+import net.minecraft.util.StatCollector;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.api.mana.ManaItemHandler;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class ItemSphereNavigation extends ItemModRelic {
+
+ public static IIcon[] icons;
+ public static final int rangeSearch = 16;
+ public static final int maxCooldown = 158;
+ public static final int manaCost = 1750;
+
+ public ItemSphereNavigation() {
+ super("sphereNavigation");
+ }
+
+ public void registerIcons(IIconRegister ir) {
+ icons = new IIcon[5];
+ icons[0] = ir.registerIcon("ab:sphereNavigation");
+ icons[1] = ir.registerIcon("ab:sphereNavigation_hasblock");
+ icons[2] = ir.registerIcon("ab:sphereNavigation_nonBlock");
+ icons[3] = ir.registerIcon("ab:sphereNavigation_off");
+ icons[4] = ir.registerIcon("ab:sphereNavigation_on");
+ }
+
+ @SideOnly(Side.CLIENT)
+ public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean par4) {
+ if(stack.getItemDamage() == 1) {
+ addStringToTooltip(StatCollector.translateToLocal("botaniamisc.active"), list);
+ } else {
+ addStringToTooltip(StatCollector.translateToLocal("botaniamisc.inactive"), list);
+ }
+ }
+
+ void addStringToTooltip(String s, List tooltip) {
+ tooltip.add(s.replaceAll("&", "\u00A7"));
+ }
+
+ public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
+ if(getFindBlock(stack) != null && player.isSneaking()) {
+ int dmg = stack.getItemDamage();
+ stack.setItemDamage((dmg ^ 0xFFFFFFFF) & 0x1);
+ world.playSoundAtEntity(player, "random.orb", 0.3F, 0.1F);
+ }
+ return stack;
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int pos, boolean equipped) {
+ super.onUpdate(stack, world, entity, pos, equipped);
+ if(entity instanceof EntityPlayer) {
+ EntityPlayer player = (EntityPlayer)entity;
+ if(!world.isRemote && stack.getItemDamage() == 0 && getFindBlock(stack) != null && canWork(stack) && ManaItemHandler.requestManaExactForTool(stack, player, manaCost, true)) {
+ setMaxTick(stack);
+ NetworkHandler.sendPacketToFindBlocks((EntityPlayerMP)player, getFindBlock(stack), getFindMeta(stack));
+ }
+ }
+ }
+
+ public static void findBlocks(World world, Block findBlock, int findMeta, EntityPlayer player) {
+ if(world.isRemote) {
+ ItemStack renderStack = null;
+ int maxFindedBlocks = 32;
+ int findedBlocks = 0;
+ label1703:
+ for(int y = -rangeSearch * 2; y < rangeSearch; y++) {
+ for(int x = -rangeSearch; x < rangeSearch; x++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks)) || world.rand.nextBoolean())
+ continue;
+ for(int z = -rangeSearch; z < rangeSearch; z++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks)) || world.rand.nextBoolean())
+ continue;
+ else if(findedBlocks >= maxFindedBlocks)
+ break label1703;
+ int posX = MathHelper.floor_double(player.posX) + x;
+ int posY = MathHelper.floor_double(player.posY) + y;
+ int posZ = MathHelper.floor_double(player.posZ) + z;
+ if(posY < 0)
+ continue;
+ Block block = world.getBlock(posX, posY, posZ);
+ if(!Block.isEqualTo(block, findBlock))
+ continue;
+ int meta = world.getBlockMetadata(posX, posY, posZ);
+ if(meta == findMeta) {
+ if(renderStack == null)
+ renderStack = getRenderStackForBlock(world, block, meta, posX, posY, posZ);
+ findedBlocks++;
+ float maxAge = 2.7f + (0.5f * (float)(Math.random()));
+ Botania.proxy.setWispFXDepthTest(false);
+ Botania.proxy.setWispFXDistanceLimit(false);
+ float far = 120.0f - (((Math.abs(x) + Math.min(rangeSearch, Math.abs(y)) + Math.abs(z)) / (rangeSearch * 4.0f)) * 120.0f);
+ if(far <= 40)
+ far *= 0.15f;
+ Color color = new Color(Color.HSBtoRGB(far / 360.0f, 0.9f + (float)(Math.random() * 0.1f), 1.0f));
+ for(int i = 0; i < 11; i++)
+ Botania.proxy.wispFX(world, posX + 0.5f + (Math.random() - 0.5f), posY + 0.5f + (Math.random() - 0.5f), posZ + 0.5f + (Math.random() - 0.5f), color.getRed() / 100.0f, color.getGreen() / 100.0f, color.getBlue() / 100.0f, 0.3f + (float)(Math.random() * 0.25f), 0.0f, maxAge);
+ Botania.proxy.setWispFXDistanceLimit(true);
+ Botania.proxy.setWispFXDepthTest(true);
+ }
+ }
+ }
+ }
+ if(renderStack != null)
+ ItemsRemainingRender.set(renderStack, "íàéäåíî: " + findedBlocks);
+ }
+ }
+
+ public static ItemStack getRenderStackForBlock(World world, Block block, int meta, int x, int y, int z) {
+ if(block != null) {
+ Item item = Item.getItemFromBlock(block);
+ if(item != null) {
+ ItemStack findStack = new ItemStack(block, 1, meta);
+ if(findStack != null)
+ return findStack;
+ } else {
+ Item item1 = block.getItem(world, x, y, z);
+ if(item1 != null) {
+ ItemStack findStack = new ItemStack(item1, 1, meta);
+ if(findStack != null)
+ return findStack;
+ }
+ }
+ }
+ return null;
+ }
+
+ public boolean onItemUse(ItemStack stack, EntityPlayer p, World world, int x, int y, int z, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
+ if(p.isSneaking()) {
+ Block block = world.getBlock(x, y, z);
+ if(block != null) {
+ int meta = world.getBlockMetadata(x, y, z);
+ ItemStack findStack = getRenderStackForBlock(world, block, meta, x, y, z);
+ if(findStack != null) {
+ setFindBlock(stack, block, meta);
+ if(world.isRemote)
+ ItemsRemainingRender.set(findStack, findStack.getDisplayName());
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public boolean canWork(ItemStack stack) {
+ int tick = ItemNBTHelper.getInt(stack, "cooldown", 0);
+ if(tick == 0)
+ return true;
+ else if(tick > 0)
+ ItemNBTHelper.setInt(stack, "cooldown", tick - 1);
+ return false;
+ }
+
+ public void setMaxTick(ItemStack stack) {
+ ItemNBTHelper.setInt(stack, "cooldown", maxCooldown);
+ }
+
+ public static void setFindBlock(ItemStack stack, Block block, int meta) {
+ ItemNBTHelper.setInt(stack, "findBlockID", Block.getIdFromBlock(block));
+ ItemNBTHelper.setInt(stack, "findBlockMeta", meta);
+ }
+
+ public static Block getFindBlock(ItemStack stack) {
+ int blockID = ItemNBTHelper.getInt(stack, "findBlockID", 0);
+ if(blockID == 0)
+ return null;
+ else
+ return Block.getBlockById(blockID);
+ }
+
+ public static int getFindMeta(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "findBlockMeta", -1);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/cc/50895392e1ac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/cc/50895392e1ac001c1d59e42be7477558
deleted file mode 100644
index de565bd..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/cc/50895392e1ac001c1d59e42be7477558
+++ /dev/null
@@ -1,165 +0,0 @@
-package ab.common.block.tile;
-
-import java.util.List;
-
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.ChatComponentTranslation;
-import net.minecraft.util.ChatStyle;
-import net.minecraft.util.EnumChatFormatting;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-
-public class TileGameBoard extends TileInventory {
-
- protected String[] playersName = new String[] { "", "" };
- public byte[] slotChance = new byte[] { 0, 0, 0, 0 };
- protected int botTick = -1;
- public int endGameTick = -1;
- protected boolean requestUpdate;
- public boolean isSingleGame = true;
- public int clientTick[] = new int[] { 0, 0, 0, 0};
-
- public void updateEntity() {
- if(botTick > 0)
- botTick--;
- if(endGameTick > 0)
- endGameTick--;
- if(!worldObj.isRemote)
- updateServer();
- else
- updateClient();
- }
-
- protected void updateClient() {
- for(int i = 0; i < slotChance.length; i++)
- if(slotChance[i] > 0)
- clientTick[i]++;
- else
- clientTick[i] = 0;
- }
-
- protected void updateServer() {
- if(requestUpdate)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- boolean hasUpdate = false;
- if(isSingleGame && botTick == 0 && hasGame()) {
- for(int i = 2; i < 4; i++) {
- if(slotChance[i] == 0) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = -1;
- hasUpdate = true;
- break;
- }
- }
- }
- if(hasGame() && endGameTick == 0)
- finishGame();
- requestUpdate = hasUpdate;
- }
-
- public void setPlayer(EntityPlayer player) {
- if(isSingleGame) {
- playersName[0] = player.getCommandSenderName();
- playersName[1] = "";
- requestUpdate = true;
- botTick = 8;
- }
- }
-
- public boolean dropDice(EntityPlayer player) {
- if(isSingleGame) {
- System.out.println(player.getCommandSenderName().equalsIgnoreCase(playersName[0]) && botTick <= 0);
- if(player.getCommandSenderName() == playersName[0] && botTick <= 0) {
- boolean isLastDice = false;
- for(int i = 0; i < 2; i++) {
- if(slotChance[i] == 0 && !worldObj.isRemote) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = 18;
- requestUpdate = true;
- if(i == 1)
- isLastDice = true;
- break;
- }
- }
- if(isLastDice)
- endGameTick = 28;
- return true;
- }
- }
- return false;
- }
-
- public boolean hasGame() {
- if(isSingleGame)
- return !playersName[0].isEmpty();
- return !playersName[0].isEmpty() && !playersName[1].isEmpty();
- }
-
- public void finishGame() {
- if(worldObj.isRemote)
- return;
- if(isSingleGame) {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won");
- else
- sendNearMessage(playersName[0] + " you Lose!");
- resetGame();
- requestUpdate = true;
- }
- }
-
- public void sendNearMessage(String text) {
- List players = this.worldObj.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(this.xCoord, this.yCoord, this.zCoord, (this.xCoord + 1), (this.yCoord + 1), (this.zCoord + 1)).expand(3.5f, 3.5f, 3.5f));
- for(EntityPlayer player : players) {
- if(player != null)
- player.addChatMessage((new ChatComponentTranslation(text, new Object[] {})).setChatStyle((new ChatStyle()).setColor(EnumChatFormatting.DARK_GREEN)));
- }
- }
-
- public void resetGame() {
- playersName[0] = "";
- playersName[1] = "";
- for(int i = 0; i < slotChance.length; i++)
- slotChance[i] = 0;
- requestUpdate = true;
- botTick = -1;
- endGameTick = -1;
- }
-
- public void writeCustomNBT(NBTTagCompound cmp) {
- super.writeCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- cmp.setString("playerName" + i, playersName[i]);
- cmp.setByteArray("slotChance", slotChance);
- cmp.setInteger("botTick", botTick);
- cmp.setInteger("endGameTick", endGameTick);
- cmp.setBoolean("requestUpdate", requestUpdate);
- cmp.setBoolean("isSingleGame", isSingleGame);
- }
-
- public void readCustomNBT(NBTTagCompound cmp) {
- super.readCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- playersName[i] = cmp.getString("playerName" + i);
- botTick = cmp.getInteger("botTick");
- endGameTick = cmp.getInteger("endGameTick");
- slotChance = cmp.getByteArray("slotChance");
- requestUpdate = cmp.getBoolean("requestUpdate");
- isSingleGame = cmp.getBoolean("isSingleGame");
- }
-
- public int getInventoryStackLimit() {
- return 1;
- }
-
- public int getSizeInventory() {
- return 4;
- }
-
- public String getInventoryName() {
- return "inv.gameBoard";
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/cc/a0d122d7eeac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/cc/a0d122d7eeac001c1d59e42be7477558
deleted file mode 100644
index 366dbdd..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/cc/a0d122d7eeac001c1d59e42be7477558
+++ /dev/null
@@ -1,197 +0,0 @@
-package ab.common.block.tile;
-
-import java.util.List;
-
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.ChatComponentTranslation;
-import net.minecraft.util.ChatStyle;
-import net.minecraft.util.EnumChatFormatting;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.common.block.tile.TileMod;
-
-public class TileGameBoard extends TileMod {
-
- public String[] playersName = new String[] { "", "" };
- public byte[] slotChance = new byte[] { 0, 0, 0, 0 };
- protected int botTick = -1;
- public int endGameTick = -1;
- protected boolean requestUpdate;
- public boolean isSingleGame = false;
- public int clientTick[] = new int[] { 0, 0, 0, 0};
-
- public void updateEntity() {
- if(botTick > 0)
- botTick--;
- if(endGameTick > 0)
- endGameTick--;
- if(!worldObj.isRemote)
- updateServer();
- else
- updateClient();
- }
-
- protected void updateClient() {
- for(int i = 0; i < slotChance.length; i++)
- if(slotChance[i] > 0)
- clientTick[i]++;
- else
- clientTick[i] = 0;
- }
-
- protected void updateServer() {
- if(requestUpdate)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- boolean hasUpdate = false;
- if(isSingleGame && botTick == 0 && hasGame()) {
- for(int i = 2; i < 4; i++) {
- if(slotChance[i] == 0) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = -1;
- hasUpdate = true;
- break;
- }
- }
- }
- if(hasGame() && endGameTick == 0)
- finishGame();
- requestUpdate = true;
- }
-
- public void setPlayer(EntityPlayer player) {
- if(isSingleGame) {
- playersName[0] = player.getCommandSenderName();
- playersName[1] = "";
- requestUpdate = true;
- botTick = 8;
- } else {
- if(playersName[0].isEmpty())
- playersName[0] = player.getCommandSenderName();
- else if(!playersName[0].equals(player.getCommandSenderName()))
- playersName[1] = player.getCommandSenderName();
- requestUpdate = true;
- }
- }
-
- public boolean dropDice(EntityPlayer player) {
- if(isSingleGame) {
- if(player.getCommandSenderName().equals(playersName[0]) && botTick == -1) {
- boolean isLastDice = false;
- for(int i = 0; i < 2; i++) {
- if(slotChance[i] == 0 && !worldObj.isRemote) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = 18;
- requestUpdate = true;
- if(i == 1)
- isLastDice = true;
- break;
- }
- }
- if(isLastDice)
- endGameTick = 28;
- return true;
- }
- } else {
- for(int i = 0; i < playersName.length; i++) {
- if(player.getCommandSenderName().equals(playersName[i])) {
- for(int j = i * 2; j < (i + 1) * 2; j++) {
- if(slotChance[j] == 0 && !worldObj.isRemote) {
- slotChance[j] = (byte)(worldObj.rand.nextInt(6) + 1);
- requestUpdate = true;
- if(hasFullDice())
- endGameTick = 28;
- break;
- }
- }
- return true;
- }
- }
- }
- return false;
- }
-
- public boolean hasFullDice() {
- boolean hasFull = false;
- for(int i = 0; i < slotChance.length; i++) {
- if(!(slotChance[i] > 0))
- return false;
- hasFull = slotChance[i] > 0;
- }
- return hasFull;
- }
-
- public boolean hasGame() {
- if(isSingleGame)
- return !playersName[0].isEmpty();
- else
- for(int i = 0; i < playersName.length; i++)
- if(!playersName[i].isEmpty())
- return true;
- return false;
- }
-
- public void finishGame() {
- if(worldObj.isRemote)
- return;
- if(isSingleGame) {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won");
- else if((slotChance[0] + slotChance[1]) == (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " not win");
- else
- sendNearMessage(playersName[0] + " you Lose!");
- resetGame();
- } else {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won!");
- else if((slotChance[0] + slotChance[1]) == (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " " + playersName[1] + "we are not win");
- else
- sendNearMessage(playersName[1] + " you Won!");
- resetGame();
- }
- }
-
- public void sendNearMessage(String text) {
- List players = this.worldObj.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(this.xCoord, this.yCoord, this.zCoord, (this.xCoord + 1), (this.yCoord + 1), (this.zCoord + 1)).expand(3.5f, 3.5f, 3.5f));
- for(EntityPlayer player : players) {
- if(player != null)
- player.addChatMessage((new ChatComponentTranslation(text, new Object[] {})).setChatStyle((new ChatStyle()).setColor(EnumChatFormatting.DARK_GREEN)));
- }
- }
-
- public void resetGame() {
- playersName[0] = "";
- playersName[1] = "";
- for(int i = 0; i < slotChance.length; i++)
- slotChance[i] = 0;
- requestUpdate = true;
- botTick = -1;
- endGameTick = -1;
- }
-
- public void writeCustomNBT(NBTTagCompound cmp) {
- super.writeCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- cmp.setString("playerName" + i, playersName[i]);
- cmp.setByteArray("slotChance", slotChance);
- cmp.setInteger("botTick", botTick);
- cmp.setInteger("endGameTick", endGameTick);
- cmp.setBoolean("requestUpdate", requestUpdate);
- cmp.setBoolean("isSingleGame", isSingleGame);
- }
-
- public void readCustomNBT(NBTTagCompound cmp) {
- super.readCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- playersName[i] = cmp.getString("playerName" + i);
- botTick = cmp.getInteger("botTick");
- endGameTick = cmp.getInteger("endGameTick");
- slotChance = cmp.getByteArray("slotChance");
- requestUpdate = cmp.getBoolean("requestUpdate");
- isSingleGame = cmp.getBoolean("isSingleGame");
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/cd/501a98729fb1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/cd/501a98729fb1001c19bf8a91ac37238b
deleted file mode 100644
index f33aaca..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/cd/501a98729fb1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,242 +0,0 @@
-package ab.client.core;
-
-import java.awt.Color;
-import java.nio.FloatBuffer;
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.gui.ScaledResolution;
-import net.minecraft.client.renderer.ActiveRenderInfo;
-import net.minecraft.client.renderer.GLAllocation;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.RenderHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.entity.RenderItem;
-import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.IIcon;
-import net.minecraft.util.ResourceLocation;
-import net.minecraft.util.StatCollector;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-import vazkii.botania.client.core.handler.HUDHandler;
-import vazkii.botania.common.block.ModBlocks;
-import vazkii.botania.common.core.helper.Vector3;
-
-public class ClientHelper {
-
- public static final ResourceLocation miscHuds = new ResourceLocation("ab:textures/misc/miscHuds.png");
- private static final ResourceLocation field_147529_c = new ResourceLocation("textures/environment/end_sky.png");
- private static final ResourceLocation field_147526_d = new ResourceLocation("textures/entity/end_portal.png");
- private static final Random field_147527_e = new Random(31100L);
- public static Minecraft mc = Minecraft.getMinecraft();
- private static FloatBuffer field_147528_b = GLAllocation.createDirectFloatBuffer(16);
-
- public static void renderCosmicBackground() {
- field_147527_e.setSeed(31100L);
- float f4 = 0.24F;
- for (int i = 0; i < 16; i++) {
- GL11.glPushMatrix();
- float f5 = (16 - i);
- float f6 = 0.0625F;
- float f7 = 1.0F / (f5 + 1.0F);
- if (i == 0) {
- mc.renderEngine.bindTexture(field_147529_c);
- f7 = 0.1F;
- f5 = 65.0F;
- f6 = 0.125F;
- GL11.glEnable(GL11.GL_BLEND);
- GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
- }
- if (i == 1) {
- mc.renderEngine.bindTexture(field_147526_d);
- GL11.glEnable(GL11.GL_BLEND);
- GL11.glBlendFunc(GL11.GL_ONE, GL11.GL_ONE);
- f6 = 0.5F;
- }
- GL11.glTranslatef(0.0f, 1.5f, 0.0f);
- GL11.glTexGeni(GL11.GL_S, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_OBJECT_LINEAR);
- GL11.glTexGeni(GL11.GL_T, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_OBJECT_LINEAR);
- GL11.glTexGeni(GL11.GL_R, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_OBJECT_LINEAR);
- GL11.glTexGeni(GL11.GL_Q, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_EYE_LINEAR);
- GL11.glTexGen(GL11.GL_S, GL11.GL_OBJECT_PLANE, func_147525_a(1.0F, 0.0F, 0.0F, 0.0F));
- GL11.glTexGen(GL11.GL_T, GL11.GL_OBJECT_PLANE, func_147525_a(0.0F, 0.0F, 1.0F, 0.0F));
- GL11.glTexGen(GL11.GL_R, GL11.GL_OBJECT_PLANE, func_147525_a(0.0F, 0.0F, 0.0F, 1.0F));
- GL11.glTexGen(GL11.GL_Q, GL11.GL_EYE_PLANE, func_147525_a(0.0F, 1.0F, 0.0F, 0.0F));
- GL11.glEnable(GL11.GL_TEXTURE_GEN_S);
- GL11.glEnable(GL11.GL_TEXTURE_GEN_T);
- GL11.glEnable(GL11.GL_TEXTURE_GEN_R);
- GL11.glEnable(GL11.GL_TEXTURE_GEN_Q);
- GL11.glPopMatrix();
- GL11.glMatrixMode(GL11.GL_TEXTURE);
- GL11.glPushMatrix();
- GL11.glLoadIdentity();
- GL11.glTranslatef(0.0F, (float)(Minecraft.getSystemTime() % 20000L) / 20000.0F, 0.0F);
- GL11.glScalef(f6, f6, f6);
- GL11.glTranslatef(0.5F, 0.5F, 0.0F);
- GL11.glRotatef((i * i * 4321 + i * 9) * 2.0F, 0.0F, 0.0F, 1.0F);
- GL11.glTranslatef(-0.5F, -0.5F, 0.0F);
- Tessellator tessellator = Tessellator.instance;
- tessellator.startDrawingQuads();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float f11 = color.getRed() / 255.0F;
- float f12 = color.getGreen() / 255.0F;
- float f13 = color.getBlue() / 255.0F;
-// tessellator.setBrightness(180);
- tessellator.setColorRGBA_F(f11 * f7, f12 * f7, f13 * f7, 1.0F);
- tessellator.addVertex(0.0D, f4, 0.0D);
- tessellator.addVertex(0.0D, f4, 1.0D);
- tessellator.addVertex(1.0D, f4, 1.0D);
- tessellator.addVertex(1.0D, f4, 0.0D);
- tessellator.draw();
- GL11.glPopMatrix();
- GL11.glMatrixMode(GL11.GL_MODELVIEW);
- }
- GL11.glDisable(GL11.GL_BLEND);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_S);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_T);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_R);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_Q);
- }
-
- private static FloatBuffer func_147525_a(float p_147525_1_, float p_147525_2_, float p_147525_3_, float p_147525_4_) {
- field_147528_b.clear();
- field_147528_b.put(p_147525_1_).put(p_147525_2_).put(p_147525_3_).put(p_147525_4_);
- field_147528_b.flip();
- return field_147528_b;
- }
-
- public static void drawArrow(int x, int y, boolean side) {
- mc.renderEngine.bindTexture(miscHuds);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0f);
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x, y, 0.0F, 0, 10, side ? 0 : 22, 38);
- }
-
- public static void drawChanceBar(int x, int y, int chance) {
- mc.renderEngine.bindTexture(miscHuds);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0f);
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x, y, 0.0F, 0, 0, 57, 6);
- int chancePercentage = Math.max(0, (int)((chance / 100.f) * 55.0D));
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x + 1, y + 1, 0.0F, 0, 6, 55, 4);
- Color color = new Color(Color.HSBtoRGB((chance) / 360.0f, ((float)Math.sin((ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks) * 0.2D) + 1.0F) * 0.3F + 0.4F, 1.0f));
- GL11.glColor4ub((byte)color.getRed(), (byte)color.getGreen(), (byte)color.getBlue(), (byte)255);
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x + 1, y + 1, 0.0F, 0, 6, Math.min(55, chancePercentage), 4);
- }
-
- public static void renderPoolManaBar(int x, int y, int color, float alpha, int mana) {
- Minecraft mc = Minecraft.getMinecraft();
- int poolCount = (int)Math.floor(mana / 1000000.0D);
- if(poolCount < 0)
- poolCount = 0;
- int onePoolMana = mana - (poolCount * 1000000);
- String strPool = poolCount + "x";
- int xc = x - mc.fontRenderer.getStringWidth(strPool) / 2;
- int yc = y;
- GL11.glPushMatrix();
- GL11.glTranslatef(xc + 42.0f, yc + 5.0f, 0.0f);
- RenderHelper.enableGUIStandardItemLighting();
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, new ItemStack(ModBlocks.pool), 0, 0);
- RenderHelper.disableStandardItemLighting();
- GL11.glTranslatef(18.0f, 5.0f, 300.0f);
- mc.fontRenderer.drawString(strPool, 0, 0, color);
- GL11.glPopMatrix();
- if((poolCount * 1000000) == mana)
- onePoolMana = poolCount * 1000000;
- HUDHandler.renderManaBar(x, y, color, alpha, onePoolMana, 1000000);
- }
-
- public static void drawPoolManaHUD(ScaledResolution res, String name, int mana, int maxMana, int color) {
- Minecraft mc = Minecraft.getMinecraft();
- int poolCount = (int)Math.floor(mana / 1000000.0D);
- int maxPoolCount = (int)Math.floor(maxMana / 1000000.0D);
- if(poolCount < 0)
- poolCount = 0;
- if(maxPoolCount < 0)
- maxPoolCount = 0;
- int onePoolMana = mana - (poolCount * 1000000);
- String strPool = poolCount + "x / " + maxPoolCount + "x";
- int xc = res.getScaledWidth() / 2 - mc.fontRenderer.getStringWidth(strPool) / 2 - 3;
- int yc = res.getScaledHeight() / 2;
- GL11.glPushMatrix();
- GL11.glTranslatef(xc - 6.0f, yc + 30.0f, 0.0f);
- RenderHelper.enableGUIStandardItemLighting();
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, new ItemStack(ModBlocks.pool), 0, 0);
- RenderHelper.disableStandardItemLighting();
- GL11.glTranslatef(18.0f, 4.5f, 300.0f);
- mc.fontRenderer.drawStringWithShadow(strPool, 0, 0, color);
- GL11.glPopMatrix();
- if((poolCount * 1000000) == mana)
- onePoolMana = poolCount * 1000000;
- HUDHandler.drawSimpleManaHUD(color, onePoolMana, 1000000, name, res);
- }
-
- public static void setLightmapTextureCoords() {
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- }
-
- public static Vector3 setRotation(float angel, float vX, float vY, float vZ, Vector3 v3) {
- Vector3 rVec = new Vector3(vX, vY, vZ);
- Vector3 rVec1 = v3.copy().normalize();
- double rAngel = Math.toRadians(angel) * 0.5f;
- double sin = Math.sin(rAngel);
- double x = rVec.x * sin;
- double y = rVec.y * sin;
- double z = rVec.z * sin;
- rAngel = Math.cos(rAngel);
- double d = -x * rVec1.x - y * rVec1.y - z * rVec1.z;
- double d1 = rAngel * rVec1.x + y * rVec1.z - z * rVec1.y;
- double d2 = rAngel * rVec1.y - x * rVec1.z + z * rVec1.x;
- double d3 = rAngel * rVec1.z + x * rVec1.y - y * rVec1.x;
- v3.x = d1 * rAngel - d * x - d2 * z + d3 * y;
- v3.y = d2 * rAngel - d * y + d1 * z - d3 * x;
- v3.z = d3 * rAngel - d * z - d1 * y + d2 * x;
- return v3;
- }
-
- public static Color getCorporeaRuneColor(int posX, int posY, int posZ, int meta) {
- double time = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- time += (new Random((posX ^ posY ^ posZ))).nextInt(360);
- float sin = (float)(Math.sin(time / 20.0f) * 0.15f) - 0.15f;
- int color = 0;
- switch(meta) {
- case 0:
- color = Color.HSBtoRGB(0.0f, 0.0f, 0.54f + (sin / 1.2f));
- break;
- case 1:
- color = Color.HSBtoRGB(0.688f, 0.93f, 0.96f + sin - 0.15f);
- break;
- case 2:
- color = Color.HSBtoRGB(0.983f, 0.99f, 1.0f + sin - 0.15f);
- break;
- case 3:
- color = Color.HSBtoRGB(0.319f, 0.92f, 0.95f + sin - 0.15f);
- break;
- case 4:
- color = Color.HSBtoRGB(0.536f, 0.53f, 0.92f + sin - 0.15f);
- break;
- }
- return new Color(color);
- }
-
- public static void renderIcon(IIcon icon, int light) {
- Tessellator tessellator = Tessellator.instance;
- float f = icon.getMinU();
- float f1 = icon.getMaxU();
- float f2 = icon.getMinV();
- float f3 = icon.getMaxV();
- float f4 = 1.0F;
- float f5 = 0.5F;
- float f6 = 0.25F;
- tessellator.startDrawingQuads();
- tessellator.setNormal(0.0F, 1.0F, 0.0F);
- tessellator.addVertexWithUV((0.0F - f5), (0.0F - f6), 0.0D, f, f3);
- tessellator.addVertexWithUV((f4 - f5), (0.0F - f6), 0.0D, f1, f3);
- tessellator.addVertexWithUV((f4 - f5), (f4 - f6), 0.0D, f1, f2);
- tessellator.addVertexWithUV((0.0F - f5), (f4 - f6), 0.0D, f, f2);
- tessellator.draw();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/ce/40ae240a60c1001c11e398ea97007cb4 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/ce/40ae240a60c1001c11e398ea97007cb4
new file mode 100644
index 0000000..10f0921
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/ce/40ae240a60c1001c11e398ea97007cb4
@@ -0,0 +1,58 @@
+package ab.client.render.item;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.common.item.ItemAntigravityCharm;
+import net.minecraft.client.Minecraft;
+import net.minecraft.client.renderer.ItemRenderer;
+import net.minecraft.client.renderer.OpenGlHelper;
+import net.minecraft.client.renderer.Tessellator;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.IIcon;
+import net.minecraftforge.client.IItemRenderer;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class RenderItemAntigravityCharm implements IItemRenderer {
+
+ public boolean handleRenderType(ItemStack item, IItemRenderer.ItemRenderType type) {
+ return true;
+ }
+
+ public boolean shouldUseRenderHelper(IItemRenderer.ItemRenderType type, ItemStack item, IItemRenderer.ItemRendererHelper helper) {
+ return (helper == IItemRenderer.ItemRendererHelper.ENTITY_ROTATION || helper == IItemRenderer.ItemRendererHelper.ENTITY_BOBBING);
+ }
+
+ public void renderItem(IItemRenderer.ItemRenderType type, ItemStack item, Object... data) {
+ int dmg = item.getItemDamage();
+ IIcon icon = ItemAntigravityCharm.icons[0];
+ IIcon iconIsland = ItemAntigravityCharm.icons[1];
+ GL11.glPushMatrix();
+ if(type == type.INVENTORY) {
+ GL11.glScalef(16, 16, 16);
+ GL11.glRotatef(180, 0, 0, 1);
+ GL11.glTranslatef(-1.0f, -1.0f, 0);
+ } else if(type == type.ENTITY) {
+ GL11.glTranslatef(-0.5F, 0.0F, 0.0F);
+ if (item.isOnItemFrame())
+ GL11.glTranslatef(0.0F, -0.3F, 0.01F);
+ }
+ GL11.glEnable(GL11.GL_BLEND);
+ OpenGlHelper.glBlendFunc(770, 771, 1, 0);
+ GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
+ ItemRenderer.renderItemIn2D(Tessellator.instance, icon.getMaxU(), icon.getMinV(), icon.getMinU(), icon.getMaxV(), icon.getIconWidth(), icon.getIconHeight(), 0.0625F);
+ double time = (double) Minecraft.getSystemTime();
+ if(type != type.INVENTORY) {
+ GL11.glScalef(1.0f, 1.0f, 1.05f);
+ GL11.glTranslated(0.0f, 0.0f, 0.0015625f);
+ }
+ if(ItemNBTHelper.getBoolean(item, "isActive", true)) {
+ GL11.glTranslated(0, Math.cos(time / 650.0) * 0.0075 -0.05f, 0.0f);
+ } else {
+ GL11.glTranslated(0.0f, -0.125f, 0.0f);
+ }
+ ItemRenderer.renderItemIn2D(Tessellator.instance, iconIsland.getMaxU(), iconIsland.getMinV(), iconIsland.getMinU(), iconIsland.getMaxV(), iconIsland.getIconWidth(), iconIsland.getIconHeight(), 0.0625F);
+ GL11.glDisable(GL11.GL_BLEND);
+ GL11.glPopMatrix();
+ }
+}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/cf/0052a2f002c0001c1965b122d2f8f403 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/cf/0052a2f002c0001c1965b122d2f8f403
new file mode 100644
index 0000000..ab693a7
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/cf/0052a2f002c0001c1965b122d2f8f403
@@ -0,0 +1,158 @@
+package ab.common.item.relic;
+
+import java.awt.Color;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.common.core.handler.NetworkHandler;
+import ab.common.lib.register.ItemListAB;
+import net.minecraft.block.Block;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.util.MathHelper;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.api.mana.ManaItemHandler;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class ItemSphereNavigation extends ItemModRelic {
+
+ public static final int rangeSearch = 16;
+ public static final int maxCooldown = 112;
+ public static final int manaCost = 1750;
+
+ public ItemSphereNavigation() {
+ super("sphereNavigation");
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int pos, boolean equipped) {
+ super.onUpdate(stack, world, entity, pos, equipped);
+ if(entity instanceof EntityPlayer) {
+ EntityPlayer player = (EntityPlayer)entity;
+ if(!world.isRemote && getFindBlock(stack) != null && canWork(stack) && ManaItemHandler.requestManaExactForTool(stack, player, manaCost, true)) {
+ setMaxTick(stack);
+ NetworkHandler.sendPacketToFindBlocks((EntityPlayerMP)player, getFindBlock(stack), getFindMeta(stack));
+ }
+ }
+ }
+
+ public static void findBlocks(World world, Block findBlock, int findMeta, EntityPlayer player) {
+ if(world.isRemote) {
+ ItemStack renderStack = null;
+ int maxFindedBlocks = 25;
+ int findedBlocks = 0;
+ label1703:
+ for(int y = -rangeSearch * 2; y < rangeSearch; y++) {
+ for(int x = -rangeSearch; x < rangeSearch; x++) {
+ if(world.rand.nextInt(100) > (int)(3.5f * findedBlocks))
+ continue;
+ for(int z = -rangeSearch; z < rangeSearch; z++) {
+ if(world.rand.nextInt(100) > (int)(3.5f * findedBlocks))
+ continue;
+ else if(findedBlocks >= maxFindedBlocks)
+ break label1703;
+ int posX = MathHelper.floor_double(player.posX) + x;
+ int posY = MathHelper.floor_double(player.posY) + y;
+ int posZ = MathHelper.floor_double(player.posZ) + z;
+ if(posY < 0)
+ continue;
+ Block block = world.getBlock(posX, posY, posZ);
+ if(!Block.isEqualTo(block, findBlock))
+ continue;
+ int meta = world.getBlockMetadata(posX, posY, posZ);
+ if(meta == findMeta) {
+ if(renderStack == null)
+ renderStack = getRenderStackForBlock(world, block, meta, posX, posY, posZ);
+ findedBlocks++;
+ float maxAge = 2.7f + (0.5f * (float)(Math.random()));
+ Botania.proxy.setWispFXDepthTest(false);
+ Botania.proxy.setWispFXDistanceLimit(false);
+ float far = 120.0f - (((Math.abs(x) + Math.min(rangeSearch, Math.abs(y)) + Math.abs(z)) / (rangeSearch * 4.0f)) * 120.0f);
+ if(far <= 60)
+ far *= 0.15f;
+ Color color = new Color(Color.HSBtoRGB(far / 360.0f, 0.9f + (float)(Math.random() * 0.1f), 1.0f));
+ for(int i = 0; i < 11; i++)
+ Botania.proxy.wispFX(world, posX + 0.5f + (Math.random() - 0.5f), posY + 0.5f + (Math.random() - 0.5f), posZ + 0.5f + (Math.random() - 0.5f), color.getRed() / 100.0f, color.getGreen() / 100.0f, color.getBlue() / 100.0f, 0.3f + (float)(Math.random() * 0.25f), 0.0f, maxAge);
+ Botania.proxy.setWispFXDistanceLimit(true);
+ Botania.proxy.setWispFXDepthTest(true);
+ }
+ }
+ }
+ }
+ if(renderStack != null)
+ ItemsRemainingRender.set(renderStack, "íàéäåíî: " + findedBlocks);
+ }
+ }
+
+ public static ItemStack getRenderStackForBlock(World world, Block block, int meta, int x, int y, int z) {
+ if(block != null) {
+ Item item = Item.getItemFromBlock(block);
+ if(item != null) {
+ ItemStack findStack = new ItemStack(block, 1, meta);
+ if(findStack != null)
+ return findStack;
+ } else {
+ Item item1 = block.getItem(world, x, y, z);
+ if(item1 != null) {
+ ItemStack findStack = new ItemStack(item1, 1, meta);
+ if(findStack != null)
+ return findStack;
+ }
+ }
+ }
+ return null;
+ }
+
+ public boolean onItemUse(ItemStack stack, EntityPlayer p, World world, int x, int y, int z, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
+ if(p.isSneaking()) {
+ Block block = world.getBlock(x, y, z);
+ if(block != null) {
+ int meta = world.getBlockMetadata(x, y, z);
+ ItemStack findStack = getRenderStackForBlock(world, block, meta, x, y, z);
+ if(findStack != null) {
+ setFindBlock(stack, block, meta);
+ if(world.isRemote)
+ ItemsRemainingRender.set(findStack, findStack.getDisplayName());
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public boolean canWork(ItemStack stack) {
+ int tick = ItemNBTHelper.getInt(stack, "cooldown", 0);
+ if(tick == 0)
+ return true;
+ else if(tick > 0)
+ ItemNBTHelper.setInt(stack, "cooldown", tick - 1);
+ return false;
+ }
+
+ public void setMaxTick(ItemStack stack) {
+ ItemNBTHelper.setInt(stack, "cooldown", maxCooldown);
+ }
+
+ public static void setFindBlock(ItemStack stack, Block block, int meta) {
+ ItemNBTHelper.setInt(stack, "findBlockID", Block.getIdFromBlock(block));
+ ItemNBTHelper.setInt(stack, "findBlockMeta", meta);
+ }
+
+ public static Block getFindBlock(ItemStack stack) {
+ int blockID = ItemNBTHelper.getInt(stack, "findBlockID", 0);
+ if(blockID == 0)
+ return null;
+ else
+ return Block.getBlockById(blockID);
+ }
+
+ public static int getFindMeta(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "findBlockMeta", -1);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/cf/6053af9fb6bc001c1a9f99005529f322 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/cf/6053af9fb6bc001c1a9f99005529f322
new file mode 100644
index 0000000..2b551e6
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/cf/6053af9fb6bc001c1a9f99005529f322
@@ -0,0 +1,147 @@
+package ab.common.block;
+
+import ab.AdvancedBotany;
+import ab.common.block.tile.TileNidavellirForge;
+import ab.common.block.tile.TileInventory;
+import ab.common.lib.register.RecipeListAB;
+import net.minecraft.block.Block;
+import net.minecraft.block.BlockContainer;
+import net.minecraft.block.material.Material;
+import net.minecraft.client.renderer.texture.IIconRegister;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.Vec3;
+import net.minecraft.world.IBlockAccess;
+import net.minecraft.world.World;
+import vazkii.botania.api.BotaniaAPI;
+import vazkii.botania.api.lexicon.ILexiconable;
+import vazkii.botania.api.lexicon.LexiconEntry;
+
+public class BlockNidavellirForge extends BlockContainer implements ILexiconable {
+
+ public BlockNidavellirForge() {
+ super(Material.iron);
+ this.setCreativeTab(AdvancedBotany.tabAB);
+ this.setHardness(3.0F);
+ this.setResistance(10.0F);
+ this.setStepSound(soundTypeMetal);
+ this.setBlockName("ABPlate");
+ }
+
+// public void setBlockBoundsBasedOnState(IBlockAccess world, int x, int y, int z) {
+// float f1 = 1.0F;
+// float f2 = 1.0F;
+// float f3 = 1.0F;
+// float f4 = 0.0F;
+// float f5 = 0.0F;
+// float f6 = 0.0F;
+// this.setBlockBounds(f1, f2, f3, f4, f5, f6);
+// }
+
+ public int onBlockPlaced(World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ, int meta) {
+ byte b0 = 0;
+ switch (side) {
+ case 2:
+ b0 = 1;
+ break;
+ case 3:
+ b0 = 4;
+ break;
+ case 4:
+ b0 = 8;
+ break;
+ case 5:
+ b0 = 2;
+ }
+ System.out.println(b0);
+ return b0 != 0 ? b0 : meta;
+ }
+
+ public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int par6, float par7, float par8, float par9) {
+ TileNidavellirForge tile = (TileNidavellirForge)world.getTileEntity(x, y, z);
+ if(player.isSneaking()) {
+ if(tile.getStackInSlot(0) != null) {
+ ItemStack copy = tile.getStackInSlot(0).copy();
+ if(!world.isRemote) {
+ Vec3 vec3 = player.getLook(1.0F).normalize();
+ EntityItem entityitem = new EntityItem(world, player.posX + vec3.xCoord, player.posY + 1.2f, player.posZ + vec3.zCoord, copy);
+ world.spawnEntityInWorld(entityitem);
+ tile.requestUpdate = true;
+ }
+ tile.setInventorySlotContents(0, null);
+ world.func_147453_f(x, y, z, (Block)this);
+ return true;
+ }
+ for(int i = tile.getSizeInventory() - 1; i > 0; i--) {
+ ItemStack stack = tile.getStackInSlot(i);
+ if(stack != null) {
+ ItemStack copy = stack.copy();
+ if(!world.isRemote) {
+ Vec3 vec3 = player.getLook(1.0F).normalize();
+ EntityItem entityitem = new EntityItem(world, player.posX + vec3.xCoord, player.posY + 1.2f, player.posZ + vec3.zCoord, copy);
+ world.spawnEntityInWorld(entityitem);
+ tile.requestUpdate = true;
+ }
+ tile.setInventorySlotContents(i, null);
+ world.func_147453_f(x, y, z, (Block)this);
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public void breakBlock(World world, int x, int y, int z, Block block, int meta) {
+ if(!world.isRemote) {
+ TileInventory inv = (TileInventory)world.getTileEntity(x, y, z);
+ if (inv != null) {
+ for (int i = 0; i < inv.getSizeInventory(); i++) {
+ ItemStack stack = inv.getStackInSlot(i);
+ if (stack != null) {
+ float f = world.rand.nextFloat() * 0.8F + 0.1F;
+ float f1 = world.rand.nextFloat() * 0.8F + 0.1F;
+ float f2 = world.rand.nextFloat() * 0.8F + 0.1F;
+ EntityItem entityitem = new EntityItem(world, (x + f), (y + f1), (z + f2), stack.copy());
+ float f3 = 0.05F;
+ entityitem.motionX = ((float)world.rand.nextGaussian() * f3);
+ entityitem.motionY = ((float)world.rand.nextGaussian() * f3 + 0.2F);
+ entityitem.motionZ = ((float)world.rand.nextGaussian() * f3);
+ if (stack.hasTagCompound())
+ entityitem.getEntityItem().setTagCompound((NBTTagCompound)stack.getTagCompound().copy());
+ world.spawnEntityInWorld(entityitem);
+ }
+ }
+ }
+ }
+ super.breakBlock(world, x, y, z, block, meta);
+ }
+
+ public int getRenderType() {
+ return -1;
+ }
+
+ public boolean renderAsNormalBlock() {
+ return false;
+ }
+
+ public boolean isOpaqueCube() {
+ return false;
+ }
+
+ public boolean getBlocksMovement(IBlockAccess p_149655_1_, int p_149655_2_, int p_149655_3_, int p_149655_4_) {
+ return false;
+ }
+
+ public TileEntity createNewTileEntity(World world, int meta) {
+ return new TileNidavellirForge();
+ }
+
+ public LexiconEntry getEntry(World arg0, int arg1, int arg2, int arg3, EntityPlayer arg4, ItemStack arg5) {
+ return RecipeListAB.advandedAgglomerationPlate;
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/6a/703840c508b0001c18a5eba32f24fffa b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/cf/a08a5239c6bc001c1a9f99005529f322
similarity index 81%
rename from 1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/6a/703840c508b0001c18a5eba32f24fffa
rename to 1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/cf/a08a5239c6bc001c1a9f99005529f322
index 75a3905..a1877ee 100644
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/6a/703840c508b0001c18a5eba32f24fffa
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/cf/a08a5239c6bc001c1a9f99005529f322
@@ -29,10 +29,13 @@ public class TileGameBoard extends TileMod implements IRenderHud {
public int endGameTick = -1;
protected boolean requestUpdate;
public boolean isSingleGame = true;
+ public boolean isCustomGame = false;
public int clientTick[] = new int[] { 0, 0, 0, 0 };
public static final ItemStack headRender = new ItemStack(Items.skull, 1, 3);
+ private ItemStack customStack;
public void updateEntity() {
+ System.out.println(customStack);
if(botTick > 0)
botTick--;
if(endGameTick > 0)
@@ -52,10 +55,12 @@ public class TileGameBoard extends TileMod implements IRenderHud {
}
protected void updateServer() {
- if(hasGame() && endGameTick == 0)
+ if(hasGame() && endGameTick == 0 && !isCustomGame)
finishGame();
if(requestUpdate)
VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
+ if(worldObj.getTotalWorldTime() % 20 == 0 && hasFullDice() && endGameTick == -1)
+ endGameTick = 28;
boolean hasUpdate = false;
if(isSingleGame) {
if(botTick == 0 && hasGame()) {
@@ -64,6 +69,7 @@ public class TileGameBoard extends TileMod implements IRenderHud {
slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
botTick = -1;
hasUpdate = true;
+ worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "ab:boardCube", 0.6F, 1.0F);
break;
}
}
@@ -75,7 +81,8 @@ public class TileGameBoard extends TileMod implements IRenderHud {
requestUpdate = hasUpdate;
}
- public void setPlayer(String name) {
+ public void setPlayer(String name, boolean isCustomGame) {
+ this.isCustomGame = isCustomGame;
if(isSingleGame) {
playersName[0] = name;
playersName[1] = "";
@@ -91,13 +98,12 @@ public class TileGameBoard extends TileMod implements IRenderHud {
}
public void setPlayer(EntityPlayer player) {
- setPlayer(player.getCommandSenderName());
+ setPlayer(player.getCommandSenderName(), false);
}
public boolean dropDice(String name) {
if(isSingleGame) {
if(name.equals(playersName[0]) && botTick == -1) {
- boolean isLastDice = false;
boolean hasDrop = false;
for(int i = 0; i < 2; i++) {
if(slotChance[i] == 0) {
@@ -105,15 +111,12 @@ public class TileGameBoard extends TileMod implements IRenderHud {
if(!worldObj.isRemote) {
slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
botTick = 18;
+ worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "ab:boardCube", 0.6F, 1.0F);
requestUpdate = true;
- if(i == 1)
- isLastDice = true;
}
break;
}
}
- if(isLastDice)
- endGameTick = 28;
return hasDrop;
}
} else {
@@ -126,8 +129,7 @@ public class TileGameBoard extends TileMod implements IRenderHud {
if(!worldObj.isRemote) {
slotChance[j] = (byte)(worldObj.rand.nextInt(6) + 1);
botTick = playersName[1].isEmpty() ? 240 : 1200;
- if(hasFullDice())
- endGameTick = 28;
+ worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "ab:boardCube", 0.6F, 1.0F);
requestUpdate = true;
}
break;
@@ -164,18 +166,17 @@ public class TileGameBoard extends TileMod implements IRenderHud {
return false;
}
- public void finishGame() {
+ public void finishGame(boolean hasChatMessage) {
if(worldObj.isRemote)
return;
- if(!hasFullDice()) {
+ else if(!hasChatMessage) {
+ resetGame();
+ return;
+ } else if(!hasFullDice()) {
sendNearMessage("ab.gameBoard.misc.notPlayer", new Object[] {});
resetGame();
return;
- }
-// else if(playersName[0].equals(SubTileArdentAzarcissus.playerName)) {
-// resetGame();
-// return;
-// }
+ }
String str = isSingleGame ? "" : ".mult";
if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
sendNearMessage("ab.gameBoard.misc.0" + str, new Object[] { playersName[0] });
@@ -186,6 +187,10 @@ public class TileGameBoard extends TileMod implements IRenderHud {
resetGame();
}
+ public void finishGame() {
+ finishGame(true);
+ }
+
public void sendNearMessage(String text, Object[] obj) {
List players = this.worldObj.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(this.xCoord, this.yCoord, this.zCoord, (this.xCoord + 1), (this.yCoord + 1), (this.zCoord + 1)).expand(3.5f, 3.5f, 3.5f));
for(EntityPlayer player : players) {
@@ -194,6 +199,17 @@ public class TileGameBoard extends TileMod implements IRenderHud {
}
}
+ public boolean changeCustomStack(ItemStack stack) {
+ if(!isCustomGame)
+ return false;
+ else if(customStack == null || !ItemStack.areItemStacksEqual(customStack, stack)) {
+ customStack = stack;
+ requestUpdate = true;
+ return true;
+ } else
+ return false;
+ }
+
public void resetGame() {
playersName[0] = "";
playersName[1] = "";
@@ -201,6 +217,7 @@ public class TileGameBoard extends TileMod implements IRenderHud {
slotChance[i] = 0;
botTick = -1;
endGameTick = -1;
+ isCustomGame = false;
requestUpdate = true;
}
@@ -208,7 +225,7 @@ public class TileGameBoard extends TileMod implements IRenderHud {
int x = res.getScaledWidth() / 2 - 7;
int y = res.getScaledHeight() / 2 + 12;
RenderHelper.enableGUIStandardItemLighting();
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, headRender, x - (!isSingleGame ? 1 : 0), y - (!isSingleGame ? 1 : 0));
+ RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, isCustomGame ? (customStack == null ? headRender : customStack) : headRender, x - (!isSingleGame ? 1 : 0), y - (!isSingleGame ? 1 : 0));
if(!isSingleGame)
RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, headRender, x + 3, y + 3);
RenderHelper.disableStandardItemLighting();
@@ -223,6 +240,9 @@ public class TileGameBoard extends TileMod implements IRenderHud {
cmp.setInteger("endGameTick", endGameTick);
cmp.setBoolean("requestUpdate", requestUpdate);
cmp.setBoolean("isSingleGame", isSingleGame);
+ cmp.setBoolean("isAnonimGame", isCustomGame);
+ if(customStack != null)
+ customStack.writeToNBT(cmp);
}
public void readCustomNBT(NBTTagCompound cmp) {
@@ -234,5 +254,7 @@ public class TileGameBoard extends TileMod implements IRenderHud {
slotChance = cmp.getByteArray("slotChance");
requestUpdate = cmp.getBoolean("requestUpdate");
isSingleGame = cmp.getBoolean("isSingleGame");
+ isCustomGame = cmp.getBoolean("isAnonimGame");
+ customStack = ItemStack.loadItemStackFromNBT(cmp);
}
}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/cf/c073e91ba4b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/cf/c073e91ba4b1001c19bf8a91ac37238b
deleted file mode 100644
index a0fd76c..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/cf/c073e91ba4b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,85 +0,0 @@
-package ab.client.core.handler;
-
-import java.awt.Color;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.armor.ItemNebulaArmor;
-import ab.common.item.equipment.armor.ItemNebulaHelm;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.ItemRenderer;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.texture.TextureMap;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraftforge.client.event.RenderPlayerEvent;
-import vazkii.botania.api.item.IPhantomInkable;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class PlayerRendererHandler {
-
- @SubscribeEvent
- public void onPlayerRender(RenderPlayerEvent.Specials.Post event) {
- EntityPlayer player = event.entityPlayer;
- ItemStack item = player.getCurrentArmor(3);
- if(item != null && item.getItem() instanceof ItemNebulaHelm) {
- Item helm = player.getCurrentArmor(3).getItem();
- boolean hasPhantomInk = helm instanceof IPhantomInkable && ((IPhantomInkable)helm).hasPhantomInk(item);
- if(!hasPhantomInk && ((ItemNebulaHelm)helm).enableCosmicFace(item)) {
- float angelX = event.renderer.modelBipedMain.bipedHead.rotateAngleX * 180.0F / (float)Math.PI;
- float angelY = event.renderer.modelBipedMain.bipedHead.rotateAngleY * 180.0F / (float)Math.PI;
- GL11.glPushMatrix();
- if(player.isSneaking())
- GL11.glTranslatef(event.renderer.modelBipedMain.bipedHead.rotationPointX * 0.0625f, event.renderer.modelBipedMain.bipedHead.rotationPointY * 0.0625f, 0.0f);
- GL11.glRotatef(angelY, 0.0F, 1.0F, 0.0F);
- GL11.glRotatef(angelX, 1.0F, 0.0F, 0.0F);
- renderCosmicFace();
- GL11.glPopMatrix();
- }
- }
- }
-
- private void renderCosmicFace() {
- double worldTime = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- GL11.glPushMatrix();
- GL11.glEnable(GL11.GL_TEXTURE_2D);
- GL11.glDisable(2884);
-
- GL11.glPushMatrix();
- GL11.glScalef(0.5f, 0.4f, 0.4f);
- GL11.glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
- GL11.glTranslatef(-0.5f, -0.8675f, 0.0f);
- GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
- GL11.glDisable(2912);
- ClientHelper.renderCosmicBackground();
- GL11.glEnable(2912);
- GL11.glPopMatrix();
-
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- (Minecraft.getMinecraft()).renderEngine.bindTexture(TextureMap.locationItemsTexture);
- GL11.glTranslatef(-0.2F, -0.35F, -0.25F);
- GL11.glScalef(0.4f, 0.4f, 0.4f);
- float f = ItemNebulaArmor.nebulaEyes.getMinU();
- float f1 = ItemNebulaArmor.nebulaEyes.getMaxU();
- float f2 = ItemNebulaArmor.nebulaEyes.getMinV();
- float f3 = ItemNebulaArmor.nebulaEyes.getMaxV();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float r = color.getRed() / 510.0F;
- float g = color.getGreen() / 510.0F;
- float b = color.getBlue() / 510.0F;
- GL11.glColor4f(0.5f + r, 0.5f + g, 0.5f + b, 0.685f + (float)Math.sin(worldTime / 50.0D) * 0.175F);
- ItemRenderer.renderItemIn2D(Tessellator.instance, f1, f2, f, f3, ItemNebulaArmor.nebulaEyes.getIconWidth(), ItemNebulaArmor.nebulaEyes.getIconHeight(), 0.03125F);
- GL11.glDisable(3042);
- GL11.glEnable(32826);
- GL11.glPopMatrix();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d/108555d760c1001c11e398ea97007cb4 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d/108555d760c1001c11e398ea97007cb4
new file mode 100644
index 0000000..97004d0
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d/108555d760c1001c11e398ea97007cb4
@@ -0,0 +1,56 @@
+package ab.client.render.item;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.common.item.relic.ItemSphereNavigation;
+import net.minecraft.client.Minecraft;
+import net.minecraft.client.renderer.ItemRenderer;
+import net.minecraft.client.renderer.OpenGlHelper;
+import net.minecraft.client.renderer.Tessellator;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.IIcon;
+import net.minecraftforge.client.IItemRenderer;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class RenderItemSphereNavigation implements IItemRenderer {
+
+ public boolean handleRenderType(ItemStack item, IItemRenderer.ItemRenderType type) {
+ return true;
+ }
+
+ public boolean shouldUseRenderHelper(IItemRenderer.ItemRenderType type, ItemStack item, IItemRenderer.ItemRendererHelper helper) {
+ return (helper == IItemRenderer.ItemRendererHelper.ENTITY_ROTATION || helper == IItemRenderer.ItemRendererHelper.ENTITY_BOBBING);
+ }
+
+ public void renderItem(IItemRenderer.ItemRenderType type, ItemStack stack, Object... data) {
+ GL11.glPushMatrix();
+ if(type == type.INVENTORY) {
+ GL11.glScalef(16, 16, 16);
+ GL11.glRotatef(180, 0, 0, 1);
+ GL11.glTranslatef(-1.0f, -1.0f, 0);
+ } else if(type == type.ENTITY) {
+ GL11.glTranslatef(-0.5F, 0.0F, 0.0F);
+ if(stack.isOnItemFrame())
+ GL11.glTranslatef(0.0F, -0.3F, 0.01F);
+ }
+ GL11.glEnable(GL11.GL_BLEND);
+ OpenGlHelper.glBlendFunc(770, 771, 1, 0);
+ GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
+ IIcon icon = ItemSphereNavigation.icons[0];
+ ItemRenderer.renderItemIn2D(Tessellator.instance, icon.getMaxU(), icon.getMinV(), icon.getMinU(), icon.getMaxV(), icon.getIconWidth(), icon.getIconHeight(), 0.0625F);
+ IIcon iconEnable = ItemSphereNavigation.icons[stack.getItemDamage() == 0 ? 4 : 3];
+ ItemRenderer.renderItemIn2D(Tessellator.instance, iconEnable.getMaxU(), iconEnable.getMinV(), iconEnable.getMinU(), iconEnable.getMaxV(), iconEnable.getIconWidth(), iconEnable.getIconHeight(), 0.0625F);
+ double time = (double) Minecraft.getSystemTime();
+ if(type != type.INVENTORY) {
+ GL11.glScalef(1.0f, 1.0f, 1.05f);
+ GL11.glTranslated(0.0f, 0.0f, 0.0015625f);
+ }
+ IIcon iconBlock = ItemSphereNavigation.icons[ItemSphereNavigation.getFindBlock(stack) != null ? 1 : 2];
+ if(ItemSphereNavigation.getFindBlock(stack) != null) {
+ GL11.glTranslated(0, Math.cos(time / 650.0) * 0.0075 + 0.03125f, 0.0f);
+ }
+ ItemRenderer.renderItemIn2D(Tessellator.instance, iconBlock.getMaxU(), iconBlock.getMinV(), iconBlock.getMinU(), iconBlock.getMaxV(), iconBlock.getIconWidth(), iconBlock.getIconHeight(), 0.0625F);
+ GL11.glDisable(GL11.GL_BLEND);
+ GL11.glPopMatrix();
+ }
+}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d0/00dde0a10bb0001c18a5eba32f24fffa b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d0/00dde0a10bb0001c18a5eba32f24fffa
deleted file mode 100644
index 3cbdfcb..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d0/00dde0a10bb0001c18a5eba32f24fffa
+++ /dev/null
@@ -1,64 +0,0 @@
-package ab.common.block.subtile;
-
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.world.World;
-import vazkii.botania.api.subtile.SubTileGenerating;
-
-public class SubTileArdentAzarcissus extends SubTileGenerating {
-
- public static final String playerName = "ArdentAzarcissus#21sda2gaj91*21df#111sfq3jrns@#";
- int cooldown;
- int workMana = 400;
-
- public void onUpdate() {
- super.onUpdate();
- int posX = this.supertile.xCoord;
- int posY = this.supertile.yCoord;
- int posZ = this.supertile.zCoord;
- World world = this.supertile.getWorldObj();
- if(cooldown > 0) {
- cooldown--;
- return;
- }
- for(int i = -1; i <= 1; i++)
- for(int f = 0; f < 2; f++)
- for(int j = -1; j <= 1; j++) {
- int x = posX + i;
- int y = posY + f;
- int z = posZ + j;
- TileEntity tile = world.getTileEntity(x, y, z);
- if(tile != null && tile instanceof TileGameBoard) {
- TileGameBoard board = (TileGameBoard)tile;
- if(board.isSingleGame) {
- if(!board.hasGame()) {
- board.setPlayer(playerName, true);
- cooldown = 20;
- } else {
- board.dropDice(playerName);
- cooldown = 20;
- }
- }
- }
- }
- }
-
- public int getMaxMana() {
- return 15000;
- }
-
- public int getColor() {
- return 0xd2cdb2;
- }
-
- public void writeToPacketNBT(NBTTagCompound cmp) {
- super.writeToPacketNBT(cmp);
- cmp.setInteger("cooldown", this.cooldown);
- }
-
- public void readFromPacketNBT(NBTTagCompound cmp) {
- super.readFromPacketNBT(cmp);
- this.cooldown = cmp.getInteger("cooldown");
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d0/10eb36e0c9ad001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d0/10eb36e0c9ad001c1d59e42be7477558
deleted file mode 100644
index 2e2fcfa..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d0/10eb36e0c9ad001c1d59e42be7477558
+++ /dev/null
@@ -1,166 +0,0 @@
-package ab.common.entity;
-
-import java.awt.Color;
-import java.util.List;
-import java.util.Random;
-
-import ab.client.core.ClientHelper;
-import ab.common.core.CommonHelper;
-import ab.common.lib.register.BlockListAB;
-import cpw.mods.fml.relauncher.ReflectionHelper;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockBush;
-import net.minecraft.block.BlockCrops;
-import net.minecraft.block.BlockGrass;
-import net.minecraft.block.BlockSapling;
-import net.minecraft.block.IGrowable;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.EntityLivingBase;
-import net.minecraft.entity.passive.EntityAnimal;
-import net.minecraft.entity.projectile.EntityThrowable;
-import net.minecraft.init.Blocks;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.potion.PotionEffect;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.MathHelper;
-import net.minecraft.util.MovingObjectPosition;
-import net.minecraft.util.Vec3;
-import net.minecraft.world.World;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.core.handler.ConfigHandler;
-import vazkii.botania.common.lib.LibObfuscation;
-
-public class EntityManaVine extends EntityThrowable {
-
- int maxAge = 240;
- int age;
-
- public EntityManaVine(World world) {
- super(world);
- }
-
- public EntityManaVine(World world, EntityLivingBase entity) {
- super(world, entity);
- }
-
- public void onUpdate() {
- super.onUpdate();
- age++;
- if(age >= maxAge)
- setDead();
- if(this.worldObj.isRemote) {
- float m = 0.02F;
- float f1 = 6.0f;
- for(int i = 0; i < 4; i++) {
- double posX = this.posX + (Math.random() / f1 - (0.5f / f1));
- double posY = this.posY + (Math.random() / f1 - (0.5f / f1));
- double posZ = this.posZ + (Math.random() / f1 - (0.5f / f1));
- float mx = (float)(Math.random() - 0.5D) * m;
- float my = (float)(Math.random() - 0.5D) * m;
- float mz = (float)(Math.random() - 0.5D) * m;
- Color color = ClientHelper.getCorporeaRuneColor((int)posX, (int)posY, (int)posZ, 3);
- Botania.proxy.wispFX(worldObj, posX, posY, posZ, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float) (0.15f + (Math.random() * 0.12f)), mx, my, mz, 0.7f);
- }
- }
- }
-
- protected void onImpact(MovingObjectPosition pos) {
- if(pos != null && pos.entityHit == null) {
- World world = this.worldObj;
- int x = pos.blockX;
- int y = pos.blockY;
- int z = pos.blockZ;
- List list = (List) (world.getEntitiesWithinAABB(EntityLivingBase.class, AxisAlignedBB.getBoundingBox(x - 10, y - 10, z - 10, x + 10, y + 10, z + 10)));
- for(EntityLivingBase target : list) {
- if(target instanceof EntityAnimal) {
- EntityAnimal animal = (EntityAnimal) target;
- ReflectionHelper.setPrivateValue(EntityAnimal.class, animal, 1200, LibObfuscation.IN_LOVE);
- animal.setTarget(null);
- this.worldObj.setEntityState(animal, (byte) 18);
- }
- }
- for(int k = 0; k < 7; k++)
- for(int k1 = 0; k1 < 7; k1++)
- for(int k2 = 0; k2 < 7; k2++) {
- int xCoord = x + k - 3;
- int yCoord = y + k1 - 1;
- int zCoord = z + k2 - 3;
- Block block = this.worldObj.getBlock(xCoord, yCoord, zCoord);
- if(block instanceof IGrowable && !(block instanceof BlockGrass)) {
- CommonHelper.fertilizer(world, block, xCoord, yCoord, zCoord, 12);
- if(ConfigHandler.blockBreakParticles)
- this.worldObj.playAuxSFX(2005, xCoord, yCoord, zCoord, 6 + this.worldObj.rand.nextInt(4));
- this.worldObj.playSoundEffect(x, y, z, "botania:agricarnation", 0.01F, 0.5F + (float) Math.random() * 0.5F);
- }
-// else if(block instanceof BlockGrass && world.rand.nextInt(2) == 0) {
-// if (!world.isRemote) {
-// this.worldObj.playAuxSFX(2005, xCoord, yCoord + 1, zCoord, 6 + this.worldObj.rand.nextInt(4));
-// ((BlockGrass)block).func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
-// }
- // }
- else if(!world.isRemote && BlockListAB.blockFreyrLiana.canBlockStay(world, xCoord, yCoord - 1, zCoord)) {
- Vec3 vec = Vec3.createVectorHelper(xCoord, yCoord, zCoord);
- int distant = (int)vec.squareDistanceTo(Vec3.createVectorHelper(x, y, z));
- yCoord--;
- if (this.worldObj.rand.nextInt(distant + 1) == 0)
- while (yCoord > 0) {
- block = worldObj.getBlock(xCoord, yCoord, zCoord);
- if(block.isAir(worldObj, xCoord, yCoord, zCoord)) {
- if(world.rand.nextInt(4) < 3)
- worldObj.setBlock(xCoord, yCoord, zCoord, BlockListAB.blockFreyrLiana);
- else
- worldObj.setBlock(xCoord, yCoord, zCoord,BlockListAB.blockLuminousFreyrLiana);
- worldObj.playAuxSFX(2001, xCoord, yCoord, zCoord, Block.getIdFromBlock(BlockListAB.blockFreyrLiana));
- yCoord--;
- } else
- break;
- }
- }
- }
- this.setDead();
- }
- }
-
- boolean isPlant(int x, int y, int z) {
- Block block = this.worldObj.getBlock(x, y, z);
- if(block == Blocks.grass || block == Blocks.leaves || block == Blocks.leaves2 || block instanceof BlockBush && !(block instanceof BlockCrops) && !(block instanceof BlockSapling))
- return false;
- Material mat = block.getMaterial();
- return mat != null && (mat == Material.plants || mat == Material.cactus || mat == Material.grass || mat == Material.leaves || mat == Material.gourd) && block instanceof IGrowable && ((IGrowable) block).func_149851_a(this.worldObj, x, y, z, this.worldObj.isRemote);
- }
-
- @SideOnly(Side.CLIENT)
- public void setPositionAndRotation2(double p_70056_1_, double p_70056_3_, double p_70056_5_, float p_70056_7_, float p_70056_8_, int p_70056_9_) {}
-
- protected float getGravityVelocity() {
- return 0.0f;
- }
-
- public void setDead() {
- if(this.worldObj.isRemote) {
- float m = 0.175F;
- for(int i = 0; i < 32; i++) {
- float mx = (float)(Math.random() - 0.5D) * m;
- float my = (float)(Math.random() - 0.5D) * m;
- float mz = (float)(Math.random() - 0.5D) * m;
- Color color = ClientHelper.getCorporeaRuneColor((int)posX, (int)posY, (int)posZ, 3);
- Botania.proxy.wispFX(worldObj, posX, posY, posZ, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float) (0.2f + (Math.random() * 0.12f)), mx, my, mz, 2.0f);
- }
- }
- super.setDead();
- }
-
- public void readFromNBT(NBTTagCompound nbtt) {
- super.readFromNBT(nbtt);
- maxAge = nbtt.getInteger("maxAge");
- age = nbtt.getInteger("age");
- }
-
- public void writeToNBT(NBTTagCompound nbtt) {
- super.writeToNBT(nbtt);
- nbtt.setInteger("maxAge", maxAge);
- nbtt.setInteger("age", age);
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d1/00208eebc0b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d1/00208eebc0b1001c19bf8a91ac37238b
deleted file mode 100644
index 442cff7..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d1/00208eebc0b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,233 +0,0 @@
-package ab.common.block.tile;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.api.IRenderHud;
-import ab.common.core.CommonHelper;
-import ab.common.lib.register.BlockListAB;
-import net.minecraft.block.Block;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.gui.Gui;
-import net.minecraft.client.gui.ScaledResolution;
-import net.minecraft.client.renderer.RenderHelper;
-import net.minecraft.client.renderer.entity.RenderItem;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.ItemBlock;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.world.World;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.api.lexicon.multiblock.Multiblock;
-import vazkii.botania.api.lexicon.multiblock.MultiblockSet;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.block.ModBlocks;
-import vazkii.botania.common.block.ModFluffBlocks;
-import vazkii.botania.common.block.tile.TileMod;
-import vazkii.botania.common.core.handler.ConfigHandler;
-
-public class TileLebethronCore extends TileMod implements IRenderHud {
-
- protected int tick;
- protected Block block;
- protected int meta;
- protected boolean validTree;
- private String playerName = "";
-
- public static MultiblockSet makeMultiblockSet() {
- Multiblock mb = new Multiblock();
- mb.addComponent(0, 1, 0, BlockListAB.blockLebethron, 4);
- mb.addComponent(0, 0, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 2, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 3, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 4, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 5, 0, BlockListAB.blockLebethron, 0);
- mb.setRenderOffset(0, 1, 0);
- return mb.makeSet();
- }
-
- public void updateEntity() {
- if(!worldObj.isRemote) {
- if(tick <= 0) {
- updateStructure();
- if(validTree && getBlock() != null) {
- spawnLeaves();
- tick = 40;
- }
- } else
- tick--;
- } else if(worldObj.rand.nextBoolean())
- Botania.proxy.sparkleFX(this.worldObj, this.xCoord + Math.random(), this.yCoord + Math.random(), this.zCoord + Math.random(), 0.5F, 1.0F, 0.5F, (float)Math.random() * 2, 2);
- }
-
- public boolean getValidTree() {
- return this.validTree;
- }
-
- public void updateStructure() {
- boolean oldValidTree = validTree;
- validTree = hasValidTree();
- if(oldValidTree != validTree)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- }
-
- public void setPlayerName(String name) {
- if(playerName.isEmpty())
- playerName = name;
- }
-
- public void writeToNBT(NBTTagCompound nbtt) {
- super.writeToNBT(nbtt);
- nbtt.setString("playerName", playerName);
- }
-
- public void readFromNBT(NBTTagCompound nbtt) {
- super.readFromNBT(nbtt);
- playerName = nbtt.getString("playerName");
- }
-
- public void writeCustomNBT(NBTTagCompound nbtt) {
- nbtt.setInteger("blockID", Block.getIdFromBlock(block));
- nbtt.setInteger("blockMeta", this.meta);
- nbtt.setInteger("tick", this.tick);
- nbtt.setBoolean("validTree", validTree);
- }
-
- public void readCustomNBT(NBTTagCompound nbtt) {
- this.block = Block.getBlockById(nbtt.getInteger("blockID"));
- this.meta = nbtt.getInteger("blockMeta");
- this.tick = nbtt.getInteger("tick");
- this.validTree = nbtt.getBoolean("validTree");
- }
-
- public boolean setBlock(Block block, int meta) {
- if(this.block == null) {
- this.block = block;
- this.meta = meta;
- return true;
- } else {
- if(Block.isEqualTo(this.block, block) && this.meta == meta) {
- return false;
- }
- if(!this.worldObj.isRemote) {
- EntityItem entity = new EntityItem(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- entity.setEntityItemStack(new ItemStack(this.block, 1, this.meta));
- this.worldObj.spawnEntityInWorld(entity);
- }
- this.block = block;
- this.meta = meta;
- return true;
- }
- }
-
- public Block getBlock() {
- if(!Block.isEqualTo(block, Blocks.air) && block != null)
- return this.block;
- return null;
- }
-
- public int getMeta() {
- return this.meta;
- }
-
- public boolean hasValidTree() {
- if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord - 1, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord - 1, this.zCoord))) {
- return false;
- }
- for(int i = 1; i <= 4; i++) {
- if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord + i, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord + i, this.zCoord))) {
- return false;
- }
- }
- return true;
- }
-
- boolean checkBlock(Block block, int meta) {
- return block == BlockListAB.blockLebethron && meta == 0;
- }
-
- private void spawnLeaves() {
- for(int x = -1; x <= 1; x++)
- for(int z = -1; z <= 1; z++)
- for(int y = 0; y < 5; y++)
- this.setBlock(worldObj, this.xCoord + x, this.yCoord + y + 2, this.zCoord + z);
- this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 1, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 1, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord + 1);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord - 1);
- this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 7, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 7, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord + 1);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord - 1);
- for(int i = 0; i <= 3; i++)
- this.setBlock(worldObj, this.xCoord, this.yCoord + 6 + i, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord - 2);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord - 2);
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord - 2);
- }
- this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord - 2);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord + 2);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord + 2);
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord + 2);
- }
- this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord + 2);
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 2, this.zCoord);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 3, this.zCoord + i);
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 4, this.zCoord + i);
- }
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 5, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 2, this.zCoord);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 3, this.zCoord + i);
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 4, this.zCoord + i);
- }
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 5, this.zCoord);
- }
-
- private void setBlock(World world, int x, int y, int z) {
- EntityPlayer player = worldObj.getPlayerEntityByName(playerName);
- if(player != null) {
- System.out.println(player + " " + block + " " + meta);
- if(world.rand.nextInt(10) <= 8)
- return;
- else
- CommonHelper.setBlock(world, block, meta, x, y, z, (EntityPlayerMP)player, true);
- }
- }
-
- public void renderHud(Minecraft mc, ScaledResolution res) {
- if(!validTree)
- return;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- ItemStack stack = getBlock() != null ? new ItemStack(block, 1, meta) : new ItemStack(Blocks.leaves);
- int x = res.getScaledWidth() / 2 - 7;
- int y = res.getScaledHeight() / 2 + 12;
- Gui.drawRect(x - 2, y - 2, x + 18, y + 18, 1140850688);
- Gui.drawRect(x, y, x + 16, y + 16, 1140850688);
- RenderHelper.enableGUIStandardItemLighting();
- GL11.glEnable(32826);
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, stack, x, y);
- RenderHelper.disableStandardItemLighting();
- GL11.glDisable(2929);
- boolean unicode = mc.fontRenderer.getUnicodeFlag();
- mc.fontRenderer.setUnicodeFlag(true);
- if(getBlock() != null) {
- mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 9, 19456);
- mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 8, 774669);
- } else {
- mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 9, 4980736);
- mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 8, 13764621);
- }
- mc.fontRenderer.setUnicodeFlag(unicode);
- GL11.glEnable(2929);
- GL11.glDisable(3042);
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d1/d07f8832bdbc001c1a9f99005529f322 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d1/d07f8832bdbc001c1a9f99005529f322
new file mode 100644
index 0000000..f315219
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d1/d07f8832bdbc001c1a9f99005529f322
@@ -0,0 +1,38 @@
+package ab.client.render.block;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.client.render.tile.RenderTileManaContainer;
+import ab.common.block.tile.TileNidavellirForge;
+import ab.common.lib.register.BlockListAB;
+import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
+import net.minecraft.block.Block;
+import net.minecraft.client.renderer.RenderBlocks;
+import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.world.IBlockAccess;
+
+public class RenderBlockNidavellirForge implements ISimpleBlockRenderingHandler {
+
+ public void renderInventoryBlock(Block block, int metadata, int modelID, RenderBlocks renderer) {
+ GL11.glPushMatrix();
+ GL11.glTranslatef(-0.5F, -0.225F, -0.5F);
+ GL11.glScalef(1.3f, 1.3f, 1.3f);
+ TileNidavellirForge forge = new TileNidavellirForge();
+ RenderTileManaContainer.metadata = metadata;
+ TileEntityRendererDispatcher.instance.renderTileEntityAt((TileEntity)forge, 0.0D, 0.0D, 0.0D, 0.0F);
+ GL11.glPopMatrix();
+ }
+
+ public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId, RenderBlocks renderer) {
+ return false;
+ }
+
+ public int getRenderId() {
+ return BlockListAB.blockABPlateRI;
+ }
+
+ public boolean shouldRender3DInInventory(int modelId) {
+ return true;
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d2/40571d2206ad001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d2/40571d2206ad001c1d59e42be7477558
deleted file mode 100644
index 92e9033..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d2/40571d2206ad001c1d59e42be7477558
+++ /dev/null
@@ -1,125 +0,0 @@
-package ab.common.block;
-
-import java.util.List;
-
-import ab.AdvancedBotany;
-import ab.common.block.tile.TileBoardFate;
-import ab.common.block.tile.TileGameBoard;
-import ab.common.block.tile.TileInventory;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockContainer;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.renderer.texture.IIconRegister;
-import net.minecraft.creativetab.CreativeTabs;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.IIcon;
-import net.minecraft.world.World;
-import vazkii.botania.api.wand.IWandable;
-
-public class BlockBoardFate extends BlockContainer implements IWandable {
-
- protected IIcon[] iconsFate;
- protected IIcon[] iconsBoard;
-
- public BlockBoardFate() {
- super(Material.iron);
- this.setCreativeTab(AdvancedBotany.tabAB);
- this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.1875F, 1.0F);
- this.setHardness(3.0F);
- this.setResistance(10.0F);
- this.setStepSound(soundTypeMetal);
- this.setBlockName("boardFate");
- }
-
- public void getSubBlocks(Item par1, CreativeTabs par2CreativeTabs, List list) {
- for(int i = 0; i < 2; i++)
- list.add(new ItemStack(par1, 1, i));
- }
-
- public void registerBlockIcons(IIconRegister ir) {
- this.iconsFate = new IIcon[3];
- this.iconsBoard = new IIcon[3];
- for(int i = 0; i < iconsFate.length; i++)
- this.iconsFate[i] = ir.registerIcon("ab:boardFate_" + i);
- for(int i = 0; i < iconsBoard.length; i++)
- this.iconsBoard[i] = ir.registerIcon("ab:gameBoard_" + i);
- }
-
- public IIcon getIcon(int side, int meta) {
- if(meta == 0)
- return this.iconsBoard[Math.min(2, side)];
- else
- return this.iconsFate[Math.min(2, side)];
- }
-
- public boolean isOpaqueCube() {
- return false;
- }
-
- public boolean renderAsNormalBlock() {
- return false;
- }
-
- public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float par7, float par8, float par9) {
- int meta = world.getBlockMetadata(x, y, z);
- if(meta == 0) {
- TileGameBoard tile = (TileGameBoard)world.getTileEntity(x, y, z);
- if(!tile.hasGame())
- tile.setPlayer(player);
- else if(!tile.isSingleGame && tile.playersName[1].isEmpty() && !tile.playersName[0].equals(player.getCommandSenderName()))
- tile.setPlayer(player);
- else {
- return tile.dropDice(player);
- }
- return false;
- } else {
- TileBoardFate tile = (TileBoardFate)world.getTileEntity(x, y, z);
- return tile.spawnRelic(player);
- }
- }
-
- public TileEntity createNewTileEntity(World world, int meta) {
- return meta == 0 ? new TileGameBoard() : new TileBoardFate();
- }
-
- public void breakBlock(World world, int x, int y, int z, Block block, int meta) {
- if(!world.isRemote && meta == 1) {
- TileInventory inv = (TileInventory)world.getTileEntity(x, y, z);
- if (inv != null) {
- for (int i = 0; i < inv.getSizeInventory(); i++) {
- ItemStack stack = inv.getStackInSlot(i);
- if (stack != null) {
- float f = world.rand.nextFloat() * 0.8F + 0.1F;
- float f1 = world.rand.nextFloat() * 0.8F + 0.1F;
- float f2 = world.rand.nextFloat() * 0.8F + 0.1F;
- EntityItem entityitem = new EntityItem(world, (x + f), (y + f1), (z + f2), stack.copy());
- float f3 = 0.05F;
- entityitem.motionX = ((float)world.rand.nextGaussian() * f3);
- entityitem.motionY = ((float)world.rand.nextGaussian() * f3 + 0.2F);
- entityitem.motionZ = ((float)world.rand.nextGaussian() * f3);
- if (stack.hasTagCompound())
- entityitem.getEntityItem().setTagCompound((NBTTagCompound)stack.getTagCompound().copy());
- world.spawnEntityInWorld(entityitem);
- }
- }
- }
- }
- super.breakBlock(world, x, y, z, block, meta);
- }
-
- public boolean onUsedByWand(EntityPlayer player, ItemStack stack, World world, int x, int y, int z, int side) {
- if(world.getBlockMetadata(x, y, z) == 0 && player.isSneaking()) {
- TileGameBoard tile = (TileGameBoard)world.getTileEntity(x, y, z);
- if(tile != null && !tile.hasGame()) {
- tile.isSingleGame = !tile.isSingleGame;
- return true;
- }
- }
- return false;
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d3/00a60b3d18b0001c18a5eba32f24fffa b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d3/00a60b3d18b0001c18a5eba32f24fffa
deleted file mode 100644
index 945084d..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d3/00a60b3d18b0001c18a5eba32f24fffa
+++ /dev/null
@@ -1,81 +0,0 @@
-package ab.common.block.subtile;
-
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.world.World;
-import vazkii.botania.api.subtile.SubTileGenerating;
-
-public class SubTileArdentAzarcissus extends SubTileGenerating {
-
- public static final String playerName = "ArdentAzarcissus#21sda2gaj91*21df#111sfq3jrns@#";
- int cooldown;
- int workMana = 400;
-
- public void onUpdate() {
- super.onUpdate();
- World world = this.supertile.getWorldObj();
- int posX = this.supertile.xCoord;
- int posY = this.supertile.yCoord;
- int posZ = this.supertile.zCoord;
- if(world.isRemote)
- return;
- if(cooldown > 0) {
- cooldown--;
- return;
- }
- boolean needSync = false;
- for(int i = -1; i <= 1; i++)
- for(int f = 0; f < 2; f++)
- for(int j = -1; j <= 1; j++) {
- int x = posX + i;
- int y = posY + f;
- int z = posZ + j;
- TileEntity tile = world.getTileEntity(x, y, z);
- if(tile != null && tile instanceof TileGameBoard) {
- TileGameBoard board = (TileGameBoard)tile;
- if(board.isSingleGame) {
- if(!board.hasGame()) {
- board.setPlayer(playerName, true);
- cooldown = 80;
- } else {
- if(!board.playersName[0].equals(playerName))
- board.playersName[0] = playerName;
- if(!board.isCustomGame)
- board.isCustomGame = true;
- if(board.endGameTick == 0) {
- int winCount = (board.slotChance[0] + board.slotChance[1]) - (board.slotChance[2] + board.slotChance[3]);
- if(winCount > 0) {
- this.mana = Math.min(this.getMaxMana(), this.mana + (workMana * winCount));
- needSync = true;
- }
- board.finishGame(false);
- } else
- board.dropDice(playerName);
- cooldown = 120;
- }
- }
- }
- }
- if(needSync)
- sync();
- }
-
- public int getMaxMana() {
- return 16000;
- }
-
- public int getColor() {
- return 0xd2cdb2;
- }
-
- public void writeToPacketNBT(NBTTagCompound cmp) {
- super.writeToPacketNBT(cmp);
- cmp.setInteger("cooldown", this.cooldown);
- }
-
- public void readFromPacketNBT(NBTTagCompound cmp) {
- super.readFromPacketNBT(cmp);
- this.cooldown = cmp.getInteger("cooldown");
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/2d/0046393e17b0001c18a5eba32f24fffa b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d3/80d3ef32c5bc001c1a9f99005529f322
similarity index 91%
rename from 1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/2d/0046393e17b0001c18a5eba32f24fffa
rename to 1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d3/80d3ef32c5bc001c1a9f99005529f322
index 8f28667..1087017 100644
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/2d/0046393e17b0001c18a5eba32f24fffa
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d3/80d3ef32c5bc001c1a9f99005529f322
@@ -32,6 +32,7 @@ public class TileGameBoard extends TileMod implements IRenderHud {
public boolean isCustomGame = false;
public int clientTick[] = new int[] { 0, 0, 0, 0 };
public static final ItemStack headRender = new ItemStack(Items.skull, 1, 3);
+ public ItemStack customStack;
public void updateEntity() {
if(botTick > 0)
@@ -57,6 +58,8 @@ public class TileGameBoard extends TileMod implements IRenderHud {
finishGame();
if(requestUpdate)
VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
+ if(worldObj.getTotalWorldTime() % 20 == 0 && hasFullDice() && endGameTick == -1)
+ endGameTick = 28;
boolean hasUpdate = false;
if(isSingleGame) {
if(botTick == 0 && hasGame()) {
@@ -65,6 +68,7 @@ public class TileGameBoard extends TileMod implements IRenderHud {
slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
botTick = -1;
hasUpdate = true;
+ worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "ab:boardCube", 0.6F, 1.0F);
break;
}
}
@@ -99,7 +103,6 @@ public class TileGameBoard extends TileMod implements IRenderHud {
public boolean dropDice(String name) {
if(isSingleGame) {
if(name.equals(playersName[0]) && botTick == -1) {
- boolean isLastDice = false;
boolean hasDrop = false;
for(int i = 0; i < 2; i++) {
if(slotChance[i] == 0) {
@@ -107,15 +110,12 @@ public class TileGameBoard extends TileMod implements IRenderHud {
if(!worldObj.isRemote) {
slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
botTick = 18;
+ worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "ab:boardCube", 0.6F, 1.0F);
requestUpdate = true;
- if(i == 1)
- isLastDice = true;
}
break;
}
}
- if(isLastDice)
- endGameTick = 28;
return hasDrop;
}
} else {
@@ -128,8 +128,7 @@ public class TileGameBoard extends TileMod implements IRenderHud {
if(!worldObj.isRemote) {
slotChance[j] = (byte)(worldObj.rand.nextInt(6) + 1);
botTick = playersName[1].isEmpty() ? 240 : 1200;
- if(hasFullDice())
- endGameTick = 28;
+ worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "ab:boardCube", 0.6F, 1.0F);
requestUpdate = true;
}
break;
@@ -214,7 +213,7 @@ public class TileGameBoard extends TileMod implements IRenderHud {
int x = res.getScaledWidth() / 2 - 7;
int y = res.getScaledHeight() / 2 + 12;
RenderHelper.enableGUIStandardItemLighting();
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, headRender, x - (!isSingleGame ? 1 : 0), y - (!isSingleGame ? 1 : 0));
+ RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, isCustomGame ? (customStack == null ? headRender : customStack) : headRender, x - (!isSingleGame ? 1 : 0), y - (!isSingleGame ? 1 : 0));
if(!isSingleGame)
RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, headRender, x + 3, y + 3);
RenderHelper.disableStandardItemLighting();
@@ -230,6 +229,8 @@ public class TileGameBoard extends TileMod implements IRenderHud {
cmp.setBoolean("requestUpdate", requestUpdate);
cmp.setBoolean("isSingleGame", isSingleGame);
cmp.setBoolean("isAnonimGame", isCustomGame);
+ if(customStack != null)
+ customStack.writeToNBT(cmp);
}
public void readCustomNBT(NBTTagCompound cmp) {
@@ -242,5 +243,6 @@ public class TileGameBoard extends TileMod implements IRenderHud {
requestUpdate = cmp.getBoolean("requestUpdate");
isSingleGame = cmp.getBoolean("isSingleGame");
isCustomGame = cmp.getBoolean("isAnonimGame");
+ customStack = ItemStack.loadItemStackFromNBT(cmp);
}
}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d4/805b7accc4b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d4/805b7accc4b1001c19bf8a91ac37238b
deleted file mode 100644
index 6709b06..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d4/805b7accc4b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,213 +0,0 @@
-package ab.common.block.tile;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.api.IRenderHud;
-import ab.common.lib.register.BlockListAB;
-import net.minecraft.block.Block;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.gui.Gui;
-import net.minecraft.client.gui.ScaledResolution;
-import net.minecraft.client.renderer.RenderHelper;
-import net.minecraft.client.renderer.entity.RenderItem;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.ItemBlock;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.world.World;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.api.lexicon.multiblock.Multiblock;
-import vazkii.botania.api.lexicon.multiblock.MultiblockSet;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.block.ModBlocks;
-import vazkii.botania.common.block.ModFluffBlocks;
-import vazkii.botania.common.block.tile.TileMod;
-import vazkii.botania.common.core.handler.ConfigHandler;
-
-public class TileLebethronCore extends TileMod implements IRenderHud {
-
- protected int tick;
- protected Block block;
- protected int meta;
- protected boolean validTree;
-
- public static MultiblockSet makeMultiblockSet() {
- Multiblock mb = new Multiblock();
- mb.addComponent(0, 1, 0, BlockListAB.blockLebethron, 4);
- mb.addComponent(0, 0, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 2, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 3, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 4, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 5, 0, BlockListAB.blockLebethron, 0);
- mb.setRenderOffset(0, 1, 0);
- return mb.makeSet();
- }
-
- public void updateEntity() {
- if(!worldObj.isRemote) {
- if(tick <= 0) {
- updateStructure();
- if(validTree && getBlock() != null) {
- spawnLeaves();
- tick = 40;
- }
- } else
- tick--;
- } else if(worldObj.rand.nextBoolean())
- Botania.proxy.sparkleFX(this.worldObj, this.xCoord + Math.random(), this.yCoord + Math.random(), this.zCoord + Math.random(), 0.5F, 1.0F, 0.5F, (float)Math.random() * 2, 2);
- }
-
- public boolean getValidTree() {
- return this.validTree;
- }
-
- public void updateStructure() {
- boolean oldValidTree = validTree;
- validTree = hasValidTree();
- if(oldValidTree != validTree)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- }
-
- public void writeCustomNBT(NBTTagCompound nbtt) {
- nbtt.setInteger("blockID", Block.getIdFromBlock(block));
- nbtt.setInteger("blockMeta", this.meta);
- nbtt.setInteger("tick", this.tick);
- nbtt.setBoolean("validTree", validTree);
- }
-
- public void readCustomNBT(NBTTagCompound nbtt) {
- this.block = Block.getBlockById(nbtt.getInteger("blockID"));
- this.meta = nbtt.getInteger("blockMeta");
- this.tick = nbtt.getInteger("tick");
- this.validTree = nbtt.getBoolean("validTree");
- }
-
- public boolean setBlock(Block block, int meta) {
- if(this.block == null) {
- this.block = block;
- this.meta = meta;
- return true;
- } else {
- if(Block.isEqualTo(this.block, block) && this.meta == meta) {
- return false;
- }
- if(!this.worldObj.isRemote) {
- EntityItem entity = new EntityItem(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- entity.setEntityItemStack(new ItemStack(this.block, 1, this.meta));
- this.worldObj.spawnEntityInWorld(entity);
- }
- this.block = block;
- this.meta = meta;
- return true;
- }
- }
-
- public Block getBlock() {
- if(!Block.isEqualTo(block, Blocks.air) && block != null)
- return this.block;
- return null;
- }
-
- public int getMeta() {
- return this.meta;
- }
-
- public boolean hasValidTree() {
- if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord - 1, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord - 1, this.zCoord))) {
- return false;
- }
- for(int i = 1; i <= 4; i++) {
- if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord + i, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord + i, this.zCoord))) {
- return false;
- }
- }
- return true;
- }
-
- boolean checkBlock(Block block, int meta) {
- return block == BlockListAB.blockLebethron && meta == 0;
- }
-
- private void spawnLeaves() {
- for(int x = -1; x <= 1; x++) {
- for(int z = -1; z <= 1; z++) {
- for(int y = 0; y < 5; y++) {
- this.setBlock(worldObj, this.xCoord + x, this.yCoord + y + 2, this.zCoord + z);
- }
- }
- }
- this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 1, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 1, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord + 1);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord - 1);
- this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 7, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 7, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord + 1);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord - 1);
- for(int i = 0; i <= 3; i++)
- this.setBlock(worldObj, this.xCoord, this.yCoord + 6 + i, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord - 2);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord - 2);
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord - 2);
- }
- this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord - 2);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord + 2);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord + 2);
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord + 2);
- }
- this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord + 2);
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 2, this.zCoord);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 3, this.zCoord + i);
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 4, this.zCoord + i);
- }
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 5, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 2, this.zCoord);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 3, this.zCoord + i);
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 4, this.zCoord + i);
- }
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 5, this.zCoord);
- }
-
- private void setBlock(World world, int x, int y, int z) {
- if(world.rand.nextInt(10) <= 8)
- return;
- else if(world.getBlock(x, y, z).getMaterial() == Material.air && y < 256)
- world.setBlock(x, y, z, this.block, this.meta, 3);
- }
-
- public void renderHud(Minecraft mc, ScaledResolution res) {
- if(!validTree)
- return;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- ItemStack stack = getBlock() != null ? new ItemStack(block, 1, meta) : new ItemStack(Blocks.leaves);
- int x = res.getScaledWidth() / 2 - 7;
- int y = res.getScaledHeight() / 2 + 12;
- Gui.drawRect(x - 2, y - 2, x + 18, y + 18, 1140850688);
- Gui.drawRect(x, y, x + 16, y + 16, 1140850688);
- RenderHelper.enableGUIStandardItemLighting();
- GL11.glEnable(32826);
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, stack, x, y);
- RenderHelper.disableStandardItemLighting();
- GL11.glDisable(2929);
- boolean unicode = mc.fontRenderer.getUnicodeFlag();
- mc.fontRenderer.setUnicodeFlag(true);
- if(getBlock() != null) {
- mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 9, 19456);
- mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 8, 774669);
- } else {
- mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 9, 4980736);
- mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 8, 13764621);
- }
- mc.fontRenderer.setUnicodeFlag(unicode);
- GL11.glEnable(2929);
- GL11.glDisable(3042);
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d4/80f0c463bbbc001c1a9f99005529f322 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d4/80f0c463bbbc001c1a9f99005529f322
new file mode 100644
index 0000000..08c350c
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d4/80f0c463bbbc001c1a9f99005529f322
@@ -0,0 +1,141 @@
+package ab.common.block;
+
+import ab.AdvancedBotany;
+import ab.common.block.tile.TileNidavellirForge;
+import ab.common.block.tile.TileInventory;
+import ab.common.lib.register.RecipeListAB;
+import net.minecraft.block.Block;
+import net.minecraft.block.BlockContainer;
+import net.minecraft.block.material.Material;
+import net.minecraft.client.renderer.texture.IIconRegister;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.MathHelper;
+import net.minecraft.util.Vec3;
+import net.minecraft.world.IBlockAccess;
+import net.minecraft.world.World;
+import vazkii.botania.api.BotaniaAPI;
+import vazkii.botania.api.lexicon.ILexiconable;
+import vazkii.botania.api.lexicon.LexiconEntry;
+
+public class BlockNidavellirForge extends BlockContainer implements ILexiconable {
+
+ public BlockNidavellirForge() {
+ super(Material.iron);
+ this.setCreativeTab(AdvancedBotany.tabAB);
+ this.setHardness(3.0F);
+ this.setResistance(10.0F);
+ this.setStepSound(soundTypeMetal);
+ this.setBlockName("ABPlate");
+ }
+
+ public void setBlockBoundsBasedOnState(IBlockAccess world, int x, int y, int z) {
+ float f = 0.1875F;
+ float f1 = 0.0625F;
+ switch(world.getBlockMetadata(x, y, z)) {
+ case 0: this.setBlockBounds(f, 0.0F, f1, 1.0F - f, 0.75F, 1.0F);
+ break;
+ case 1: this.setBlockBounds(f1, 0.0F, f, 1.0F, 0.75F, 1.0F - f);
+ break;
+ case 2: this.setBlockBounds(f, 0.0F, 0.0F, 1.0F - f, 0.75F, 1.0F - f1);
+ break;
+ case 3: this.setBlockBounds(0.0F, 0.0F, f, 1.0F - f1, 0.75F, 1.0F - f);
+ break;
+ default: this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
+ }
+ }
+
+ public void onBlockPlacedBy(World world, int x, int y, int z, EntityLivingBase liv, ItemStack stack) {
+ int meta = MathHelper.floor_double((double)(liv.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3;
+ world.setBlockMetadataWithNotify(x, y, z, meta, 3);
+ }
+
+ public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int par6, float par7, float par8, float par9) {
+ TileNidavellirForge tile = (TileNidavellirForge)world.getTileEntity(x, y, z);
+ if(player.isSneaking()) {
+ if(tile.getStackInSlot(0) != null) {
+ ItemStack copy = tile.getStackInSlot(0).copy();
+ if(!world.isRemote) {
+ Vec3 vec3 = player.getLook(1.0F).normalize();
+ EntityItem entityitem = new EntityItem(world, player.posX + vec3.xCoord, player.posY + 1.2f, player.posZ + vec3.zCoord, copy);
+ world.spawnEntityInWorld(entityitem);
+ tile.requestUpdate = true;
+ }
+ tile.setInventorySlotContents(0, null);
+ world.func_147453_f(x, y, z, (Block)this);
+ return true;
+ }
+ for(int i = tile.getSizeInventory() - 1; i > 0; i--) {
+ ItemStack stack = tile.getStackInSlot(i);
+ if(stack != null) {
+ ItemStack copy = stack.copy();
+ if(!world.isRemote) {
+ Vec3 vec3 = player.getLook(1.0F).normalize();
+ EntityItem entityitem = new EntityItem(world, player.posX + vec3.xCoord, player.posY + 1.2f, player.posZ + vec3.zCoord, copy);
+ world.spawnEntityInWorld(entityitem);
+ tile.requestUpdate = true;
+ }
+ tile.setInventorySlotContents(i, null);
+ world.func_147453_f(x, y, z, (Block)this);
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public void breakBlock(World world, int x, int y, int z, Block block, int meta) {
+ if(!world.isRemote) {
+ TileInventory inv = (TileInventory)world.getTileEntity(x, y, z);
+ if (inv != null) {
+ for (int i = 0; i < inv.getSizeInventory(); i++) {
+ ItemStack stack = inv.getStackInSlot(i);
+ if (stack != null) {
+ float f = world.rand.nextFloat() * 0.8F + 0.1F;
+ float f1 = world.rand.nextFloat() * 0.8F + 0.1F;
+ float f2 = world.rand.nextFloat() * 0.8F + 0.1F;
+ EntityItem entityitem = new EntityItem(world, (x + f), (y + f1), (z + f2), stack.copy());
+ float f3 = 0.05F;
+ entityitem.motionX = ((float)world.rand.nextGaussian() * f3);
+ entityitem.motionY = ((float)world.rand.nextGaussian() * f3 + 0.2F);
+ entityitem.motionZ = ((float)world.rand.nextGaussian() * f3);
+ if (stack.hasTagCompound())
+ entityitem.getEntityItem().setTagCompound((NBTTagCompound)stack.getTagCompound().copy());
+ world.spawnEntityInWorld(entityitem);
+ }
+ }
+ }
+ }
+ super.breakBlock(world, x, y, z, block, meta);
+ }
+
+ public int getRenderType() {
+ return -1;
+ }
+
+ public boolean renderAsNormalBlock() {
+ return false;
+ }
+
+ public boolean isOpaqueCube() {
+ return false;
+ }
+
+ public boolean getBlocksMovement(IBlockAccess p_149655_1_, int p_149655_2_, int p_149655_3_, int p_149655_4_) {
+ return false;
+ }
+
+ public TileEntity createNewTileEntity(World world, int meta) {
+ return new TileNidavellirForge();
+ }
+
+ public LexiconEntry getEntry(World arg0, int arg1, int arg2, int arg3, EntityPlayer arg4, ItemStack arg5) {
+ return RecipeListAB.advandedAgglomerationPlate;
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d4/b0ad3bd4c4b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d4/b0ad3bd4c4b1001c19bf8a91ac37238b
deleted file mode 100644
index 8c848ef..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d4/b0ad3bd4c4b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,135 +0,0 @@
-package ab.common.block;
-
-import java.util.List;
-
-import ab.AdvancedBotany;
-import ab.common.block.tile.TileLebethronCore;
-import ab.common.lib.register.RecipeListAB;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.ITileEntityProvider;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.renderer.texture.IIconRegister;
-import net.minecraft.creativetab.CreativeTabs;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.IIcon;
-import net.minecraft.util.MovingObjectPosition;
-import net.minecraft.world.IBlockAccess;
-import net.minecraft.world.World;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.api.lexicon.ILexiconable;
-import vazkii.botania.api.lexicon.LexiconEntry;
-import vazkii.botania.common.item.ModItems;
-
-public class BlockLebethronWood extends Block implements ILexiconable, ITileEntityProvider {
-
- private static IIcon[] icon = new IIcon[5];
- public static IIcon iconPortal;
-
- public BlockLebethronWood() {
- super(Material.wood);
- this.setCreativeTab(AdvancedBotany.tabAB);
- this.setHardness(6.0F);
- this.setStepSound(soundTypeWood);
- this.setBlockName("lebethronWood");
- }
-
- public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int par6, float par7, float par8, float par9) {
- int meta = world.getBlockMetadata(x, y, z);
- if(meta == 4) {
- TileLebethronCore core = (TileLebethronCore)world.getTileEntity(x, y, z);
- ItemStack heldItem = player.getCurrentEquippedItem();
- if(heldItem == null)
- return false;
- Block block = Block.getBlockFromItem(heldItem.getItem());
- if(block.getMaterial() == Material.leaves) {
- if(!world.isRemote) {
- core.updateStructure();
- if(core.getValidTree()) {
- if(core.setBlock(block, heldItem.getItemDamage())) {
- heldItem.stackSize--;
- if(heldItem.stackSize == 0)
- player.inventory.setInventorySlotContents(player.inventory.currentItem, null);
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(world, x, y, z);
- }
- }
- }
- return true;
- }
- }
- return false;
- }
-
- public void breakBlock(World world, int x, int y, int z, Block block, int meta) {
- if(!world.isRemote && meta == 4) {
- TileLebethronCore tile = (TileLebethronCore)world.getTileEntity(x, y, z);
- if(tile != null) {
- ItemStack stack = new ItemStack(tile.getBlock(), 1, tile.getMeta());
- if (stack != null) {
- float f = world.rand.nextFloat() * 0.8F + 0.1F;
- float f1 = world.rand.nextFloat() * 0.8F + 0.1F;
- float f2 = world.rand.nextFloat() * 0.8F + 0.1F;
- EntityItem entityitem = new EntityItem(world, (x + f), (y + f1), (z + f2), stack.copy());
- float f3 = 0.05F;
- entityitem.motionX = ((float)world.rand.nextGaussian() * f3);
- entityitem.motionY = ((float)world.rand.nextGaussian() * f3 + 0.2F);
- entityitem.motionZ = ((float)world.rand.nextGaussian() * f3);
- if (stack.hasTagCompound())
- entityitem.getEntityItem().setTagCompound((NBTTagCompound)stack.getTagCompound().copy());
- world.spawnEntityInWorld(entityitem);
- }
- }
- }
- super.breakBlock(world, x, y, z, block, meta);
- }
-
- public void getSubBlocks(Item par1, CreativeTabs par2CreativeTabs, List list) {
- for(int i = 0; i < icon.length; i++) {
- list.add(new ItemStack(par1, 1, i));
- }
- }
-
- @SideOnly(Side.CLIENT)
- public void registerBlockIcons(IIconRegister ir) {
- for (int i = 0; i < icon.length; i++)
- icon[i] = ir.registerIcon("ab:lebethronWood_" + i);
- iconPortal = ir.registerIcon("ab:portalAlphirine");
- }
-
- @SideOnly(Side.CLIENT)
- public IIcon getIcon(int side, int meta) {
- return this.icon[meta];
- }
-
- public int damageDropped(int par1) {
- return par1;
- }
-
- public int getLightValue(IBlockAccess world, int x, int y, int z) {
- return (world.getBlockMetadata(x, y, z) == 3) ? 12 : 0;
- }
-
- public boolean canSustainLeaves(IBlockAccess world, int x, int y, int z) {
- return (world.getBlockMetadata(x, y, z) == 0);
- }
-
- public ItemStack getPickBlock(MovingObjectPosition target, World world, int x, int y, int z) {
- int meta = world.getBlockMetadata(x, y, z);
- return new ItemStack(this, 1, meta);
- }
-
- public LexiconEntry getEntry(World world, int x, int y, int z, EntityPlayer player, ItemStack lexicon) {
- return RecipeListAB.lebethronWood;
- }
-
- public TileEntity createNewTileEntity(World world, int meta) {
- return meta == 4 ? new TileLebethronCore() : null;
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d5/0031bfb9cab0001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d5/0031bfb9cab0001c19bf8a91ac37238b
deleted file mode 100644
index d4824bf..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d5/0031bfb9cab0001c19bf8a91ac37238b
+++ /dev/null
@@ -1,126 +0,0 @@
-package ab.common.item.equipment;
-
-import java.awt.Color;
-
-import ab.client.core.ClientHelper;
-import ab.common.core.handler.ConfigABHandler;
-import ab.common.item.ItemMod;
-import net.minecraft.block.Block;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.Minecraft;
-import net.minecraft.entity.Entity;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.EnumAction;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.ChunkCoordinates;
-import net.minecraft.util.MathHelper;
-import net.minecraft.util.Vec3;
-import net.minecraft.world.World;
-import net.minecraft.world.chunk.Chunk;
-import vazkii.botania.api.mana.IManaUsingItem;
-import vazkii.botania.api.mana.ManaItemHandler;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.core.helper.Vector3;
-
-public class ItemNebulaRod extends ItemMod implements IManaUsingItem {
-
- public ItemNebulaRod() {
- super("nebulaRod");
- this.setMaxStackSize(1);
- this.setNoRepair();
- this.setMaxDamage(100);
- }
-
- public boolean usesMana(ItemStack stack) {
- return true;
- }
-
- public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
- if(stack.getItemDamage() == 0)
- player.setItemInUse(stack, getMaxItemUseDuration(stack));
- return stack;
- }
-
- public EnumAction getItemUseAction(ItemStack par1ItemStack) {
- return EnumAction.bow;
- }
-
- public void onUpdate(ItemStack stack, World world, Entity player, int par4, boolean par5) {
- if(!world.isRemote && player instanceof EntityPlayer && player.ticksExisted % ConfigABHandler.nebulaWandCooldownTick == 0 && stack.getItemDamage() > 0 && ManaItemHandler.requestManaExactForTool(stack, (EntityPlayer)player, 140, true))
- stack.setItemDamage(stack.getItemDamage() - 1);
- }
-
- public void onUsingTick(ItemStack stack, EntityPlayer p, int time) {
- time = this.getMaxItemUseDuration(stack) - time;
- boolean isFinish = time > 80;
- if(time > 110 && !p.isSneaking()) {
- if(!p.capabilities.isCreativeMode)
- stack.setItemDamage(100);
- p.stopUsingItem();
- if(!p.worldObj.isRemote) {
- Vec3 vec3 = p.getLook(1.0F).normalize();
- MathHelper.floor_double(time);
- int limitXZ = ConfigABHandler.limitXZCoords;
- int posX = MathHelper.floor_double(p.posX + vec3.xCoord * 256);
- int posY = MathHelper.floor_double(p.posY);
- int posZ = MathHelper.floor_double(p.posZ + vec3.zCoord * 256);
- ChunkCoordinates chunkcoordinates = new ChunkCoordinates(Math.min(Math.max(posX, -(limitXZ - 1)), limitXZ - 1), posY, Math.min(Math.max(posZ, -(limitXZ - 1)), limitXZ - 1));
- int topY = getTopBlock(p.worldObj, posX, posZ);
- chunkcoordinates.posY = topY == -1 ? posY : topY;
- ((EntityPlayerMP)p).playerNetServerHandler.setPlayerLocation(chunkcoordinates.posX + 0.5D, chunkcoordinates.posY + 1.6D, chunkcoordinates.posZ + 0.5D, p.rotationYaw, p.rotationPitch);
- }
- }
- if(p.worldObj.isRemote) {
- int ticks = Math.min(100, time);
- int totalSpiritCount = (int)Math.max(3, ticks / 100.0f * 18);
- double tickIncrement = 360.0D / totalSpiritCount;
- int speed = 8;
- double wticks = (ticks * speed) - tickIncrement;
- double r = Math.sin((ticks) / 100.0D) * Math.max(0.75f, 1.4D * ticks / 100.0f);
- Vec3 look = p.getLookVec();
- float yawOffset = Minecraft.getMinecraft().thePlayer.getDisplayName() == p.getDisplayName() ? 0.0f : 1.62f;
- Vector3 l = new Vector3(look.xCoord, look.yCoord + yawOffset, look.zCoord);
- Vector3 player = Vector3.fromEntity(p).add(0.0f, 0.0f, 0.0f);
- Vector3 v3 = new Vector3();
- for(int i = 0; i < totalSpiritCount; i++) {
- float size = Math.max(0.215f, ticks / 100.0f);
- v3.set(Math.sin(wticks * Math.PI / 180.0D) / 1.825f * r, Math.cos(wticks * Math.PI / 180.0D) * r, 0.8f);
- ClientHelper.setRotation(p.rotationPitch, 1.0f, 0.0f, 0.0f, v3);
- ClientHelper.setRotation(-p.rotationYaw, 0.0f, 1.0f, 0.0f, v3);
- v3.add(l.multiply(1.0f)).add(player);
- wticks += tickIncrement;
- int color = p.worldObj.rand.nextBoolean() ? 0x931fec : 0x4b1682;
- float hsb[] = Color.RGBtoHSB(color & 255, color >> 8 & 255, color >> 16 & 255, null);
- int color1 = Color.HSBtoRGB(hsb[0], hsb[1], ticks / 100.0f);
- float[] colorsfx = { (color1 & 255) / 255.0f, (color1 >> 8 & 255) / 255.0f, (color1 >> 16 & 255) / 255.0f };
- float motionSpeed = 0.25f * Math.min(1.0f, (time - 80) / 30.0f);
- Botania.proxy.wispFX(p.worldObj, v3.x, v3.y, v3.z, colorsfx[0], colorsfx[1], colorsfx[2], 0.3F * size, isFinish ? (float)(look.xCoord * -1) * motionSpeed : 0.0f, isFinish ? (float)(look.yCoord * -1) * motionSpeed : 0.0f, isFinish ? (float)(look.zCoord * -1) * motionSpeed : 0.0f, 0.3F);
- Botania.proxy.wispFX(p.worldObj, v3.x, v3.y, v3.z, colorsfx[0], colorsfx[1], colorsfx[2], (float)(Math.random() * 0.1F + 0.05F) * size, (float)(Math.random() - 0.5D) * 0.05F, (float)(Math.random() - 0.5D) * 0.05F, (float)(Math.random() - 0.5D) * 0.05F, 0.4F);
- }
- }
- }
-
- public int getMaxItemUseDuration(ItemStack par1ItemStack) {
- return 72000;
- }
-
- public boolean isFull3D() {
- return true;
- }
-
- public int getTopBlock(World world, int posX, int posZ) {
- Chunk chunk = world.getChunkFromBlockCoords(posX, posZ);
- int x = posX;
- int z = posZ;
- int k = chunk.getTopFilledSegment();
- posX &= 15;
- for(posZ &= 15; k > 0; --k) {
- Block block = chunk.getBlock(posX, k, posZ);
- if(!block.isAir(world, x, k, z) && block != Blocks.bedrock)
- return k + 1;
- }
- return -1;
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d5/60131c445ec1001c11e398ea97007cb4 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d5/60131c445ec1001c11e398ea97007cb4
new file mode 100644
index 0000000..b6987c8
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d5/60131c445ec1001c11e398ea97007cb4
@@ -0,0 +1,41 @@
+package ab.client.render.item;
+
+import org.lwjgl.opengl.GL11;
+
+import net.minecraft.client.renderer.ItemRenderer;
+import net.minecraft.client.renderer.OpenGlHelper;
+import net.minecraft.client.renderer.Tessellator;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.IIcon;
+import net.minecraftforge.client.IItemRenderer;
+
+public class RenderItemSphereNavigation implements IItemRenderer {
+
+ public boolean handleRenderType(ItemStack item, IItemRenderer.ItemRenderType type) {
+ return true;
+ }
+
+ public boolean shouldUseRenderHelper(IItemRenderer.ItemRenderType type, ItemStack item, IItemRenderer.ItemRendererHelper helper) {
+ return (helper == IItemRenderer.ItemRendererHelper.ENTITY_ROTATION || helper == IItemRenderer.ItemRendererHelper.ENTITY_BOBBING);
+ }
+
+ public void renderItem(IItemRenderer.ItemRenderType type, ItemStack item, Object... data) {
+ IIcon icon = item.getItem().getIcon(item, 0);
+ GL11.glPushMatrix();
+ if(type == type.INVENTORY) {
+ GL11.glScalef(16, 16, 16);
+ GL11.glRotatef(180, 0, 0, 1);
+ GL11.glTranslatef(-1.0f, -1.0f, 0);
+ } else if(type == type.ENTITY) {
+ GL11.glTranslatef(-0.5F, 0.0F, 0.0F);
+ if (item.isOnItemFrame())
+ GL11.glTranslatef(0.0F, -0.3F, 0.01F);
+ }
+ GL11.glEnable(GL11.GL_BLEND);
+ OpenGlHelper.glBlendFunc(770, 771, 1, 0);
+ GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
+ ItemRenderer.renderItemIn2D(Tessellator.instance, icon.getMaxU(), icon.getMinV(), icon.getMinU(), icon.getMaxV(), icon.getIconWidth(), icon.getIconHeight(), 0.0625F);
+ GL11.glDisable(GL11.GL_BLEND);
+ GL11.glPopMatrix();
+ }
+}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d5/70ce19e871be001c1965b122d2f8f403 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d5/70ce19e871be001c1965b122d2f8f403
new file mode 100644
index 0000000..eb520db
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d5/70ce19e871be001c1965b122d2f8f403
@@ -0,0 +1,157 @@
+package ab.common.item.relic;
+
+import java.awt.Color;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.common.core.handler.NetworkHandler;
+import ab.common.lib.register.ItemListAB;
+import net.minecraft.block.Block;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.util.MathHelper;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.api.mana.ManaItemHandler;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class ItemSphereNavigation extends ItemModRelic {
+
+ public static final int rangeSearch = 17;
+ public static final int maxCooldown = 112;
+ public static final int manaCost = 1750;
+
+ public ItemSphereNavigation() {
+ super("sphereNavigation");
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int pos, boolean equipped) {
+ super.onUpdate(stack, world, entity, pos, equipped);
+ if(entity instanceof EntityPlayer) {
+ EntityPlayer player = (EntityPlayer)entity;
+ if(!world.isRemote && getFindBlock(stack) != null && canWork(stack) && ManaItemHandler.requestManaExactForTool(stack, player, manaCost, true)) {
+ setMaxTick(stack);
+ NetworkHandler.sendPacketToFindBlocks((EntityPlayerMP)player, getFindBlock(stack), getFindMeta(stack));
+ }
+ }
+ }
+
+ public static void findBlocks(World world, Block findBlock, int findMeta, EntityPlayer player) {
+ if(world.isRemote) {
+ ItemStack renderStack = null;
+ int findedBlocks = 0;
+ label1703:
+ for(int x = -rangeSearch; x < rangeSearch; x++) {
+ if(world.rand.nextBoolean())
+ continue;
+ for(int y = -rangeSearch * 4; y < rangeSearch; y++) {
+ for(int z = -rangeSearch; z < rangeSearch; z++) {
+ if(world.rand.nextBoolean())
+ continue;
+ else if(findedBlocks > 24)
+ break label1703;
+ int posX = MathHelper.floor_double(player.posX) + x;
+ int posY = MathHelper.floor_double(player.posY) + y;
+ int posZ = MathHelper.floor_double(player.posZ) + z;
+ if(posY < 0)
+ continue;
+ Block block = world.getBlock(posX, posY, posZ);
+ if(!Block.isEqualTo(block, findBlock))
+ continue;
+ int meta = world.getBlockMetadata(posX, posY, posZ);
+ if(meta == findMeta) {
+ if(renderStack == null)
+ renderStack = getRenderStackForBlock(world, block, meta, posX, posY, posZ);
+ findedBlocks++;
+ float maxAge = 2.7f + (0.5f * (float)(Math.random()));
+ Botania.proxy.setWispFXDepthTest(false);
+ Botania.proxy.setWispFXDistanceLimit(false);
+ float far = 120.0f - (((Math.abs(x) + Math.min(rangeSearch * 2.0f, Math.abs(y)) + Math.abs(z)) / (rangeSearch * 4.0f)) * 120.0f);
+ if(far <= 60)
+ far *= 0.15f;
+ Color color = new Color(Color.HSBtoRGB(far / 360.0f, 0.9f + (float)(Math.random() * 0.1f), 1.0f));
+ for(int i = 0; i < 11; i++)
+ Botania.proxy.wispFX(world, posX + 0.5f + (Math.random() - 0.5f), posY + 0.5f + (Math.random() - 0.5f), posZ + 0.5f + (Math.random() - 0.5f), color.getRed() / 100.0f, color.getGreen() / 100.0f, color.getBlue() / 100.0f, 0.3f + (float)(Math.random() * 0.25f), 0.0f, maxAge);
+ Botania.proxy.setWispFXDistanceLimit(true);
+ Botania.proxy.setWispFXDepthTest(true);
+ }
+ }
+ }
+ }
+ if(renderStack != null)
+ ItemsRemainingRender.set(renderStack, "íàéäåíî: " + findedBlocks);
+ }
+ }
+
+ public static ItemStack getRenderStackForBlock(World world, Block block, int meta, int x, int y, int z) {
+ if(block != null) {
+ Item item = Item.getItemFromBlock(block);
+ if(item != null) {
+ ItemStack findStack = new ItemStack(block, 1, meta);
+ if(findStack != null)
+ return findStack;
+ } else {
+ Item item1 = block.getItem(world, x, y, z);
+ if(item1 != null) {
+ ItemStack findStack = new ItemStack(item1, 1, meta);
+ if(findStack != null)
+ return findStack;
+ }
+ }
+ }
+ return null;
+ }
+
+ public boolean onItemUse(ItemStack stack, EntityPlayer p, World world, int x, int y, int z, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
+ if(p.isSneaking()) {
+ Block block = world.getBlock(x, y, z);
+ if(block != null) {
+ int meta = world.getBlockMetadata(x, y, z);
+ ItemStack findStack = getRenderStackForBlock(world, block, meta, x, y, z);
+ if(findStack != null) {
+ setFindBlock(stack, block, meta);
+ if(world.isRemote)
+ ItemsRemainingRender.set(findStack, findStack.getDisplayName());
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public boolean canWork(ItemStack stack) {
+ int tick = ItemNBTHelper.getInt(stack, "cooldown", 0);
+ if(tick == 0)
+ return true;
+ else if(tick > 0)
+ ItemNBTHelper.setInt(stack, "cooldown", tick - 1);
+ return false;
+ }
+
+ public void setMaxTick(ItemStack stack) {
+ ItemNBTHelper.setInt(stack, "cooldown", maxCooldown);
+ }
+
+ public static void setFindBlock(ItemStack stack, Block block, int meta) {
+ ItemNBTHelper.setInt(stack, "findBlockID", Block.getIdFromBlock(block));
+ ItemNBTHelper.setInt(stack, "findBlockMeta", meta);
+ }
+
+ public static Block getFindBlock(ItemStack stack) {
+ int blockID = ItemNBTHelper.getInt(stack, "findBlockID", 0);
+ if(blockID == 0)
+ return null;
+ else
+ return Block.getBlockById(blockID);
+ }
+
+ public static int getFindMeta(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "findBlockMeta", -1);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d6/50a7e5e163c1001c11e398ea97007cb4 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d6/50a7e5e163c1001c11e398ea97007cb4
new file mode 100644
index 0000000..9620dab
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d6/50a7e5e163c1001c11e398ea97007cb4
@@ -0,0 +1,192 @@
+package ab.common.item.relic;
+
+import java.awt.Color;
+import java.util.List;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.common.core.handler.NetworkHandler;
+import ab.common.lib.register.ItemListAB;
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
+import net.minecraft.block.Block;
+import net.minecraft.client.renderer.texture.IIconRegister;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.MathHelper;
+import net.minecraft.util.StatCollector;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.api.mana.ManaItemHandler;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class ItemSphereNavigation extends ItemModRelic {
+
+ public static IIcon[] icons;
+ public static final int rangeSearch = 16;
+ public static final int maxCooldown = 158;
+ public static final int manaCost = 1750;
+
+ public ItemSphereNavigation() {
+ super("sphereNavigation");
+ }
+
+ public void registerIcons(IIconRegister ir) {
+ icons = new IIcon[5];
+ icons[0] = ir.registerIcon("ab:sphereNavigation");
+ icons[1] = ir.registerIcon("ab:sphereNavigation_hasblock");
+ icons[2] = ir.registerIcon("ab:sphereNavigation_nonBlock");
+ icons[3] = ir.registerIcon("ab:sphereNavigation_off");
+ icons[4] = ir.registerIcon("ab:sphereNavigation_on");
+ }
+
+ @SideOnly(Side.CLIENT)
+ public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean par4) {
+ addStringToTooltip(StatCollector.translateToLocal(stack.getItemDamage() == 1 ? "botaniamisc.active" : "botaniamisc.inactive"), list);
+ }
+
+ void addStringToTooltip(String s, List tooltip) {
+ tooltip.add(s.replaceAll("&", "\u00A7"));
+ }
+
+ public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
+ if(getFindBlock(stack) != null && player.isSneaking()) {
+ int dmg = stack.getItemDamage();
+ stack.setItemDamage((dmg ^ 0xFFFFFFFF) & 0x1);
+ world.playSoundAtEntity(player, "random.orb", 0.3F, 0.1F);
+ }
+ return stack;
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int pos, boolean equipped) {
+ super.onUpdate(stack, world, entity, pos, equipped);
+ if(entity instanceof EntityPlayer) {
+ EntityPlayer player = (EntityPlayer)entity;
+ if(!world.isRemote && stack.getItemDamage() == 0 && getFindBlock(stack) != null && canWork(stack) && ManaItemHandler.requestManaExactForTool(stack, player, manaCost, true)) {
+ setMaxTick(stack);
+ NetworkHandler.sendPacketToFindBlocks((EntityPlayerMP)player, getFindBlock(stack), getFindMeta(stack));
+ }
+ }
+ }
+
+ public static void findBlocks(World world, Block findBlock, int findMeta, EntityPlayer player) {
+ if(world.isRemote) {
+ ItemStack renderStack = null;
+ int maxFindedBlocks = 32;
+ int findedBlocks = 0;
+ label1703:
+ for(int y = -rangeSearch * 2; y < rangeSearch; y++) {
+ for(int x = -rangeSearch; x < rangeSearch; x++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks)) || world.rand.nextBoolean())
+ continue;
+ for(int z = -rangeSearch; z < rangeSearch; z++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks)) || world.rand.nextBoolean())
+ continue;
+ else if(findedBlocks >= maxFindedBlocks)
+ break label1703;
+ int posX = MathHelper.floor_double(player.posX) + x;
+ int posY = MathHelper.floor_double(player.posY) + y;
+ int posZ = MathHelper.floor_double(player.posZ) + z;
+ if(posY < 0)
+ continue;
+ Block block = world.getBlock(posX, posY, posZ);
+ if(!Block.isEqualTo(block, findBlock))
+ continue;
+ int meta = world.getBlockMetadata(posX, posY, posZ);
+ if(meta == findMeta) {
+ if(renderStack == null)
+ renderStack = getRenderStackForBlock(world, block, meta, posX, posY, posZ);
+ findedBlocks++;
+ float maxAge = 2.7f + (0.5f * (float)(Math.random()));
+ Botania.proxy.setWispFXDepthTest(false);
+ Botania.proxy.setWispFXDistanceLimit(false);
+ float far = 120.0f - (((Math.abs(x) + Math.min(rangeSearch, Math.abs(y)) + Math.abs(z)) / (rangeSearch * 4.0f)) * 120.0f);
+ if(far <= 40)
+ far *= 0.15f;
+ Color color = new Color(Color.HSBtoRGB(far / 360.0f, 0.9f + (float)(Math.random() * 0.1f), 1.0f));
+ for(int i = 0; i < 11; i++)
+ Botania.proxy.wispFX(world, posX + 0.5f + (Math.random() - 0.5f), posY + 0.5f + (Math.random() - 0.5f), posZ + 0.5f + (Math.random() - 0.5f), color.getRed() / 100.0f, color.getGreen() / 100.0f, color.getBlue() / 100.0f, 0.3f + (float)(Math.random() * 0.25f), 0.0f, maxAge);
+ Botania.proxy.setWispFXDistanceLimit(true);
+ Botania.proxy.setWispFXDepthTest(true);
+ }
+ }
+ }
+ }
+ if(renderStack != null)
+ ItemsRemainingRender.set(renderStack, "íàéäåíî: " + findedBlocks);
+ }
+ }
+
+ public static ItemStack getRenderStackForBlock(World world, Block block, int meta, int x, int y, int z) {
+ if(block != null) {
+ Item item = Item.getItemFromBlock(block);
+ if(item != null) {
+ ItemStack findStack = new ItemStack(block, 1, meta);
+ if(findStack != null)
+ return findStack;
+ } else {
+ Item item1 = block.getItem(world, x, y, z);
+ if(item1 != null) {
+ ItemStack findStack = new ItemStack(item1, 1, meta);
+ if(findStack != null)
+ return findStack;
+ }
+ }
+ }
+ return null;
+ }
+
+ public boolean onItemUse(ItemStack stack, EntityPlayer p, World world, int x, int y, int z, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
+ if(p.isSneaking()) {
+ Block block = world.getBlock(x, y, z);
+ if(block != null) {
+ int meta = world.getBlockMetadata(x, y, z);
+ ItemStack findStack = getRenderStackForBlock(world, block, meta, x, y, z);
+ if(findStack != null) {
+ setFindBlock(stack, block, meta);
+ if(world.isRemote)
+ ItemsRemainingRender.set(findStack, findStack.getDisplayName());
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public boolean canWork(ItemStack stack) {
+ int tick = ItemNBTHelper.getInt(stack, "cooldown", 0);
+ if(tick == 0)
+ return true;
+ else if(tick > 0)
+ ItemNBTHelper.setInt(stack, "cooldown", tick - 1);
+ return false;
+ }
+
+ public void setMaxTick(ItemStack stack) {
+ ItemNBTHelper.setInt(stack, "cooldown", maxCooldown);
+ }
+
+ public static void setFindBlock(ItemStack stack, Block block, int meta) {
+ ItemNBTHelper.setInt(stack, "findBlockID", Block.getIdFromBlock(block));
+ ItemNBTHelper.setInt(stack, "findBlockMeta", meta);
+ }
+
+ public static Block getFindBlock(ItemStack stack) {
+ int blockID = ItemNBTHelper.getInt(stack, "findBlockID", 0);
+ if(blockID == 0)
+ return null;
+ else
+ return Block.getBlockById(blockID);
+ }
+
+ public static int getFindMeta(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "findBlockMeta", -1);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d6/d0830355bcbc001c1a9f99005529f322 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d6/d0830355bcbc001c1a9f99005529f322
new file mode 100644
index 0000000..e69de29
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d8/a044abe3f5ac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d8/a044abe3f5ac001c1d59e42be7477558
deleted file mode 100644
index 759a0fc..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d8/a044abe3f5ac001c1d59e42be7477558
+++ /dev/null
@@ -1,197 +0,0 @@
-package ab.common.block.tile;
-
-import java.util.List;
-
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.ChatComponentTranslation;
-import net.minecraft.util.ChatStyle;
-import net.minecraft.util.EnumChatFormatting;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.common.block.tile.TileMod;
-
-public class TileGameBoard extends TileMod {
-
- public String[] playersName = new String[] { "", "" };
- public byte[] slotChance = new byte[] { 0, 0, 0, 0 };
- protected int botTick = -1;
- public int endGameTick = -1;
- protected boolean requestUpdate;
- public boolean isSingleGame = false;
- public int clientTick[] = new int[] { 0, 0, 0, 0 };
-
- public void updateEntity() {
- if(botTick > 0)
- botTick--;
- if(endGameTick > 0)
- endGameTick--;
- if(!worldObj.isRemote)
- updateServer();
- else
- updateClient();
- }
-
- protected void updateClient() {
- for(int i = 0; i < slotChance.length; i++)
- if(slotChance[i] > 0)
- clientTick[i]++;
- else
- clientTick[i] = 0;
- }
-
- protected void updateServer() {
- if(hasGame() && endGameTick == 0)
- finishGame();
- if(requestUpdate)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- boolean hasUpdate = false;
- if(isSingleGame && botTick == 0 && hasGame()) {
- for(int i = 2; i < 4; i++) {
- if(slotChance[i] == 0) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = -1;
- hasUpdate = true;
- break;
- }
- }
- }
- requestUpdate = hasUpdate;
- }
-
- public void setPlayer(EntityPlayer player) {
- if(isSingleGame) {
- playersName[0] = player.getCommandSenderName();
- playersName[1] = "";
- requestUpdate = true;
- botTick = 8;
- } else {
- if(playersName[0].isEmpty())
- playersName[0] = player.getCommandSenderName();
- else if(!playersName[0].equals(player.getCommandSenderName()))
- playersName[1] = player.getCommandSenderName();
- requestUpdate = true;
- }
- }
-
- public boolean dropDice(EntityPlayer player) {
- if(isSingleGame) {
- if(player.getCommandSenderName().equals(playersName[0]) && botTick == -1) {
- boolean isLastDice = false;
- for(int i = 0; i < 2; i++) {
- if(slotChance[i] == 0 && !worldObj.isRemote) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = 18;
- requestUpdate = true;
- if(i == 1)
- isLastDice = true;
- break;
- }
- }
- if(isLastDice)
- endGameTick = 28;
- return true;
- }
- } else {
- for(int i = 0; i < playersName.length; i++) {
- if(player.getCommandSenderName().equals(playersName[i])) {
- for(int j = i * 2; j < (i + 1) * 2; j++) {
- if(slotChance[j] == 0 && !worldObj.isRemote) {
- slotChance[j] = (byte)(worldObj.rand.nextInt(6) + 1);
- requestUpdate = true;
- if(hasFullDice())
- endGameTick = 28;
- break;
- }
- }
- return true;
- }
- }
- }
- return false;
- }
-
- public boolean hasFullDice() {
- boolean hasFull = false;
- for(int i = 0; i < slotChance.length; i++) {
- if(!(slotChance[i] > 0))
- return false;
- hasFull = slotChance[i] > 0;
- }
- return hasFull;
- }
-
- public boolean hasGame() {
- if(isSingleGame)
- return !playersName[0].isEmpty();
- else
- for(int i = 0; i < playersName.length; i++)
- if(!playersName[i].isEmpty())
- return true;
- return false;
- }
-
- public void finishGame() {
- if(worldObj.isRemote)
- return;
- if(isSingleGame) {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won");
- else if((slotChance[0] + slotChance[1]) == (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " not win");
- else
- sendNearMessage(playersName[0] + " you Lose!");
- resetGame();
- } else {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won!");
- else if((slotChance[0] + slotChance[1]) == (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " " + playersName[1] + "we are not win");
- else
- sendNearMessage(playersName[1] + " you Won!");
- resetGame();
- }
- }
-
- public void sendNearMessage(String text) {
- List players = this.worldObj.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(this.xCoord, this.yCoord, this.zCoord, (this.xCoord + 1), (this.yCoord + 1), (this.zCoord + 1)).expand(3.5f, 3.5f, 3.5f));
- for(EntityPlayer player : players) {
- if(player != null)
- player.addChatMessage((new ChatComponentTranslation(text, new Object[] {})).setChatStyle((new ChatStyle()).setColor(EnumChatFormatting.DARK_GREEN)));
- }
- }
-
- public void resetGame() {
- playersName[0] = "";
- playersName[1] = "";
- for(int i = 0; i < slotChance.length; i++)
- slotChance[i] = 0;
- botTick = -1;
- endGameTick = -1;
- requestUpdate = true;
- }
-
- public void writeCustomNBT(NBTTagCompound cmp) {
- super.writeCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- cmp.setString("playerName" + i, playersName[i]);
- cmp.setByteArray("slotChance", slotChance);
- cmp.setInteger("botTick", botTick);
- cmp.setInteger("endGameTick", endGameTick);
- cmp.setBoolean("requestUpdate", requestUpdate);
- cmp.setBoolean("isSingleGame", isSingleGame);
- }
-
- public void readCustomNBT(NBTTagCompound cmp) {
- super.readCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- playersName[i] = cmp.getString("playerName" + i);
- botTick = cmp.getInteger("botTick");
- endGameTick = cmp.getInteger("endGameTick");
- slotChance = cmp.getByteArray("slotChance");
- requestUpdate = cmp.getBoolean("requestUpdate");
- isSingleGame = cmp.getBoolean("isSingleGame");
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d8/b0d186c5a5b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d8/b0d186c5a5b1001c19bf8a91ac37238b
deleted file mode 100644
index a0fd76c..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/d8/b0d186c5a5b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,85 +0,0 @@
-package ab.client.core.handler;
-
-import java.awt.Color;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.armor.ItemNebulaArmor;
-import ab.common.item.equipment.armor.ItemNebulaHelm;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.ItemRenderer;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.texture.TextureMap;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraftforge.client.event.RenderPlayerEvent;
-import vazkii.botania.api.item.IPhantomInkable;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class PlayerRendererHandler {
-
- @SubscribeEvent
- public void onPlayerRender(RenderPlayerEvent.Specials.Post event) {
- EntityPlayer player = event.entityPlayer;
- ItemStack item = player.getCurrentArmor(3);
- if(item != null && item.getItem() instanceof ItemNebulaHelm) {
- Item helm = player.getCurrentArmor(3).getItem();
- boolean hasPhantomInk = helm instanceof IPhantomInkable && ((IPhantomInkable)helm).hasPhantomInk(item);
- if(!hasPhantomInk && ((ItemNebulaHelm)helm).enableCosmicFace(item)) {
- float angelX = event.renderer.modelBipedMain.bipedHead.rotateAngleX * 180.0F / (float)Math.PI;
- float angelY = event.renderer.modelBipedMain.bipedHead.rotateAngleY * 180.0F / (float)Math.PI;
- GL11.glPushMatrix();
- if(player.isSneaking())
- GL11.glTranslatef(event.renderer.modelBipedMain.bipedHead.rotationPointX * 0.0625f, event.renderer.modelBipedMain.bipedHead.rotationPointY * 0.0625f, 0.0f);
- GL11.glRotatef(angelY, 0.0F, 1.0F, 0.0F);
- GL11.glRotatef(angelX, 1.0F, 0.0F, 0.0F);
- renderCosmicFace();
- GL11.glPopMatrix();
- }
- }
- }
-
- private void renderCosmicFace() {
- double worldTime = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- GL11.glPushMatrix();
- GL11.glEnable(GL11.GL_TEXTURE_2D);
- GL11.glDisable(2884);
-
- GL11.glPushMatrix();
- GL11.glScalef(0.5f, 0.4f, 0.4f);
- GL11.glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
- GL11.glTranslatef(-0.5f, -0.8675f, 0.0f);
- GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
- GL11.glDisable(2912);
- ClientHelper.renderCosmicBackground();
- GL11.glEnable(2912);
- GL11.glPopMatrix();
-
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- (Minecraft.getMinecraft()).renderEngine.bindTexture(TextureMap.locationItemsTexture);
- GL11.glTranslatef(-0.2F, -0.35F, -0.25F);
- GL11.glScalef(0.4f, 0.4f, 0.4f);
- float f = ItemNebulaArmor.nebulaEyes.getMinU();
- float f1 = ItemNebulaArmor.nebulaEyes.getMaxU();
- float f2 = ItemNebulaArmor.nebulaEyes.getMinV();
- float f3 = ItemNebulaArmor.nebulaEyes.getMaxV();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float r = color.getRed() / 510.0F;
- float g = color.getGreen() / 510.0F;
- float b = color.getBlue() / 510.0F;
- GL11.glColor4f(0.5f + r, 0.5f + g, 0.5f + b, 0.685f + (float)Math.sin(worldTime / 50.0D) * 0.175F);
- ItemRenderer.renderItemIn2D(Tessellator.instance, f1, f2, f, f3, ItemNebulaArmor.nebulaEyes.getIconWidth(), ItemNebulaArmor.nebulaEyes.getIconHeight(), 0.03125F);
- GL11.glDisable(3042);
- GL11.glEnable(32826);
- GL11.glPopMatrix();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/db/904170c4f5b0001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/db/904170c4f5b0001c19bf8a91ac37238b
deleted file mode 100644
index 748ebc4..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/db/904170c4f5b0001c19bf8a91ac37238b
+++ /dev/null
@@ -1,86 +0,0 @@
-package ab.client.core.handler;
-
-import java.awt.Color;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.armor.ItemNebulaArmor;
-import ab.common.item.equipment.armor.ItemNebulaHelm;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.ItemRenderer;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.texture.TextureMap;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraftforge.client.event.RenderPlayerEvent;
-import vazkii.botania.api.item.IPhantomInkable;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class PlayerRendererHandler {
-
- @SubscribeEvent
- public void onPlayerRender(RenderPlayerEvent.Specials.Post event) {
- EntityPlayer player = event.entityPlayer;
- ItemStack item = player.getCurrentArmor(3);
- if(item != null && item.getItem() instanceof ItemNebulaHelm) {
- Item helm = player.getCurrentArmor(3).getItem();
- boolean hasPhantomInk = helm instanceof IPhantomInkable && ((IPhantomInkable)helm).hasPhantomInk(item);
- if(!hasPhantomInk && ((ItemNebulaHelm)helm).enableCosmicFace(item)) {
- float angelX = event.renderer.modelBipedMain.bipedHead.rotateAngleX * 180.0F / (float)Math.PI;
- float angelY = event.renderer.modelBipedMain.bipedHead.rotateAngleY * 180.0F / (float)Math.PI;
- GL11.glPushMatrix();
- if(player.isSneaking())
- GL11.glTranslatef(event.renderer.modelBipedMain.bipedHead.rotationPointX * 0.0625f, event.renderer.modelBipedMain.bipedHead.rotationPointY * 0.0625f, 0.0f);
- GL11.glRotatef(angelY, 0.0F, 1.0F, 0.0F);
- GL11.glRotatef(angelX, 1.0F, 0.0F, 0.0F);
- renderCosmicFace();
- GL11.glPopMatrix();
- }
- }
- }
-
- private void renderCosmicFace() {
- double worldTime = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- GL11.glPushMatrix();
- GL11.glEnable(GL11.GL_TEXTURE_2D);
- GL11.glDisable(2912);
- GL11.glDisable(2884);
-
- GL11.glPushMatrix();
- GL11.glScalef(0.5f, 0.4f, 0.4f);
- GL11.glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
- GL11.glTranslatef(-0.5f, -0.8675f, 0.0f);
- GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
- ClientHelper.renderCosmicBackground();
- GL11.glPopMatrix();
-
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- (Minecraft.getMinecraft()).renderEngine.bindTexture(TextureMap.locationItemsTexture);
- GL11.glTranslatef(-0.2F, -0.35F, -0.25F);
- GL11.glScalef(0.4f, 0.4f, 0.4f);
- float f = ItemNebulaArmor.nebulaEyes.getMinU();
- float f1 = ItemNebulaArmor.nebulaEyes.getMaxU();
- float f2 = ItemNebulaArmor.nebulaEyes.getMinV();
- float f3 = ItemNebulaArmor.nebulaEyes.getMaxV();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float r = color.getRed() / 510.0F;
- float g = color.getGreen() / 510.0F;
- float b = color.getBlue() / 510.0F;
- GL11.glColor4f(0.5f + r, 0.5f + g, 0.5f + b, 0.685f + (float)Math.sin(worldTime / 50.0D) * 0.175F);
- ItemRenderer.renderItemIn2D(Tessellator.instance, f1, f2, f, f3, ItemNebulaArmor.nebulaEyes.getIconWidth(), ItemNebulaArmor.nebulaEyes.getIconHeight(), 0.03125F);
- GL11.glDisable(3042);
- GL11.glEnable(2884);
-// GL11.glEnable(2912);
- GL11.glEnable(32826);
- GL11.glPopMatrix();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/db/b0631d1fa6b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/db/b0631d1fa6b1001c19bf8a91ac37238b
deleted file mode 100644
index 82c853b..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/db/b0631d1fa6b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,87 +0,0 @@
-package ab.client.core.handler;
-
-import java.awt.Color;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.armor.ItemNebulaArmor;
-import ab.common.item.equipment.armor.ItemNebulaHelm;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.ItemRenderer;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.texture.TextureMap;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraftforge.client.event.RenderPlayerEvent;
-import vazkii.botania.api.item.IPhantomInkable;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class PlayerRendererHandler {
-
- @SubscribeEvent
- public void onPlayerRender(RenderPlayerEvent.Specials.Post event) {
- EntityPlayer player = event.entityPlayer;
- ItemStack item = player.getCurrentArmor(3);
- if(item != null && item.getItem() instanceof ItemNebulaHelm) {
- Item helm = player.getCurrentArmor(3).getItem();
- boolean hasPhantomInk = helm instanceof IPhantomInkable && ((IPhantomInkable)helm).hasPhantomInk(item);
- if(!hasPhantomInk && ((ItemNebulaHelm)helm).enableCosmicFace(item)) {
- float angelX = event.renderer.modelBipedMain.bipedHead.rotateAngleX * 180.0F / (float)Math.PI;
- float angelY = event.renderer.modelBipedMain.bipedHead.rotateAngleY * 180.0F / (float)Math.PI;
- GL11.glPushMatrix();
- if(player.isSneaking())
- GL11.glTranslatef(event.renderer.modelBipedMain.bipedHead.rotationPointX * 0.0625f, event.renderer.modelBipedMain.bipedHead.rotationPointY * 0.0625f, 0.0f);
- GL11.glRotatef(angelY, 0.0F, 1.0F, 0.0F);
- GL11.glRotatef(angelX, 1.0F, 0.0F, 0.0F);
- renderCosmicFace();
- GL11.glPopMatrix();
- }
- }
- }
-
- private void renderCosmicFace() {
- double worldTime = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- GL11.glPushMatrix();
- GL11.glEnable(GL11.GL_TEXTURE_2D);
- GL11.glDisable(2884);
-
- GL11.glPushMatrix();
- GL11.glScalef(0.5f, 0.4f, 0.4f);
- GL11.glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
- GL11.glTranslatef(-0.5f, -0.8675f, 0.0f);
- GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
- System.out.println(GL11.glGetBoolean(2912));
- GL11.glDisable(2912);
- System.out.println(GL11.glGetBoolean(2912));
- ClientHelper.renderCosmicBackground();
- GL11.glEnable(2912);
- GL11.glPopMatrix();
-
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- (Minecraft.getMinecraft()).renderEngine.bindTexture(TextureMap.locationItemsTexture);
- GL11.glTranslatef(-0.2F, -0.35F, -0.25F);
- GL11.glScalef(0.4f, 0.4f, 0.4f);
- float f = ItemNebulaArmor.nebulaEyes.getMinU();
- float f1 = ItemNebulaArmor.nebulaEyes.getMaxU();
- float f2 = ItemNebulaArmor.nebulaEyes.getMinV();
- float f3 = ItemNebulaArmor.nebulaEyes.getMaxV();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float r = color.getRed() / 510.0F;
- float g = color.getGreen() / 510.0F;
- float b = color.getBlue() / 510.0F;
- GL11.glColor4f(0.5f + r, 0.5f + g, 0.5f + b, 0.685f + (float)Math.sin(worldTime / 50.0D) * 0.175F);
- ItemRenderer.renderItemIn2D(Tessellator.instance, f1, f2, f, f3, ItemNebulaArmor.nebulaEyes.getIconWidth(), ItemNebulaArmor.nebulaEyes.getIconHeight(), 0.03125F);
- GL11.glDisable(3042);
- GL11.glEnable(32826);
- GL11.glPopMatrix();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/dc/e012951103c0001c1965b122d2f8f403 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/dc/e012951103c0001c1965b122d2f8f403
new file mode 100644
index 0000000..4a2927f
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/dc/e012951103c0001c1965b122d2f8f403
@@ -0,0 +1,158 @@
+package ab.common.item.relic;
+
+import java.awt.Color;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.common.core.handler.NetworkHandler;
+import ab.common.lib.register.ItemListAB;
+import net.minecraft.block.Block;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.util.MathHelper;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.api.mana.ManaItemHandler;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class ItemSphereNavigation extends ItemModRelic {
+
+ public static final int rangeSearch = 16;
+ public static final int maxCooldown = 112;
+ public static final int manaCost = 1750;
+
+ public ItemSphereNavigation() {
+ super("sphereNavigation");
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int pos, boolean equipped) {
+ super.onUpdate(stack, world, entity, pos, equipped);
+ if(entity instanceof EntityPlayer) {
+ EntityPlayer player = (EntityPlayer)entity;
+ if(!world.isRemote && getFindBlock(stack) != null && canWork(stack) && ManaItemHandler.requestManaExactForTool(stack, player, manaCost, true)) {
+ setMaxTick(stack);
+ NetworkHandler.sendPacketToFindBlocks((EntityPlayerMP)player, getFindBlock(stack), getFindMeta(stack));
+ }
+ }
+ }
+
+ public static void findBlocks(World world, Block findBlock, int findMeta, EntityPlayer player) {
+ if(world.isRemote) {
+ ItemStack renderStack = null;
+ int maxFindedBlocks = 25;
+ int findedBlocks = 0;
+ label1703:
+ for(int y = -rangeSearch * 2; y < rangeSearch; y++) {
+ for(int x = -rangeSearch; x < rangeSearch; x++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks)))
+ continue;
+ for(int z = -rangeSearch; z < rangeSearch; z++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks)))
+ continue;
+ else if(findedBlocks >= maxFindedBlocks)
+ break label1703;
+ int posX = MathHelper.floor_double(player.posX) + x;
+ int posY = MathHelper.floor_double(player.posY) + y;
+ int posZ = MathHelper.floor_double(player.posZ) + z;
+ if(posY < 0)
+ continue;
+ Block block = world.getBlock(posX, posY, posZ);
+ if(!Block.isEqualTo(block, findBlock))
+ continue;
+ int meta = world.getBlockMetadata(posX, posY, posZ);
+ if(meta == findMeta) {
+ if(renderStack == null)
+ renderStack = getRenderStackForBlock(world, block, meta, posX, posY, posZ);
+ findedBlocks++;
+ float maxAge = 2.7f + (0.5f * (float)(Math.random()));
+ Botania.proxy.setWispFXDepthTest(false);
+ Botania.proxy.setWispFXDistanceLimit(false);
+ float far = 120.0f - (((Math.abs(x) + Math.min(rangeSearch, Math.abs(y)) + Math.abs(z)) / (rangeSearch * 4.0f)) * 120.0f);
+ if(far <= 60)
+ far *= 0.15f;
+ Color color = new Color(Color.HSBtoRGB(far / 360.0f, 0.9f + (float)(Math.random() * 0.1f), 1.0f));
+ for(int i = 0; i < 11; i++)
+ Botania.proxy.wispFX(world, posX + 0.5f + (Math.random() - 0.5f), posY + 0.5f + (Math.random() - 0.5f), posZ + 0.5f + (Math.random() - 0.5f), color.getRed() / 100.0f, color.getGreen() / 100.0f, color.getBlue() / 100.0f, 0.3f + (float)(Math.random() * 0.25f), 0.0f, maxAge);
+ Botania.proxy.setWispFXDistanceLimit(true);
+ Botania.proxy.setWispFXDepthTest(true);
+ }
+ }
+ }
+ }
+ if(renderStack != null)
+ ItemsRemainingRender.set(renderStack, "íàéäåíî: " + findedBlocks);
+ }
+ }
+
+ public static ItemStack getRenderStackForBlock(World world, Block block, int meta, int x, int y, int z) {
+ if(block != null) {
+ Item item = Item.getItemFromBlock(block);
+ if(item != null) {
+ ItemStack findStack = new ItemStack(block, 1, meta);
+ if(findStack != null)
+ return findStack;
+ } else {
+ Item item1 = block.getItem(world, x, y, z);
+ if(item1 != null) {
+ ItemStack findStack = new ItemStack(item1, 1, meta);
+ if(findStack != null)
+ return findStack;
+ }
+ }
+ }
+ return null;
+ }
+
+ public boolean onItemUse(ItemStack stack, EntityPlayer p, World world, int x, int y, int z, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
+ if(p.isSneaking()) {
+ Block block = world.getBlock(x, y, z);
+ if(block != null) {
+ int meta = world.getBlockMetadata(x, y, z);
+ ItemStack findStack = getRenderStackForBlock(world, block, meta, x, y, z);
+ if(findStack != null) {
+ setFindBlock(stack, block, meta);
+ if(world.isRemote)
+ ItemsRemainingRender.set(findStack, findStack.getDisplayName());
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public boolean canWork(ItemStack stack) {
+ int tick = ItemNBTHelper.getInt(stack, "cooldown", 0);
+ if(tick == 0)
+ return true;
+ else if(tick > 0)
+ ItemNBTHelper.setInt(stack, "cooldown", tick - 1);
+ return false;
+ }
+
+ public void setMaxTick(ItemStack stack) {
+ ItemNBTHelper.setInt(stack, "cooldown", maxCooldown);
+ }
+
+ public static void setFindBlock(ItemStack stack, Block block, int meta) {
+ ItemNBTHelper.setInt(stack, "findBlockID", Block.getIdFromBlock(block));
+ ItemNBTHelper.setInt(stack, "findBlockMeta", meta);
+ }
+
+ public static Block getFindBlock(ItemStack stack) {
+ int blockID = ItemNBTHelper.getInt(stack, "findBlockID", 0);
+ if(blockID == 0)
+ return null;
+ else
+ return Block.getBlockById(blockID);
+ }
+
+ public static int getFindMeta(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "findBlockMeta", -1);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/dd/3077b23484ae001c1bd4eaa9a9be6b81 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/dd/3077b23484ae001c1bd4eaa9a9be6b81
deleted file mode 100644
index 723fba2..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/dd/3077b23484ae001c1bd4eaa9a9be6b81
+++ /dev/null
@@ -1,123 +0,0 @@
-package ab.common.lib.register;
-
-import ab.common.block.BlockABSpreader;
-import ab.common.block.BlockABStorage;
-import ab.common.block.BlockAgglomerationPlate;
-import ab.common.block.BlockAntigravitation;
-import ab.common.block.BlockBoardFate;
-import ab.common.block.BlockEngineerHopper;
-import ab.common.block.BlockFreyrLiana;
-import ab.common.block.BlockLebethronWood;
-import ab.common.block.BlockLuminousFreyrLiana;
-import ab.common.block.BlockMagicCraftCrate;
-import ab.common.block.BlockManaCharger;
-import ab.common.block.BlockManaContainer;
-import ab.common.block.BlockManaCrystalCube;
-import ab.common.block.BlockTerraFarmland;
-import ab.common.block.tile.TileABSpreader;
-import ab.common.block.tile.TileAgglomerationPlate;
-import ab.common.block.tile.TileBoardFate;
-import ab.common.block.tile.TileEngineerHopper;
-import ab.common.block.tile.TileGameBoard;
-import ab.common.block.tile.TileLebethronCore;
-import ab.common.block.tile.TileMagicCraftCrate;
-import ab.common.block.tile.TileManaCharger;
-import ab.common.block.tile.TileManaContainer;
-import ab.common.block.tile.TileManaCrystalCube;
-import ab.common.core.handler.ConfigABHandler;
-import ab.common.item.block.ItemBlockBase;
-import cpw.mods.fml.common.registry.GameRegistry;
-import net.minecraft.block.Block;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.core.handler.ConfigHandler;
-
-public class BlockListAB {
-
- public static Block blockABSpreader;
- public static Block blockABPlate;
- public static Block blockLebethron;
- public static Block blockManaContainer;
- public static Block blockABStorage;
- public static Block blockManaCrystalCube;
- public static Block blockTerraFarmland;
- public static Block blockAntigravitation;
- public static Block blockManaCharger;
- public static Block blockEngineerHopper;
- public static Block blockFreyrLiana;
- public static Block blockLuminousFreyrLiana;
- public static Block blockMagicCraftCrate;
- public static Block blockBoardFate;
-
- public static int blockABSpreaderRI;
- public static int blockManaContainerRI;
- public static int blockManaCrystalCubeRI;
- public static int blockManaChargerRI;
- public static int blockEngineerHopperRI;
-
- public static void init() {
- initializeBlocks();
- registerBlocks();
- registerTileEntities();
- }
-
- private static void initializeBlocks() {
- BlockListAB.blockABSpreader = new BlockABSpreader();
- BlockListAB.blockABPlate = new BlockAgglomerationPlate();
- BlockListAB.blockLebethron = new BlockLebethronWood();
- BlockListAB.blockManaContainer = new BlockManaContainer();
- BlockListAB.blockABStorage = new BlockABStorage();
- BlockListAB.blockManaCrystalCube = new BlockManaCrystalCube();
- BlockListAB.blockTerraFarmland = new BlockTerraFarmland();
- BlockListAB.blockAntigravitation = new BlockAntigravitation();
- BlockListAB.blockManaCharger = new BlockManaCharger();
- BlockListAB.blockEngineerHopper = new BlockEngineerHopper();
- BlockListAB.blockLuminousFreyrLiana = new BlockLuminousFreyrLiana();
- BlockListAB.blockFreyrLiana = new BlockFreyrLiana();
- BlockListAB.blockBoardFate = new BlockBoardFate();
- if(Botania.thaumcraftLoaded)
- BlockListAB.blockMagicCraftCrate = new BlockMagicCraftCrate();
- }
-
- private static void registerBlocks() {
- GameRegistry.registerBlock(BlockListAB.blockABSpreader, "blockABSpreader");
- if(ConfigABHandler.hasAbPlate)
- GameRegistry.registerBlock(BlockListAB.blockABPlate, "blockABPlate");
- GameRegistry.registerBlock(BlockListAB.blockManaContainer, ItemBlockBase.class, "blockManaContainer");
- GameRegistry.registerBlock(BlockListAB.blockLebethron, ItemBlockBase.class, "blockLebethron");
- GameRegistry.registerBlock(BlockListAB.blockABStorage, ItemBlockBase.class, "blockABStorage");
- GameRegistry.registerBlock(BlockListAB.blockManaCrystalCube, "blockManaCrystalCube");
- GameRegistry.registerBlock(BlockListAB.blockTerraFarmland, "blockTerraFarmland");
- GameRegistry.registerBlock(BlockListAB.blockAntigravitation, "blockAntigravitation");
- if(ConfigABHandler.hasManaCharger)
- GameRegistry.registerBlock(BlockListAB.blockManaCharger, "blockManaCharger");
- GameRegistry.registerBlock(BlockListAB.blockEngineerHopper, "blockEngineerHopper");
- GameRegistry.registerBlock(BlockListAB.blockFreyrLiana, "blockFreyrLiana");
- GameRegistry.registerBlock(BlockListAB.blockLuminousFreyrLiana, "blockLuminousFreyrLiana");
- GameRegistry.registerBlock(BlockListAB.blockBoardFate, ItemBlockBase.class, "blockBoardFate");
- }
-
- private static void registerTileEntities() {
- GameRegistry.registerTileEntity(TileABSpreader.class, "tileABSpreader");
- if(ConfigABHandler.hasAbPlate)
- GameRegistry.registerTileEntity(TileAgglomerationPlate.class, "tileAgglomerationPlate");
- GameRegistry.registerTileEntity(TileLebethronCore.class, "tileLebethronCore");
- GameRegistry.registerTileEntity(TileManaContainer.class, "tileManaContainer");
- GameRegistry.registerTileEntity(TileManaCrystalCube.class, "tileManaCrystalCube");
- GameRegistry.registerTileEntity(TileEngineerHopper.class, "tileEngineerHopper");
- if(ConfigABHandler.hasManaCharger)
- GameRegistry.registerTileEntity(TileManaCharger.class, "tileManaCharger");
- GameRegistry.registerTileEntity(TileBoardFate.class, "tileBoardFate");
- if(ConfigHandler.relicsEnabled)
- GameRegistry.registerTileEntity(TileGameBoard.class, "tileGameBoard");
- if(Botania.thaumcraftLoaded)
- GameRegistry.registerTileEntity(TileMagicCraftCrate.class, "tileMagicCraftCrate");
- }
-
- static {
- BlockListAB.blockABSpreaderRI = -1;
- BlockListAB.blockManaContainerRI = -1;
- BlockListAB.blockManaCrystalCubeRI = -1;
- BlockListAB.blockManaChargerRI = -1;
- BlockListAB.blockEngineerHopperRI = -1;
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/dd/8015cccdb6ad001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/dd/8015cccdb6ad001c1d59e42be7477558
deleted file mode 100644
index cd4f100..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/dd/8015cccdb6ad001c1d59e42be7477558
+++ /dev/null
@@ -1,221 +0,0 @@
-package ab.common.block.tile;
-
-import java.util.List;
-
-import ab.api.IRenderHud;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.gui.ScaledResolution;
-import net.minecraft.client.renderer.RenderHelper;
-import net.minecraft.client.renderer.entity.RenderItem;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.init.Items;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.ChatComponentTranslation;
-import net.minecraft.util.ChatStyle;
-import net.minecraft.util.EnumChatFormatting;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.common.block.tile.TileMod;
-
-public class TileGameBoard extends TileMod implements IRenderHud {
-
- public String[] playersName = new String[] { "", "" };
- public byte[] slotChance = new byte[] { 0, 0, 0, 0 };
- protected int botTick = -1;
- public int endGameTick = -1;
- protected boolean requestUpdate;
- public boolean isSingleGame = true;
- public int clientTick[] = new int[] { 0, 0, 0, 0 };
- public static final ItemStack headRender = new ItemStack(Items.skull, 1, 3);
-
- public void updateEntity() {
- if(botTick > 0)
- botTick--;
- if(endGameTick > 0)
- endGameTick--;
- if(!worldObj.isRemote)
- updateServer();
- else
- updateAnimationTicks();
- }
-
- public void updateAnimationTicks() {
- for(int i = 0; i < slotChance.length; i++)
- if(slotChance[i] > 0)
- clientTick[i]++;
- else
- clientTick[i] = 0;
- }
-
- protected void updateServer() {
- if(hasGame() && endGameTick == 0)
- finishGame();
- if(requestUpdate)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- boolean hasUpdate = false;
- if(isSingleGame) {
- if(botTick == 0 && hasGame()) {
- for(int i = 2; i < 4; i++) {
- if(slotChance[i] == 0) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = -1;
- hasUpdate = true;
- break;
- }
- }
- }
- } else {
- if(botTick == 0 && hasGame())
- endGameTick = 0;
- }
- requestUpdate = hasUpdate;
- }
-
- public void setPlayer(EntityPlayer player) {
- if(isSingleGame) {
- playersName[0] = player.getCommandSenderName();
- playersName[1] = "";
- requestUpdate = true;
- botTick = 8;
- } else {
- if(playersName[0].isEmpty())
- playersName[0] = player.getCommandSenderName();
- else if(!playersName[0].equals(player.getCommandSenderName()))
- playersName[1] = player.getCommandSenderName();
- requestUpdate = true;
- }
- }
-
- public boolean dropDice(EntityPlayer player) {
- if(isSingleGame) {
- if(player.getCommandSenderName().equals(playersName[0]) && botTick == -1) {
- boolean isLastDice = false;
- boolean hasDrop = false;
- for(int i = 0; i < 2; i++) {
- if(slotChance[i] == 0) {
- hasDrop = true;
- if(!worldObj.isRemote) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = 18;
- requestUpdate = true;
- if(i == 1)
- isLastDice = true;
- }
- break;
- }
- }
- if(isLastDice)
- endGameTick = 28;
- return hasDrop;
- }
- } else {
- for(int i = 0; i < playersName.length; i++) {
- if(player.getCommandSenderName().equals(playersName[i])) {
- boolean hasDrop = false;
- for(int j = i * 2; j < (i + 1) * 2; j++) {
- if(slotChance[j] == 0) {
- hasDrop = true;
- if(!worldObj.isRemote) {
- slotChance[j] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = playersName[1].isEmpty() ? 240 : 1200;
- if(hasFullDice())
- endGameTick = 28;
- requestUpdate = true;
- }
- break;
- }
- }
- return hasDrop;
- }
- }
- }
- return false;
- }
-
- public boolean hasFullDice() {
- boolean hasFull = false;
- for(int i = 0; i < slotChance.length; i++) {
- if(!(slotChance[i] > 0))
- return false;
- hasFull = slotChance[i] > 0;
- }
- return hasFull;
- }
-
- public boolean hasGame() {
- if(isSingleGame)
- return !playersName[0].isEmpty();
- else
- for(int i = 0; i < playersName.length; i++)
- if(!playersName[i].isEmpty())
- return true;
- return false;
- }
-
- public void finishGame() {
- if(worldObj.isRemote)
- return;
- String str = isSingleGame ? "" : ".mult";
- int indet = Math.abs((slotChance[0] + slotChance[1]) - (slotChance[2] + slotChance[3]));
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage("ab.gameBoard.misc.0" + str, new Object[] { playersName[0], Integer.valueOf(indet) });
- else if((slotChance[0] + slotChance[1]) == (slotChance[2] + slotChance[3]))
- sendNearMessage("ab.gameBoard.misc.1" + str, new Object[] {});
- else
- sendNearMessage("ab.gameBoard.misc.2" + str, new Object[] { playersName[isSingleGame ? 0 : 1], Integer.valueOf(indet) });
- resetGame();
- }
-
- public void sendNearMessage(String text, Object[] obj) {
- List players = this.worldObj.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(this.xCoord, this.yCoord, this.zCoord, (this.xCoord + 1), (this.yCoord + 1), (this.zCoord + 1)).expand(3.5f, 3.5f, 3.5f));
- for(EntityPlayer player : players) {
- if(player != null)
- player.addChatMessage((new ChatComponentTranslation(text, obj)).setChatStyle((new ChatStyle()).setColor(EnumChatFormatting.DARK_GREEN)));
- }
- }
-
- public void resetGame() {
- playersName[0] = "";
- playersName[1] = "";
- for(int i = 0; i < slotChance.length; i++)
- slotChance[i] = 0;
- botTick = -1;
- endGameTick = -1;
- requestUpdate = true;
- }
-
- public void renderHud(Minecraft mc, ScaledResolution res) {
- int x = res.getScaledWidth() / 2 - 7;
- int y = res.getScaledHeight() / 2 + 12;
- RenderHelper.enableGUIStandardItemLighting();
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, headRender, x - (!isSingleGame ? 1 : 0), y - (!isSingleGame ? 1 : 0));
- if(!isSingleGame)
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, headRender, x + 3, y + 3);
- RenderHelper.disableStandardItemLighting();
- }
-
- public void writeCustomNBT(NBTTagCompound cmp) {
- super.writeCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- cmp.setString("playerName" + i, playersName[i]);
- cmp.setByteArray("slotChance", slotChance);
- cmp.setInteger("botTick", botTick);
- cmp.setInteger("endGameTick", endGameTick);
- cmp.setBoolean("requestUpdate", requestUpdate);
- cmp.setBoolean("isSingleGame", isSingleGame);
- }
-
- public void readCustomNBT(NBTTagCompound cmp) {
- super.readCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- playersName[i] = cmp.getString("playerName" + i);
- botTick = cmp.getInteger("botTick");
- endGameTick = cmp.getInteger("endGameTick");
- slotChance = cmp.getByteArray("slotChance");
- requestUpdate = cmp.getBoolean("requestUpdate");
- isSingleGame = cmp.getBoolean("isSingleGame");
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/dd/b09f1f352bb0001c18a5eba32f24fffa b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/dd/b09f1f352bb0001c18a5eba32f24fffa
deleted file mode 100644
index 478d52e..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/dd/b09f1f352bb0001c18a5eba32f24fffa
+++ /dev/null
@@ -1,36 +0,0 @@
-package ab.common.item.relic;
-
-import java.util.List;
-
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.item.ItemStack;
-import net.minecraft.world.World;
-import net.minecraftforge.common.MinecraftForge;
-import net.minecraftforge.event.entity.living.LivingDropsEvent;
-
-public class ItemSehrimnirHide extends ItemModRelic {
-
- public ItemSehrimnirHide() {
- super("sehrimnirHide");
- MinecraftForge.EVENT_BUS.register(this);
- }
-
- @SubscribeEvent
- public void onPlayerAttack(LivingDropsEvent event) {
- List items = event.drops;
- event.drops.addAll(event.drops);
- World world = event.entityLiving.worldObj;
- double posX = event.entityLiving.posX;
- double posY = event.entityLiving.posY;
- double posZ = event.entityLiving.posZ;
- for(EntityItem entity : items) {
- if(!world.isRemote) {
- ItemStack loot = entity.getEntityItem().copy();
- loot.stackSize = Math.max(1, (int)(loot.stackSize / 1.5f));
- EntityItem item = new EntityItem(world, posX, posY, posZ, loot);
- world.spawnEntityInWorld(item);
- }
- }
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/de/104e54d18fc1001c11e398ea97007cb4 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/de/104e54d18fc1001c11e398ea97007cb4
new file mode 100644
index 0000000..230555c
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/de/104e54d18fc1001c11e398ea97007cb4
@@ -0,0 +1,259 @@
+package ab.common.block.tile;
+
+import java.awt.Color;
+import java.util.List;
+import java.util.Random;
+
+import ab.api.AdvancedBotanyAPI;
+import ab.api.recipe.RecipeAdvancedPlate;
+import ab.common.lib.register.BlockListAB;
+import net.minecraft.block.Block;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.init.Blocks;
+import net.minecraft.inventory.IInventory;
+import net.minecraft.inventory.ISidedInventory;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.util.AxisAlignedBB;
+import scala.reflect.internal.Trees.This;
+import vazkii.botania.api.internal.VanillaPacketDispatcher;
+import vazkii.botania.api.lexicon.multiblock.Multiblock;
+import vazkii.botania.api.lexicon.multiblock.MultiblockSet;
+import vazkii.botania.api.mana.IManaPool;
+import vazkii.botania.api.mana.IManaReceiver;
+import vazkii.botania.api.mana.spark.ISparkAttachable;
+import vazkii.botania.api.mana.spark.ISparkEntity;
+import vazkii.botania.api.mana.spark.SparkHelper;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.block.ModBlocks;
+import vazkii.botania.common.block.ModFluffBlocks;
+import vazkii.botania.common.block.tile.TileMod;
+import vazkii.botania.common.block.tile.TileSimpleInventory;
+import vazkii.botania.common.item.ModItems;
+
+public class TileNidavellirForge extends TileInventory implements ISparkAttachable, ISidedInventory {
+
+ private int mana;
+ public int manaToGet;
+ private RecipeAdvancedPlate currentRecipe;
+ private int recipeID;
+ public boolean requestUpdate;
+
+ public void updateEntity() {
+ if(!this.worldObj.isRemote)
+ updateServer();
+ else
+ updateClient();
+ ISparkEntity spark = getAttachedSpark();
+ if (spark != null) {
+ List sparkEntities = SparkHelper.getSparksAround(this.worldObj, this.xCoord + 0.5D, this.yCoord + 0.5D, this.zCoord + 0.5D);
+ for (ISparkEntity otherSpark : sparkEntities) {
+ if(spark == otherSpark)
+ continue;
+ else if(otherSpark.getAttachedTile() != null && otherSpark.getAttachedTile() instanceof IManaPool)
+ otherSpark.registerTransfer(spark);
+ }
+ }
+ }
+
+ private void updateServer() {
+ if(requestUpdate)
+ VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
+ boolean hasUpdate = false;
+ List items = this.worldObj.getEntitiesWithinAABB(EntityItem.class, AxisAlignedBB.getBoundingBox(this.xCoord, this.yCoord, this.zCoord, (this.xCoord + 1), (this.yCoord + 1), (this.zCoord + 1)));
+ for(EntityItem item : items) {
+ if(item.getEntityItem() != null && !item.isDead) {
+ ItemStack stack = item.getEntityItem();
+ int splitCount = addItemStack(stack);
+ stack.stackSize -= splitCount;
+ if(stack.stackSize <= 0)
+ item.setDead();
+ if(splitCount > 0)
+ hasUpdate = true;
+ break;
+ }
+ }
+ int wasManaToGet = this.manaToGet;
+ boolean hasCraft = false;
+ int recipeID = 0;
+ for(RecipeAdvancedPlate recipe : AdvancedBotanyAPI.advancedPlateRecipes) {
+ if(recipe.matches(this)) {
+ this.recipeID = recipeID;
+ if(this.mana > 0 && this.isFull()) {
+ ItemStack output = recipe.getOutput().copy();
+ this.recieveMana(-recipe.getManaUsage());
+ this.manaToGet = 0;
+ for(int i = 1; i < this.getSizeInventory(); i++) {
+ if(this.getStackInSlot(i).stackSize > 1)
+ --this.getStackInSlot(i).stackSize;
+ else
+ this.setInventorySlotContents(i, null);
+ }
+ if(this.getStackInSlot(0) != null)
+ ++this.getStackInSlot(0).stackSize;
+ else
+ this.setInventorySlotContents(0, output);
+ hasUpdate = true;
+ worldObj.playSoundEffect(xCoord, yCoord, zCoord, "botania:terrasteelCraft", 1.0F, 2.0F);
+ break;
+ } else {
+ if(this.getStackInSlot(0) == null) {
+ this.manaToGet = recipe.getManaUsage();
+ currentRecipe = recipe;
+ hasCraft = true;
+ break;
+ } else if(isItemEqual(recipe.getOutput(), getStackInSlot(0)) && getStackInSlot(0).stackSize < recipe.getOutput().getMaxStackSize()) {
+ this.manaToGet = recipe.getManaUsage();
+ currentRecipe = recipe;
+ hasCraft = true;
+ break;
+ }
+ }
+ }
+ recipeID++;
+ }
+ if(!hasCraft) {
+ currentRecipe = null;
+ this.mana = 0;
+ this.manaToGet = 0;
+ }
+ if(this.manaToGet != wasManaToGet)
+ hasUpdate = true;
+ requestUpdate = hasUpdate;
+ }
+
+ private void updateClient() {
+ if(this.mana > 0) {
+ double worldTime = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
+ worldTime += (new Random((this.xCoord ^ this.yCoord ^ this.zCoord))).nextInt(360);
+ float indetY = (float)(Math.sin(worldTime / 18.0D) / 24.0D);
+ float ticks = 100.0F * getCurrentMana() / this.manaToGet;
+ int totalSpiritCount = 3;
+ double tickIncrement = 360.0D / totalSpiritCount;
+ int speed = 5;
+ double wticks = (ticks * speed) - tickIncrement;
+ double r = Math.sin((ticks - 100) / 10.0D) * 0.5D;
+ double g = Math.sin(wticks * Math.PI / 180.0D * 0.55D);
+ float size = 0.4f;
+ for(int i = 0; i < totalSpiritCount; i++) {
+ double x = this.xCoord + Math.sin(wticks * Math.PI / 180.0D) * r + 0.5D;
+ double y = this.yCoord - indetY + 0.85D + Math.abs(r) * 0.7D;
+ double z = this.zCoord + Math.cos(wticks * Math.PI / 180.0D) * r + 0.5D;
+ wticks += tickIncrement;
+ int color = 0x24cce0;
+ if(currentRecipe != null)
+ color = currentRecipe.getColor();
+ float hsb[] = Color.RGBtoHSB(color & 255, color >> 8 & 255, color >> 16 & 255, null);
+ int color1 = Color.HSBtoRGB(hsb[0], hsb[1], ticks / 100.0F);
+ float[] colorsfx = { (color1 & 255) / 255.0f, (color1 >> 8 & 255) / 255.0f, (color1 >> 16 & 255) / 255.0f };
+ Botania.proxy.wispFX(this.worldObj, x, y, z, colorsfx[0], colorsfx[1], colorsfx[2], 0.85F * size, (float)g * 0.05F, 0.25F);
+ Botania.proxy.wispFX(this.worldObj, x, y, z, colorsfx[0], colorsfx[1], colorsfx[2], (float)Math.random() * 0.1F + 0.1F * size, (float)(Math.random() - 0.5D) * 0.05F, (float)(Math.random() - 0.5D) * 0.05F, (float)(Math.random() - 0.5D) * 0.05F, 0.9F);
+ if(ticks == 100)
+ for(int j = 0; j < 12; j++)
+ Botania.proxy.wispFX(this.worldObj, this.xCoord + 0.5D, this.yCoord + 1.1D - indetY, this.zCoord + 0.5D, colorsfx[0], colorsfx[1], colorsfx[2], (float)Math.random() * 0.15F + 0.15F * size, (float)(Math.random() - 0.5D) * 0.125F * size, (float)(Math.random() - 0.5D) * 0.125F * size, (float)(Math.random() - 0.5D) * 0.125F * size, 0.8f);
+ }
+ }
+ }
+
+ public static boolean isItemEqual(ItemStack stack, ItemStack stack1) {
+ return stack.isItemEqual(stack1) && ItemStack.areItemStackTagsEqual(stack, stack1);
+ }
+
+ private int addItemStack(ItemStack stack) {
+ for (int i = 1; i < getSizeInventory(); i++) {
+ if(getStackInSlot(i) == null) {
+ ItemStack stackToAdd = stack.copy();
+ setInventorySlotContents(i, stackToAdd);
+ return stack.stackSize;
+ } else if(isItemEqual(stack, getStackInSlot(i))) {
+ if(getStackInSlot(i).stackSize < stack.getMaxStackSize()) {
+ int count = Math.min(stack.stackSize, stack.getMaxStackSize() - getStackInSlot(i).stackSize);
+ getStackInSlot(i).stackSize += count;
+ return count;
+ }
+ }
+ }
+ return 0;
+ }
+
+ public void writeCustomNBT(NBTTagCompound cmp) {
+ super.writeCustomNBT(cmp);
+ cmp.setInteger("mana", mana);
+ cmp.setInteger("manaToGet", manaToGet);
+ cmp.setBoolean("requestUpdate", requestUpdate);
+ cmp.setInteger("recipeID", currentRecipe == null ? -1 : recipeID);
+ }
+
+ public void readCustomNBT(NBTTagCompound cmp) {
+ super.readCustomNBT(cmp);
+ this.mana = cmp.getInteger("mana");
+ this.manaToGet = cmp.getInteger("manaToGet");
+ this.requestUpdate = cmp.getBoolean("requestUpdate");
+ int recipeID = cmp.getInteger("recipeID");
+ if(recipeID == -1)
+ this.currentRecipe = null;
+ else
+ this.currentRecipe = AdvancedBotanyAPI.advancedPlateRecipes.get(recipeID);
+ }
+
+ public int getSizeInventory() {
+ return 4;
+ }
+
+ public String getInventoryName() {
+ return "tileAdvancedPlate";
+ }
+
+ public int getCurrentMana() {
+ return this.mana;
+ }
+
+ public boolean isFull() {
+ return this.mana >= this.manaToGet;
+ }
+
+ public void recieveMana(final int mana) {
+ this.mana = Math.min(this.mana + mana, this.manaToGet);
+ }
+
+ public boolean canRecieveManaFromBursts() {
+ return !this.isFull();
+ }
+
+ public boolean canAttachSpark(ItemStack stack) {
+ return true;
+ }
+
+ public void attachSpark(ISparkEntity entity) {}
+
+ public ISparkEntity getAttachedSpark() {
+ List sparks = this.worldObj.getEntitiesWithinAABB(ISparkEntity.class, AxisAlignedBB.getBoundingBox(this.xCoord, (this.yCoord + 1), this.zCoord, (this.xCoord + 1), (this.yCoord + 2), (this.zCoord + 1)));
+ if (sparks.size() == 1) {
+ Entity e = (Entity)sparks.get(0);
+ return (ISparkEntity)e;
+ }
+ return null;
+ }
+
+ public boolean areIncomingTranfersDone() {
+ return this.isFull();
+ }
+
+ public int getAvailableSpaceForMana() {
+ return Math.max(0, this.manaToGet - getCurrentMana());
+ }
+
+ public int[] getAccessibleSlotsFromSide(int side) {
+ return new int[]{0, 1, 2, 3};
+ }
+
+ public boolean canInsertItem(int slot, ItemStack stack, int side) {
+ return side == 1 && slot != 0;
+ }
+
+ public boolean canExtractItem(int slot, ItemStack stack, int side) {
+ return (side == 0 && slot == 0) || (side != 0 && side != 1 && slot != 0);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/df/20c3c1859eb1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/df/20c3c1859eb1001c19bf8a91ac37238b
deleted file mode 100644
index 10a449a..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/df/20c3c1859eb1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,84 +0,0 @@
-package ab.client.core.handler;
-
-import java.awt.Color;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.armor.ItemNebulaArmor;
-import ab.common.item.equipment.armor.ItemNebulaHelm;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.ItemRenderer;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.texture.TextureMap;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraftforge.client.event.RenderPlayerEvent;
-import vazkii.botania.api.item.IPhantomInkable;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class PlayerRendererHandler {
-
- @SubscribeEvent
- public void onPlayerRender(RenderPlayerEvent.Specials.Pre event) {
- EntityPlayer player = event.entityPlayer;
- ItemStack item = player.getCurrentArmor(3);
- if(item != null && item.getItem() instanceof ItemNebulaHelm) {
- Item helm = player.getCurrentArmor(3).getItem();
- boolean hasPhantomInk = helm instanceof IPhantomInkable && ((IPhantomInkable)helm).hasPhantomInk(item);
- if(!hasPhantomInk && ((ItemNebulaHelm)helm).enableCosmicFace(item)) {
- float angelX = event.renderer.modelBipedMain.bipedHead.rotateAngleX * 180.0F / (float)Math.PI;
- float angelY = event.renderer.modelBipedMain.bipedHead.rotateAngleY * 180.0F / (float)Math.PI;
- GL11.glPushMatrix();
- if(player.isSneaking())
- GL11.glTranslatef(event.renderer.modelBipedMain.bipedHead.rotationPointX * 0.0625f, event.renderer.modelBipedMain.bipedHead.rotationPointY * 0.0625f, 0.0f);
- GL11.glRotatef(angelY, 0.0F, 1.0F, 0.0F);
- GL11.glRotatef(angelX, 1.0F, 0.0F, 0.0F);
- renderCosmicFace();
- GL11.glPopMatrix();
- }
- }
- }
-
- private void renderCosmicFace() {
- double worldTime = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- GL11.glPushMatrix();
- GL11.glEnable(GL11.GL_TEXTURE_2D);
- GL11.glDisable(2884);
-
- GL11.glPushMatrix();
- GL11.glScalef(0.5f, 0.4f, 0.4f);
- GL11.glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
- GL11.glTranslatef(-0.5f, -0.8675f, 0.0f);
- GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
- ClientHelper.renderCosmicBackground();
- GL11.glPopMatrix();
-
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- (Minecraft.getMinecraft()).renderEngine.bindTexture(TextureMap.locationItemsTexture);
- GL11.glTranslatef(-0.2F, -0.35F, -0.25F);
- GL11.glScalef(0.4f, 0.4f, 0.4f);
- float f = ItemNebulaArmor.nebulaEyes.getMinU();
- float f1 = ItemNebulaArmor.nebulaEyes.getMaxU();
- float f2 = ItemNebulaArmor.nebulaEyes.getMinV();
- float f3 = ItemNebulaArmor.nebulaEyes.getMaxV();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float r = color.getRed() / 510.0F;
- float g = color.getGreen() / 510.0F;
- float b = color.getBlue() / 510.0F;
- GL11.glColor4f(0.5f + r, 0.5f + g, 0.5f + b, 0.685f + (float)Math.sin(worldTime / 50.0D) * 0.175F);
- ItemRenderer.renderItemIn2D(Tessellator.instance, f1, f2, f, f3, ItemNebulaArmor.nebulaEyes.getIconWidth(), ItemNebulaArmor.nebulaEyes.getIconHeight(), 0.03125F);
- GL11.glDisable(3042);
- GL11.glEnable(2884);
- GL11.glEnable(32826);
- GL11.glPopMatrix();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/e0/3069e17303c0001c1965b122d2f8f403 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/e0/3069e17303c0001c1965b122d2f8f403
new file mode 100644
index 0000000..423dc61
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/e0/3069e17303c0001c1965b122d2f8f403
@@ -0,0 +1,158 @@
+package ab.common.item.relic;
+
+import java.awt.Color;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.common.core.handler.NetworkHandler;
+import ab.common.lib.register.ItemListAB;
+import net.minecraft.block.Block;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.util.MathHelper;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.api.mana.ManaItemHandler;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class ItemSphereNavigation extends ItemModRelic {
+
+ public static final int rangeSearch = 16;
+ public static final int maxCooldown = 112;
+ public static final int manaCost = 1750;
+
+ public ItemSphereNavigation() {
+ super("sphereNavigation");
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int pos, boolean equipped) {
+ super.onUpdate(stack, world, entity, pos, equipped);
+ if(entity instanceof EntityPlayer) {
+ EntityPlayer player = (EntityPlayer)entity;
+ if(!world.isRemote && getFindBlock(stack) != null && canWork(stack) && ManaItemHandler.requestManaExactForTool(stack, player, manaCost, true)) {
+ setMaxTick(stack);
+ NetworkHandler.sendPacketToFindBlocks((EntityPlayerMP)player, getFindBlock(stack), getFindMeta(stack));
+ }
+ }
+ }
+
+ public static void findBlocks(World world, Block findBlock, int findMeta, EntityPlayer player) {
+ if(world.isRemote) {
+ ItemStack renderStack = null;
+ int maxFindedBlocks = 25;
+ int findedBlocks = 0;
+ label1703:
+ for(int y = -rangeSearch * 2; y < rangeSearch; y++) {
+ for(int x = -rangeSearch; x < rangeSearch; x++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks + 4)) || world.rand.nextBoolean())
+ continue;
+ for(int z = -rangeSearch; z < rangeSearch; z++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks + 4)) || world.rand.nextBoolean())
+ continue;
+ else if(findedBlocks >= maxFindedBlocks)
+ break label1703;
+ int posX = MathHelper.floor_double(player.posX) + x;
+ int posY = MathHelper.floor_double(player.posY) + y;
+ int posZ = MathHelper.floor_double(player.posZ) + z;
+ if(posY < 0)
+ continue;
+ Block block = world.getBlock(posX, posY, posZ);
+ if(!Block.isEqualTo(block, findBlock))
+ continue;
+ int meta = world.getBlockMetadata(posX, posY, posZ);
+ if(meta == findMeta) {
+ if(renderStack == null)
+ renderStack = getRenderStackForBlock(world, block, meta, posX, posY, posZ);
+ findedBlocks++;
+ float maxAge = 2.7f + (0.5f * (float)(Math.random()));
+ Botania.proxy.setWispFXDepthTest(false);
+ Botania.proxy.setWispFXDistanceLimit(false);
+ float far = 120.0f - (((Math.abs(x) + Math.min(rangeSearch, Math.abs(y)) + Math.abs(z)) / (rangeSearch * 4.0f)) * 120.0f);
+ if(far <= 60)
+ far *= 0.15f;
+ Color color = new Color(Color.HSBtoRGB(far / 360.0f, 0.9f + (float)(Math.random() * 0.1f), 1.0f));
+ for(int i = 0; i < 11; i++)
+ Botania.proxy.wispFX(world, posX + 0.5f + (Math.random() - 0.5f), posY + 0.5f + (Math.random() - 0.5f), posZ + 0.5f + (Math.random() - 0.5f), color.getRed() / 100.0f, color.getGreen() / 100.0f, color.getBlue() / 100.0f, 0.3f + (float)(Math.random() * 0.25f), 0.0f, maxAge);
+ Botania.proxy.setWispFXDistanceLimit(true);
+ Botania.proxy.setWispFXDepthTest(true);
+ }
+ }
+ }
+ }
+ if(renderStack != null)
+ ItemsRemainingRender.set(renderStack, "íàéäåíî: " + findedBlocks);
+ }
+ }
+
+ public static ItemStack getRenderStackForBlock(World world, Block block, int meta, int x, int y, int z) {
+ if(block != null) {
+ Item item = Item.getItemFromBlock(block);
+ if(item != null) {
+ ItemStack findStack = new ItemStack(block, 1, meta);
+ if(findStack != null)
+ return findStack;
+ } else {
+ Item item1 = block.getItem(world, x, y, z);
+ if(item1 != null) {
+ ItemStack findStack = new ItemStack(item1, 1, meta);
+ if(findStack != null)
+ return findStack;
+ }
+ }
+ }
+ return null;
+ }
+
+ public boolean onItemUse(ItemStack stack, EntityPlayer p, World world, int x, int y, int z, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
+ if(p.isSneaking()) {
+ Block block = world.getBlock(x, y, z);
+ if(block != null) {
+ int meta = world.getBlockMetadata(x, y, z);
+ ItemStack findStack = getRenderStackForBlock(world, block, meta, x, y, z);
+ if(findStack != null) {
+ setFindBlock(stack, block, meta);
+ if(world.isRemote)
+ ItemsRemainingRender.set(findStack, findStack.getDisplayName());
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public boolean canWork(ItemStack stack) {
+ int tick = ItemNBTHelper.getInt(stack, "cooldown", 0);
+ if(tick == 0)
+ return true;
+ else if(tick > 0)
+ ItemNBTHelper.setInt(stack, "cooldown", tick - 1);
+ return false;
+ }
+
+ public void setMaxTick(ItemStack stack) {
+ ItemNBTHelper.setInt(stack, "cooldown", maxCooldown);
+ }
+
+ public static void setFindBlock(ItemStack stack, Block block, int meta) {
+ ItemNBTHelper.setInt(stack, "findBlockID", Block.getIdFromBlock(block));
+ ItemNBTHelper.setInt(stack, "findBlockMeta", meta);
+ }
+
+ public static Block getFindBlock(ItemStack stack) {
+ int blockID = ItemNBTHelper.getInt(stack, "findBlockID", 0);
+ if(blockID == 0)
+ return null;
+ else
+ return Block.getBlockById(blockID);
+ }
+
+ public static int getFindMeta(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "findBlockMeta", -1);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/e0/40fd5cf7cbbd001c1664fb18d0506bc0 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/e0/40fd5cf7cbbd001c1664fb18d0506bc0
new file mode 100644
index 0000000..5cf4de9
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/e0/40fd5cf7cbbd001c1664fb18d0506bc0
@@ -0,0 +1,30 @@
+package ab.common.core.handler;
+
+import ab.common.core.proxy.packet.S00PacketHornChargeHud;
+import ab.common.core.proxy.packet.S01PacketFindNearBlocks;
+import ab.common.item.relic.ItemSphereNavigation;
+import cpw.mods.fml.common.network.NetworkRegistry;
+import cpw.mods.fml.common.network.simpleimpl.IMessage;
+import cpw.mods.fml.common.network.simpleimpl.SimpleNetworkWrapper;
+import cpw.mods.fml.relauncher.Side;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.ItemStack;
+
+public class NetworkHandler {
+
+ public static final SimpleNetworkWrapper NETWORK = NetworkRegistry.INSTANCE.newSimpleChannel("advancedBotanyChanel");
+
+ public static void registerPackets() {
+ int id = 0;
+ NETWORK.registerMessage(S00PacketHornChargeHud.class, S00PacketHornChargeHud.class, id++, Side.CLIENT);
+ NETWORK.registerMessage(S01PacketFindNearBlocks.class, S01PacketFindNearBlocks.class, id++, Side.CLIENT);
+ }
+
+ public static void sendPacketToFindBlocks(EntityPlayerMP playerMP, ItemStack stack) {
+ NETWORK.sendTo(new S01PacketFindNearBlocks(playerMP, ItemSphereNavigation.getFindBlock(stack), ItemSphereNavigation.getFindMeta(stack)), playerMP);
+ }
+
+ public static void sendPacketToHornHud(EntityPlayerMP playerMP, short chargeLoot) {
+ NETWORK.sendTo(new S00PacketHornChargeHud(chargeLoot), playerMP);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/e1/9093eb87b8bc001c1a9f99005529f322 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/e1/9093eb87b8bc001c1a9f99005529f322
new file mode 100644
index 0000000..9bfcd7f
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/e1/9093eb87b8bc001c1a9f99005529f322
@@ -0,0 +1,109 @@
+package ab.client.render.tile;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Random;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.client.model.ModelNidavellirForge;
+import ab.common.block.tile.TileNidavellirForge;
+import net.minecraft.client.Minecraft;
+import net.minecraft.client.renderer.OpenGlHelper;
+import net.minecraft.client.renderer.Tessellator;
+import net.minecraft.client.renderer.entity.Render;
+import net.minecraft.client.renderer.entity.RenderManager;
+import net.minecraft.client.renderer.texture.TextureMap;
+import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.ResourceLocation;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.client.core.helper.ShaderHelper;
+import vazkii.botania.common.block.mana.BlockTerraPlate;
+
+public class RenderTileNidavellirForge extends TileEntitySpecialRenderer {
+
+ private List entityList = null;
+ private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/nidavellirForge.png");
+ private static final ModelNidavellirForge model = new ModelNidavellirForge();
+
+ public void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float f) {
+ TileNidavellirForge tile = (TileNidavellirForge)tileentity;
+ double worldTime = 0.0D;
+ int meta = 0;
+ if(tileentity != null && tileentity.getWorldObj() != null) {
+ worldTime = ClientTickHandler.ticksInGame + f + (new Random((tileentity.xCoord ^ tileentity.yCoord ^ tileentity.zCoord))).nextInt(360);
+ meta = tileentity.getWorldObj().getBlockMetadata(tileentity.xCoord, tileentity.yCoord, tileentity.zCoord);
+ }
+ float indetY = (float)(Math.sin(worldTime / 18.0D) / 24.0D);
+ GL11.glPushMatrix();
+ GL11.glEnable(32826);
+ GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
+ GL11.glTranslated(x, y, z);
+ GL11.glTranslatef(0.5f, 1.5f, 0.5f);
+ GL11.glRotatef(180.0f, 1.0f, 0.0f, 1.0f);
+ float angelForSide = 0.0f;
+ System.out.println(meta);
+ switch(meta) {
+ case 1: angelForSide = 90.0f;
+ break;
+ case 2: angelForSide = 180.0f;
+ break;
+ case 3: angelForSide = 270.0f;
+ break;
+ }
+ GL11.glRotatef(angelForSide, 0.0f, 1.0f, 0.0f);
+ Minecraft.getMinecraft().renderEngine.bindTexture(texture);
+ model.renderBottom();
+ GL11.glTranslatef(0.0f, indetY, 0.0f);
+ model.renderTop();
+ GL11.glEnable(32826);
+ GL11.glPopMatrix();
+ if(entityList == null) {
+ List list = new ArrayList();
+ for(int i = 0; i < tile.getSizeInventory(); i++) {
+ list.add(new EntityItem(tile.getWorldObj(), tile.xCoord, tile.yCoord, tile.zCoord));
+ }
+ entityList = list;
+ }
+ GL11.glPushMatrix();
+ GL11.glTranslated(x + 0.5f, y + 0.675f - indetY, z + 0.5f);
+ GL11.glScalef(0.2F, 0.225F, 0.225F);
+ for(int i = 1; i < entityList.size(); i++) {
+ GL11.glPushMatrix();
+ ItemStack stack = tile.getStackInSlot(i);
+ if(stack != null) {
+ switch(i) {
+ case 1:
+ GL11.glTranslated(0.15f, 0.0f, 0.0f);
+ break;
+ case 2:
+ GL11.glTranslated(-0.15f, 0.0f, -0.15f);
+ break;
+ case 3:
+ GL11.glTranslated(-0.15f, 0.0f, 0.15f);
+ break;
+ }
+ entityList.get(i).setEntityItemStack(stack);
+ entityList.get(i).age = ClientTickHandler.ticksInGame;
+ ((Render)RenderManager.instance.entityRenderMap.get(EntityItem.class)).doRender((Entity)entityList.get(i), 0.0D, 0.0D, 0.0D, 1.0F, f);
+ }
+ GL11.glPopMatrix();
+ }
+ GL11.glPopMatrix();
+ if(tile.getStackInSlot(0) != null) {
+ GL11.glPushMatrix();
+ GL11.glTranslated(x + 0.5, y + 0.915f - indetY, z + 0.5);
+ GL11.glScalef(0.45f, 0.45f, 0.45f);
+ entityList.get(0).setEntityItemStack(tile.getStackInSlot(0));
+ entityList.get(0).age = ClientTickHandler.ticksInGame;
+ ((Render)RenderManager.instance.entityRenderMap.get(EntityItem.class)).doRender((Entity)entityList.get(0), 0.0D, 0.0D, 0.0D, 1.0F, f);
+ GL11.glPopMatrix();
+ }
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/e2/60a7bf7948b0001c1746c57a5fe46fd3 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/e2/60a7bf7948b0001c1746c57a5fe46fd3
deleted file mode 100644
index fb1d6e7..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/e2/60a7bf7948b0001c1746c57a5fe46fd3
+++ /dev/null
@@ -1,51 +0,0 @@
-package ab.common.item.relic;
-
-import java.lang.reflect.InvocationTargetException;
-import java.util.List;
-
-import ab.common.core.handler.ConfigABHandler;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import cpw.mods.fml.relauncher.ReflectionHelper;
-import net.minecraft.entity.EntityLivingBase;
-import net.minecraft.entity.boss.IBossDisplayData;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.ItemStack;
-import net.minecraft.world.World;
-import net.minecraftforge.common.MinecraftForge;
-import net.minecraftforge.event.entity.living.LivingDropsEvent;
-
-public class ItemSehrimnirHide extends ItemModRelic {
-
- public static final String[] dropFewItems = new String[] { "dropFewItems", "func_70628_a" };
-
- public ItemSehrimnirHide() {
- super("sehrimnirHide");
- MinecraftForge.EVENT_BUS.register(this);
- }
-
- @SubscribeEvent
- public void onPlayerAttack(LivingDropsEvent event) {
- if(event != null && event.source != null && event.source.getSourceOfDamage() instanceof EntityPlayer) {
- EntityPlayer player = (EntityPlayer)event.source.getSourceOfDamage();
- if(player.inventory.hasItem(this)) {
- if(event.entityLiving != null && !(event.entityLiving instanceof IBossDisplayData) && isVallidEntity(event.entityLiving)) {
- try {
- EntityLivingBase liv = event.entityLiving;
- ReflectionHelper.findMethod(EntityLivingBase.class, liv, dropFewItems, new Class[] {boolean.class, int.class} ).invoke(liv, new Object[] {true, 5});
- } catch(Exception e) {
- e.printStackTrace();
- }
- }
- }
- }
- }
-
- public static boolean isVallidEntity(EntityLivingBase liv) {
- for(String entityName : ConfigABHandler.lockEntityListToHide) {
- if(liv.getClass().getName().equals(entityName))
- return false;
- }
- return true;
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/e3/2079b690f7ac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/e3/2079b690f7ac001c1d59e42be7477558
deleted file mode 100644
index 329af4b..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/e3/2079b690f7ac001c1d59e42be7477558
+++ /dev/null
@@ -1,95 +0,0 @@
-package ab.client.render.tile;
-
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.model.ModelDiceFate;
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.ResourceLocation;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class RenderTileGameBoard extends TileEntitySpecialRenderer {
-
- private static final ModelDiceFate model = new ModelDiceFate();
- private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/gameDice.png");
- private static final ResourceLocation textureEnemy = new ResourceLocation("ab:textures/model/gameDice_enemy.png");
-
- public void renderTileEntityAt(TileEntity tile, double x, double y, double z, float ticks) {
- double time = (tile.getWorldObj() == null) ? 0.0D : (ClientTickHandler.ticksInGame + ticks);
- if(tile != null)
- time += (new Random((tile.xCoord ^ tile.yCoord ^ tile.zCoord))).nextInt(360);
- TileGameBoard board = (TileGameBoard)tile;
- if(System.nanoTime() % (1000000000 / 60) == 0) {
- System.out.println("dsds");
- }
- GL11.glEnable(3042);
- GL11.glEnable(32826);
- GL11.glBlendFunc(770, 771);
- for(int i = 0; i < board.slotChance.length; i++) {
- if(board.slotChance[i] == 0)
- continue;
- time += i * 65;
- GL11.glPushMatrix();
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- float posX = 0.0f;
- float posY = 0.0f;
- float dropAnim = (1.0f - (Math.min(100.0f, board.clientTick[i] * board.clientTick[i] * 1.25f) / 100.0f));
- dropAnim = Math.min(1.0f, Math.max(dropAnim, 0));
- float alpha = (float)Math.cos(dropAnim);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, alpha);
- switch(i) {
- case 0:
- posX = 0.16f + 0.08f * dropAnim;
- posY = 0.16f + 0.08f * dropAnim;
- break;
- case 1:
- posX = -0.16f - 0.08f * dropAnim;
- posY = 0.16f + 0.08f * dropAnim;
- break;
- case 2:
- posX = 0.16f + 0.08f * dropAnim;
- posY = -0.16f - 0.08f * dropAnim;
- break;
- case 3:
- posX = -0.16f - 0.08f * dropAnim;
- posY = -0.16f - 0.08f * dropAnim;
- break;
- }
- GL11.glTranslated(x, y, z);
- GL11.glTranslated(0.5f + posX, 0.02f + Math.sin(time / 12.0D) / 48.0D + (0.28f * dropAnim), 0.5f + posY);
- GL11.glScalef(0.25f, 0.25f, 0.25f);
- Minecraft.getMinecraft().renderEngine.bindTexture(i > 1 ? textureEnemy : texture);
- float dropAngel = 70.0f * dropAnim;
- switch(board.slotChance[i]) {
- case 1:
- model.render(180.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 2:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 3:
- model.render(90.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 4:
- model.render(270.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 5:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 270.0f);
- break;
- case 6:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 90.0f);
- break;
- default:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- }
- GL11.glPopMatrix();
- }
- GL11.glEnable(32826);
- GL11.glDisable(3042);
- }
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/e3/d0f7fe01b0b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/e3/d0f7fe01b0b1001c19bf8a91ac37238b
deleted file mode 100644
index 759b4d8..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/e3/d0f7fe01b0b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,19 +0,0 @@
-package ab.common.core;
-
-import net.minecraft.block.Block;
-import net.minecraft.block.IGrowable;
-import net.minecraft.world.World;
-
-public class CommonHelper {
-
- public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
- if(!(block instanceof IGrowable))
- return;
- IGrowable igrowable = (IGrowable)block;
- if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
- if(!world.isRemote)
- if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
- for(int i = 0; i < count; i++)
- igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
- }
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/e3/f0691c0a78be001c1965b122d2f8f403 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/e3/f0691c0a78be001c1965b122d2f8f403
new file mode 100644
index 0000000..95dd016
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/e3/f0691c0a78be001c1965b122d2f8f403
@@ -0,0 +1,5 @@
+package ab.client.render.item;
+
+public class RenderItemSphereNavigation {
+
+}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/e5/6038942a28b0001c18a5eba32f24fffa b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/e5/6038942a28b0001c18a5eba32f24fffa
deleted file mode 100644
index ae86bfa..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/e5/6038942a28b0001c18a5eba32f24fffa
+++ /dev/null
@@ -1,19 +0,0 @@
-package ab.common.item.relic;
-
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraftforge.common.MinecraftForge;
-import net.minecraftforge.event.entity.living.LivingDeathEvent;
-import net.minecraftforge.event.entity.living.LivingDropsEvent;
-
-public class ItemSehrimnirHide extends ItemModRelic {
-
- public ItemSehrimnirHide() {
- super("sehrimnirHide");
- MinecraftForge.EVENT_BUS.register(this);
- }
-
- @SubscribeEvent
- public void onPlayerAttack(LivingDeathEvent event) {
- System.out.println(event.entityLiving.capturedDrops);
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/e5/c052acc149b0001c1746c57a5fe46fd3 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/e5/c052acc149b0001c1746c57a5fe46fd3
deleted file mode 100644
index eb6407c..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/e5/c052acc149b0001c1746c57a5fe46fd3
+++ /dev/null
@@ -1,51 +0,0 @@
-package ab.common.item.relic;
-
-import java.lang.reflect.InvocationTargetException;
-import java.util.List;
-
-import ab.common.core.handler.ConfigABHandler;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import cpw.mods.fml.relauncher.ReflectionHelper;
-import net.minecraft.entity.EntityLivingBase;
-import net.minecraft.entity.boss.IBossDisplayData;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.ItemStack;
-import net.minecraft.world.World;
-import net.minecraftforge.common.MinecraftForge;
-import net.minecraftforge.event.entity.living.LivingDropsEvent;
-
-public class ItemSehrimnirHide extends ItemModRelic {
-
- public static final String[] dropFewItems = new String[] { "dropFewItems", "func_70628_a" };
-
- public ItemSehrimnirHide() {
- super("sehrimnirHide");
- MinecraftForge.EVENT_BUS.register(this);
- }
-
- @SubscribeEvent
- public void onPlayerAttack(LivingDropsEvent event) {
- if(event != null && event.source != null && event.source.getSourceOfDamage() instanceof EntityPlayer) {
- EntityPlayer player = (EntityPlayer)event.source.getSourceOfDamage();
- if(player.inventory.hasItem(this)) {
- if(event.entityLiving != null && !(event.entityLiving instanceof IBossDisplayData) && isVallidEntity(event.entityLiving)) {
- try {
- EntityLivingBase liv = event.entityLiving;
- ReflectionHelper.findMethod(EntityLivingBase.class, liv, dropFewItems, new Class[] {boolean.class, int.class} ).invoke(liv, new Object[] {true, 5});
- } catch(Exception e) {
- e.printStackTrace();
- }
- }
- }
- }
- }
-
- public static boolean isVallidEntity(EntityLivingBase liv) {
- for(String entityName : ConfigABHandler.lockEntityListToHide) {
- if(liv.getClass().getSimpleName().equals(entityName))
- return false;
- }
- return true;
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/e6/30736ae0e8bc001c1a9f99005529f322 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/e6/30736ae0e8bc001c1a9f99005529f322
new file mode 100644
index 0000000..e69de29
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/e7/00c0415d8bae001c11109eb5a6670b42 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/e7/00c0415d8bae001c11109eb5a6670b42
deleted file mode 100644
index e51ea18..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/e7/00c0415d8bae001c11109eb5a6670b42
+++ /dev/null
@@ -1,130 +0,0 @@
-package ab.common.block;
-
-import java.util.List;
-
-import ab.AdvancedBotany;
-import ab.common.block.tile.TileBoardFate;
-import ab.common.block.tile.TileGameBoard;
-import ab.common.block.tile.TileInventory;
-import ab.common.lib.register.AchievementRegister;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockContainer;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.renderer.texture.IIconRegister;
-import net.minecraft.creativetab.CreativeTabs;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.stats.Achievement;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.IIcon;
-import net.minecraft.world.World;
-import vazkii.botania.api.wand.IWandable;
-import vazkii.botania.common.achievement.IPickupAchievement;
-import vazkii.botania.common.core.handler.ConfigHandler;
-
-public class BlockBoardFate extends BlockContainer implements IPickupAchievement {
-
- protected IIcon[] iconsFate;
- protected IIcon[] iconsBoard;
-
- public BlockBoardFate() {
- super(Material.iron);
- this.setCreativeTab(AdvancedBotany.tabAB);
- this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.1875F, 1.0F);
- this.setHardness(3.0F);
- this.setResistance(10.0F);
- this.setStepSound(soundTypeMetal);
- this.setBlockName("boardFate");
- }
-
- public void getSubBlocks(Item par1, CreativeTabs par2CreativeTabs, List list) {
- for(int i = 0; i < 2; i++)
- list.add(new ItemStack(par1, 1, i));
- }
-
- public void registerBlockIcons(IIconRegister ir) {
- this.iconsFate = new IIcon[3];
- this.iconsBoard = new IIcon[3];
- for(int i = 0; i < iconsFate.length; i++)
- this.iconsFate[i] = ir.registerIcon("ab:boardFate_" + i);
- for(int i = 0; i < iconsBoard.length; i++)
- this.iconsBoard[i] = ir.registerIcon("ab:gameBoard_" + i);
- }
-
- public IIcon getIcon(int side, int meta) {
- if(meta == 0)
- return this.iconsBoard[Math.min(2, side)];
- else
- return this.iconsFate[Math.min(2, side)];
- }
-
- public boolean isOpaqueCube() {
- return false;
- }
-
- public boolean renderAsNormalBlock() {
- return false;
- }
-
- public int damageDropped(int par1) {
- return par1;
- }
-
- public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float par7, float par8, float par9) {
- int meta = world.getBlockMetadata(x, y, z);
- if(meta == 0) {
- TileGameBoard tile = (TileGameBoard)world.getTileEntity(x, y, z);
- if(player.isSneaking() && !tile.hasGame()) {
- tile.isSingleGame = !tile.isSingleGame;
- return true;
- }
- if(!tile.hasGame())
- tile.setPlayer(player);
- else if(!tile.isSingleGame && tile.playersName[1].isEmpty() && !tile.playersName[0].equals(player.getCommandSenderName()))
- tile.setPlayer(player);
- else {
- return tile.dropDice(player);
- }
- return false;
- } else {
- TileBoardFate tile = (TileBoardFate)world.getTileEntity(x, y, z);
- return tile.spawnRelic(player);
- }
- }
-
- public TileEntity createNewTileEntity(World world, int meta) {
- return meta == 0 ? new TileGameBoard() : new TileBoardFate();
- }
-
- public void breakBlock(World world, int x, int y, int z, Block block, int meta) {
- if(!world.isRemote && meta == 1) {
- TileInventory inv = (TileInventory)world.getTileEntity(x, y, z);
- if (inv != null) {
- for (int i = 0; i < inv.getSizeInventory(); i++) {
- ItemStack stack = inv.getStackInSlot(i);
- if (stack != null) {
- float f = world.rand.nextFloat() * 0.8F + 0.1F;
- float f1 = world.rand.nextFloat() * 0.8F + 0.1F;
- float f2 = world.rand.nextFloat() * 0.8F + 0.1F;
- EntityItem entityitem = new EntityItem(world, (x + f), (y + f1), (z + f2), stack.copy());
- float f3 = 0.05F;
- entityitem.motionX = ((float)world.rand.nextGaussian() * f3);
- entityitem.motionY = ((float)world.rand.nextGaussian() * f3 + 0.2F);
- entityitem.motionZ = ((float)world.rand.nextGaussian() * f3);
- if (stack.hasTagCompound())
- entityitem.getEntityItem().setTagCompound((NBTTagCompound)stack.getTagCompound().copy());
- world.spawnEntityInWorld(entityitem);
- }
- }
- }
- }
- super.breakBlock(world, x, y, z, block, meta);
- }
-
- public Achievement getAchievementOnPickup(ItemStack stack, EntityPlayer player, EntityItem item) {
- return stack.getItemDamage() == 1 ? AchievementRegister.fateBoard : null;
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/e7/100a3dc5a1c1001c1523a6ad96b00e7c b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/e7/100a3dc5a1c1001c1523a6ad96b00e7c
new file mode 100644
index 0000000..3b37cac
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/e7/100a3dc5a1c1001c1523a6ad96b00e7c
@@ -0,0 +1,209 @@
+package ab.common.item.relic;
+
+import java.awt.Color;
+import java.util.List;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.common.core.handler.NetworkHandler;
+import ab.common.lib.register.ItemListAB;
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
+import net.minecraft.block.Block;
+import net.minecraft.client.renderer.texture.IIconRegister;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.util.EnumChatFormatting;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.MathHelper;
+import net.minecraft.util.StatCollector;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.api.mana.ManaItemHandler;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class ItemSphereNavigation extends ItemModRelic {
+
+ public static IIcon[] icons = new IIcon[5];;
+ public static final int rangeSearch = 16;
+ public static final int maxCooldown = 158;
+ public static final int manaCost = 1750;
+
+ public ItemSphereNavigation() {
+ super("sphereNavigation");
+ }
+
+ public void registerIcons(IIconRegister ir) {
+ icons[0] = ir.registerIcon("ab:sphereNavigation");
+ icons[1] = ir.registerIcon("ab:sphereNavigation_hasblock");
+ icons[2] = ir.registerIcon("ab:sphereNavigation_nonBlock");
+ icons[3] = ir.registerIcon("ab:sphereNavigation_off");
+ icons[4] = ir.registerIcon("ab:sphereNavigation_on");
+ }
+
+ @SideOnly(Side.CLIENT)
+ public IIcon getIcon(ItemStack stack, int pass) {
+ return this.icons[pass == 0 ? 0 : (pass == 1 ? 1 : 4)];
+ }
+
+ public boolean requiresMultipleRenderPasses() {
+ return true;
+ }
+
+ public String getItemStackDisplayName(ItemStack stack) {
+ Block block = getFindBlock(stack);
+ int meta = getFindMeta(stack);
+ ItemStack rStack = new ItemStack(block, 1, meta);
+ return super.getItemStackDisplayName(stack) + ((rStack == null || rStack.getItem() == null) ? "" : (EnumChatFormatting.RESET + " (" + EnumChatFormatting.GREEN + rStack.getDisplayName() + EnumChatFormatting.RESET + ")"));
+ }
+
+ @SideOnly(Side.CLIENT)
+ public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean par4) {
+ super.addInformation(stack, player, list, par4);
+ addStringToTooltip(StatCollector.translateToLocal(stack.getItemDamage() == 0 ? "botaniamisc.active" : "botaniamisc.inactive"), list);
+ }
+
+ void addStringToTooltip(String s, List tooltip) {
+ tooltip.add(s.replaceAll("&", "\u00A7"));
+ }
+
+ public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
+ if(getFindBlock(stack) != null && player.isSneaking()) {
+ int dmg = stack.getItemDamage();
+ stack.setItemDamage((dmg ^ 0xFFFFFFFF) & 0x1);
+ world.playSoundAtEntity(player, "random.orb", 0.3F, 0.1F);
+ }
+ return stack;
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int pos, boolean equipped) {
+ super.onUpdate(stack, world, entity, pos, equipped);
+ if(entity instanceof EntityPlayer) {
+ EntityPlayer player = (EntityPlayer)entity;
+ if(!world.isRemote && stack.getItemDamage() == 0 && getFindBlock(stack) != null && canWork(stack) && ManaItemHandler.requestManaExactForTool(stack, player, manaCost, true)) {
+ setMaxTick(stack);
+ NetworkHandler.sendPacketToFindBlocks((EntityPlayerMP)player, getFindBlock(stack), getFindMeta(stack));
+ }
+ }
+ }
+
+ public static void findBlocks(World world, Block findBlock, int findMeta, EntityPlayer player) {
+ if(world.isRemote) {
+ ItemStack renderStack = null;
+ int maxFindedBlocks = 32;
+ int findedBlocks = 0;
+ label1703:
+ for(int y = -rangeSearch * 2; y < rangeSearch; y++) {
+ for(int x = -rangeSearch; x < rangeSearch; x++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks)) || world.rand.nextBoolean())
+ continue;
+ for(int z = -rangeSearch; z < rangeSearch; z++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks)) || world.rand.nextBoolean())
+ continue;
+ else if(findedBlocks >= maxFindedBlocks)
+ break label1703;
+ int posX = MathHelper.floor_double(player.posX) + x;
+ int posY = MathHelper.floor_double(player.posY) + y;
+ int posZ = MathHelper.floor_double(player.posZ) + z;
+ if(posY < 0)
+ continue;
+ Block block = world.getBlock(posX, posY, posZ);
+ if(!Block.isEqualTo(block, findBlock))
+ continue;
+ int meta = world.getBlockMetadata(posX, posY, posZ);
+ if(meta == findMeta) {
+ if(renderStack == null)
+ renderStack = getRenderStackForBlock(world, block, meta, posX, posY, posZ);
+ findedBlocks++;
+ float maxAge = 2.7f + (0.5f * (float)(Math.random()));
+ Botania.proxy.setWispFXDepthTest(false);
+ Botania.proxy.setWispFXDistanceLimit(false);
+ float far = 120.0f - (((Math.abs(x) + Math.min(rangeSearch, Math.abs(y)) + Math.abs(z)) / (rangeSearch * 4.0f)) * 120.0f);
+ if(far <= 70)
+ far *= 0.1f;
+ Color color = new Color(Color.HSBtoRGB(far / 360.0f, 0.9f + (float)(Math.random() * 0.1f), 1.0f));
+ for(int i = 0; i < 11; i++)
+ Botania.proxy.wispFX(world, posX + 0.5f + (Math.random() - 0.5f), posY + 0.5f + (Math.random() - 0.5f), posZ + 0.5f + (Math.random() - 0.5f), color.getRed() / 100.0f, color.getGreen() / 100.0f, color.getBlue() / 100.0f, 0.3f + (float)(Math.random() * 0.25f), 0.0f, maxAge);
+ Botania.proxy.setWispFXDistanceLimit(true);
+ Botania.proxy.setWispFXDepthTest(true);
+ }
+ }
+ }
+ }
+ if(renderStack != null)
+ ItemsRemainingRender.set(renderStack, StatCollector.translateToLocal("ab.sphereNavigation.founded") + " " + findedBlocks);
+ }
+ }
+
+ public static ItemStack getRenderStackForBlock(World world, Block block, int meta, int x, int y, int z) {
+ if(block != null) {
+ Item item = Item.getItemFromBlock(block);
+ if(item != null) {
+ ItemStack findStack = new ItemStack(block, 1, meta);
+ if(findStack != null)
+ return findStack;
+ } else {
+ Item item1 = block.getItem(world, x, y, z);
+ if(item1 != null) {
+ ItemStack findStack = new ItemStack(item1, 1, meta);
+ if(findStack != null)
+ return findStack;
+ }
+ }
+ }
+ return null;
+ }
+
+ public boolean onItemUse(ItemStack stack, EntityPlayer p, World world, int x, int y, int z, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
+ if(p.isSneaking()) {
+ Block block = world.getBlock(x, y, z);
+ if(block != null) {
+ int meta = world.getBlockMetadata(x, y, z);
+ ItemStack findStack = getRenderStackForBlock(world, block, meta, x, y, z);
+ if(findStack != null) {
+ setFindBlock(stack, block, meta);
+ if(world.isRemote)
+ ItemsRemainingRender.set(findStack, findStack.getDisplayName());
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public boolean canWork(ItemStack stack) {
+ int tick = ItemNBTHelper.getInt(stack, "cooldown", 0);
+ if(tick == 0)
+ return true;
+ else if(tick > 0)
+ ItemNBTHelper.setInt(stack, "cooldown", tick - 1);
+ return false;
+ }
+
+ public void setMaxTick(ItemStack stack) {
+ ItemNBTHelper.setInt(stack, "cooldown", maxCooldown);
+ }
+
+ public static void setFindBlock(ItemStack stack, Block block, int meta) {
+ ItemNBTHelper.setInt(stack, "findBlockID", Block.getIdFromBlock(block));
+ ItemNBTHelper.setInt(stack, "findBlockMeta", meta);
+ }
+
+ public static Block getFindBlock(ItemStack stack) {
+ int blockID = ItemNBTHelper.getInt(stack, "findBlockID", 0);
+ if(blockID == 0)
+ return null;
+ else
+ return Block.getBlockById(blockID);
+ }
+
+ public static int getFindMeta(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "findBlockMeta", -1);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/e7/3037c766a1c1001c1523a6ad96b00e7c b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/e7/3037c766a1c1001c1523a6ad96b00e7c
new file mode 100644
index 0000000..4a571ef
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/e7/3037c766a1c1001c1523a6ad96b00e7c
@@ -0,0 +1,210 @@
+package ab.common.item.relic;
+
+import java.awt.Color;
+import java.util.List;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.common.core.handler.NetworkHandler;
+import ab.common.lib.register.ItemListAB;
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
+import net.minecraft.block.Block;
+import net.minecraft.client.renderer.texture.IIconRegister;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.util.EnumChatFormatting;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.MathHelper;
+import net.minecraft.util.StatCollector;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.api.mana.ManaItemHandler;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class ItemSphereNavigation extends ItemModRelic {
+
+ public static IIcon[] icons;
+ public static final int rangeSearch = 16;
+ public static final int maxCooldown = 158;
+ public static final int manaCost = 1750;
+
+ public ItemSphereNavigation() {
+ super("sphereNavigation");
+ }
+
+ public void registerIcons(IIconRegister ir) {
+ icons = new IIcon[5];
+ icons[0] = ir.registerIcon("ab:sphereNavigation");
+ icons[1] = ir.registerIcon("ab:sphereNavigation_hasblock");
+ icons[2] = ir.registerIcon("ab:sphereNavigation_nonBlock");
+ icons[3] = ir.registerIcon("ab:sphereNavigation_off");
+ icons[4] = ir.registerIcon("ab:sphereNavigation_on");
+ }
+
+ @SideOnly(Side.CLIENT)
+ public IIcon getIcon(ItemStack stack, int pass) {
+ return this.icons[pass == 0 ? 0 : (pass == 1 ? 1 : 4)];
+ }
+
+ public boolean requiresMultipleRenderPasses() {
+ return true;
+ }
+
+ public String getItemStackDisplayName(ItemStack stack) {
+ Block block = getFindBlock(stack);
+ int meta = getFindMeta(stack);
+ ItemStack rStack = new ItemStack(block, 1, meta);
+ return super.getItemStackDisplayName(stack) + ((rStack == null || rStack.getItem() == null) ? "" : (EnumChatFormatting.RESET + " (" + EnumChatFormatting.GREEN + rStack.getDisplayName() + EnumChatFormatting.RESET + ")"));
+ }
+
+ @SideOnly(Side.CLIENT)
+ public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean par4) {
+ super.addInformation(stack, player, list, par4);
+ addStringToTooltip(StatCollector.translateToLocal(stack.getItemDamage() == 0 ? "botaniamisc.active" : "botaniamisc.inactive"), list);
+ }
+
+ void addStringToTooltip(String s, List tooltip) {
+ tooltip.add(s.replaceAll("&", "\u00A7"));
+ }
+
+ public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
+ if(getFindBlock(stack) != null && player.isSneaking()) {
+ int dmg = stack.getItemDamage();
+ stack.setItemDamage((dmg ^ 0xFFFFFFFF) & 0x1);
+ world.playSoundAtEntity(player, "random.orb", 0.3F, 0.1F);
+ }
+ return stack;
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int pos, boolean equipped) {
+ super.onUpdate(stack, world, entity, pos, equipped);
+ if(entity instanceof EntityPlayer) {
+ EntityPlayer player = (EntityPlayer)entity;
+ if(!world.isRemote && stack.getItemDamage() == 0 && getFindBlock(stack) != null && canWork(stack) && ManaItemHandler.requestManaExactForTool(stack, player, manaCost, true)) {
+ setMaxTick(stack);
+ NetworkHandler.sendPacketToFindBlocks((EntityPlayerMP)player, getFindBlock(stack), getFindMeta(stack));
+ }
+ }
+ }
+
+ public static void findBlocks(World world, Block findBlock, int findMeta, EntityPlayer player) {
+ if(world.isRemote) {
+ ItemStack renderStack = null;
+ int maxFindedBlocks = 32;
+ int findedBlocks = 0;
+ label1703:
+ for(int y = -rangeSearch * 2; y < rangeSearch; y++) {
+ for(int x = -rangeSearch; x < rangeSearch; x++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks)) || world.rand.nextBoolean())
+ continue;
+ for(int z = -rangeSearch; z < rangeSearch; z++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks)) || world.rand.nextBoolean())
+ continue;
+ else if(findedBlocks >= maxFindedBlocks)
+ break label1703;
+ int posX = MathHelper.floor_double(player.posX) + x;
+ int posY = MathHelper.floor_double(player.posY) + y;
+ int posZ = MathHelper.floor_double(player.posZ) + z;
+ if(posY < 0)
+ continue;
+ Block block = world.getBlock(posX, posY, posZ);
+ if(!Block.isEqualTo(block, findBlock))
+ continue;
+ int meta = world.getBlockMetadata(posX, posY, posZ);
+ if(meta == findMeta) {
+ if(renderStack == null)
+ renderStack = getRenderStackForBlock(world, block, meta, posX, posY, posZ);
+ findedBlocks++;
+ float maxAge = 2.7f + (0.5f * (float)(Math.random()));
+ Botania.proxy.setWispFXDepthTest(false);
+ Botania.proxy.setWispFXDistanceLimit(false);
+ float far = 120.0f - (((Math.abs(x) + Math.min(rangeSearch, Math.abs(y)) + Math.abs(z)) / (rangeSearch * 4.0f)) * 120.0f);
+ if(far <= 70)
+ far *= 0.1f;
+ Color color = new Color(Color.HSBtoRGB(far / 360.0f, 0.9f + (float)(Math.random() * 0.1f), 1.0f));
+ for(int i = 0; i < 11; i++)
+ Botania.proxy.wispFX(world, posX + 0.5f + (Math.random() - 0.5f), posY + 0.5f + (Math.random() - 0.5f), posZ + 0.5f + (Math.random() - 0.5f), color.getRed() / 100.0f, color.getGreen() / 100.0f, color.getBlue() / 100.0f, 0.3f + (float)(Math.random() * 0.25f), 0.0f, maxAge);
+ Botania.proxy.setWispFXDistanceLimit(true);
+ Botania.proxy.setWispFXDepthTest(true);
+ }
+ }
+ }
+ }
+ if(renderStack != null)
+ ItemsRemainingRender.set(renderStack, StatCollector.translateToLocal("ab.sphereNavigation.founded") + " " + findedBlocks);
+ }
+ }
+
+ public static ItemStack getRenderStackForBlock(World world, Block block, int meta, int x, int y, int z) {
+ if(block != null) {
+ Item item = Item.getItemFromBlock(block);
+ if(item != null) {
+ ItemStack findStack = new ItemStack(block, 1, meta);
+ if(findStack != null)
+ return findStack;
+ } else {
+ Item item1 = block.getItem(world, x, y, z);
+ if(item1 != null) {
+ ItemStack findStack = new ItemStack(item1, 1, meta);
+ if(findStack != null)
+ return findStack;
+ }
+ }
+ }
+ return null;
+ }
+
+ public boolean onItemUse(ItemStack stack, EntityPlayer p, World world, int x, int y, int z, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
+ if(p.isSneaking()) {
+ Block block = world.getBlock(x, y, z);
+ if(block != null) {
+ int meta = world.getBlockMetadata(x, y, z);
+ ItemStack findStack = getRenderStackForBlock(world, block, meta, x, y, z);
+ if(findStack != null) {
+ setFindBlock(stack, block, meta);
+ if(world.isRemote)
+ ItemsRemainingRender.set(findStack, findStack.getDisplayName());
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public boolean canWork(ItemStack stack) {
+ int tick = ItemNBTHelper.getInt(stack, "cooldown", 0);
+ if(tick == 0)
+ return true;
+ else if(tick > 0)
+ ItemNBTHelper.setInt(stack, "cooldown", tick - 1);
+ return false;
+ }
+
+ public void setMaxTick(ItemStack stack) {
+ ItemNBTHelper.setInt(stack, "cooldown", maxCooldown);
+ }
+
+ public static void setFindBlock(ItemStack stack, Block block, int meta) {
+ ItemNBTHelper.setInt(stack, "findBlockID", Block.getIdFromBlock(block));
+ ItemNBTHelper.setInt(stack, "findBlockMeta", meta);
+ }
+
+ public static Block getFindBlock(ItemStack stack) {
+ int blockID = ItemNBTHelper.getInt(stack, "findBlockID", 0);
+ if(blockID == 0)
+ return null;
+ else
+ return Block.getBlockById(blockID);
+ }
+
+ public static int getFindMeta(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "findBlockMeta", -1);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/e7/c0e0554cd2b0001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/e7/c0e0554cd2b0001c19bf8a91ac37238b
deleted file mode 100644
index d418953..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/e7/c0e0554cd2b0001c19bf8a91ac37238b
+++ /dev/null
@@ -1,129 +0,0 @@
-package ab.common.item.equipment;
-
-import java.awt.Color;
-
-import ab.client.core.ClientHelper;
-import ab.common.core.handler.ConfigABHandler;
-import ab.common.item.ItemMod;
-import net.minecraft.block.Block;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.Minecraft;
-import net.minecraft.entity.Entity;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.EnumAction;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.ChunkCoordinates;
-import net.minecraft.util.MathHelper;
-import net.minecraft.util.Vec3;
-import net.minecraft.world.World;
-import net.minecraft.world.chunk.Chunk;
-import vazkii.botania.api.mana.IManaUsingItem;
-import vazkii.botania.api.mana.ManaItemHandler;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.core.helper.Vector3;
-
-public class ItemNebulaRod extends ItemMod implements IManaUsingItem {
-
- public ItemNebulaRod() {
- super("nebulaRod");
- this.setMaxStackSize(1);
- this.setNoRepair();
- this.setMaxDamage(100);
- }
-
- public boolean usesMana(ItemStack stack) {
- return true;
- }
-
- public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
- if(stack.getItemDamage() == 0)
- player.setItemInUse(stack, getMaxItemUseDuration(stack));
- return stack;
- }
-
- public EnumAction getItemUseAction(ItemStack par1ItemStack) {
- return EnumAction.bow;
- }
-
- public void onUpdate(ItemStack stack, World world, Entity player, int par4, boolean par5) {
- if(!world.isRemote && player instanceof EntityPlayer && player.ticksExisted % ConfigABHandler.nebulaWandCooldownTick == 0 && stack.getItemDamage() > 0 && ManaItemHandler.requestManaExactForTool(stack, (EntityPlayer)player, 140, true))
- stack.setItemDamage(stack.getItemDamage() - 1);
- }
-
- public void onUsingTick(ItemStack stack, EntityPlayer p, int time) {
- time = this.getMaxItemUseDuration(stack) - time;
- if(time > 110 && !p.isSneaking()) {
- Vec3 vec3 = p.getLook(1.0F).normalize();
- MathHelper.floor_double(time);
- int limitXZ = ConfigABHandler.limitXZCoords;
- int posX = MathHelper.floor_double(p.posX + vec3.xCoord * 256);
- int posY = MathHelper.floor_double(p.posY);
- int posZ = MathHelper.floor_double(p.posZ + vec3.zCoord * 256);
- ChunkCoordinates chunkcoordinates = new ChunkCoordinates(Math.min(Math.max(posX, -(limitXZ - 1)), limitXZ - 1), posY, Math.min(Math.max(posZ, -(limitXZ - 1)), limitXZ - 1));
- int topY = getTopBlock(p.worldObj, posX, posZ);
- if(topY == -1) {
- p.stopUsingItem();
- return;
- }
- chunkcoordinates.posY = topY;
- if(!p.worldObj.isRemote)
- ((EntityPlayerMP)p).playerNetServerHandler.setPlayerLocation(chunkcoordinates.posX + 0.5D, chunkcoordinates.posY + 1.6D, chunkcoordinates.posZ + 0.5D, p.rotationYaw, p.rotationPitch);
- if(!p.capabilities.isCreativeMode)
- stack.setItemDamage(100);
- p.stopUsingItem();
- }
- spawnPortalParticle(p.worldObj, p, time);
- }
-
- public void spawnPortalParticle(World world, EntityPlayer p, int time) {
- if(world.isRemote) {
- boolean isFinish = time > 80;
- int ticks = Math.min(100, time);
- int totalSpiritCount = (int)Math.max(3, ticks / 100.0f * 18);
- double tickIncrement = 360.0D / totalSpiritCount;
- int speed = 8;
- double wticks = (ticks * speed) - tickIncrement;
- double r = Math.sin((ticks) / 100.0D) * Math.max(0.75f, 1.4D * ticks / 100.0f);
- Vec3 look = p.getLookVec();
- float yawOffset = Minecraft.getMinecraft().thePlayer.getDisplayName() == p.getDisplayName() ? 0.0f : 1.62f;
- Vector3 l = new Vector3(look.xCoord, look.yCoord + yawOffset, look.zCoord);
- Vector3 player = Vector3.fromEntity(p).add(0.0f, 0.0f, 0.0f);
- Vector3 v3 = new Vector3();
- for(int i = 0; i < totalSpiritCount; i++) {
- float size = Math.max(0.215f, ticks / 100.0f);
- v3.set(Math.sin(wticks * Math.PI / 180.0D) / 1.825f * r, Math.cos(wticks * Math.PI / 180.0D) * r, 0.8f);
- ClientHelper.setRotation(p.rotationPitch, 1.0f, 0.0f, 0.0f, v3);
- ClientHelper.setRotation(-p.rotationYaw, 0.0f, 1.0f, 0.0f, v3);
- v3.add(l.multiply(1.0f)).add(player);
- wticks += tickIncrement;
- int color = world.rand.nextBoolean() ? 0x931fec : 0x4b1682;
- float hsb[] = Color.RGBtoHSB(color & 255, color >> 8 & 255, color >> 16 & 255, null);
- int color1 = Color.HSBtoRGB(hsb[0], hsb[1], ticks / 100.0f);
- float[] colorsfx = { (color1 & 255) / 255.0f, (color1 >> 8 & 255) / 255.0f, (color1 >> 16 & 255) / 255.0f };
- float motionSpeed = 0.25f * Math.min(1.0f, (time - 80) / 30.0f);
- Botania.proxy.wispFX(world, v3.x, v3.y, v3.z, colorsfx[0], colorsfx[1], colorsfx[2], 0.3F * size, isFinish ? (float)(look.xCoord * -1) * motionSpeed : 0.0f, isFinish ? (float)(look.yCoord * -1) * motionSpeed : 0.0f, isFinish ? (float)(look.zCoord * -1) * motionSpeed : 0.0f, 0.3F);
- Botania.proxy.wispFX(world, v3.x, v3.y, v3.z, colorsfx[0], colorsfx[1], colorsfx[2], (float)(Math.random() * 0.1F + 0.05F) * size, (float)(Math.random() - 0.5D) * 0.05F, (float)(Math.random() - 0.5D) * 0.05F, (float)(Math.random() - 0.5D) * 0.05F, 0.4F);
- }
- }
- }
-
- public int getMaxItemUseDuration(ItemStack par1ItemStack) {
- return 72000;
- }
-
- public boolean isFull3D() {
- return true;
- }
-
- public int getTopBlock(World world, int posX, int posZ) {
- Chunk chunk = world.getChunkFromBlockCoords(posX, posZ);
- for(int k = chunk.getTopFilledSegment() + 15; k > 0; --k) {
- Block block = chunk.getBlock(posX, k, posZ);
- if(!block.isAir(world, posX, k, posZ) && block != Blocks.bedrock && block.isAir(world, posX, k + 1, posZ) && block.isAir(world, posX, k + 2, posZ))
- return k + 1;
- }
- return -1;
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/e8/9027c292bbad001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/e8/9027c292bbad001c1d59e42be7477558
deleted file mode 100644
index 6c7ee5f..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/e8/9027c292bbad001c1d59e42be7477558
+++ /dev/null
@@ -1,96 +0,0 @@
-package ab.client.render.tile;
-
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.model.ModelDiceFate;
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.entity.RenderManager;
-import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.ResourceLocation;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class RenderTileGameBoard extends TileEntitySpecialRenderer {
-
- private static final ModelDiceFate model = new ModelDiceFate();
- private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/gameDice.png");
- private static final ResourceLocation textureEnemy = new ResourceLocation("ab:textures/model/gameDice_enemy.png");
-
- public void renderTileEntityAt(TileEntity tile, double x, double y, double z, float ticks) {
- double time = (tile.getWorldObj() == null) ? 0.0D : (ClientTickHandler.ticksInGame + ticks);
- if(tile != null)
- time += (new Random((tile.xCoord ^ tile.yCoord ^ tile.zCoord))).nextInt(360);
- TileGameBoard board = (TileGameBoard)tile;
- GL11.glEnable(3042);
- GL11.glEnable(32826);
- GL11.glBlendFunc(770, 771);
- GL11.glPushMatrix();
- GL11.glTranslated(x + 0.5f, y, z + 0.5f);
- GL11.glRotatef(90.0f - RenderManager.instance.playerViewY, 0.0f, 1.0f, 0.0f);
- for(int i = 0; i < board.slotChance.length; i++) {
- if(board.slotChance[i] == 0)
- continue;
- time += i * 83.256f;
- GL11.glPushMatrix();
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- float posX = 0.0f;
- float posZ = 0.0f;
- float dropAnim = (1.0f - (Math.min(100.0f, (board.clientTick[i] * board.clientTick[i] * 1.25f) + ticks) / 100.0f));
- dropAnim = Math.min(1.0f, Math.max(dropAnim, 0.0f));
- float alpha = (float)Math.cos(dropAnim);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, alpha);
- switch(i) {
- case 0:
- posX = 0.16f + 0.08f * dropAnim;
- posZ = 0.16f + 0.08f * dropAnim;
- break;
- case 1:
- posX = -0.16f - 0.08f * dropAnim;
- posZ = 0.16f + 0.08f * dropAnim;
- break;
- case 2:
- posX = 0.16f + 0.08f * dropAnim;
- posZ = -0.16f - 0.08f * dropAnim;
- break;
- case 3:
- posX = -0.16f - 0.08f * dropAnim;
- posZ = -0.16f - 0.08f * dropAnim;
- break;
- }
- GL11.glTranslated(posX, 0.02f + Math.sin(time / 12.0D) / 48.0D + (0.28f * dropAnim), posZ);
- GL11.glScalef(0.25f, 0.25f, 0.25f);
- Minecraft.getMinecraft().renderEngine.bindTexture(i > 1 ? textureEnemy : texture);
- float dropAngel = 70.0f * dropAnim;
- switch(board.slotChance[i]) {
- case 1:
- model.render(180.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 2:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 3:
- model.render(90.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 4:
- model.render(270.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 5:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 270.0f);
- break;
- case 6:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 90.0f);
- break;
- default:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- }
- GL11.glPopMatrix();
- }
- GL11.glPopMatrix();
- GL11.glEnable(32826);
- GL11.glDisable(3042);
- }
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/e9/008433c870c1001c11e398ea97007cb4 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/e9/008433c870c1001c11e398ea97007cb4
new file mode 100644
index 0000000..c47eba2
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/e9/008433c870c1001c11e398ea97007cb4
@@ -0,0 +1,295 @@
+package ab.common.item.equipment;
+
+import java.awt.Color;
+import java.util.List;
+import java.util.UUID;
+import com.google.common.collect.Multimap;
+import ab.AdvancedBotany;
+import ab.api.AdvancedBotanyAPI;
+import ab.api.IRankItem;
+import ab.common.core.handler.*;
+import ab.common.entity.EntitySword;
+import cpw.mods.fml.relauncher.ReflectionHelper;
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
+import net.minecraft.client.Minecraft;
+import net.minecraft.client.audio.PositionedSoundRecord;
+import net.minecraft.client.gui.GuiScreen;
+import net.minecraft.client.renderer.texture.IIconRegister;
+import net.minecraft.creativetab.CreativeTabs;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.entity.SharedMonsterAttributes;
+import net.minecraft.entity.ai.attributes.AttributeModifier;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.entity.projectile.EntityThrowable;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemStack;
+import net.minecraft.item.ItemSword;
+import net.minecraft.potion.Potion;
+import net.minecraft.potion.PotionEffect;
+import net.minecraft.server.MinecraftServer;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.util.AxisAlignedBB;
+import net.minecraft.util.DamageSource;
+import net.minecraft.util.EnumChatFormatting;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.MathHelper;
+import net.minecraft.util.MovingObjectPosition;
+import net.minecraft.util.ResourceLocation;
+import net.minecraft.util.StatCollector;
+import net.minecraft.util.Vec3;
+import net.minecraft.world.World;
+import vazkii.botania.api.internal.IManaBurst;
+import vazkii.botania.api.mana.BurstProperties;
+import vazkii.botania.api.mana.ILensEffect;
+import vazkii.botania.api.mana.IManaItem;
+import vazkii.botania.api.mana.IManaUsingItem;
+import vazkii.botania.api.mana.ManaItemHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+import vazkii.botania.common.entity.EntityManaBurst;
+import vazkii.botania.common.lib.LibObfuscation;
+
+public class ItemSpaceBlade extends ItemSword implements IRankItem, IManaUsingItem {
+
+ private static final IIcon[] icons = new IIcon[3];
+ private static final int recharge = 36;
+
+ public static final int[] LEVELS = new int[] { 0, 10000, 1000000, 10000000, 100000000, 1000000000 };
+ private static final int[] CREATIVE_MANA = new int[] { 9999, 999999, 9999999, 99999999, 999999999, 2147483646 };
+
+ public ItemSpaceBlade() {
+ super(AdvancedBotanyAPI.mithrilToolMaterial);
+ this.setCreativeTab(AdvancedBotany.tabAB);
+ this.setUnlocalizedName("spaceBlade");
+ }
+
+ public void getSubItems(Item item, CreativeTabs tab, List list) {
+ for(int mana : CREATIVE_MANA) {
+ ItemStack stack = new ItemStack(item);
+ setMana(stack, mana);
+ list.add(stack);
+ }
+ }
+
+ public boolean onLeftClickEntity(ItemStack stack, EntityPlayer player, Entity entity) {
+ if(!player.worldObj.isRemote) {
+ ItemNBTHelper.setInt(stack, "postAttackTick", 3);
+ if(this.getLevel(stack) >= 3 && this.isEnabledMode(stack)) {
+ float size = this.getLevel(stack) >= 4 ? (this.getLevel(stack) >= 5 ? 3.5f : 2.5f) : 1.5f;
+ AxisAlignedBB axis = AxisAlignedBB.getBoundingBox(entity.posX, entity.posY, entity.posZ, entity.lastTickPosX, entity.lastTickPosY, entity.lastTickPosZ).expand(size, 1.7f, size);
+ List entities = entity.worldObj.getEntitiesWithinAABB(EntityLivingBase.class, axis);
+ for(EntityLivingBase living : entities) {
+ if(living instanceof EntityPlayer && (((EntityPlayer)living).getCommandSenderName().equals(player.getCommandSenderName()) || (MinecraftServer.getServer() != null && !MinecraftServer.getServer().isPVPEnabled())))
+ continue;
+ if(living.hurtTime == 0) {
+ float damage = getSwordDamage(stack);
+ living.attackEntityFrom(DamageSource.causePlayerDamage(player), damage);
+ }
+ }
+ }
+ }
+ return super.onLeftClickEntity(stack, player, entity);
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int par4, boolean par5) {
+ if(!(entity instanceof EntityPlayer))
+ return;
+ EntityPlayer player = (EntityPlayer)entity;
+ int tick = ItemNBTHelper.getInt(stack, "tick", 0);
+ if(!world.isRemote) {
+ int postAttackTick = ItemNBTHelper.getInt(stack, "postAttackTick", 0);
+ if(postAttackTick > 0 && !player.isUsingItem())
+ ItemNBTHelper.setInt(stack, "postAttackTick", postAttackTick - 1);
+ if(tick > 0)
+ ItemNBTHelper.setInt(stack, "tick", tick - 1);
+ PotionEffect haste = player.getActivePotionEffect(Potion.digSpeed);
+ float check = (haste == null) ? 0.16666667F : ((haste.getAmplifier() == 1) ? 0.5F : 0.4F);
+ if(player.getCurrentEquippedItem() == stack && player.swingProgress == check && this.getLevel(stack) >= 1 && postAttackTick == 0 && ManaItemHandler.requestManaExactForTool(stack, player, 120, true)) {
+ EntitySword sword = new EntitySword(world, player);
+ sword.setDamage(getSwordDamage(stack));
+ sword.setAttacker(player.getCommandSenderName());
+ sword.motionX *= 0.2f;
+ sword.motionY *= 0.2f;
+ sword.motionZ *= 0.2f;
+ world.spawnEntityInWorld(sword);
+ player.worldObj.playSoundAtEntity(player, "ab:bladeSpace", 0.5F, 3.6F);
+ }
+ } else {
+ if(tick > 26 && par5) {
+ for(int i = 0; i < 14; i++) {
+ float r = world.rand.nextBoolean() ? (225.0f / 255.0f) : (101.0f / 255.0f);
+ float g = world.rand.nextBoolean() ? (67.0f / 255.0f) : (209.0f / 255.0f);
+ float b = world.rand.nextBoolean() ? (240.0f / 255.0f) : (225.0f / 255.0f);
+ Botania.proxy.sparkleFX(world, entity.posX + (Math.random() - 0.5D), entity.posY + ((Math.random() - 0.5D) * 2) - 0.5f, entity.posZ + (Math.random() - 0.5D), r + (float)(Math.random() / 4 - 0.125D), g + (float)(Math.random() / 4 - 0.125D), b + (float)(Math.random() / 4 - 0.125D), 1.8F * (float)(Math.random() - 0.5D), 3);
+ }
+ }
+ }
+ }
+
+ public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
+ if(ItemNBTHelper.getInt(stack, "tick", 0) != 0)
+ return stack;
+ return super.onItemRightClick(stack, world, player);
+ }
+
+ public void onPlayerStoppedUsing(ItemStack stack, World world, EntityPlayer player, int lastTime) {
+ int useTime = getMaxItemUseDuration(stack) - lastTime;
+ if(useTime < 4) {
+ if(!world.isRemote && !player.isSneaking() && ItemNBTHelper.getInt(stack, "tick", 0) == 0 && this.getLevel(stack) >= 2) {
+ NetworkHandler.sendPacketToSpaceDash((EntityPlayerMP)player);
+ ItemNBTHelper.setInt(stack, "tick", recharge);
+ player.worldObj.playSoundAtEntity(player, "ab:bladeSpace", 2.3F, 1.2F);
+ return;
+ }
+ if(player.isSneaking() && this.getLevel(stack) >= 3) {
+ ItemNBTHelper.setBoolean(stack, "isEnabledMode", !this.isEnabledMode(stack));
+ return;
+ }
+ }
+ }
+
+ public static void onPlayerSpaceDash(EntityPlayer player) {
+ double posX = player.posX;
+ double posY = player.posY;
+ double posZ = player.posZ;
+ Vec3 vec3 = player.getLook(1.0F).normalize();
+ player.motionX += vec3.xCoord * 3.25f;
+ player.motionY += (vec3.yCoord / 1.6f);
+ player.motionZ += vec3.zCoord * 3.25f;
+ }
+
+ public void addInformation(ItemStack stack, EntityPlayer par2EntityPlayer, List list, boolean par4) {
+ String rankFormat = StatCollector.translateToLocal("botaniamisc.toolRank");
+ String rank = StatCollector.translateToLocal("botania.rank" + getLevel(stack));
+ list.add(String.format(rankFormat, new Object[] { rank }).replaceAll("&", "\u00A7"));
+ if (getMana(stack) == Integer.MAX_VALUE)
+ list.add(EnumChatFormatting.DARK_AQUA + StatCollector.translateToLocal("abmisc.swordFull"));
+ if (GuiScreen.isShiftKeyDown()) {
+ int level = (getLevel(stack));
+ list.add((level >= 1 ? EnumChatFormatting.GREEN : "") + StatCollector.translateToLocal("abmisc.swordInfo.1"));
+ list.add((level >= 2 ? EnumChatFormatting.GREEN : "") + StatCollector.translateToLocal("abmisc.swordInfo.2"));
+ list.add((level >= 3 ? EnumChatFormatting.GREEN : "") + StatCollector.translateToLocal(("abmisc.swordInfo.LEVEL").replaceAll("LEVEL", "" + (level >= 3 ? level : 3))));
+ } else {
+ if(this.getLevel(stack) != 0)
+ list.add(StatCollector.translateToLocal("botaniamisc.shiftinfo").replaceAll("&", "\u00A7"));
+ }
+ }
+
+ public int getEntityLifespan(ItemStack itemStack, World world) {
+ return Integer.MAX_VALUE;
+ }
+
+ @SideOnly(Side.CLIENT)
+ public int getColorFromItemStack(ItemStack stack, int par2) {
+ return (par2 == 1) ? Color.HSBtoRGB(0.836F, 1.0f - (float)getDurabilityForDisplay(stack), 1.0F) : 16777215;
+ }
+
+ public boolean requiresMultipleRenderPasses() {
+ return true;
+ }
+
+ @SideOnly(Side.CLIENT)
+ public boolean showDurabilityBar(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "tick", 0) != 0;
+ }
+
+ @SideOnly(Side.CLIENT)
+ public double getDurabilityForDisplay(ItemStack stack) {
+ int tick = ItemNBTHelper.getInt(stack, "tick", 0);
+ return (double)(tick) / (double)recharge;
+ }
+
+ @SideOnly(Side.CLIENT)
+ public void registerIcons(IIconRegister ir) {
+ this.icons[0] = ir.registerIcon("ab:itemMithrillSword_mode_0");
+ this.icons[1] = ir.registerIcon("ab:itemMithrillSword_gem");
+ this.icons[2] = ir.registerIcon("ab:itemMithrillSword_mode_1");
+ }
+
+ @SideOnly(Side.CLIENT)
+ public IIcon getIcon(ItemStack stack, int pass) {
+ int iconID = Math.min(1, pass);
+ if(isEnabledMode(stack) && iconID == 0) {
+ iconID = 2;
+ }
+ return this.icons[iconID];
+ }
+
+ private boolean isEnabledMode(ItemStack stack) {
+ return ItemNBTHelper.getBoolean(stack, "isEnabledMode", false);
+ }
+
+ public int[] getLevels() {
+ return LEVELS;
+ }
+
+ public int getLevel(ItemStack stack) {
+ int mana = getMana_(stack);
+ for (int i = LEVELS.length - 1; i > 0; i--) {
+ if (mana >= LEVELS[i])
+ return i;
+ }
+ return 0;
+ }
+
+ public static int getMana_(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "mana", 0);
+ }
+
+ public static void setMana(ItemStack stack, int mana) {
+ ItemNBTHelper.setInt(stack, "mana", mana);
+ }
+
+ public void addMana(ItemStack stack, int mana) {
+ setMana(stack, Math.min(getMana(stack) + mana, 2147483647));
+ }
+
+ public boolean canExportManaToItem(ItemStack stack, ItemStack stack1) {
+ return false;
+ }
+
+ public boolean canExportManaToPool(ItemStack stack, TileEntity tile) {
+ return false;
+ }
+
+ public boolean canReceiveManaFromItem(ItemStack stack, ItemStack otherStack) {
+ return !(otherStack.getItem() instanceof vazkii.botania.api.mana.IManaGivingItem);
+ }
+
+ public boolean canReceiveManaFromPool(ItemStack stack, TileEntity tile) {
+ return true;
+ }
+
+ public int getMana(ItemStack stack) {
+ return getMana_(stack);
+ }
+
+ public int getMaxMana(ItemStack stack) {
+ return Integer.MAX_VALUE;
+ }
+
+ public boolean isNoExport(ItemStack stack) {
+ return true;
+ }
+
+ public boolean usesMana(ItemStack stack) {
+ return true;
+ }
+
+ private float getSwordDamage(ItemStack stack) {
+ int level = this.getLevel(stack);
+ return (float)Math.round((AdvancedBotanyAPI.mithrilToolMaterial.getDamageVsEntity() + (level * level / 1.5f)) * ConfigABHandler.damageFactorSpaceSword);
+ }
+
+ public Multimap getAttributeModifiers(ItemStack stack) {
+ Multimap multimap = this.getItemAttributeModifiers();
+ multimap.clear();
+ UUID uuid = new UUID(getUnlocalizedName().hashCode(), 0L);
+ multimap.put(SharedMonsterAttributes.attackDamage.getAttributeUnlocalizedName(), new AttributeModifier(field_111210_e, "Weapon modifier", getSwordDamage(stack), 0));
+ multimap.put(SharedMonsterAttributes.movementSpeed.getAttributeUnlocalizedName(), new AttributeModifier(uuid, "Weapon speed", 0.1f, 0));
+ return multimap;
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/e9/f04e1d5991b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/e9/f04e1d5991b1001c19bf8a91ac37238b
deleted file mode 100644
index 220f762..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/e9/f04e1d5991b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,17 +0,0 @@
-package ab.common.core;
-
-import net.minecraft.block.Block;
-import net.minecraft.block.IGrowable;
-import net.minecraft.world.World;
-
-public class CommonHelper {
-
- public static void fertilizer(World world, Block block, int xCoord, int yCoord, int zCoord, int count) {
- IGrowable igrowable = (IGrowable)block;
- if(igrowable.func_149851_a(world, xCoord, yCoord, zCoord, world.isRemote))
- if(!world.isRemote)
- if(igrowable.func_149852_a(world, world.rand, xCoord, yCoord, zCoord))
- for(int i = 0; i < count; i++)
- igrowable.func_149853_b(world, world.rand, xCoord, yCoord, zCoord);
- }
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/ea/3065788305ad001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/ea/3065788305ad001c1d59e42be7477558
deleted file mode 100644
index 5f70046..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/ea/3065788305ad001c1d59e42be7477558
+++ /dev/null
@@ -1,229 +0,0 @@
-package ab.common.block.tile;
-
-import java.util.List;
-
-import ab.api.IRenderHud;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.gui.ScaledResolution;
-import net.minecraft.client.renderer.RenderHelper;
-import net.minecraft.client.renderer.entity.RenderItem;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.init.Items;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.ChatComponentTranslation;
-import net.minecraft.util.ChatStyle;
-import net.minecraft.util.EnumChatFormatting;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.common.block.tile.TileMod;
-
-public class TileGameBoard extends TileMod implements IRenderHud {
-
- public String[] playersName = new String[] { "", "" };
- public byte[] slotChance = new byte[] { 0, 0, 0, 0 };
- protected int botTick = -1;
- public int endGameTick = -1;
- protected boolean requestUpdate;
- public boolean isSingleGame = true;
- public int clientTick[] = new int[] { 0, 0, 0, 0 };
- public static final ItemStack headRender = new ItemStack(Items.skull, 1, 3);
-
- public void updateEntity() {
- if(botTick > 0)
- botTick--;
- if(endGameTick > 0)
- endGameTick--;
- if(!worldObj.isRemote)
- updateServer();
- else
- updateAnimationTicks();
- }
-
- public void updateAnimationTicks() {
- for(int i = 0; i < slotChance.length; i++)
- if(slotChance[i] > 0)
- clientTick[i]++;
- else
- clientTick[i] = 0;
- }
-
- protected void updateServer() {
- if(hasGame() && endGameTick == 0)
- finishGame();
- if(requestUpdate)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- boolean hasUpdate = false;
- if(isSingleGame) {
- if(botTick == 0 && hasGame()) {
- for(int i = 2; i < 4; i++) {
- if(slotChance[i] == 0) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = -1;
- hasUpdate = true;
- break;
- }
- }
- }
- } else {
- if(botTick == 0 && hasGame())
- endGameTick = 0;
- }
- requestUpdate = hasUpdate;
- }
-
- public void setPlayer(EntityPlayer player) {
- if(isSingleGame) {
- playersName[0] = player.getCommandSenderName();
- playersName[1] = "";
- requestUpdate = true;
- botTick = 8;
- } else {
- if(playersName[0].isEmpty())
- playersName[0] = player.getCommandSenderName();
- else if(!playersName[0].equals(player.getCommandSenderName()))
- playersName[1] = player.getCommandSenderName();
- requestUpdate = true;
- }
- }
-
- public boolean dropDice(EntityPlayer player) {
- if(isSingleGame) {
- if(player.getCommandSenderName().equals(playersName[0]) && botTick == -1) {
- boolean isLastDice = false;
- boolean hasDrop = false;
- for(int i = 0; i < 2; i++) {
- if(slotChance[i] == 0) {
- hasDrop = true;
- if(!worldObj.isRemote) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = 18;
- requestUpdate = true;
- if(i == 1)
- isLastDice = true;
- }
- break;
- }
- }
- if(isLastDice)
- endGameTick = 28;
- return hasDrop;
- }
- } else {
- for(int i = 0; i < playersName.length; i++) {
- if(player.getCommandSenderName().equals(playersName[i])) {
- boolean hasDrop = false;
- for(int j = i * 2; j < (i + 1) * 2; j++) {
- if(slotChance[j] == 0) {
- hasDrop = true;
- if(!worldObj.isRemote) {
- slotChance[j] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = 1200;
- if(hasFullDice())
- endGameTick = 28;
- requestUpdate = true;
- }
- break;
- }
- }
- return hasDrop;
- }
- }
- }
- return false;
- }
-
- public boolean hasFullDice() {
- boolean hasFull = false;
- for(int i = 0; i < slotChance.length; i++) {
- if(!(slotChance[i] > 0))
- return false;
- hasFull = slotChance[i] > 0;
- }
- return hasFull;
- }
-
- public boolean hasGame() {
- if(isSingleGame)
- return !playersName[0].isEmpty();
- else
- for(int i = 0; i < playersName.length; i++)
- if(!playersName[i].isEmpty())
- return true;
- return false;
- }
-
- public void finishGame() {
- if(worldObj.isRemote)
- return;
- if(isSingleGame) {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won");
- else if((slotChance[0] + slotChance[1]) == (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " not win");
- else
- sendNearMessage(playersName[0] + " you Lose!");
- resetGame();
- } else {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won!");
- else if((slotChance[0] + slotChance[1]) == (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " " + playersName[1] + "we are not win");
- else
- sendNearMessage(playersName[1] + " you Won!");
- resetGame();
- }
- }
-
- public void sendNearMessage(String text) {
- List players = this.worldObj.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(this.xCoord, this.yCoord, this.zCoord, (this.xCoord + 1), (this.yCoord + 1), (this.zCoord + 1)).expand(3.5f, 3.5f, 3.5f));
- for(EntityPlayer player : players) {
- if(player != null)
- player.addChatMessage((new ChatComponentTranslation(text, new Object[] {})).setChatStyle((new ChatStyle()).setColor(EnumChatFormatting.DARK_GREEN)));
- }
- }
-
- public void resetGame() {
- playersName[0] = "";
- playersName[1] = "";
- for(int i = 0; i < slotChance.length; i++)
- slotChance[i] = 0;
- botTick = -1;
- endGameTick = -1;
- requestUpdate = true;
- }
-
- public void renderHud(Minecraft mc, ScaledResolution res) {
- int x = res.getScaledWidth() / 2 - 7;
- int y = res.getScaledHeight() / 2 + 12;
- RenderHelper.enableGUIStandardItemLighting();
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, headRender, x - (isSingleGame ? 1 : 0), y - (isSingleGame ? 1 : 0));
- if(isSingleGame)
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, headRender, x + 3, y + 3);
- RenderHelper.disableStandardItemLighting();
- }
-
- public void writeCustomNBT(NBTTagCompound cmp) {
- super.writeCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- cmp.setString("playerName" + i, playersName[i]);
- cmp.setByteArray("slotChance", slotChance);
- cmp.setInteger("botTick", botTick);
- cmp.setInteger("endGameTick", endGameTick);
- cmp.setBoolean("requestUpdate", requestUpdate);
- cmp.setBoolean("isSingleGame", isSingleGame);
- }
-
- public void readCustomNBT(NBTTagCompound cmp) {
- super.readCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- playersName[i] = cmp.getString("playerName" + i);
- botTick = cmp.getInteger("botTick");
- endGameTick = cmp.getInteger("endGameTick");
- slotChance = cmp.getByteArray("slotChance");
- requestUpdate = cmp.getBoolean("requestUpdate");
- isSingleGame = cmp.getBoolean("isSingleGame");
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/ea/608e0ee4ccbd001c1664fb18d0506bc0 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/ea/608e0ee4ccbd001c1664fb18d0506bc0
new file mode 100644
index 0000000..518f057
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/ea/608e0ee4ccbd001c1664fb18d0506bc0
@@ -0,0 +1,30 @@
+package ab.common.core.handler;
+
+import ab.common.core.proxy.packet.S00PacketHornChargeHud;
+import ab.common.core.proxy.packet.S01PacketFindNearBlocks;
+import ab.common.item.relic.ItemSphereNavigation;
+import cpw.mods.fml.common.network.NetworkRegistry;
+import cpw.mods.fml.common.network.simpleimpl.IMessage;
+import cpw.mods.fml.common.network.simpleimpl.SimpleNetworkWrapper;
+import cpw.mods.fml.relauncher.Side;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.ItemStack;
+
+public class NetworkHandler {
+
+ public static final SimpleNetworkWrapper NETWORK = NetworkRegistry.INSTANCE.newSimpleChannel("advancedBotanyChanel");
+
+ public static void registerPackets() {
+ int id = 0;
+ NETWORK.registerMessage(S00PacketHornChargeHud.class, S00PacketHornChargeHud.class, id++, Side.CLIENT);
+ NETWORK.registerMessage(S01PacketFindNearBlocks.class, S01PacketFindNearBlocks.class, id++, Side.CLIENT);
+ }
+
+ public static void sendPacketToFindBlocks(EntityPlayerMP playerMP, ItemStack stack) {
+ NETWORK.sendTo(new S01PacketFindNearBlocks(ItemSphereNavigation.getFindBlock(stack), ItemSphereNavigation.getFindMeta(stack)), playerMP);
+ }
+
+ public static void sendPacketToHornHud(EntityPlayerMP playerMP, short chargeLoot) {
+ NETWORK.sendTo(new S00PacketHornChargeHud(chargeLoot), playerMP);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/ea/d074e8d6fbac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/ea/d074e8d6fbac001c1d59e42be7477558
deleted file mode 100644
index 4dd5f42..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/ea/d074e8d6fbac001c1d59e42be7477558
+++ /dev/null
@@ -1,96 +0,0 @@
-package ab.client.render.tile;
-
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.model.ModelDiceFate;
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.entity.RenderManager;
-import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.ResourceLocation;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class RenderTileGameBoard extends TileEntitySpecialRenderer {
-
- private static final ModelDiceFate model = new ModelDiceFate();
- private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/gameDice.png");
- private static final ResourceLocation textureEnemy = new ResourceLocation("ab:textures/model/gameDice_enemy.png");
-
- public void renderTileEntityAt(TileEntity tile, double x, double y, double z, float ticks) {
- double time = (tile.getWorldObj() == null) ? 0.0D : (ClientTickHandler.ticksInGame + ticks);
- if(tile != null)
- time += (new Random((tile.xCoord ^ tile.yCoord ^ tile.zCoord))).nextInt(360);
- TileGameBoard board = (TileGameBoard)tile;
- GL11.glEnable(3042);
- GL11.glEnable(32826);
- GL11.glBlendFunc(770, 771);
- GL11.glPushMatrix();
- GL11.glTranslated(x + 0.5f, y, z + 0.5f);
- GL11.glRotatef(180.0f - RenderManager.instance.playerViewY, 0.0f, 1.0f, 0.0f);
- for(int i = 0; i < board.slotChance.length; i++) {
- if(board.slotChance[i] == 0)
- continue;
- time += i * 65;
- GL11.glPushMatrix();
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- float posX = 0.0f;
- float posY = 0.0f;
- float dropAnim = (1.0f - (Math.min(100.0f, (board.clientTick[i] * board.clientTick[i] * 1.25f) + ticks) / 100.0f));
- dropAnim = Math.min(1.0f, Math.max(dropAnim, 0));
- float alpha = (float)Math.cos(dropAnim);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, alpha);
- switch(i) {
- case 0:
- posX = 0.16f + 0.08f * dropAnim;
- posY = 0.16f + 0.08f * dropAnim;
- break;
- case 1:
- posX = -0.16f - 0.08f * dropAnim;
- posY = 0.16f + 0.08f * dropAnim;
- break;
- case 2:
- posX = 0.16f + 0.08f * dropAnim;
- posY = -0.16f - 0.08f * dropAnim;
- break;
- case 3:
- posX = -0.16f - 0.08f * dropAnim;
- posY = -0.16f - 0.08f * dropAnim;
- break;
- }
- GL11.glTranslated(0.5f + posX, 0.02f + Math.sin(time / 12.0D) / 48.0D + (0.28f * dropAnim), 0.5f + posY);
- GL11.glScalef(0.25f, 0.25f, 0.25f);
- Minecraft.getMinecraft().renderEngine.bindTexture(i > 1 ? textureEnemy : texture);
- float dropAngel = 70.0f * dropAnim;
- switch(board.slotChance[i]) {
- case 1:
- model.render(180.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 2:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 3:
- model.render(90.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 4:
- model.render(270.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 5:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 270.0f);
- break;
- case 6:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 90.0f);
- break;
- default:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- }
- GL11.glPopMatrix();
- }
- GL11.glPopMatrix();
- GL11.glEnable(32826);
- GL11.glDisable(3042);
- }
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/ea/d07a7ca8b7bc001c1a9f99005529f322 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/ea/d07a7ca8b7bc001c1a9f99005529f322
new file mode 100644
index 0000000..30b7c26
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/ea/d07a7ca8b7bc001c1a9f99005529f322
@@ -0,0 +1,109 @@
+package ab.client.render.tile;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Random;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.client.model.ModelNidavellirForge;
+import ab.common.block.tile.TileNidavellirForge;
+import net.minecraft.client.Minecraft;
+import net.minecraft.client.renderer.OpenGlHelper;
+import net.minecraft.client.renderer.Tessellator;
+import net.minecraft.client.renderer.entity.Render;
+import net.minecraft.client.renderer.entity.RenderManager;
+import net.minecraft.client.renderer.texture.TextureMap;
+import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.ResourceLocation;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.client.core.helper.ShaderHelper;
+import vazkii.botania.common.block.mana.BlockTerraPlate;
+
+public class RenderTileNidavellirForge extends TileEntitySpecialRenderer {
+
+ private List entityList = null;
+ private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/nidavellirForge.png");
+ private static final ModelNidavellirForge model = new ModelNidavellirForge();
+
+ public void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float f) {
+ TileNidavellirForge tile = (TileNidavellirForge)tileentity;
+ double worldTime = 0.0D;
+ int meta = 0;
+ if(tileentity != null && tileentity.getWorldObj() != null) {
+ worldTime = ClientTickHandler.ticksInGame + f + (new Random((tileentity.xCoord ^ tileentity.yCoord ^ tileentity.zCoord))).nextInt(360);
+ meta = tileentity.getWorldObj().getBlockMetadata(tileentity.xCoord, tileentity.yCoord, tileentity.zCoord);
+ }
+ float indetY = (float)(Math.sin(worldTime / 18.0D) / 24.0D);
+ GL11.glPushMatrix();
+ GL11.glEnable(32826);
+ GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
+ GL11.glTranslated(x, y, z);
+ GL11.glTranslatef(0.5f, 1.5f, 0.5f);
+ GL11.glRotatef(180.0f, 1.0f, 0.0f, 1.0f);
+ float angelForSide = 0.0f;
+ System.out.println(meta);
+ switch(meta) {
+ case 1: angelForSide = 90.0f;
+ break;
+ case 2: angelForSide = 270.0f;
+ break;
+ case 3: angelForSide = 180.0f;
+ break;
+ }
+ GL11.glRotatef(angelForSide, 0.0f, 1.0f, 0.0f);
+ Minecraft.getMinecraft().renderEngine.bindTexture(texture);
+ model.renderBottom();
+ GL11.glTranslatef(0.0f, indetY, 0.0f);
+ model.renderTop();
+ GL11.glEnable(32826);
+ GL11.glPopMatrix();
+ if(entityList == null) {
+ List list = new ArrayList();
+ for(int i = 0; i < tile.getSizeInventory(); i++) {
+ list.add(new EntityItem(tile.getWorldObj(), tile.xCoord, tile.yCoord, tile.zCoord));
+ }
+ entityList = list;
+ }
+ GL11.glPushMatrix();
+ GL11.glTranslated(x + 0.5f, y + 0.675f - indetY, z + 0.5f);
+ GL11.glScalef(0.2F, 0.225F, 0.225F);
+ for(int i = 1; i < entityList.size(); i++) {
+ GL11.glPushMatrix();
+ ItemStack stack = tile.getStackInSlot(i);
+ if(stack != null) {
+ switch(i) {
+ case 1:
+ GL11.glTranslated(0.15f, 0.0f, 0.0f);
+ break;
+ case 2:
+ GL11.glTranslated(-0.15f, 0.0f, -0.15f);
+ break;
+ case 3:
+ GL11.glTranslated(-0.15f, 0.0f, 0.15f);
+ break;
+ }
+ entityList.get(i).setEntityItemStack(stack);
+ entityList.get(i).age = ClientTickHandler.ticksInGame;
+ ((Render)RenderManager.instance.entityRenderMap.get(EntityItem.class)).doRender((Entity)entityList.get(i), 0.0D, 0.0D, 0.0D, 1.0F, f);
+ }
+ GL11.glPopMatrix();
+ }
+ GL11.glPopMatrix();
+ if(tile.getStackInSlot(0) != null) {
+ GL11.glPushMatrix();
+ GL11.glTranslated(x + 0.5, y + 0.915f - indetY, z + 0.5);
+ GL11.glScalef(0.45f, 0.45f, 0.45f);
+ entityList.get(0).setEntityItemStack(tile.getStackInSlot(0));
+ entityList.get(0).age = ClientTickHandler.ticksInGame;
+ ((Render)RenderManager.instance.entityRenderMap.get(EntityItem.class)).doRender((Entity)entityList.get(0), 0.0D, 0.0D, 0.0D, 1.0F, f);
+ GL11.glPopMatrix();
+ }
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/eb/60f55589f9b0001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/eb/60f55589f9b0001c19bf8a91ac37238b
deleted file mode 100644
index 335e11e..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/eb/60f55589f9b0001c19bf8a91ac37238b
+++ /dev/null
@@ -1,85 +0,0 @@
-package ab.client.core.handler;
-
-import java.awt.Color;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.armor.ItemNebulaArmor;
-import ab.common.item.equipment.armor.ItemNebulaHelm;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.ItemRenderer;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.texture.TextureMap;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraftforge.client.event.RenderPlayerEvent;
-import vazkii.botania.api.item.IPhantomInkable;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class PlayerRendererHandler {
-
- @SubscribeEvent
- public void onPlayerRender(RenderPlayerEvent.Specials.Post event) {
- EntityPlayer player = event.entityPlayer;
- ItemStack item = player.getCurrentArmor(3);
- if(item != null && item.getItem() instanceof ItemNebulaHelm) {
- Item helm = player.getCurrentArmor(3).getItem();
- boolean hasPhantomInk = helm instanceof IPhantomInkable && ((IPhantomInkable)helm).hasPhantomInk(item);
- if(!hasPhantomInk && ((ItemNebulaHelm)helm).enableCosmicFace(item)) {
- float angelX = event.renderer.modelBipedMain.bipedHead.rotateAngleX * 180.0F / (float)Math.PI;
- float angelY = event.renderer.modelBipedMain.bipedHead.rotateAngleY * 180.0F / (float)Math.PI;
- GL11.glPushMatrix();
- if(player.isSneaking())
- GL11.glTranslatef(event.renderer.modelBipedMain.bipedHead.rotationPointX * 0.0625f, event.renderer.modelBipedMain.bipedHead.rotationPointY * 0.0625f, 0.0f);
- GL11.glRotatef(angelY, 0.0F, 1.0F, 0.0F);
- GL11.glRotatef(angelX, 1.0F, 0.0F, 0.0F);
- renderCosmicFace();
- GL11.glPopMatrix();
- }
- }
- }
-
- private void renderCosmicFace() {
- double worldTime = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- GL11.glPushMatrix();
- GL11.glEnable(GL11.GL_TEXTURE_2D);
-// GL11.glDisable(2912);
- GL11.glDisable(2884);
-
- GL11.glPushMatrix();
- GL11.glScalef(0.5f, 0.4f, 0.4f);
- GL11.glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
- GL11.glTranslatef(-0.5f, -0.8675f, 0.0f);
- GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
- ClientHelper.renderCosmicBackground();
- GL11.glPopMatrix();
-
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- (Minecraft.getMinecraft()).renderEngine.bindTexture(TextureMap.locationItemsTexture);
- GL11.glTranslatef(-0.2F, -0.35F, -0.25F);
- GL11.glScalef(0.4f, 0.4f, 0.4f);
- float f = ItemNebulaArmor.nebulaEyes.getMinU();
- float f1 = ItemNebulaArmor.nebulaEyes.getMaxU();
- float f2 = ItemNebulaArmor.nebulaEyes.getMinV();
- float f3 = ItemNebulaArmor.nebulaEyes.getMaxV();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float r = color.getRed() / 510.0F;
- float g = color.getGreen() / 510.0F;
- float b = color.getBlue() / 510.0F;
- GL11.glColor4f(0.5f + r, 0.5f + g, 0.5f + b, 0.685f + (float)Math.sin(worldTime / 50.0D) * 0.175F);
- ItemRenderer.renderItemIn2D(Tessellator.instance, f1, f2, f, f3, ItemNebulaArmor.nebulaEyes.getIconWidth(), ItemNebulaArmor.nebulaEyes.getIconHeight(), 0.03125F);
- GL11.glDisable(3042);
- GL11.glEnable(2884);
- GL11.glEnable(32826);
- GL11.glPopMatrix();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/eb/70cdd22060c1001c11e398ea97007cb4 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/eb/70cdd22060c1001c11e398ea97007cb4
new file mode 100644
index 0000000..0487d02
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/eb/70cdd22060c1001c11e398ea97007cb4
@@ -0,0 +1,54 @@
+package ab.client.render.item;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.common.item.ItemAntigravityCharm;
+import net.minecraft.client.Minecraft;
+import net.minecraft.client.renderer.ItemRenderer;
+import net.minecraft.client.renderer.OpenGlHelper;
+import net.minecraft.client.renderer.Tessellator;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.IIcon;
+import net.minecraftforge.client.IItemRenderer;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class RenderItemAntigravityCharm implements IItemRenderer {
+
+ public boolean handleRenderType(ItemStack item, IItemRenderer.ItemRenderType type) {
+ return true;
+ }
+
+ public boolean shouldUseRenderHelper(IItemRenderer.ItemRenderType type, ItemStack item, IItemRenderer.ItemRendererHelper helper) {
+ return (helper == IItemRenderer.ItemRendererHelper.ENTITY_ROTATION || helper == IItemRenderer.ItemRendererHelper.ENTITY_BOBBING);
+ }
+
+ public void renderItem(IItemRenderer.ItemRenderType type, ItemStack item, Object... data) {
+ int dmg = item.getItemDamage();
+ IIcon icon = ItemAntigravityCharm.icons[0];
+ IIcon iconIsland = ItemAntigravityCharm.icons[1];
+ GL11.glPushMatrix();
+ if(type == type.INVENTORY) {
+ GL11.glScalef(16, 16, 16);
+ GL11.glRotatef(180, 0, 0, 1);
+ GL11.glTranslatef(-1.0f, -1.0f, 0);
+ } else if(type == type.ENTITY) {
+ GL11.glTranslatef(-0.5F, 0.0F, 0.0F);
+ if (item.isOnItemFrame())
+ GL11.glTranslatef(0.0F, -0.3F, 0.01F);
+ }
+ GL11.glEnable(GL11.GL_BLEND);
+ OpenGlHelper.glBlendFunc(770, 771, 1, 0);
+ GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
+ ItemRenderer.renderItemIn2D(Tessellator.instance, icon.getMaxU(), icon.getMinV(), icon.getMinU(), icon.getMaxV(), icon.getIconWidth(), icon.getIconHeight(), 0.0625F);
+ double time = (double) Minecraft.getSystemTime();
+ if(ItemNBTHelper.getBoolean(item, "isActive", true)) {
+ GL11.glTranslated(0, Math.cos(time / 650.0) * 0.0075 -0.05f, 0.0f);
+ } else {
+ GL11.glTranslated(0.0f, -0.125f, 0.0f);
+ }
+ ItemRenderer.renderItemIn2D(Tessellator.instance, iconIsland.getMaxU(), iconIsland.getMinV(), iconIsland.getMinU(), iconIsland.getMaxV(), iconIsland.getIconWidth(), iconIsland.getIconHeight(), 0.0675F);
+ GL11.glDisable(GL11.GL_BLEND);
+ GL11.glPopMatrix();
+ }
+}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/ec/90f1536c5ec1001c11e398ea97007cb4 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/ec/90f1536c5ec1001c11e398ea97007cb4
new file mode 100644
index 0000000..bf7e04c
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/ec/90f1536c5ec1001c11e398ea97007cb4
@@ -0,0 +1,44 @@
+package ab.client.render.item;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.common.item.relic.ItemSphereNavigation;
+import net.minecraft.client.renderer.ItemRenderer;
+import net.minecraft.client.renderer.OpenGlHelper;
+import net.minecraft.client.renderer.Tessellator;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.IIcon;
+import net.minecraftforge.client.IItemRenderer;
+
+public class RenderItemSphereNavigation implements IItemRenderer {
+
+ public boolean handleRenderType(ItemStack item, IItemRenderer.ItemRenderType type) {
+ return true;
+ }
+
+ public boolean shouldUseRenderHelper(IItemRenderer.ItemRenderType type, ItemStack item, IItemRenderer.ItemRendererHelper helper) {
+ return (helper == IItemRenderer.ItemRendererHelper.ENTITY_ROTATION || helper == IItemRenderer.ItemRendererHelper.ENTITY_BOBBING);
+ }
+
+ public void renderItem(IItemRenderer.ItemRenderType type, ItemStack stack, Object... data) {
+ GL11.glPushMatrix();
+ if(type == type.INVENTORY) {
+ GL11.glScalef(16, 16, 16);
+ GL11.glRotatef(180, 0, 0, 1);
+ GL11.glTranslatef(-1.0f, -1.0f, 0);
+ } else if(type == type.ENTITY) {
+ GL11.glTranslatef(-0.5F, 0.0F, 0.0F);
+ if(stack.isOnItemFrame())
+ GL11.glTranslatef(0.0F, -0.3F, 0.01F);
+ }
+ GL11.glEnable(GL11.GL_BLEND);
+ OpenGlHelper.glBlendFunc(770, 771, 1, 0);
+ GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
+ IIcon icon = ItemSphereNavigation.icons[0];
+ ItemRenderer.renderItemIn2D(Tessellator.instance, icon.getMaxU(), icon.getMinV(), icon.getMinU(), icon.getMaxV(), icon.getIconWidth(), icon.getIconHeight(), 0.0625F);
+ IIcon iconEnable = ItemSphereNavigation.icons[stack.getItemDamage() == 0 ? 5 : 4];
+ ItemRenderer.renderItemIn2D(Tessellator.instance, iconEnable.getMaxU(), iconEnable.getMinV(), iconEnable.getMinU(), iconEnable.getMaxV(), iconEnable.getIconWidth(), iconEnable.getIconHeight(), 0.0625F);
+ GL11.glDisable(GL11.GL_BLEND);
+ GL11.glPopMatrix();
+ }
+}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/ee/b05507038bc1001c11e398ea97007cb4 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/ee/b05507038bc1001c11e398ea97007cb4
new file mode 100644
index 0000000..e69de29
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/ee/f0cda94bb1b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/ee/f0cda94bb1b1001c19bf8a91ac37238b
deleted file mode 100644
index 5a73215..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/ee/f0cda94bb1b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,79 +0,0 @@
-package ab.common.item;
-
-import java.util.List;
-
-import ab.common.core.CommonHelper;
-import ab.common.lib.register.BlockListAB;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.renderer.texture.IIconRegister;
-import net.minecraft.entity.Entity;
-import net.minecraft.entity.item.EntityFallingBlock;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.IIcon;
-import net.minecraft.world.World;
-import vazkii.botania.common.core.helper.ItemNBTHelper;
-
-public class ItemAntigravityCharm extends ItemMod {
-
- public static IIcon[] icons;
-
- public ItemAntigravityCharm() {
- super("antigravityCharm");
- this.setMaxStackSize(1);
- this.setNoRepair();
- }
-
- public void registerIcons(IIconRegister ir) {
- icons = new IIcon[2];
- for(int i = 0; i < icons.length; i++) {
- icons[i] = icons[i] = ir.registerIcon("ab:" + "itemAntigravityCharm_" + i);
- }
- }
-
- @SideOnly(Side.CLIENT)
- public IIcon getIcon(ItemStack stack, int pass) {
- int iconID = Math.min(1, pass);
- return this.icons[iconID];
- }
-
- public boolean requiresMultipleRenderPasses() {
- return true;
- }
-
- public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
- if(player.isSneaking())
- ItemNBTHelper.setBoolean(stack, "isActive", !ItemNBTHelper.getBoolean(stack, "isActive", true));
- return stack;
- }
-
- public void onUpdate(ItemStack stack, World world, Entity entity, int par4, boolean inHand) {
- if(entity instanceof EntityPlayer) {
- EntityPlayer player = (EntityPlayer)entity;
- if(ItemNBTHelper.getBoolean(stack, "isActive", true)) {
- double posX = entity.posX;
- double posY = entity.posY;
- double posZ = entity.posZ;
- final AxisAlignedBB asis = AxisAlignedBB.getBoundingBox(posX, posY, posZ, posX + 1, posY + 1, posZ + 1).expand(8, 8, 8);
- final List listEntity = (List)world.getEntitiesWithinAABB((Class)EntityFallingBlock.class, asis);
- for(EntityFallingBlock fallBlock : listEntity) {
- int x = (int) (fallBlock.posX >= 0 ? fallBlock.posX : fallBlock.posX - 1);
- int y = (int) fallBlock.posY;
- int z = (int) (fallBlock.posZ >= 0 ? fallBlock.posZ : fallBlock.posZ - 1);
- Block block = fallBlock.func_145805_f();
- fallBlock.setDead();
- if(!world.isRemote) {
- CommonHelper.setBlock(world, block, fallBlock.field_145814_a, x, y, z, (EntityPlayerMP)player, true);
- CommonHelper.setBlock(world, BlockListAB.blockAntigravitation, 0, x, y - 1, z, (EntityPlayerMP)player, true);
- }
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/ef/50d81b84bfb1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/ef/50d81b84bfb1001c19bf8a91ac37238b
deleted file mode 100644
index c829561..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/ef/50d81b84bfb1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,232 +0,0 @@
-package ab.common.block.tile;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.api.IRenderHud;
-import ab.common.core.CommonHelper;
-import ab.common.lib.register.BlockListAB;
-import net.minecraft.block.Block;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.gui.Gui;
-import net.minecraft.client.gui.ScaledResolution;
-import net.minecraft.client.renderer.RenderHelper;
-import net.minecraft.client.renderer.entity.RenderItem;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.ItemBlock;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.world.World;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.api.lexicon.multiblock.Multiblock;
-import vazkii.botania.api.lexicon.multiblock.MultiblockSet;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.block.ModBlocks;
-import vazkii.botania.common.block.ModFluffBlocks;
-import vazkii.botania.common.block.tile.TileMod;
-import vazkii.botania.common.core.handler.ConfigHandler;
-
-public class TileLebethronCore extends TileMod implements IRenderHud {
-
- protected int tick;
- protected Block block;
- protected int meta;
- protected boolean validTree;
- private String playerName = "";
-
- public static MultiblockSet makeMultiblockSet() {
- Multiblock mb = new Multiblock();
- mb.addComponent(0, 1, 0, BlockListAB.blockLebethron, 4);
- mb.addComponent(0, 0, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 2, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 3, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 4, 0, BlockListAB.blockLebethron, 0);
- mb.addComponent(0, 5, 0, BlockListAB.blockLebethron, 0);
- mb.setRenderOffset(0, 1, 0);
- return mb.makeSet();
- }
-
- public void updateEntity() {
- if(!worldObj.isRemote) {
- if(tick <= 0) {
- updateStructure();
- if(validTree && getBlock() != null) {
- spawnLeaves();
- tick = 40;
- }
- } else
- tick--;
- } else if(worldObj.rand.nextBoolean())
- Botania.proxy.sparkleFX(this.worldObj, this.xCoord + Math.random(), this.yCoord + Math.random(), this.zCoord + Math.random(), 0.5F, 1.0F, 0.5F, (float)Math.random() * 2, 2);
- }
-
- public boolean getValidTree() {
- return this.validTree;
- }
-
- public void updateStructure() {
- boolean oldValidTree = validTree;
- validTree = hasValidTree();
- if(oldValidTree != validTree)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- }
-
- public void setPlayerName(String name) {
- if(playerName.isEmpty())
- playerName = name;
- }
-
- public void writeToNBT(NBTTagCompound nbtt) {
- super.writeToNBT(nbtt);
- nbtt.setString("playerName", playerName);
- }
-
- public void readFromNBT(NBTTagCompound nbtt) {
- super.readFromNBT(nbtt);
- playerName = nbtt.getString("playerName");
- }
-
- public void writeCustomNBT(NBTTagCompound nbtt) {
- nbtt.setInteger("blockID", Block.getIdFromBlock(block));
- nbtt.setInteger("blockMeta", this.meta);
- nbtt.setInteger("tick", this.tick);
- nbtt.setBoolean("validTree", validTree);
- }
-
- public void readCustomNBT(NBTTagCompound nbtt) {
- this.block = Block.getBlockById(nbtt.getInteger("blockID"));
- this.meta = nbtt.getInteger("blockMeta");
- this.tick = nbtt.getInteger("tick");
- this.validTree = nbtt.getBoolean("validTree");
- }
-
- public boolean setBlock(Block block, int meta) {
- if(this.block == null) {
- this.block = block;
- this.meta = meta;
- return true;
- } else {
- if(Block.isEqualTo(this.block, block) && this.meta == meta) {
- return false;
- }
- if(!this.worldObj.isRemote) {
- EntityItem entity = new EntityItem(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- entity.setEntityItemStack(new ItemStack(this.block, 1, this.meta));
- this.worldObj.spawnEntityInWorld(entity);
- }
- this.block = block;
- this.meta = meta;
- return true;
- }
- }
-
- public Block getBlock() {
- if(!Block.isEqualTo(block, Blocks.air) && block != null)
- return this.block;
- return null;
- }
-
- public int getMeta() {
- return this.meta;
- }
-
- public boolean hasValidTree() {
- if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord - 1, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord - 1, this.zCoord))) {
- return false;
- }
- for(int i = 1; i <= 4; i++) {
- if(!checkBlock(this.worldObj.getBlock(this.xCoord, this.yCoord + i, this.zCoord), this.worldObj.getBlockMetadata(this.xCoord, this.yCoord + i, this.zCoord))) {
- return false;
- }
- }
- return true;
- }
-
- boolean checkBlock(Block block, int meta) {
- return block == BlockListAB.blockLebethron && meta == 0;
- }
-
- private void spawnLeaves() {
- for(int x = -1; x <= 1; x++)
- for(int z = -1; z <= 1; z++)
- for(int y = 0; y < 5; y++)
- this.setBlock(worldObj, this.xCoord + x, this.yCoord + y + 2, this.zCoord + z);
- this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 1, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 1, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord + 1);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 1, this.zCoord - 1);
- this.setBlock(worldObj, this.xCoord + 1, this.yCoord + 7, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 1, this.yCoord + 7, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord + 1);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 7, this.zCoord - 1);
- for(int i = 0; i <= 3; i++)
- this.setBlock(worldObj, this.xCoord, this.yCoord + 6 + i, this.zCoord);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord - 2);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord - 2);
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord - 2);
- }
- this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord - 2);
- this.setBlock(worldObj, this.xCoord, this.yCoord + 2, this.zCoord + 2);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 3, this.zCoord + 2);
- this.setBlock(worldObj, this.xCoord + i, this.yCoord + 4, this.zCoord + 2);
- }
- this.setBlock(worldObj, this.xCoord, this.yCoord + 5, this.zCoord + 2);
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 2, this.zCoord);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 3, this.zCoord + i);
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 4, this.zCoord + i);
- }
- this.setBlock(worldObj, this.xCoord + 2, this.yCoord + 5, this.zCoord);
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 2, this.zCoord);
- for(int i = -1; i <= 1; i++) {
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 3, this.zCoord + i);
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 4, this.zCoord + i);
- }
- this.setBlock(worldObj, this.xCoord - 2, this.yCoord + 5, this.zCoord);
- }
-
- private void setBlock(World world, int x, int y, int z) {
- EntityPlayer player = worldObj.getPlayerEntityByName(playerName);
- if(player != null) {
- if(world.rand.nextInt(10) <= 8)
- return;
- else
- CommonHelper.setBlock(world, block, meta, x, y, z, (EntityPlayerMP)player, true);
- }
- }
-
- public void renderHud(Minecraft mc, ScaledResolution res) {
- if(!validTree)
- return;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- ItemStack stack = getBlock() != null ? new ItemStack(block, 1, meta) : new ItemStack(Blocks.leaves);
- int x = res.getScaledWidth() / 2 - 7;
- int y = res.getScaledHeight() / 2 + 12;
- Gui.drawRect(x - 2, y - 2, x + 18, y + 18, 1140850688);
- Gui.drawRect(x, y, x + 16, y + 16, 1140850688);
- RenderHelper.enableGUIStandardItemLighting();
- GL11.glEnable(32826);
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, stack, x, y);
- RenderHelper.disableStandardItemLighting();
- GL11.glDisable(2929);
- boolean unicode = mc.fontRenderer.getUnicodeFlag();
- mc.fontRenderer.setUnicodeFlag(true);
- if(getBlock() != null) {
- mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 9, 19456);
- mc.fontRenderer.drawStringWithShadow("\u2713", x + 10, y + 8, 774669);
- } else {
- mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 9, 4980736);
- mc.fontRenderer.drawStringWithShadow("\u2717", x + 10, y + 8, 13764621);
- }
- mc.fontRenderer.setUnicodeFlag(unicode);
- GL11.glEnable(2929);
- GL11.glDisable(3042);
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f/c0681a5991b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f/c0681a5991b1001c19bf8a91ac37238b
deleted file mode 100644
index a65743c..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f/c0681a5991b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,108 +0,0 @@
-package ab.common.item.equipment.armor;
-
-import java.util.List;
-import java.util.UUID;
-
-import com.google.common.collect.HashMultimap;
-import com.google.common.collect.Multimap;
-
-import net.minecraft.entity.SharedMonsterAttributes;
-import net.minecraft.entity.ai.attributes.AttributeModifier;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.entity.player.InventoryPlayer;
-import net.minecraft.inventory.IInventory;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.EnumChatFormatting;
-import net.minecraft.util.StatCollector;
-import net.minecraft.world.World;
-import vazkii.botania.api.BotaniaAPI;
-import vazkii.botania.api.mana.IManaDiscountArmor;
-import vazkii.botania.api.mana.IManaGivingItem;
-import vazkii.botania.api.mana.IManaItem;
-import vazkii.botania.api.mana.ManaItemHandler;
-import vazkii.botania.common.core.helper.ItemNBTHelper;
-
-public class ItemNebulaHelm extends ItemNebulaArmor implements IManaDiscountArmor, IManaGivingItem {
-
- private static final String TAG_COSMIC_FACE = "enableCosmicFace";
-
- public ItemNebulaHelm() {
- this("nebulaHelm");
- }
-
- public ItemNebulaHelm(String str) {
- super(0, str);
- }
-
- public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
- if(player.isSneaking())
- setCosmicFace(stack, !enableCosmicFace(stack));
- else
- super.onItemRightClick(stack, world, player);
- return stack;
- }
-
- public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean adv) {
- super.addInformation(stack, player, list, adv);
- if(!enableCosmicFace(stack))
- addStringToTooltip(EnumChatFormatting.GREEN + StatCollector.translateToLocal("ab.nebulaHelm.mask"), list);
- }
-
- public boolean enableCosmicFace(ItemStack stack) {
- return ItemNBTHelper.getBoolean(stack, TAG_COSMIC_FACE, true);
- }
-
- public void setCosmicFace(ItemStack stack, boolean enable) {
- ItemNBTHelper.setBoolean(stack, TAG_COSMIC_FACE, enable);
- }
-
- public void onArmorTick(World world, EntityPlayer player, ItemStack stack) {
- super.onArmorTick(world, player, stack);
- if(hasArmorSet(player)) {
- int food = player.getFoodStats().getFoodLevel();
- if(food > 0 && food < 18 && player.shouldHeal() && player.ticksExisted % 80 == 0)
- player.heal(1.0F);
- dispatchManaExact(stack, player, 4, true);
- }
- }
-
- public static boolean dispatchManaExact(ItemStack stack, EntityPlayer player, int manaToSend, boolean add) {
- if (stack == null)
- return false;
- InventoryPlayer inventoryPlayer = player.inventory;
- IInventory baublesInv = BotaniaAPI.internalHandler.getBaublesInventory(player);
- int invSize = inventoryPlayer.getSizeInventory();
- int size = invSize;
- if(baublesInv != null)
- size += baublesInv.getSizeInventory();
- for(int i = 0; i < size; i++) {
- boolean useBaubles = (i >= invSize);
- IInventory inv = useBaubles ? baublesInv : (IInventory)inventoryPlayer;
- int slot = i - (useBaubles ? invSize : 0);
- ItemStack stackInSlot = inv.getStackInSlot(slot);
- if(stackInSlot != stack)
- if(stackInSlot != null && stackInSlot.getItem() instanceof IManaItem) {
- IManaItem manaItemSlot = (IManaItem)stackInSlot.getItem();
- if(manaItemSlot.getMana(stackInSlot) + manaToSend <= manaItemSlot.getMaxMana(stackInSlot) && manaItemSlot.canReceiveManaFromItem(stackInSlot, stack)) {
- if(add)
- manaItemSlot.addMana(stackInSlot, manaToSend);
- if(useBaubles)
- BotaniaAPI.internalHandler.sendBaubleUpdatePacket(player, slot);
- return true;
- }
- }
- }
- return false;
- }
-
- public float getDiscount(ItemStack stack, int slot, EntityPlayer player) {
- return hasArmorSet(player) ? 0.30F : 0.0F;
- }
-
- public Multimap getAttributeModifiers(ItemStack stack) {
- HashMultimap hashMultimap = HashMultimap.create();
- UUID uuid = new UUID(getUnlocalizedName().hashCode(), 0L);
- hashMultimap.put(SharedMonsterAttributes.maxHealth.getAttributeUnlocalizedName(), new AttributeModifier(uuid, "NebulaHelm modifier", 20.0D * (1.0f - (this.getDamage(stack) / 1000.0f)), 0));
- return (Multimap)hashMultimap;
- }
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f0/507742c920be001c1965b122d2f8f403 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f0/507742c920be001c1965b122d2f8f403
new file mode 100644
index 0000000..255a01f
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f0/507742c920be001c1965b122d2f8f403
@@ -0,0 +1,146 @@
+package ab.common.item.relic;
+
+import java.awt.Color;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.common.core.handler.NetworkHandler;
+import ab.common.lib.register.ItemListAB;
+import net.minecraft.block.Block;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.MathHelper;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.api.mana.ManaItemHandler;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class ItemSphereNavigation extends ItemModRelic {
+
+ public static final int rangeSearch = 24;
+ public static final int maxCooldown = 112;
+ public static final int manaCost = 1750;
+
+ public ItemSphereNavigation() {
+ super("sphereNavigation");
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int pos, boolean equipped) {
+ super.onUpdate(stack, world, entity, pos, equipped);
+ if(entity instanceof EntityPlayer) {
+ EntityPlayer player = (EntityPlayer)entity;
+ if(!world.isRemote && getFindBlock(stack) != null && canWork(stack) && ManaItemHandler.requestManaExactForTool(stack, player, manaCost, true)) {
+ setMaxTick(stack);
+ NetworkHandler.sendPacketToFindBlocks((EntityPlayerMP)player, getFindBlock(stack), getFindMeta(stack));
+ }
+ }
+ }
+
+ public static void findBlocks(World world, Block findBlock, int findMeta, EntityPlayer player) {
+ if(world.isRemote) {
+ int findedBlocks = 0;
+ label1703:
+ for(int x = -rangeSearch; x < rangeSearch; x++) {
+ if(world.rand.nextBoolean())
+ continue;
+ for(int y = -rangeSearch * 4; y < rangeSearch; y++) {
+ if(world.rand.nextBoolean())
+ continue;
+ for(int z = -rangeSearch; z < rangeSearch; z++) {
+ if(world.rand.nextBoolean())
+ continue;
+ else if(findedBlocks > 24)
+ break label1703;
+ int posX = MathHelper.floor_double(player.posX) + x;
+ int posY = MathHelper.floor_double(player.posY) + y;
+ int posZ = MathHelper.floor_double(player.posZ) + z;
+ if(posY < 0)
+ continue;
+ Block block = world.getBlock(posX, posY, posZ);
+ if(!Block.isEqualTo(block, findBlock))
+ continue;
+ int meta = world.getBlockMetadata(posX, posY, posZ);
+ if(meta == findMeta) {
+ findedBlocks++;
+ float maxAge = 2.7f + (0.5f * (float)(Math.random()));
+ Botania.proxy.setWispFXDepthTest(false);
+ float far = 120.0f - (((Math.abs(x) + Math.min(rangeSearch * 2.0f, Math.abs(y)) + Math.abs(z)) / (rangeSearch * 4.0f)) * 120.0f);
+ if(far <= 60)
+ far *= 0.15f;
+ Color color = new Color(Color.HSBtoRGB(far / 360.0f, 0.9f + (float)(Math.random() * 0.1f), 1.0f));
+ for(int i = 0; i < 11; i++)
+ Botania.proxy.wispFX(world, posX + 0.5f + (Math.random() - 0.5f), posY + 0.5f + (Math.random() - 0.5f), posZ + 0.5f + (Math.random() - 0.5f), color.getRed() / 100.0f, color.getGreen() / 100.0f, color.getBlue() / 100.0f, 0.3f + (float)(Math.random() * 0.25f), 0.0f, maxAge);
+ Botania.proxy.setWispFXDepthTest(true);
+ }
+ }
+ }
+ }
+// ItemsRemainingRender.set(ItemSphereNavigation.thisRenderStack, "íàéäåíî: " + findedBlocks);
+ }
+ }
+
+ public boolean onItemUse(ItemStack stack, EntityPlayer p, World world, int x, int y, int z, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
+ if(p.isSneaking()) {
+ Block block = world.getBlock(x, y, z);
+ if(block != null) {
+ int meta = world.getBlockMetadata(x, y, z);
+ Item item = Item.getItemFromBlock(block);
+ if(item != null) {
+ ItemStack findStack = new ItemStack(block, 1, meta);
+ if(findStack != null) {
+ setFindBlock(stack, block, meta);
+ if(world.isRemote)
+ ItemsRemainingRender.set(findStack, findStack.getDisplayName());
+ }
+ } else {
+ Item item1 = block.getItem(world, x, y, z);
+ if(item1 != null) {
+ ItemStack findStack = new ItemStack(item1, 1, meta);
+ if(findStack != null) {
+ setFindBlock(stack, block, meta);
+ if(world.isRemote)
+ ItemsRemainingRender.set(findStack, findStack.getDisplayName());
+ }
+ }
+ }
+ return true;
+ }
+ }
+ return false;
+ }
+
+ public boolean canWork(ItemStack stack) {
+ int tick = ItemNBTHelper.getInt(stack, "cooldown", 0);
+ if(tick == 0)
+ return true;
+ else if(tick > 0)
+ ItemNBTHelper.setInt(stack, "cooldown", tick - 1);
+ return false;
+ }
+
+ public void setMaxTick(ItemStack stack) {
+ ItemNBTHelper.setInt(stack, "cooldown", maxCooldown);
+ }
+
+ public static void setFindBlock(ItemStack stack, Block block, int meta) {
+ ItemNBTHelper.setInt(stack, "findBlockID", Block.getIdFromBlock(block));
+ ItemNBTHelper.setInt(stack, "findBlockMeta", meta);
+ }
+
+ public static Block getFindBlock(ItemStack stack) {
+ int blockID = ItemNBTHelper.getInt(stack, "findBlockID", 0);
+ if(blockID == 0)
+ return null;
+ else
+ return Block.getBlockById(blockID);
+ }
+
+ public static int getFindMeta(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "findBlockMeta", -1);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f0/b0997697b2b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f0/b0997697b2b1001c19bf8a91ac37238b
deleted file mode 100644
index 65af5af..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f0/b0997697b2b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,57 +0,0 @@
-package ab.common.block;
-
-import java.util.Random;
-
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.material.Material;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.world.IBlockAccess;
-import net.minecraft.world.World;
-import vazkii.botania.common.Botania;
-
-public class BlockAntigravitation extends Block {
-
- public BlockAntigravitation() {
- super(Material.ground);
- this.setHardness(-1.0f);
- this.setTickRandomly(true);
- this.useNeighborBrightness = false;
- }
- public boolean isReplaceable(IBlockAccess world, int x, int y, int z) {
- return true;
- }
-
- public int getRenderType() {
- return -1;
- }
-
- public AxisAlignedBB getCollisionBoundingBoxFromPool(World world, int x, int y, int z) {
- return null;
- }
-
- public boolean renderAsNormalBlock() {
- return false;
- }
-
- public boolean isOpaqueCube() {
- return false;
- }
-
- public boolean canCollideCheck(int p_149678_1_, boolean p_149678_2_) {
- return false;
- }
-
- public void dropBlockAsItemWithChance(World p_149690_1_, int p_149690_2_, int p_149690_3_, int p_149690_4_, int p_149690_5_, float p_149690_6_, int p_149690_7_) {}
-
- @SideOnly(Side.CLIENT)
- public void randomDisplayTick(World world, int x, int y, int z, Random random) {
- if(random.nextBoolean()) {
- float r = random.nextInt(128) / 255.0f;
- float g = (random.nextInt(128) + 70) / 255.0f;
- float b = 200.0f / 255.0f;
- Botania.proxy.wispFX(world, x + 0.1f + Math.random() * 0.8f, y - 0.18f + 1.0f, z + 0.1 + Math.random() * 0.8, r, g, b, 0.24F * (float)(Math.random() - 0.5D), 0.0f, (float)(0.001f + Math.random() * 0.01f), 0.0f);
- }
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/96/e0d99be2fab0001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f1/40e78776c5bc001c1a9f99005529f322
similarity index 81%
rename from 1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/96/e0d99be2fab0001c19bf8a91ac37238b
rename to 1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f1/40e78776c5bc001c1a9f99005529f322
index d28aa84..d2c4b79 100644
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/96/e0d99be2fab0001c19bf8a91ac37238b
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f1/40e78776c5bc001c1a9f99005529f322
@@ -1,16 +1,22 @@
package ab.common.block.subtile;
import ab.common.block.tile.TileGameBoard;
+import ab.common.lib.register.RecipeListAB;
+import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
+import vazkii.botania.api.lexicon.LexiconEntry;
import vazkii.botania.api.subtile.SubTileGenerating;
+import vazkii.botania.common.item.block.ItemBlockSpecialFlower;
public class SubTileArdentAzarcissus extends SubTileGenerating {
public static final String playerName = "ArdentAzarcissus#21sda2gaj91*21df#111sfq3jrns@#";
+ public static final ItemStack flowerStack = ItemBlockSpecialFlower.ofType("ardentAzarcissus");
+
int cooldown;
- int workMana = 400;
+ int workMana = 320;
public void onUpdate() {
super.onUpdate();
@@ -40,8 +46,10 @@ public class SubTileArdentAzarcissus extends SubTileGenerating {
} else {
if(!board.playersName[0].equals(playerName))
board.playersName[0] = playerName;
- if(!board.isCustomGame)
+ if(!board.isCustomGame) {
board.isCustomGame = true;
+ board.changeCustomStack(flowerStack);
+ }
if(board.endGameTick == 0) {
int winCount = (board.slotChance[0] + board.slotChance[1]) - (board.slotChance[2] + board.slotChance[3]);
if(winCount > 0) {
@@ -65,7 +73,11 @@ public class SubTileArdentAzarcissus extends SubTileGenerating {
}
public int getColor() {
- return this.supertile.getWorldObj().rand.nextBoolean() ? 0x35d1df : 0xdf3596;
+ return 0xdf3596;
+ }
+
+ public LexiconEntry getEntry() {
+ return RecipeListAB.azartFlower;
}
public void writeToPacketNBT(NBTTagCompound cmp) {
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f3/f086d217f9ac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f3/f086d217f9ac001c1d59e42be7477558
deleted file mode 100644
index e6fd2b3..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f3/f086d217f9ac001c1d59e42be7477558
+++ /dev/null
@@ -1,92 +0,0 @@
-package ab.client.render.tile;
-
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.model.ModelDiceFate;
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.ResourceLocation;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class RenderTileGameBoard extends TileEntitySpecialRenderer {
-
- private static final ModelDiceFate model = new ModelDiceFate();
- private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/gameDice.png");
- private static final ResourceLocation textureEnemy = new ResourceLocation("ab:textures/model/gameDice_enemy.png");
-
- public void renderTileEntityAt(TileEntity tile, double x, double y, double z, float ticks) {
- double time = (tile.getWorldObj() == null) ? 0.0D : (ClientTickHandler.ticksInGame + ticks);
- if(tile != null)
- time += (new Random((tile.xCoord ^ tile.yCoord ^ tile.zCoord))).nextInt(360);
- TileGameBoard board = (TileGameBoard)tile;
- GL11.glEnable(3042);
- GL11.glEnable(32826);
- GL11.glBlendFunc(770, 771);
- for(int i = 0; i < board.slotChance.length; i++) {
- if(board.slotChance[i] == 0)
- continue;
- time += i * 65;
- GL11.glPushMatrix();
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- float posX = 0.0f;
- float posY = 0.0f;
- float dropAnim = (1.0f - (Math.min(100.0f, board.clientTick[i] * board.clientTick[i] * 1.25f + ticks) / 100.0f));
- dropAnim = Math.min(1.0f, Math.max(dropAnim, 0));
- float alpha = (float)Math.cos(dropAnim);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, alpha);
- switch(i) {
- case 0:
- posX = 0.16f + 0.08f * dropAnim;
- posY = 0.16f + 0.08f * dropAnim;
- break;
- case 1:
- posX = -0.16f - 0.08f * dropAnim;
- posY = 0.16f + 0.08f * dropAnim;
- break;
- case 2:
- posX = 0.16f + 0.08f * dropAnim;
- posY = -0.16f - 0.08f * dropAnim;
- break;
- case 3:
- posX = -0.16f - 0.08f * dropAnim;
- posY = -0.16f - 0.08f * dropAnim;
- break;
- }
- GL11.glTranslated(x, y, z);
- GL11.glTranslated(0.5f + posX, 0.02f + Math.sin(time / 12.0D) / 48.0D + (0.28f * dropAnim), 0.5f + posY);
- GL11.glScalef(0.25f, 0.25f, 0.25f);
- Minecraft.getMinecraft().renderEngine.bindTexture(i > 1 ? textureEnemy : texture);
- float dropAngel = 70.0f * dropAnim;
- switch(board.slotChance[i]) {
- case 1:
- model.render(180.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 2:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 3:
- model.render(90.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 4:
- model.render(270.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 5:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 270.0f);
- break;
- case 6:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 90.0f);
- break;
- default:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- }
- GL11.glPopMatrix();
- }
- GL11.glEnable(32826);
- GL11.glDisable(3042);
- }
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f4/e02f7520c4b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f4/e02f7520c4b1001c19bf8a91ac37238b
deleted file mode 100644
index e7bc4f7..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f4/e02f7520c4b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,136 +0,0 @@
-package ab.common.block;
-
-import java.util.List;
-
-import ab.AdvancedBotany;
-import ab.common.block.tile.TileLebethronCore;
-import ab.common.lib.register.RecipeListAB;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.ITileEntityProvider;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.renderer.texture.IIconRegister;
-import net.minecraft.creativetab.CreativeTabs;
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.init.Blocks;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.IIcon;
-import net.minecraft.util.MovingObjectPosition;
-import net.minecraft.world.IBlockAccess;
-import net.minecraft.world.World;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.api.lexicon.ILexiconable;
-import vazkii.botania.api.lexicon.LexiconEntry;
-import vazkii.botania.common.item.ModItems;
-
-public class BlockLebethronWood extends Block implements ILexiconable, ITileEntityProvider {
-
- private static IIcon[] icon = new IIcon[5];
- public static IIcon iconPortal;
-
- public BlockLebethronWood() {
- super(Material.wood);
- this.setCreativeTab(AdvancedBotany.tabAB);
- this.setHardness(6.0F);
- this.setStepSound(soundTypeWood);
- this.setBlockName("lebethronWood");
- }
-
- public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int par6, float par7, float par8, float par9) {
- int meta = world.getBlockMetadata(x, y, z);
- if(meta == 4) {
- TileLebethronCore core = (TileLebethronCore)world.getTileEntity(x, y, z);
- ItemStack heldItem = player.getCurrentEquippedItem();
- if(heldItem == null)
- return false;
- Block block = Block.getBlockFromItem(heldItem.getItem());
- if(block.getMaterial() == Material.leaves) {
- if(!world.isRemote) {
- core.updateStructure();
- if(core.getValidTree()) {
- if(core.setBlock(block, heldItem.getItemDamage())) {
- heldItem.stackSize--;
- if(heldItem.stackSize == 0)
- player.inventory.setInventorySlotContents(player.inventory.currentItem, null);
- core.setPlayerName(player.getCommandSenderName());
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(world, x, y, z);
- }
- }
- }
- return true;
- }
- }
- return false;
- }
-
- public void breakBlock(World world, int x, int y, int z, Block block, int meta) {
- if(!world.isRemote && meta == 4) {
- TileLebethronCore tile = (TileLebethronCore)world.getTileEntity(x, y, z);
- if(tile != null) {
- ItemStack stack = new ItemStack(tile.getBlock(), 1, tile.getMeta());
- if (stack != null) {
- float f = world.rand.nextFloat() * 0.8F + 0.1F;
- float f1 = world.rand.nextFloat() * 0.8F + 0.1F;
- float f2 = world.rand.nextFloat() * 0.8F + 0.1F;
- EntityItem entityitem = new EntityItem(world, (x + f), (y + f1), (z + f2), stack.copy());
- float f3 = 0.05F;
- entityitem.motionX = ((float)world.rand.nextGaussian() * f3);
- entityitem.motionY = ((float)world.rand.nextGaussian() * f3 + 0.2F);
- entityitem.motionZ = ((float)world.rand.nextGaussian() * f3);
- if (stack.hasTagCompound())
- entityitem.getEntityItem().setTagCompound((NBTTagCompound)stack.getTagCompound().copy());
- world.spawnEntityInWorld(entityitem);
- }
- }
- }
- super.breakBlock(world, x, y, z, block, meta);
- }
-
- public void getSubBlocks(Item par1, CreativeTabs par2CreativeTabs, List list) {
- for(int i = 0; i < icon.length; i++) {
- list.add(new ItemStack(par1, 1, i));
- }
- }
-
- @SideOnly(Side.CLIENT)
- public void registerBlockIcons(IIconRegister ir) {
- for (int i = 0; i < icon.length; i++)
- icon[i] = ir.registerIcon("ab:lebethronWood_" + i);
- iconPortal = ir.registerIcon("ab:portalAlphirine");
- }
-
- @SideOnly(Side.CLIENT)
- public IIcon getIcon(int side, int meta) {
- return this.icon[meta];
- }
-
- public int damageDropped(int par1) {
- return par1;
- }
-
- public int getLightValue(IBlockAccess world, int x, int y, int z) {
- return (world.getBlockMetadata(x, y, z) == 3) ? 12 : 0;
- }
-
- public boolean canSustainLeaves(IBlockAccess world, int x, int y, int z) {
- return (world.getBlockMetadata(x, y, z) == 0);
- }
-
- public ItemStack getPickBlock(MovingObjectPosition target, World world, int x, int y, int z) {
- int meta = world.getBlockMetadata(x, y, z);
- return new ItemStack(this, 1, meta);
- }
-
- public LexiconEntry getEntry(World world, int x, int y, int z, EntityPlayer player, ItemStack lexicon) {
- return RecipeListAB.lebethronWood;
- }
-
- public TileEntity createNewTileEntity(World world, int meta) {
- return meta == 4 ? new TileLebethronCore() : null;
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/86/10d7ef2b83ae001c1bd4eaa9a9be6b81 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f5/b0956b7e7fc1001c11e398ea97007cb4
similarity index 88%
rename from 1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/86/10d7ef2b83ae001c1bd4eaa9a9be6b81
rename to 1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f5/b0956b7e7fc1001c11e398ea97007cb4
index 87d98d4..dc8496a 100644
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/86/10d7ef2b83ae001c1bd4eaa9a9be6b81
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f5/b0956b7e7fc1001c11e398ea97007cb4
@@ -10,7 +10,7 @@ import ab.api.recipe.RecipeAdvancedPlate;
import ab.api.recipe.RecipeAncientAlphirine;
import ab.api.recipe.lexicon.AdvancedPlateCraftPage;
import ab.api.recipe.lexicon.AlphirineCraftPage;
-import ab.common.block.tile.TileAgglomerationPlate;
+import ab.common.block.tile.TileNidavellirForge;
import ab.common.block.tile.TileLebethronCore;
import ab.common.block.tile.TileMagicCraftCrate;
import ab.common.core.handler.ConfigABHandler;
@@ -35,11 +35,13 @@ import vazkii.botania.api.recipe.RecipePetals;
import vazkii.botania.common.Botania;
import vazkii.botania.common.block.ModBlocks;
import vazkii.botania.common.block.ModFluffBlocks;
+import vazkii.botania.common.core.handler.ConfigHandler;
import vazkii.botania.common.item.ModItems;
import vazkii.botania.common.item.block.ItemBlockSpecialFlower;
import vazkii.botania.common.lexicon.BLexiconCategory;
import vazkii.botania.common.lexicon.BLexiconEntry;
import vazkii.botania.common.lexicon.RLexiconEntry;
+import vazkii.botania.common.lexicon.page.PageImage;
import vazkii.botania.common.lexicon.page.PageText;
public class RecipeListAB {
@@ -62,6 +64,7 @@ public class RecipeListAB {
public static RecipePetals dictariusRecipe;
public static RecipePetals aspecolusRecipe;
public static RecipePetals pureGladRecipe;
+ public static RecipePetals azartFlowerRecipe;
public static LexiconEntry advandedAgglomerationPlate;
public static LexiconEntry ancientAlphirine;
@@ -92,6 +95,7 @@ public class RecipeListAB {
public static LexiconEntry richesKey;
public static LexiconEntry cubeWardrobe;
public static LexiconEntry sprawlRod;
+ public static LexiconEntry azartFlower;
public static KnowledgeType forgotten;
@@ -114,12 +118,12 @@ public class RecipeListAB {
ancientAlphirine = new BLexiconEntry("ancientAlphirine", categoryForgotten);
alphirineRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("ancientAlphirine"), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.rune, 1, 8), new ItemStack(ModItems.rune, 1, 4), new ItemStack(ModItems.rune, 1, 5), new ItemStack(ModItems.rune, 1, 6), new ItemStack(ModItems.rune, 1, 7), new ItemStack(ModItems.petal, 1, 1), new ItemStack(ModItems.petal, 1, 4));
- ancientAlphirine.setPriority().setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), new PageText("1"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", alphirineRecipe), new AlphirineCraftPage(ancientAlphirine, forgottenLandRecipe.getOutput(), ".alphirineCraft") }).setIcon(ItemBlockSpecialFlower.ofType("ancientAlphirine"));
+ ancientAlphirine.setPriority().setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), new PageText("1"), new PageImage("2", "ab:textures/misc/ancientAlphirine.png"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", alphirineRecipe), new AlphirineCraftPage(ancientAlphirine, forgottenLandRecipe.getOutput(), ".alphirineCraft") }).setIcon(ItemBlockSpecialFlower.ofType("ancientAlphirine"));
if(ConfigABHandler.hasAbPlate) {
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockABPlate), new Object[] { " ", "MPM", "BRB", Character.valueOf('M'), new ItemStack(ModBlocks.storage), Character.valueOf('P'), new ItemStack(ModBlocks.terraPlate), Character.valueOf('B'), new ItemStack(ItemListAB.itemABResource, 1, 3), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 3)});
advandedAgglomerationPlate = new BLexiconEntry("advancedPlate", categoryForgotten);
- advandedAgglomerationPlate.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] {new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()), BotaniaAPI.internalHandler.multiblockPage(".structure", TileAgglomerationPlate.makeMultiblockSet()), new AdvancedPlateCraftPage(advandedAgglomerationPlate, terrasteelRecipe.getOutput(), ".abCraft0"), new AdvancedPlateCraftPage(advandedAgglomerationPlate, manaStarRecipe.getOutput(), ".abCraft1") }).setIcon(new ItemStack(BlockListAB.blockABPlate));
+ advandedAgglomerationPlate.setPriority().setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] {new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()), new AdvancedPlateCraftPage(advandedAgglomerationPlate, terrasteelRecipe.getOutput(), ".abCraft0"), new AdvancedPlateCraftPage(advandedAgglomerationPlate, manaStarRecipe.getOutput(), ".abCraft1") }).setIcon(new ItemStack(BlockListAB.blockABPlate));
}
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockABSpreader), new Object[] { "WMW", "PSP", "WMW", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource, 1, 2), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('S'), new ItemStack(ModBlocks.spreader, 1, 3), Character.valueOf('W'), new ItemStack(BlockListAB.blockLebethron, 1, 4)});
@@ -227,20 +231,24 @@ public class RecipeListAB {
fateBoard = new BLexiconEntry("fateBoard", categoryForgotten);
fateBoard.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AlphirineCraftPage(fateBoard, fateBoardRecipe.getOutput(), ".alphirineCraft")});
-
+
freyrSlingshot = new RLexiconEntry("freyrSlingshot", BotaniaAPI.categoryAlfhomancy, AchievementRegister.relicSlingshot);
freyrSlingshot.setLexiconPages(new LexiconPage[] { new PageText("0"), new PageText("1")});
-
+
richesKey = new RLexiconEntry("richesKey", BotaniaAPI.categoryAlfhomancy, AchievementRegister.relicItemChest);
richesKey.setLexiconPages(new LexiconPage[] { new PageText("0")});
-
+
cubeWardrobe = new RLexiconEntry("cubeWardrobe", BotaniaAPI.categoryAlfhomancy, AchievementRegister.relicPocketArmor);
cubeWardrobe.setLexiconPages(new LexiconPage[] { new PageText("0")});
-
+
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemSprawlRod), new Object[] { " SC", " WS", "W ", Character.valueOf('S'), new ItemStack(ModItems.grassSeeds, 1, 32767), Character.valueOf('C'), new ItemStack(BlockListAB.blockLebethron, 1, 4), Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 3)});
sprawlRod = new BLexiconEntry("sprawlRod", categoryForgotten);
sprawlRod.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
+ azartFlowerRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("ardentAzarcissus"), new ItemStack(ItemListAB.itemABResource, 1, 4), new ItemStack(ModItems.petal, 1, 11), new ItemStack(ModItems.petal, 1, 11), new ItemStack(ModItems.petal, 1, 14), new ItemStack(ModItems.petal, 1, 14), new ItemStack(ModItems.petal, 1, 13), new ItemStack(ModItems.manaResource, 1, 5));
+ azartFlower = new BLexiconEntry("azartFlower", BotaniaAPI.categoryGenerationFlowers);
+ azartFlower.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", azartFlowerRecipe)});
+
if(Botania.thaumcraftLoaded)
thaumcraft();
@@ -256,23 +264,27 @@ public class RecipeListAB {
aspecolusRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("aspecolus"), new ItemStack(ModItems.manaResource, 1, 6), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.rune, 1, 1), new ItemStack(ModItems.rune), new ItemStack(ItemListAB.itemABResource, 1, 2), new ItemStack(ModItems.petal, 1, 10), new ItemStack(ModItems.petal, 1, 13));
aspecolus.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", aspecolusRecipe) }).setIcon(ItemBlockSpecialFlower.ofType("aspecolus"));
addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemNebulaHelmReveal), new Object[] { new ItemStack(ItemListAB.itemNebulaHelm), new ItemStack(ConfigItems.itemGoggles)});
- List recipes = new ArrayList();
- for(int i = 1; i < 10; i++) {
- boolean[][] patterns = ItemCraftingPattern.getPattern(i);
- List str = new ArrayList();
- for(int j = 0; j < patterns.length; j++) {
- String str1 = "";
- for(int k = 0; k < patterns[j].length; k++)
- str1 += patterns[j][k] ? "T" : "H";
- str.add(str1);
- }
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemCraftingPattern, 1, i), new Object[] { str.get(0), str.get(1), str.get(2), Character.valueOf('T'), new ItemStack(ItemListAB.itemCraftingPattern), Character.valueOf('H'), new ItemStack(ConfigItems.itemNugget, 1, 6)});
- recipes.add(getLastRecipe());
+
+ if(ConfigABHandler.hasAutoThaum) {
+ List recipes = new ArrayList();
+ for(int i = 1; i < 10; i++) {
+ boolean[][] patterns = ItemCraftingPattern.getPattern(i);
+ List str = new ArrayList();
+ for(int j = 0; j < patterns.length; j++) {
+ String str1 = "";
+ for(int k = 0; k < patterns[j].length; k++)
+ str1 += patterns[j][k] ? "T" : "H";
+ str.add(str1);
+ }
+ GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemCraftingPattern, 1, i), new Object[] { str.get(0), str.get(1), str.get(2), Character.valueOf('T'), new ItemStack(ItemListAB.itemCraftingPattern), Character.valueOf('H'), new ItemStack(ConfigItems.itemNugget, 1, 6)});
+ recipes.add(getLastRecipe());
+ }
+ IRecipe crate = GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockMagicCraftCrate), new Object[] { "TST", "WCW", "W W", Character.valueOf('W'), new ItemStack(ConfigBlocks.blockMagicalLog), Character.valueOf('S'), new ItemStack(ConfigItems.itemResource, 1, 14), Character.valueOf('T'), new ItemStack(ConfigItems.itemResource, 1, 7), Character.valueOf('C'), new ItemStack(ModBlocks.openCrate, 1, 1)});
+ addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemCraftingPattern, 48), new Object[] { new ItemStack(Blocks.crafting_table), new ItemStack(ModBlocks.livingrock), new ItemStack(ConfigItems.itemResource, 1, 14)});
+ thaumAutoCraft = new BLexiconEntry("thaumAutoCraft", BotaniaAPI.categoryDevices);
+ thaumAutoCraft.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", crate) , BotaniaAPI.internalHandler.craftingRecipePage(".craft0", getLastRecipe()), BotaniaAPI.internalHandler.craftingRecipesPage(".craft1", recipes)});
+
}
- IRecipe crate = GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockMagicCraftCrate), new Object[] { "TST", "WCW", "W W", Character.valueOf('W'), new ItemStack(ConfigBlocks.blockMagicalLog), Character.valueOf('S'), new ItemStack(ConfigItems.itemResource, 1, 14), Character.valueOf('T'), new ItemStack(ConfigItems.itemResource, 1, 7), Character.valueOf('C'), new ItemStack(ModBlocks.openCrate, 1, 1)});
- addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemCraftingPattern, 48), new Object[] { new ItemStack(Blocks.crafting_table), new ItemStack(ModBlocks.livingrock), new ItemStack(ConfigItems.itemResource, 1, 14)});
- thaumAutoCraft = new BLexiconEntry("thaumAutoCraft", BotaniaAPI.categoryDevices);
- thaumAutoCraft.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", crate) , BotaniaAPI.internalHandler.craftingRecipePage(".craft0", getLastRecipe()), BotaniaAPI.internalHandler.craftingRecipesPage(".craft1", recipes)});
pureGladRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("pureGladiolus"), new ItemStack(ItemListAB.itemABResource, 1, 4), new ItemStack(ModItems.rune, 1, 8), new ItemStack(ModItems.petal, 1, 8), new ItemStack(ModItems.petal, 1, 4), new ItemStack(ModItems.petal, 1, 14), new ItemStack(ModItems.petal, 1, 5), new ItemStack(ModItems.petal, 1, 13), new ItemStack(ModItems.petal, 1, 11));
gladious = new BLexiconEntry("gladious", BotaniaAPI.categoryFunctionalFlowers);
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f6/1004598321be001c1965b122d2f8f403 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f6/1004598321be001c1965b122d2f8f403
new file mode 100644
index 0000000..9655913
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f6/1004598321be001c1965b122d2f8f403
@@ -0,0 +1,159 @@
+package ab.common.item.relic;
+
+import java.awt.Color;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.common.core.handler.NetworkHandler;
+import ab.common.lib.register.ItemListAB;
+import net.minecraft.block.Block;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.util.MathHelper;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.api.mana.ManaItemHandler;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class ItemSphereNavigation extends ItemModRelic {
+
+ public static final int rangeSearch = 24;
+ public static final int maxCooldown = 112;
+ public static final int manaCost = 1750;
+
+ public ItemSphereNavigation() {
+ super("sphereNavigation");
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int pos, boolean equipped) {
+ super.onUpdate(stack, world, entity, pos, equipped);
+ if(entity instanceof EntityPlayer) {
+ EntityPlayer player = (EntityPlayer)entity;
+ if(!world.isRemote && getFindBlock(stack) != null && canWork(stack) && ManaItemHandler.requestManaExactForTool(stack, player, manaCost, true)) {
+ setMaxTick(stack);
+ NetworkHandler.sendPacketToFindBlocks((EntityPlayerMP)player, getFindBlock(stack), getFindMeta(stack));
+ }
+ }
+ }
+
+ public static void findBlocks(World world, Block findBlock, int findMeta, EntityPlayer player) {
+ if(world.isRemote) {
+ ItemStack renderStack = null;
+ int findedBlocks = 0;
+ label1703:
+ for(int x = -rangeSearch; x < rangeSearch; x++) {
+ if(world.rand.nextBoolean())
+ continue;
+ for(int y = -rangeSearch * 4; y < rangeSearch; y++) {
+ if(world.rand.nextBoolean())
+ continue;
+ for(int z = -rangeSearch; z < rangeSearch; z++) {
+ if(world.rand.nextBoolean())
+ continue;
+ else if(findedBlocks > 24)
+ break label1703;
+ int posX = MathHelper.floor_double(player.posX) + x;
+ int posY = MathHelper.floor_double(player.posY) + y;
+ int posZ = MathHelper.floor_double(player.posZ) + z;
+ if(posY < 0)
+ continue;
+ Block block = world.getBlock(posX, posY, posZ);
+ if(!Block.isEqualTo(block, findBlock))
+ continue;
+ int meta = world.getBlockMetadata(posX, posY, posZ);
+ if(meta == findMeta) {
+ if(renderStack == null)
+ renderStack = getRenderStackForBlock(world, block, meta, posX, posY, posZ);
+ findedBlocks++;
+ float maxAge = 2.7f + (0.5f * (float)(Math.random()));
+ Botania.proxy.setWispFXDepthTest(false);
+ Botania.proxy.setWispFXDistanceLimit(false);
+ float far = 120.0f - (((Math.abs(x) + Math.min(rangeSearch * 2.0f, Math.abs(y)) + Math.abs(z)) / (rangeSearch * 4.0f)) * 120.0f);
+ if(far <= 60)
+ far *= 0.15f;
+ Color color = new Color(Color.HSBtoRGB(far / 360.0f, 0.9f + (float)(Math.random() * 0.1f), 1.0f));
+ for(int i = 0; i < 11; i++)
+ Botania.proxy.wispFX(world, posX + 0.5f + (Math.random() - 0.5f), posY + 0.5f + (Math.random() - 0.5f), posZ + 0.5f + (Math.random() - 0.5f), color.getRed() / 100.0f, color.getGreen() / 100.0f, color.getBlue() / 100.0f, 0.3f + (float)(Math.random() * 0.25f), 0.0f, maxAge);
+ Botania.proxy.setWispFXDistanceLimit(true);
+ Botania.proxy.setWispFXDepthTest(true);
+ }
+ }
+ }
+ }
+ if(renderStack != null)
+ ItemsRemainingRender.set(renderStack, "íàéäåíî: " + findedBlocks);
+ }
+ }
+
+ public static ItemStack getRenderStackForBlock(World world, Block block, int meta, int x, int y, int z) {
+ if(block != null) {
+ Item item = Item.getItemFromBlock(block);
+ if(item != null) {
+ ItemStack findStack = new ItemStack(block, 1, meta);
+ if(findStack != null)
+ return findStack;
+ } else {
+ Item item1 = block.getItem(world, x, y, z);
+ if(item1 != null) {
+ ItemStack findStack = new ItemStack(item1, 1, meta);
+ if(findStack != null)
+ return findStack;
+ }
+ }
+ }
+ return null;
+ }
+
+ public boolean onItemUse(ItemStack stack, EntityPlayer p, World world, int x, int y, int z, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
+ if(p.isSneaking()) {
+ Block block = world.getBlock(x, y, z);
+ if(block != null) {
+ int meta = world.getBlockMetadata(x, y, z);
+ ItemStack findStack = getRenderStackForBlock(world, block, meta, x, y, z);
+ if(findStack != null) {
+ setFindBlock(stack, block, meta);
+ if(world.isRemote)
+ ItemsRemainingRender.set(findStack, findStack.getDisplayName());
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public boolean canWork(ItemStack stack) {
+ int tick = ItemNBTHelper.getInt(stack, "cooldown", 0);
+ if(tick == 0)
+ return true;
+ else if(tick > 0)
+ ItemNBTHelper.setInt(stack, "cooldown", tick - 1);
+ return false;
+ }
+
+ public void setMaxTick(ItemStack stack) {
+ ItemNBTHelper.setInt(stack, "cooldown", maxCooldown);
+ }
+
+ public static void setFindBlock(ItemStack stack, Block block, int meta) {
+ ItemNBTHelper.setInt(stack, "findBlockID", Block.getIdFromBlock(block));
+ ItemNBTHelper.setInt(stack, "findBlockMeta", meta);
+ }
+
+ public static Block getFindBlock(ItemStack stack) {
+ int blockID = ItemNBTHelper.getInt(stack, "findBlockID", 0);
+ if(blockID == 0)
+ return null;
+ else
+ return Block.getBlockById(blockID);
+ }
+
+ public static int getFindMeta(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "findBlockMeta", -1);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f6/30c5f1f1bcbc001c1a9f99005529f322 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f6/30c5f1f1bcbc001c1a9f99005529f322
new file mode 100644
index 0000000..532b03b
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f6/30c5f1f1bcbc001c1a9f99005529f322
@@ -0,0 +1,38 @@
+package ab.client.render.block;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.client.render.tile.RenderTileManaContainer;
+import ab.common.block.tile.TileNidavellirForge;
+import ab.common.lib.register.BlockListAB;
+import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
+import net.minecraft.block.Block;
+import net.minecraft.client.renderer.RenderBlocks;
+import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.world.IBlockAccess;
+
+public class RenderBlockNidavellirForge implements ISimpleBlockRenderingHandler {
+
+ public void renderInventoryBlock(Block block, int metadata, int modelID, RenderBlocks renderer) {
+ GL11.glPushMatrix();
+ GL11.glTranslatef(-0.5F, -0.2F, -0.5F);
+ GL11.glScalef(1.3f, 1.3f, 1.3f);
+ TileNidavellirForge forge = new TileNidavellirForge();
+ RenderTileManaContainer.metadata = metadata;
+ TileEntityRendererDispatcher.instance.renderTileEntityAt((TileEntity)forge, 0.0D, 0.0D, 0.0D, 0.0F);
+ GL11.glPopMatrix();
+ }
+
+ public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId, RenderBlocks renderer) {
+ return false;
+ }
+
+ public int getRenderId() {
+ return BlockListAB.blockABPlateRI;
+ }
+
+ public boolean shouldRender3DInInventory(int modelId) {
+ return true;
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f6/30f8e3849cb1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f6/30f8e3849cb1001c19bf8a91ac37238b
deleted file mode 100644
index 911d78c..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f6/30f8e3849cb1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,83 +0,0 @@
-package ab.client.core.handler;
-
-import java.awt.Color;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.armor.ItemNebulaArmor;
-import ab.common.item.equipment.armor.ItemNebulaHelm;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.ItemRenderer;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.texture.TextureMap;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraftforge.client.event.RenderPlayerEvent;
-import vazkii.botania.api.item.IPhantomInkable;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class PlayerRendererHandler {
-
- @SubscribeEvent
- public void onPlayerRender(RenderPlayerEvent.Specials.Pre event) {
- EntityPlayer player = event.entityPlayer;
- ItemStack item = player.getCurrentArmor(3);
- if(item != null && item.getItem() instanceof ItemNebulaHelm) {
- Item helm = player.getCurrentArmor(3).getItem();
- boolean hasPhantomInk = helm instanceof IPhantomInkable && ((IPhantomInkable)helm).hasPhantomInk(item);
- if(!hasPhantomInk && ((ItemNebulaHelm)helm).enableCosmicFace(item)) {
- float angelX = event.renderer.modelBipedMain.bipedHead.rotateAngleX * 180.0F / (float)Math.PI;
- float angelY = event.renderer.modelBipedMain.bipedHead.rotateAngleY * 180.0F / (float)Math.PI;
- GL11.glPushMatrix();
- if(player.isSneaking())
- GL11.glTranslatef(event.renderer.modelBipedMain.bipedHead.rotationPointX * 0.0625f, event.renderer.modelBipedMain.bipedHead.rotationPointY * 0.0625f, 0.0f);
- GL11.glRotatef(angelY, 0.0F, 1.0F, 0.0F);
- GL11.glRotatef(angelX, 1.0F, 0.0F, 0.0F);
- renderCosmicFace();
- GL11.glPopMatrix();
- }
- }
- }
-
- private void renderCosmicFace() {
- double worldTime = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- GL11.glPushMatrix();
-// GL11.glEnable(GL11.GL_TEXTURE_2D);
-// GL11.glDisable(2884);
-
- GL11.glPushMatrix();
- GL11.glScalef(0.5f, 0.4f, 0.4f);
- GL11.glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
- GL11.glTranslatef(-0.5f, -0.8675f, 0.0f);
- GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
-// ClientHelper.renderCosmicBackground();
- GL11.glPopMatrix();
-
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
-// OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- (Minecraft.getMinecraft()).renderEngine.bindTexture(TextureMap.locationItemsTexture);
- GL11.glTranslatef(-0.2F, -0.35F, -0.25F);
- GL11.glScalef(0.4f, 0.4f, 0.4f);
- float f = ItemNebulaArmor.nebulaEyes.getMinU();
- float f1 = ItemNebulaArmor.nebulaEyes.getMaxU();
- float f2 = ItemNebulaArmor.nebulaEyes.getMinV();
- float f3 = ItemNebulaArmor.nebulaEyes.getMaxV();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float r = color.getRed() / 510.0F;
- float g = color.getGreen() / 510.0F;
- float b = color.getBlue() / 510.0F;
- GL11.glColor4f(0.5f + r, 0.5f + g, 0.5f + b, 0.685f + (float)Math.sin(worldTime / 50.0D) * 0.175F);
- ItemRenderer.renderItemIn2D(Tessellator.instance, f1, f2, f, f3, ItemNebulaArmor.nebulaEyes.getIconWidth(), ItemNebulaArmor.nebulaEyes.getIconHeight(), 0.03125F);
- GL11.glDisable(3042);
-// GL11.glEnable(32826);
- GL11.glPopMatrix();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f6/40ab4aba92b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f6/40ab4aba92b1001c19bf8a91ac37238b
deleted file mode 100644
index 40911f1..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f6/40ab4aba92b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,245 +0,0 @@
-package ab.client.core;
-
-import java.awt.Color;
-import java.nio.FloatBuffer;
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.gui.ScaledResolution;
-import net.minecraft.client.renderer.ActiveRenderInfo;
-import net.minecraft.client.renderer.GLAllocation;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.RenderHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.entity.RenderItem;
-import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.IIcon;
-import net.minecraft.util.ResourceLocation;
-import net.minecraft.util.StatCollector;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-import vazkii.botania.client.core.handler.HUDHandler;
-import vazkii.botania.common.block.ModBlocks;
-import vazkii.botania.common.core.helper.Vector3;
-
-public class ClientHelper {
-
- public static final ResourceLocation miscHuds = new ResourceLocation("ab:textures/misc/miscHuds.png");
- private static final ResourceLocation field_147529_c = new ResourceLocation("textures/environment/end_sky.png");
- private static final ResourceLocation field_147526_d = new ResourceLocation("textures/entity/end_portal.png");
- private static final Random field_147527_e = new Random(31100L);
- public static Minecraft mc = Minecraft.getMinecraft();
- private static FloatBuffer field_147528_b = GLAllocation.createDirectFloatBuffer(16);
-
- public static void renderCosmicBackground() {
- GL11.glDisable(GL11.GL_LIGHTING);
- GL11.glDisable(2912);
- field_147527_e.setSeed(31100L);
- float f4 = 0.24F;
- for (int i = 0; i < 16; i++) {
- GL11.glPushMatrix();
- float f5 = (16 - i);
- float f6 = 0.0625F;
- float f7 = 1.0F / (f5 + 1.0F);
- if (i == 0) {
- mc.renderEngine.bindTexture(field_147529_c);
- f7 = 0.1F;
- f5 = 65.0F;
- f6 = 0.125F;
- GL11.glEnable(GL11.GL_BLEND);
- GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
- }
- if (i == 1) {
- mc.renderEngine.bindTexture(field_147526_d);
- GL11.glEnable(GL11.GL_BLEND);
- GL11.glBlendFunc(GL11.GL_ONE, GL11.GL_ONE);
- f6 = 0.5F;
- }
- GL11.glTranslatef(0.0f, 1.5f, 0.0f);
- GL11.glTexGeni(GL11.GL_S, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_OBJECT_LINEAR);
- GL11.glTexGeni(GL11.GL_T, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_OBJECT_LINEAR);
- GL11.glTexGeni(GL11.GL_R, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_OBJECT_LINEAR);
- GL11.glTexGeni(GL11.GL_Q, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_EYE_LINEAR);
- GL11.glTexGen(GL11.GL_S, GL11.GL_OBJECT_PLANE, func_147525_a(1.0F, 0.0F, 0.0F, 0.0F));
- GL11.glTexGen(GL11.GL_T, GL11.GL_OBJECT_PLANE, func_147525_a(0.0F, 0.0F, 1.0F, 0.0F));
- GL11.glTexGen(GL11.GL_R, GL11.GL_OBJECT_PLANE, func_147525_a(0.0F, 0.0F, 0.0F, 1.0F));
- GL11.glTexGen(GL11.GL_Q, GL11.GL_EYE_PLANE, func_147525_a(0.0F, 1.0F, 0.0F, 0.0F));
- GL11.glEnable(GL11.GL_TEXTURE_GEN_S);
- GL11.glEnable(GL11.GL_TEXTURE_GEN_T);
- GL11.glEnable(GL11.GL_TEXTURE_GEN_R);
- GL11.glEnable(GL11.GL_TEXTURE_GEN_Q);
- GL11.glPopMatrix();
- GL11.glMatrixMode(GL11.GL_TEXTURE);
- GL11.glPushMatrix();
- GL11.glLoadIdentity();
- GL11.glTranslatef(0.0F, (float)(Minecraft.getSystemTime() % 20000L) / 20000.0F, 0.0F);
- GL11.glScalef(f6, f6, f6);
- GL11.glTranslatef(0.5F, 0.5F, 0.0F);
- GL11.glRotatef((i * i * 4321 + i * 9) * 2.0F, 0.0F, 0.0F, 1.0F);
- GL11.glTranslatef(-0.5F, -0.5F, 0.0F);
- Tessellator tessellator = Tessellator.instance;
- tessellator.startDrawingQuads();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float f11 = color.getRed() / 255.0F;
- float f12 = color.getGreen() / 255.0F;
- float f13 = color.getBlue() / 255.0F;
- tessellator.setBrightness(180);
- tessellator.setColorRGBA_F(f11 * f7, f12 * f7, f13 * f7, 1.0F);
- tessellator.addVertex(0.0D, f4, 0.0D);
- tessellator.addVertex(0.0D, f4, 1.0D);
- tessellator.addVertex(1.0D, f4, 1.0D);
- tessellator.addVertex(1.0D, f4, 0.0D);
- tessellator.draw();
- GL11.glPopMatrix();
- GL11.glMatrixMode(GL11.GL_MODELVIEW);
- }
- GL11.glDisable(GL11.GL_BLEND);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_S);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_T);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_R);
- GL11.glDisable(GL11.GL_TEXTURE_GEN_Q);
- GL11.glEnable(2912);
- }
-
- private static FloatBuffer func_147525_a(float p_147525_1_, float p_147525_2_, float p_147525_3_, float p_147525_4_) {
- field_147528_b.clear();
- field_147528_b.put(p_147525_1_).put(p_147525_2_).put(p_147525_3_).put(p_147525_4_);
- field_147528_b.flip();
- return field_147528_b;
- }
-
- public static void drawArrow(int x, int y, boolean side) {
- mc.renderEngine.bindTexture(miscHuds);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0f);
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x, y, 0.0F, 0, 10, side ? 0 : 22, 38);
- }
-
- public static void drawChanceBar(int x, int y, int chance) {
- mc.renderEngine.bindTexture(miscHuds);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0f);
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x, y, 0.0F, 0, 0, 57, 6);
- int chancePercentage = Math.max(0, (int)((chance / 100.f) * 55.0D));
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x + 1, y + 1, 0.0F, 0, 6, 55, 4);
- Color color = new Color(Color.HSBtoRGB((chance) / 360.0f, ((float)Math.sin((ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks) * 0.2D) + 1.0F) * 0.3F + 0.4F, 1.0f));
- GL11.glColor4ub((byte)color.getRed(), (byte)color.getGreen(), (byte)color.getBlue(), (byte)255);
- vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x + 1, y + 1, 0.0F, 0, 6, Math.min(55, chancePercentage), 4);
- }
-
- public static void renderPoolManaBar(int x, int y, int color, float alpha, int mana) {
- Minecraft mc = Minecraft.getMinecraft();
- int poolCount = (int)Math.floor(mana / 1000000.0D);
- if(poolCount < 0)
- poolCount = 0;
- int onePoolMana = mana - (poolCount * 1000000);
- String strPool = poolCount + "x";
- int xc = x - mc.fontRenderer.getStringWidth(strPool) / 2;
- int yc = y;
- GL11.glPushMatrix();
- GL11.glTranslatef(xc + 42.0f, yc + 5.0f, 0.0f);
- RenderHelper.enableGUIStandardItemLighting();
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, new ItemStack(ModBlocks.pool), 0, 0);
- RenderHelper.disableStandardItemLighting();
- GL11.glTranslatef(18.0f, 5.0f, 300.0f);
- mc.fontRenderer.drawString(strPool, 0, 0, color);
- GL11.glPopMatrix();
- if((poolCount * 1000000) == mana)
- onePoolMana = poolCount * 1000000;
- HUDHandler.renderManaBar(x, y, color, alpha, onePoolMana, 1000000);
- }
-
- public static void drawPoolManaHUD(ScaledResolution res, String name, int mana, int maxMana, int color) {
- Minecraft mc = Minecraft.getMinecraft();
- int poolCount = (int)Math.floor(mana / 1000000.0D);
- int maxPoolCount = (int)Math.floor(maxMana / 1000000.0D);
- if(poolCount < 0)
- poolCount = 0;
- if(maxPoolCount < 0)
- maxPoolCount = 0;
- int onePoolMana = mana - (poolCount * 1000000);
- String strPool = poolCount + "x / " + maxPoolCount + "x";
- int xc = res.getScaledWidth() / 2 - mc.fontRenderer.getStringWidth(strPool) / 2 - 3;
- int yc = res.getScaledHeight() / 2;
- GL11.glPushMatrix();
- GL11.glTranslatef(xc - 6.0f, yc + 30.0f, 0.0f);
- RenderHelper.enableGUIStandardItemLighting();
- RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, new ItemStack(ModBlocks.pool), 0, 0);
- RenderHelper.disableStandardItemLighting();
- GL11.glTranslatef(18.0f, 4.5f, 300.0f);
- mc.fontRenderer.drawStringWithShadow(strPool, 0, 0, color);
- GL11.glPopMatrix();
- if((poolCount * 1000000) == mana)
- onePoolMana = poolCount * 1000000;
- HUDHandler.drawSimpleManaHUD(color, onePoolMana, 1000000, name, res);
- }
-
- public static void setLightmapTextureCoords() {
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- }
-
- public static Vector3 setRotation(float angel, float vX, float vY, float vZ, Vector3 v3) {
- Vector3 rVec = new Vector3(vX, vY, vZ);
- Vector3 rVec1 = v3.copy().normalize();
- double rAngel = Math.toRadians(angel) * 0.5f;
- double sin = Math.sin(rAngel);
- double x = rVec.x * sin;
- double y = rVec.y * sin;
- double z = rVec.z * sin;
- rAngel = Math.cos(rAngel);
- double d = -x * rVec1.x - y * rVec1.y - z * rVec1.z;
- double d1 = rAngel * rVec1.x + y * rVec1.z - z * rVec1.y;
- double d2 = rAngel * rVec1.y - x * rVec1.z + z * rVec1.x;
- double d3 = rAngel * rVec1.z + x * rVec1.y - y * rVec1.x;
- v3.x = d1 * rAngel - d * x - d2 * z + d3 * y;
- v3.y = d2 * rAngel - d * y + d1 * z - d3 * x;
- v3.z = d3 * rAngel - d * z - d1 * y + d2 * x;
- return v3;
- }
-
- public static Color getCorporeaRuneColor(int posX, int posY, int posZ, int meta) {
- double time = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- time += (new Random((posX ^ posY ^ posZ))).nextInt(360);
- float sin = (float)(Math.sin(time / 20.0f) * 0.15f) - 0.15f;
- int color = 0;
- switch(meta) {
- case 0:
- color = Color.HSBtoRGB(0.0f, 0.0f, 0.54f + (sin / 1.2f));
- break;
- case 1:
- color = Color.HSBtoRGB(0.688f, 0.93f, 0.96f + sin - 0.15f);
- break;
- case 2:
- color = Color.HSBtoRGB(0.983f, 0.99f, 1.0f + sin - 0.15f);
- break;
- case 3:
- color = Color.HSBtoRGB(0.319f, 0.92f, 0.95f + sin - 0.15f);
- break;
- case 4:
- color = Color.HSBtoRGB(0.536f, 0.53f, 0.92f + sin - 0.15f);
- break;
- }
- return new Color(color);
- }
-
- public static void renderIcon(IIcon icon, int light) {
- Tessellator tessellator = Tessellator.instance;
- float f = icon.getMinU();
- float f1 = icon.getMaxU();
- float f2 = icon.getMinV();
- float f3 = icon.getMaxV();
- float f4 = 1.0F;
- float f5 = 0.5F;
- float f6 = 0.25F;
- tessellator.startDrawingQuads();
- tessellator.setNormal(0.0F, 1.0F, 0.0F);
- tessellator.addVertexWithUV((0.0F - f5), (0.0F - f6), 0.0D, f, f3);
- tessellator.addVertexWithUV((f4 - f5), (0.0F - f6), 0.0D, f1, f3);
- tessellator.addVertexWithUV((f4 - f5), (f4 - f6), 0.0D, f1, f2);
- tessellator.addVertexWithUV((0.0F - f5), (f4 - f6), 0.0D, f, f2);
- tessellator.draw();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f6/b05b5231bbbc001c1a9f99005529f322 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f6/b05b5231bbbc001c1a9f99005529f322
new file mode 100644
index 0000000..2d0e015
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f6/b05b5231bbbc001c1a9f99005529f322
@@ -0,0 +1,141 @@
+package ab.common.block;
+
+import ab.AdvancedBotany;
+import ab.common.block.tile.TileNidavellirForge;
+import ab.common.block.tile.TileInventory;
+import ab.common.lib.register.RecipeListAB;
+import net.minecraft.block.Block;
+import net.minecraft.block.BlockContainer;
+import net.minecraft.block.material.Material;
+import net.minecraft.client.renderer.texture.IIconRegister;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.MathHelper;
+import net.minecraft.util.Vec3;
+import net.minecraft.world.IBlockAccess;
+import net.minecraft.world.World;
+import vazkii.botania.api.BotaniaAPI;
+import vazkii.botania.api.lexicon.ILexiconable;
+import vazkii.botania.api.lexicon.LexiconEntry;
+
+public class BlockNidavellirForge extends BlockContainer implements ILexiconable {
+
+ public BlockNidavellirForge() {
+ super(Material.iron);
+ this.setCreativeTab(AdvancedBotany.tabAB);
+ this.setHardness(3.0F);
+ this.setResistance(10.0F);
+ this.setStepSound(soundTypeMetal);
+ this.setBlockName("ABPlate");
+ }
+
+ public void setBlockBoundsBasedOnState(IBlockAccess world, int x, int y, int z) {
+ float f = 0.1875F;
+ float f1 = 0.0625F;
+ switch(world.getBlockMetadata(x, y, z)) {
+ case 0: this.setBlockBounds(f, 0.0F, f1, 1.0F - f, 0.75F, 1.0F);
+ break;
+ case 2: this.setBlockBounds(f, 0.0F, 0.0F, 1.0F - f, 0.75F, 1.0F - f1);
+ break;
+ default: this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
+ }
+// if(world.getBlockMetadata(x, y, z) % 2 == 0)
+// this.setBlockBounds(f, 0.0F, 0.0F, 1.0F - f, 0.75F, 1.0F);
+// else
+// this.setBlockBounds(0.0F, 0.0F, f, 1.0F, 0.75F, 1.0F - f);
+ }
+
+ public void onBlockPlacedBy(World world, int x, int y, int z, EntityLivingBase liv, ItemStack stack) {
+ int meta = MathHelper.floor_double((double)(liv.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3;
+ world.setBlockMetadataWithNotify(x, y, z, meta, 3);
+ }
+
+ public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int par6, float par7, float par8, float par9) {
+ TileNidavellirForge tile = (TileNidavellirForge)world.getTileEntity(x, y, z);
+ if(player.isSneaking()) {
+ if(tile.getStackInSlot(0) != null) {
+ ItemStack copy = tile.getStackInSlot(0).copy();
+ if(!world.isRemote) {
+ Vec3 vec3 = player.getLook(1.0F).normalize();
+ EntityItem entityitem = new EntityItem(world, player.posX + vec3.xCoord, player.posY + 1.2f, player.posZ + vec3.zCoord, copy);
+ world.spawnEntityInWorld(entityitem);
+ tile.requestUpdate = true;
+ }
+ tile.setInventorySlotContents(0, null);
+ world.func_147453_f(x, y, z, (Block)this);
+ return true;
+ }
+ for(int i = tile.getSizeInventory() - 1; i > 0; i--) {
+ ItemStack stack = tile.getStackInSlot(i);
+ if(stack != null) {
+ ItemStack copy = stack.copy();
+ if(!world.isRemote) {
+ Vec3 vec3 = player.getLook(1.0F).normalize();
+ EntityItem entityitem = new EntityItem(world, player.posX + vec3.xCoord, player.posY + 1.2f, player.posZ + vec3.zCoord, copy);
+ world.spawnEntityInWorld(entityitem);
+ tile.requestUpdate = true;
+ }
+ tile.setInventorySlotContents(i, null);
+ world.func_147453_f(x, y, z, (Block)this);
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public void breakBlock(World world, int x, int y, int z, Block block, int meta) {
+ if(!world.isRemote) {
+ TileInventory inv = (TileInventory)world.getTileEntity(x, y, z);
+ if (inv != null) {
+ for (int i = 0; i < inv.getSizeInventory(); i++) {
+ ItemStack stack = inv.getStackInSlot(i);
+ if (stack != null) {
+ float f = world.rand.nextFloat() * 0.8F + 0.1F;
+ float f1 = world.rand.nextFloat() * 0.8F + 0.1F;
+ float f2 = world.rand.nextFloat() * 0.8F + 0.1F;
+ EntityItem entityitem = new EntityItem(world, (x + f), (y + f1), (z + f2), stack.copy());
+ float f3 = 0.05F;
+ entityitem.motionX = ((float)world.rand.nextGaussian() * f3);
+ entityitem.motionY = ((float)world.rand.nextGaussian() * f3 + 0.2F);
+ entityitem.motionZ = ((float)world.rand.nextGaussian() * f3);
+ if (stack.hasTagCompound())
+ entityitem.getEntityItem().setTagCompound((NBTTagCompound)stack.getTagCompound().copy());
+ world.spawnEntityInWorld(entityitem);
+ }
+ }
+ }
+ }
+ super.breakBlock(world, x, y, z, block, meta);
+ }
+
+ public int getRenderType() {
+ return -1;
+ }
+
+ public boolean renderAsNormalBlock() {
+ return false;
+ }
+
+ public boolean isOpaqueCube() {
+ return false;
+ }
+
+ public boolean getBlocksMovement(IBlockAccess p_149655_1_, int p_149655_2_, int p_149655_3_, int p_149655_4_) {
+ return false;
+ }
+
+ public TileEntity createNewTileEntity(World world, int meta) {
+ return new TileNidavellirForge();
+ }
+
+ public LexiconEntry getEntry(World arg0, int arg1, int arg2, int arg3, EntityPlayer arg4, ItemStack arg5) {
+ return RecipeListAB.advandedAgglomerationPlate;
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f7/5010e076b7b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f7/5010e076b7b1001c19bf8a91ac37238b
deleted file mode 100644
index c699804..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f7/5010e076b7b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,151 +0,0 @@
-package ab.common.entity;
-
-import java.awt.Color;
-import java.util.List;
-import java.util.Random;
-
-import ab.client.core.ClientHelper;
-import ab.common.core.CommonHelper;
-import ab.common.lib.register.BlockListAB;
-import cpw.mods.fml.relauncher.ReflectionHelper;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockBush;
-import net.minecraft.block.BlockCrops;
-import net.minecraft.block.BlockGrass;
-import net.minecraft.block.BlockSapling;
-import net.minecraft.block.IGrowable;
-import net.minecraft.block.material.Material;
-import net.minecraft.entity.EntityLivingBase;
-import net.minecraft.entity.passive.EntityAnimal;
-import net.minecraft.entity.projectile.EntityThrowable;
-import net.minecraft.init.Blocks;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.potion.PotionEffect;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.MathHelper;
-import net.minecraft.util.MovingObjectPosition;
-import net.minecraft.util.Vec3;
-import net.minecraft.world.World;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.core.handler.ConfigHandler;
-import vazkii.botania.common.lib.LibObfuscation;
-
-public class EntityManaVine extends EntityThrowable {
-
- int maxAge = 240;
- int age;
-
- public EntityManaVine(World world) {
- super(world);
- }
-
- public EntityManaVine(World world, EntityLivingBase entity) {
- super(world, entity);
- }
-
- public void onUpdate() {
- super.onUpdate();
- age++;
- if(age >= maxAge)
- setDead();
- if(this.worldObj.isRemote) {
- float m = 0.02F;
- float f1 = 6.0f;
- for(int i = 0; i < 4; i++) {
- double posX = this.posX + (Math.random() / f1 - (0.5f / f1));
- double posY = this.posY + (Math.random() / f1 - (0.5f / f1));
- double posZ = this.posZ + (Math.random() / f1 - (0.5f / f1));
- float mx = (float)(Math.random() - 0.5D) * m;
- float my = (float)(Math.random() - 0.5D) * m;
- float mz = (float)(Math.random() - 0.5D) * m;
- Color color = ClientHelper.getCorporeaRuneColor((int)posX, (int)posY, (int)posZ, 3);
- Botania.proxy.wispFX(worldObj, posX, posY, posZ, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float) (0.15f + (Math.random() * 0.12f)), mx, my, mz, 0.7f);
- }
- }
- }
-
- protected void onImpact(MovingObjectPosition pos) {
- if(pos != null && pos.entityHit == null) {
- World world = this.worldObj;
- int x = pos.blockX;
- int y = pos.blockY;
- int z = pos.blockZ;
- List list = (List) (world.getEntitiesWithinAABB(EntityLivingBase.class, AxisAlignedBB.getBoundingBox(x - 10, y - 10, z - 10, x + 10, y + 10, z + 10)));
- for(EntityLivingBase target : list) {
- if(target instanceof EntityAnimal) {
- EntityAnimal animal = (EntityAnimal) target;
- ReflectionHelper.setPrivateValue(EntityAnimal.class, animal, 1200, LibObfuscation.IN_LOVE);
- animal.setTarget(null);
- this.worldObj.setEntityState(animal, (byte) 18);
- }
- }
- for(int k = 0; k < 7; k++)
- for(int k1 = 0; k1 < 7; k1++)
- for(int k2 = 0; k2 < 7; k2++) {
- int xCoord = x + k - 3;
- int yCoord = y + k1 - 1;
- int zCoord = z + k2 - 3;
- Block block = this.worldObj.getBlock(xCoord, yCoord, zCoord);
- if(block instanceof IGrowable && !(block instanceof BlockGrass)) {
- CommonHelper.fertilizer(world, block, xCoord, yCoord, zCoord, 12);
- if(ConfigHandler.blockBreakParticles)
- this.worldObj.playAuxSFX(2005, xCoord, yCoord, zCoord, 6 + this.worldObj.rand.nextInt(4));
- this.worldObj.playSoundEffect(x, y, z, "botania:agricarnation", 0.01F, 0.5F + (float) Math.random() * 0.5F);
- } else if(!world.isRemote && BlockListAB.blockFreyrLiana.canBlockStay(world, xCoord, yCoord - 1, zCoord)) {
- Vec3 vec = Vec3.createVectorHelper(xCoord, yCoord, zCoord);
- int distant = (int)vec.squareDistanceTo(Vec3.createVectorHelper(x, y, z));
- yCoord--;
- if (this.worldObj.rand.nextInt(distant + 1) == 0)
- while (yCoord > 0) {
- block = worldObj.getBlock(xCoord, yCoord, zCoord);
- if(block.isAir(worldObj, xCoord, yCoord, zCoord)) {
- if(world.rand.nextInt(4) < 3)
- worldObj.setBlock(xCoord, yCoord, zCoord, BlockListAB.blockFreyrLiana);
- else
- worldObj.setBlock(xCoord, yCoord, zCoord,BlockListAB.blockLuminousFreyrLiana);
- worldObj.playAuxSFX(2001, xCoord, yCoord, zCoord, Block.getIdFromBlock(BlockListAB.blockFreyrLiana));
- yCoord--;
- } else
- break;
- }
- }
- }
- this.setDead();
- }
- }
-
- @SideOnly(Side.CLIENT)
- public void setPositionAndRotation2(double p_70056_1_, double p_70056_3_, double p_70056_5_, float p_70056_7_, float p_70056_8_, int p_70056_9_) {}
-
- protected float getGravityVelocity() {
- return 0.0f;
- }
-
- public void setDead() {
- if(this.worldObj.isRemote) {
- float m = 0.175F;
- for(int i = 0; i < 32; i++) {
- float mx = (float)(Math.random() - 0.5D) * m;
- float my = (float)(Math.random() - 0.5D) * m;
- float mz = (float)(Math.random() - 0.5D) * m;
- Color color = ClientHelper.getCorporeaRuneColor((int)posX, (int)posY, (int)posZ, 3);
- Botania.proxy.wispFX(worldObj, posX, posY, posZ, color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float) (0.2f + (Math.random() * 0.12f)), mx, my, mz, 2.0f);
- }
- }
- super.setDead();
- }
-
- public void readFromNBT(NBTTagCompound nbtt) {
- super.readFromNBT(nbtt);
- maxAge = nbtt.getInteger("maxAge");
- age = nbtt.getInteger("age");
- }
-
- public void writeToNBT(NBTTagCompound nbtt) {
- super.writeToNBT(nbtt);
- nbtt.setInteger("maxAge", maxAge);
- nbtt.setInteger("age", age);
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f7/60c4ab1692b1001c19bf8a91ac37238b b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f7/60c4ab1692b1001c19bf8a91ac37238b
deleted file mode 100644
index e091b1d..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f7/60c4ab1692b1001c19bf8a91ac37238b
+++ /dev/null
@@ -1,83 +0,0 @@
-package ab.client.core.handler;
-
-import java.awt.Color;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.core.ClientHelper;
-import ab.common.item.equipment.armor.ItemNebulaArmor;
-import ab.common.item.equipment.armor.ItemNebulaHelm;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.ItemRenderer;
-import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.client.renderer.texture.TextureMap;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraftforge.client.event.RenderPlayerEvent;
-import vazkii.botania.api.item.IPhantomInkable;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class PlayerRendererHandler {
-
- @SubscribeEvent
- public void onPlayerRender(RenderPlayerEvent.Specials.Post event) {
- EntityPlayer player = event.entityPlayer;
- ItemStack item = player.getCurrentArmor(3);
- if(item != null && item.getItem() instanceof ItemNebulaHelm) {
- Item helm = player.getCurrentArmor(3).getItem();
- boolean hasPhantomInk = helm instanceof IPhantomInkable && ((IPhantomInkable)helm).hasPhantomInk(item);
- if(!hasPhantomInk && ((ItemNebulaHelm)helm).enableCosmicFace(item)) {
- float angelX = event.renderer.modelBipedMain.bipedHead.rotateAngleX * 180.0F / (float)Math.PI;
- float angelY = event.renderer.modelBipedMain.bipedHead.rotateAngleY * 180.0F / (float)Math.PI;
- GL11.glPushMatrix();
- if(player.isSneaking())
- GL11.glTranslatef(event.renderer.modelBipedMain.bipedHead.rotationPointX * 0.0625f, event.renderer.modelBipedMain.bipedHead.rotationPointY * 0.0625f, 0.0f);
- GL11.glRotatef(angelY, 0.0F, 1.0F, 0.0F);
- GL11.glRotatef(angelX, 1.0F, 0.0F, 0.0F);
- renderCosmicFace();
- GL11.glPopMatrix();
- }
- }
- }
-
- private void renderCosmicFace() {
- double worldTime = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
- GL11.glPushMatrix();
- GL11.glEnable(GL11.GL_TEXTURE_2D);
- GL11.glDisable(2884);
-
- GL11.glPushMatrix();
- GL11.glScalef(0.5f, 0.4f, 0.4f);
- GL11.glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
- GL11.glTranslatef(-0.5f, -0.8675f, 0.0f);
- GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
- ClientHelper.renderCosmicBackground();
- GL11.glPopMatrix();
-
- int light = 15728880;
- int lightmapX = light % 65536;
- int lightmapY = light / 65536;
- GL11.glEnable(3042);
- GL11.glBlendFunc(770, 771);
- OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
- (Minecraft.getMinecraft()).renderEngine.bindTexture(TextureMap.locationItemsTexture);
- GL11.glTranslatef(-0.2F, -0.35F, -0.25F);
- GL11.glScalef(0.4f, 0.4f, 0.4f);
- float f = ItemNebulaArmor.nebulaEyes.getMinU();
- float f1 = ItemNebulaArmor.nebulaEyes.getMaxU();
- float f2 = ItemNebulaArmor.nebulaEyes.getMinV();
- float f3 = ItemNebulaArmor.nebulaEyes.getMaxV();
- Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
- float r = color.getRed() / 510.0F;
- float g = color.getGreen() / 510.0F;
- float b = color.getBlue() / 510.0F;
- GL11.glColor4f(0.5f + r, 0.5f + g, 0.5f + b, 0.685f + (float)Math.sin(worldTime / 50.0D) * 0.175F);
- ItemRenderer.renderItemIn2D(Tessellator.instance, f1, f2, f, f3, ItemNebulaArmor.nebulaEyes.getIconWidth(), ItemNebulaArmor.nebulaEyes.getIconHeight(), 0.03125F);
- GL11.glDisable(3042);
- GL11.glEnable(32826);
- GL11.glPopMatrix();
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f8/3096384c64c1001c11e398ea97007cb4 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f8/3096384c64c1001c11e398ea97007cb4
new file mode 100644
index 0000000..cf3b210
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f8/3096384c64c1001c11e398ea97007cb4
@@ -0,0 +1,192 @@
+package ab.common.item.relic;
+
+import java.awt.Color;
+import java.util.List;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.common.core.handler.NetworkHandler;
+import ab.common.lib.register.ItemListAB;
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
+import net.minecraft.block.Block;
+import net.minecraft.client.renderer.texture.IIconRegister;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.MathHelper;
+import net.minecraft.util.StatCollector;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.api.mana.ManaItemHandler;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class ItemSphereNavigation extends ItemModRelic {
+
+ public static IIcon[] icons;
+ public static final int rangeSearch = 16;
+ public static final int maxCooldown = 158;
+ public static final int manaCost = 1750;
+
+ public ItemSphereNavigation() {
+ super("sphereNavigation");
+ }
+
+ public void registerIcons(IIconRegister ir) {
+ icons = new IIcon[5];
+ icons[0] = ir.registerIcon("ab:sphereNavigation");
+ icons[1] = ir.registerIcon("ab:sphereNavigation_hasblock");
+ icons[2] = ir.registerIcon("ab:sphereNavigation_nonBlock");
+ icons[3] = ir.registerIcon("ab:sphereNavigation_off");
+ icons[4] = ir.registerIcon("ab:sphereNavigation_on");
+ }
+
+ @SideOnly(Side.CLIENT)
+ public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean par4) {
+ addStringToTooltip(StatCollector.translateToLocal(stack.getItemDamage() == 0 ? "botaniamisc.active" : "botaniamisc.inactive"), list);
+ }
+
+ void addStringToTooltip(String s, List tooltip) {
+ tooltip.add(s.replaceAll("&", "\u00A7"));
+ }
+
+ public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
+ if(getFindBlock(stack) != null && player.isSneaking()) {
+ int dmg = stack.getItemDamage();
+ stack.setItemDamage((dmg ^ 0xFFFFFFFF) & 0x1);
+ world.playSoundAtEntity(player, "random.orb", 0.3F, 0.1F);
+ }
+ return stack;
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int pos, boolean equipped) {
+ super.onUpdate(stack, world, entity, pos, equipped);
+ if(entity instanceof EntityPlayer) {
+ EntityPlayer player = (EntityPlayer)entity;
+ if(!world.isRemote && stack.getItemDamage() == 0 && getFindBlock(stack) != null && canWork(stack) && ManaItemHandler.requestManaExactForTool(stack, player, manaCost, true)) {
+ setMaxTick(stack);
+ NetworkHandler.sendPacketToFindBlocks((EntityPlayerMP)player, getFindBlock(stack), getFindMeta(stack));
+ }
+ }
+ }
+
+ public static void findBlocks(World world, Block findBlock, int findMeta, EntityPlayer player) {
+ if(world.isRemote) {
+ ItemStack renderStack = null;
+ int maxFindedBlocks = 32;
+ int findedBlocks = 0;
+ label1703:
+ for(int y = -rangeSearch * 2; y < rangeSearch; y++) {
+ for(int x = -rangeSearch; x < rangeSearch; x++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks)) || world.rand.nextBoolean())
+ continue;
+ for(int z = -rangeSearch; z < rangeSearch; z++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks)) || world.rand.nextBoolean())
+ continue;
+ else if(findedBlocks >= maxFindedBlocks)
+ break label1703;
+ int posX = MathHelper.floor_double(player.posX) + x;
+ int posY = MathHelper.floor_double(player.posY) + y;
+ int posZ = MathHelper.floor_double(player.posZ) + z;
+ if(posY < 0)
+ continue;
+ Block block = world.getBlock(posX, posY, posZ);
+ if(!Block.isEqualTo(block, findBlock))
+ continue;
+ int meta = world.getBlockMetadata(posX, posY, posZ);
+ if(meta == findMeta) {
+ if(renderStack == null)
+ renderStack = getRenderStackForBlock(world, block, meta, posX, posY, posZ);
+ findedBlocks++;
+ float maxAge = 2.7f + (0.5f * (float)(Math.random()));
+ Botania.proxy.setWispFXDepthTest(false);
+ Botania.proxy.setWispFXDistanceLimit(false);
+ float far = 120.0f - (((Math.abs(x) + Math.min(rangeSearch, Math.abs(y)) + Math.abs(z)) / (rangeSearch * 4.0f)) * 120.0f);
+ if(far <= 40)
+ far *= 0.15f;
+ Color color = new Color(Color.HSBtoRGB(far / 360.0f, 0.9f + (float)(Math.random() * 0.1f), 1.0f));
+ for(int i = 0; i < 11; i++)
+ Botania.proxy.wispFX(world, posX + 0.5f + (Math.random() - 0.5f), posY + 0.5f + (Math.random() - 0.5f), posZ + 0.5f + (Math.random() - 0.5f), color.getRed() / 100.0f, color.getGreen() / 100.0f, color.getBlue() / 100.0f, 0.3f + (float)(Math.random() * 0.25f), 0.0f, maxAge);
+ Botania.proxy.setWispFXDistanceLimit(true);
+ Botania.proxy.setWispFXDepthTest(true);
+ }
+ }
+ }
+ }
+ if(renderStack != null)
+ ItemsRemainingRender.set(renderStack, "íàéäåíî: " + findedBlocks);
+ }
+ }
+
+ public static ItemStack getRenderStackForBlock(World world, Block block, int meta, int x, int y, int z) {
+ if(block != null) {
+ Item item = Item.getItemFromBlock(block);
+ if(item != null) {
+ ItemStack findStack = new ItemStack(block, 1, meta);
+ if(findStack != null)
+ return findStack;
+ } else {
+ Item item1 = block.getItem(world, x, y, z);
+ if(item1 != null) {
+ ItemStack findStack = new ItemStack(item1, 1, meta);
+ if(findStack != null)
+ return findStack;
+ }
+ }
+ }
+ return null;
+ }
+
+ public boolean onItemUse(ItemStack stack, EntityPlayer p, World world, int x, int y, int z, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
+ if(p.isSneaking()) {
+ Block block = world.getBlock(x, y, z);
+ if(block != null) {
+ int meta = world.getBlockMetadata(x, y, z);
+ ItemStack findStack = getRenderStackForBlock(world, block, meta, x, y, z);
+ if(findStack != null) {
+ setFindBlock(stack, block, meta);
+ if(world.isRemote)
+ ItemsRemainingRender.set(findStack, findStack.getDisplayName());
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public boolean canWork(ItemStack stack) {
+ int tick = ItemNBTHelper.getInt(stack, "cooldown", 0);
+ if(tick == 0)
+ return true;
+ else if(tick > 0)
+ ItemNBTHelper.setInt(stack, "cooldown", tick - 1);
+ return false;
+ }
+
+ public void setMaxTick(ItemStack stack) {
+ ItemNBTHelper.setInt(stack, "cooldown", maxCooldown);
+ }
+
+ public static void setFindBlock(ItemStack stack, Block block, int meta) {
+ ItemNBTHelper.setInt(stack, "findBlockID", Block.getIdFromBlock(block));
+ ItemNBTHelper.setInt(stack, "findBlockMeta", meta);
+ }
+
+ public static Block getFindBlock(ItemStack stack) {
+ int blockID = ItemNBTHelper.getInt(stack, "findBlockID", 0);
+ if(blockID == 0)
+ return null;
+ else
+ return Block.getBlockById(blockID);
+ }
+
+ public static int getFindMeta(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "findBlockMeta", -1);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f8/b0b2495277be001c1965b122d2f8f403 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f8/b0b2495277be001c1965b122d2f8f403
new file mode 100644
index 0000000..e69de29
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f8/b0d00ccab6bc001c1a9f99005529f322 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f8/b0d00ccab6bc001c1a9f99005529f322
new file mode 100644
index 0000000..f193f73
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f8/b0d00ccab6bc001c1a9f99005529f322
@@ -0,0 +1,109 @@
+package ab.client.render.tile;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Random;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.client.model.ModelNidavellirForge;
+import ab.common.block.tile.TileNidavellirForge;
+import net.minecraft.client.Minecraft;
+import net.minecraft.client.renderer.OpenGlHelper;
+import net.minecraft.client.renderer.Tessellator;
+import net.minecraft.client.renderer.entity.Render;
+import net.minecraft.client.renderer.entity.RenderManager;
+import net.minecraft.client.renderer.texture.TextureMap;
+import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.ResourceLocation;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.client.core.helper.ShaderHelper;
+import vazkii.botania.common.block.mana.BlockTerraPlate;
+
+public class RenderTileNidavellirForge extends TileEntitySpecialRenderer {
+
+ private List entityList = null;
+ private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/nidavellirForge.png");
+ private static final ModelNidavellirForge model = new ModelNidavellirForge();
+
+ public void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float f) {
+ TileNidavellirForge tile = (TileNidavellirForge)tileentity;
+ double worldTime = 0.0D;
+ int meta = 0;
+ if(tileentity != null && tileentity.getWorldObj() != null) {
+ worldTime = ClientTickHandler.ticksInGame + f + (new Random((tileentity.xCoord ^ tileentity.yCoord ^ tileentity.zCoord))).nextInt(360);
+ meta = tileentity.getWorldObj().getBlockMetadata(tileentity.xCoord, tileentity.yCoord, tileentity.zCoord);
+ }
+ float indetY = (float)(Math.sin(worldTime / 18.0D) / 24.0D);
+ GL11.glPushMatrix();
+ GL11.glEnable(32826);
+ GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
+ GL11.glTranslated(x, y, z);
+ GL11.glTranslatef(0.5f, 1.5f, 0.5f);
+ GL11.glRotatef(180.0f, 1.0f, 0.0f, 1.0f);
+ float angelForSide = 0.0f;
+ System.out.println(meta);
+ switch(meta) {
+ case 1: angelForSide = 90.0f;
+ break;
+ case 4: angelForSide = 270.0f;
+ break;
+ case 8: angelForSide = 180.0f;
+ break;
+ }
+ GL11.glRotatef(angelForSide, 0.0f, 1.0f, 0.0f);
+ Minecraft.getMinecraft().renderEngine.bindTexture(texture);
+ model.renderBottom();
+ GL11.glTranslatef(0.0f, indetY, 0.0f);
+ model.renderTop();
+ GL11.glEnable(32826);
+ GL11.glPopMatrix();
+ if(entityList == null) {
+ List list = new ArrayList();
+ for(int i = 0; i < tile.getSizeInventory(); i++) {
+ list.add(new EntityItem(tile.getWorldObj(), tile.xCoord, tile.yCoord, tile.zCoord));
+ }
+ entityList = list;
+ }
+ GL11.glPushMatrix();
+ GL11.glTranslated(x + 0.5f, y + 0.675f - indetY, z + 0.5f);
+ GL11.glScalef(0.2F, 0.225F, 0.225F);
+ for(int i = 1; i < entityList.size(); i++) {
+ GL11.glPushMatrix();
+ ItemStack stack = tile.getStackInSlot(i);
+ if(stack != null) {
+ switch(i) {
+ case 1:
+ GL11.glTranslated(0.15f, 0.0f, 0.0f);
+ break;
+ case 2:
+ GL11.glTranslated(-0.15f, 0.0f, -0.15f);
+ break;
+ case 3:
+ GL11.glTranslated(-0.15f, 0.0f, 0.15f);
+ break;
+ }
+ entityList.get(i).setEntityItemStack(stack);
+ entityList.get(i).age = ClientTickHandler.ticksInGame;
+ ((Render)RenderManager.instance.entityRenderMap.get(EntityItem.class)).doRender((Entity)entityList.get(i), 0.0D, 0.0D, 0.0D, 1.0F, f);
+ }
+ GL11.glPopMatrix();
+ }
+ GL11.glPopMatrix();
+ if(tile.getStackInSlot(0) != null) {
+ GL11.glPushMatrix();
+ GL11.glTranslated(x + 0.5, y + 0.915f - indetY, z + 0.5);
+ GL11.glScalef(0.45f, 0.45f, 0.45f);
+ entityList.get(0).setEntityItemStack(tile.getStackInSlot(0));
+ entityList.get(0).age = ClientTickHandler.ticksInGame;
+ ((Render)RenderManager.instance.entityRenderMap.get(EntityItem.class)).doRender((Entity)entityList.get(0), 0.0D, 0.0D, 0.0D, 1.0F, f);
+ GL11.glPopMatrix();
+ }
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f9/1089c6cb60c1001c11e398ea97007cb4 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f9/1089c6cb60c1001c11e398ea97007cb4
new file mode 100644
index 0000000..d10ca8d
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f9/1089c6cb60c1001c11e398ea97007cb4
@@ -0,0 +1,56 @@
+package ab.client.render.item;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.common.item.relic.ItemSphereNavigation;
+import net.minecraft.client.Minecraft;
+import net.minecraft.client.renderer.ItemRenderer;
+import net.minecraft.client.renderer.OpenGlHelper;
+import net.minecraft.client.renderer.Tessellator;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.IIcon;
+import net.minecraftforge.client.IItemRenderer;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class RenderItemSphereNavigation implements IItemRenderer {
+
+ public boolean handleRenderType(ItemStack item, IItemRenderer.ItemRenderType type) {
+ return true;
+ }
+
+ public boolean shouldUseRenderHelper(IItemRenderer.ItemRenderType type, ItemStack item, IItemRenderer.ItemRendererHelper helper) {
+ return (helper == IItemRenderer.ItemRendererHelper.ENTITY_ROTATION || helper == IItemRenderer.ItemRendererHelper.ENTITY_BOBBING);
+ }
+
+ public void renderItem(IItemRenderer.ItemRenderType type, ItemStack stack, Object... data) {
+ GL11.glPushMatrix();
+ if(type == type.INVENTORY) {
+ GL11.glScalef(16, 16, 16);
+ GL11.glRotatef(180, 0, 0, 1);
+ GL11.glTranslatef(-1.0f, -1.0f, 0);
+ } else if(type == type.ENTITY) {
+ GL11.glTranslatef(-0.5F, 0.0F, 0.0F);
+ if(stack.isOnItemFrame())
+ GL11.glTranslatef(0.0F, -0.3F, 0.01F);
+ }
+ GL11.glEnable(GL11.GL_BLEND);
+ OpenGlHelper.glBlendFunc(770, 771, 1, 0);
+ GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
+ IIcon icon = ItemSphereNavigation.icons[0];
+ ItemRenderer.renderItemIn2D(Tessellator.instance, icon.getMaxU(), icon.getMinV(), icon.getMinU(), icon.getMaxV(), icon.getIconWidth(), icon.getIconHeight(), 0.0625F);
+ IIcon iconEnable = ItemSphereNavigation.icons[stack.getItemDamage() == 0 ? 4 : 3];
+ ItemRenderer.renderItemIn2D(Tessellator.instance, iconEnable.getMaxU(), iconEnable.getMinV(), iconEnable.getMinU(), iconEnable.getMaxV(), iconEnable.getIconWidth(), iconEnable.getIconHeight(), 0.0625F);
+ double time = (double) Minecraft.getSystemTime();
+ if(type != type.INVENTORY) {
+ GL11.glScalef(1.0f, 1.0f, 1.05f);
+ GL11.glTranslated(0.0f, 0.0f, 0.0015625f);
+ }
+ IIcon iconBlock = ItemSphereNavigation.icons[ItemSphereNavigation.getFindBlock(stack) != null ? 1 : 2];
+ if(ItemSphereNavigation.getFindBlock(stack) != null) {
+ GL11.glTranslated(0, Math.cos(time / 650.0) * 0.0075 + 0.0625f, 0.0f);
+ }
+ ItemRenderer.renderItemIn2D(Tessellator.instance, iconBlock.getMaxU(), iconBlock.getMinV(), iconBlock.getMinU(), iconBlock.getMaxV(), iconBlock.getIconWidth(), iconBlock.getIconHeight(), 0.0625F);
+ GL11.glDisable(GL11.GL_BLEND);
+ GL11.glPopMatrix();
+ }
+}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f9/80bd14a206ad001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f9/80bd14a206ad001c1d59e42be7477558
deleted file mode 100644
index 0e00c6a..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/f9/80bd14a206ad001c1d59e42be7477558
+++ /dev/null
@@ -1,96 +0,0 @@
-package ab.client.render.tile;
-
-import java.util.Random;
-
-import org.lwjgl.opengl.GL11;
-
-import ab.client.model.ModelDiceFate;
-import ab.common.block.tile.TileGameBoard;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.renderer.entity.RenderManager;
-import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.ResourceLocation;
-import vazkii.botania.client.core.handler.ClientTickHandler;
-
-public class RenderTileGameBoard extends TileEntitySpecialRenderer {
-
- private static final ModelDiceFate model = new ModelDiceFate();
- private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/gameDice.png");
- private static final ResourceLocation textureEnemy = new ResourceLocation("ab:textures/model/gameDice_enemy.png");
-
- public void renderTileEntityAt(TileEntity tile, double x, double y, double z, float ticks) {
- double time = (tile.getWorldObj() == null) ? 0.0D : (ClientTickHandler.ticksInGame + ticks);
- if(tile != null)
- time += (new Random((tile.xCoord ^ tile.yCoord ^ tile.zCoord))).nextInt(360);
- TileGameBoard board = (TileGameBoard)tile;
- GL11.glEnable(3042);
- GL11.glEnable(32826);
- GL11.glBlendFunc(770, 771);
- GL11.glPushMatrix();
- GL11.glTranslated(x + 0.5f, y, z + 0.5f);
- GL11.glRotatef(90.0f - RenderManager.instance.playerViewY, 0.0f, 1.0f, 0.0f);
- for(int i = 0; i < board.slotChance.length; i++) {
- if(board.slotChance[i] == 0)
- continue;
- time += i * 83.78f;
- GL11.glPushMatrix();
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- float posX = 0.0f;
- float posZ = 0.0f;
- float dropAnim = (1.0f - (Math.min(120.0f, (board.clientTick[i] * board.clientTick[i] * 1.25f) + ticks) / 120.0f));
- dropAnim = Math.min(1.0f, Math.max(dropAnim, 0));
- float alpha = (float)Math.cos(dropAnim);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, alpha);
- switch(i) {
- case 0:
- posX = 0.16f + 0.08f * dropAnim;
- posZ = 0.16f + 0.08f * dropAnim;
- break;
- case 1:
- posX = -0.16f - 0.08f * dropAnim;
- posZ = 0.16f + 0.08f * dropAnim;
- break;
- case 2:
- posX = 0.16f + 0.08f * dropAnim;
- posZ = -0.16f - 0.08f * dropAnim;
- break;
- case 3:
- posX = -0.16f - 0.08f * dropAnim;
- posZ = -0.16f - 0.08f * dropAnim;
- break;
- }
- GL11.glTranslated(posX, 0.02f + Math.sin(time / 12.0D) / 48.0D + (0.28f * dropAnim), posZ);
- GL11.glScalef(0.25f, 0.25f, 0.25f);
- Minecraft.getMinecraft().renderEngine.bindTexture(i > 1 ? textureEnemy : texture);
- float dropAngel = 70.0f * dropAnim;
- switch(board.slotChance[i]) {
- case 1:
- model.render(180.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 2:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 3:
- model.render(90.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 4:
- model.render(270.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- case 5:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 270.0f);
- break;
- case 6:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 90.0f);
- break;
- default:
- model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
- break;
- }
- GL11.glPopMatrix();
- }
- GL11.glPopMatrix();
- GL11.glEnable(32826);
- GL11.glDisable(3042);
- }
-}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/fa/00994b1362c1001c11e398ea97007cb4 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/fa/00994b1362c1001c11e398ea97007cb4
new file mode 100644
index 0000000..1796ed2
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/fa/00994b1362c1001c11e398ea97007cb4
@@ -0,0 +1,179 @@
+package ab.common.item.relic;
+
+import java.awt.Color;
+
+import ab.client.core.handler.ItemsRemainingRender;
+import ab.common.core.handler.NetworkHandler;
+import ab.common.lib.register.ItemListAB;
+import net.minecraft.block.Block;
+import net.minecraft.client.renderer.texture.IIconRegister;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.MathHelper;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.api.mana.ManaItemHandler;
+import vazkii.botania.client.core.handler.ClientTickHandler;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.core.helper.ItemNBTHelper;
+
+public class ItemSphereNavigation extends ItemModRelic {
+
+ public static IIcon[] icons;
+ public static final int rangeSearch = 16;
+ public static final int maxCooldown = 112;
+ public static final int manaCost = 1750;
+
+ public ItemSphereNavigation() {
+ super("sphereNavigation");
+ }
+
+ public void registerIcons(IIconRegister ir) {
+ icons = new IIcon[5];
+ icons[0] = ir.registerIcon("ab:sphereNavigation");
+ icons[1] = ir.registerIcon("ab:sphereNavigation_hasblock");
+ icons[2] = ir.registerIcon("ab:sphereNavigation_nonBlock");
+ icons[3] = ir.registerIcon("ab:sphereNavigation_off");
+ icons[4] = ir.registerIcon("ab:sphereNavigation_on");
+ }
+
+ public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
+ if(getFindBlock(stack) != null && player.isSneaking()) {
+ int dmg = stack.getItemDamage();
+ stack.setItemDamage((dmg ^ 0xFFFFFFFF) & 0x1);
+ world.playSoundAtEntity(player, "random.orb", 0.3F, 0.1F);
+ }
+ return stack;
+ }
+
+ public void onUpdate(ItemStack stack, World world, Entity entity, int pos, boolean equipped) {
+ super.onUpdate(stack, world, entity, pos, equipped);
+ if(entity instanceof EntityPlayer) {
+ EntityPlayer player = (EntityPlayer)entity;
+ if(!world.isRemote && stack.getItemDamage() == 0 && getFindBlock(stack) != null && canWork(stack) && ManaItemHandler.requestManaExactForTool(stack, player, manaCost, true)) {
+ setMaxTick(stack);
+ NetworkHandler.sendPacketToFindBlocks((EntityPlayerMP)player, getFindBlock(stack), getFindMeta(stack));
+ }
+ }
+ }
+
+ public static void findBlocks(World world, Block findBlock, int findMeta, EntityPlayer player) {
+ if(world.isRemote) {
+ ItemStack renderStack = null;
+ int maxFindedBlocks = 32;
+ int findedBlocks = 0;
+ label1703:
+ for(int y = -rangeSearch * 2; y < rangeSearch; y++) {
+ for(int x = -rangeSearch; x < rangeSearch; x++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks)) || world.rand.nextBoolean())
+ continue;
+ for(int z = -rangeSearch; z < rangeSearch; z++) {
+ if(!(world.rand.nextInt(maxFindedBlocks) < (maxFindedBlocks - findedBlocks)) || world.rand.nextBoolean())
+ continue;
+ else if(findedBlocks >= maxFindedBlocks)
+ break label1703;
+ int posX = MathHelper.floor_double(player.posX) + x;
+ int posY = MathHelper.floor_double(player.posY) + y;
+ int posZ = MathHelper.floor_double(player.posZ) + z;
+ if(posY < 0)
+ continue;
+ Block block = world.getBlock(posX, posY, posZ);
+ if(!Block.isEqualTo(block, findBlock))
+ continue;
+ int meta = world.getBlockMetadata(posX, posY, posZ);
+ if(meta == findMeta) {
+ if(renderStack == null)
+ renderStack = getRenderStackForBlock(world, block, meta, posX, posY, posZ);
+ findedBlocks++;
+ float maxAge = 2.7f + (0.5f * (float)(Math.random()));
+ Botania.proxy.setWispFXDepthTest(false);
+ Botania.proxy.setWispFXDistanceLimit(false);
+ float far = 120.0f - (((Math.abs(x) + Math.min(rangeSearch, Math.abs(y)) + Math.abs(z)) / (rangeSearch * 4.0f)) * 120.0f);
+ if(far <= 40)
+ far *= 0.15f;
+ Color color = new Color(Color.HSBtoRGB(far / 360.0f, 0.9f + (float)(Math.random() * 0.1f), 1.0f));
+ for(int i = 0; i < 11; i++)
+ Botania.proxy.wispFX(world, posX + 0.5f + (Math.random() - 0.5f), posY + 0.5f + (Math.random() - 0.5f), posZ + 0.5f + (Math.random() - 0.5f), color.getRed() / 100.0f, color.getGreen() / 100.0f, color.getBlue() / 100.0f, 0.3f + (float)(Math.random() * 0.25f), 0.0f, maxAge);
+ Botania.proxy.setWispFXDistanceLimit(true);
+ Botania.proxy.setWispFXDepthTest(true);
+ }
+ }
+ }
+ }
+ if(renderStack != null)
+ ItemsRemainingRender.set(renderStack, "íàéäåíî: " + findedBlocks);
+ }
+ }
+
+ public static ItemStack getRenderStackForBlock(World world, Block block, int meta, int x, int y, int z) {
+ if(block != null) {
+ Item item = Item.getItemFromBlock(block);
+ if(item != null) {
+ ItemStack findStack = new ItemStack(block, 1, meta);
+ if(findStack != null)
+ return findStack;
+ } else {
+ Item item1 = block.getItem(world, x, y, z);
+ if(item1 != null) {
+ ItemStack findStack = new ItemStack(item1, 1, meta);
+ if(findStack != null)
+ return findStack;
+ }
+ }
+ }
+ return null;
+ }
+
+ public boolean onItemUse(ItemStack stack, EntityPlayer p, World world, int x, int y, int z, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
+ if(p.isSneaking()) {
+ Block block = world.getBlock(x, y, z);
+ if(block != null) {
+ int meta = world.getBlockMetadata(x, y, z);
+ ItemStack findStack = getRenderStackForBlock(world, block, meta, x, y, z);
+ if(findStack != null) {
+ setFindBlock(stack, block, meta);
+ if(world.isRemote)
+ ItemsRemainingRender.set(findStack, findStack.getDisplayName());
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public boolean canWork(ItemStack stack) {
+ int tick = ItemNBTHelper.getInt(stack, "cooldown", 0);
+ if(tick == 0)
+ return true;
+ else if(tick > 0)
+ ItemNBTHelper.setInt(stack, "cooldown", tick - 1);
+ return false;
+ }
+
+ public void setMaxTick(ItemStack stack) {
+ ItemNBTHelper.setInt(stack, "cooldown", maxCooldown);
+ }
+
+ public static void setFindBlock(ItemStack stack, Block block, int meta) {
+ ItemNBTHelper.setInt(stack, "findBlockID", Block.getIdFromBlock(block));
+ ItemNBTHelper.setInt(stack, "findBlockMeta", meta);
+ }
+
+ public static Block getFindBlock(ItemStack stack) {
+ int blockID = ItemNBTHelper.getInt(stack, "findBlockID", 0);
+ if(blockID == 0)
+ return null;
+ else
+ return Block.getBlockById(blockID);
+ }
+
+ public static int getFindMeta(ItemStack stack) {
+ return ItemNBTHelper.getInt(stack, "findBlockMeta", -1);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/fb/b093070c8fc1001c11e398ea97007cb4 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/fb/b093070c8fc1001c11e398ea97007cb4
new file mode 100644
index 0000000..69cd921
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/fb/b093070c8fc1001c11e398ea97007cb4
@@ -0,0 +1,8 @@
+package ab.api;
+
+public interface IEngeneerLens {
+
+ public int getCooldown();
+
+
+}
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/fb/c083190a78be001c1965b122d2f8f403 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/fb/c083190a78be001c1965b122d2f8f403
new file mode 100644
index 0000000..69c3911
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/fb/c083190a78be001c1965b122d2f8f403
@@ -0,0 +1,87 @@
+package ab.client.core.proxy;
+
+import ab.client.core.handler.BoundRenderHandler;
+import ab.client.core.handler.ClientHandler;
+import ab.client.core.handler.HudRenderHandler;
+import ab.client.core.handler.PlayerRendererHandler;
+import ab.client.render.block.*;
+import ab.client.render.entity.*;
+import ab.client.render.item.RenderItemAntigravityCharm;
+import ab.client.render.tile.*;
+import ab.common.block.tile.*;
+import ab.common.core.handler.ConfigABHandler;
+import ab.common.core.proxy.CommonProxy;
+import ab.common.entity.*;
+import ab.common.lib.register.BlockListAB;
+import ab.common.lib.register.ItemListAB;
+import cpw.mods.fml.client.registry.ClientRegistry;
+import cpw.mods.fml.client.registry.RenderingRegistry;
+import cpw.mods.fml.common.FMLCommonHandler;
+import cpw.mods.fml.common.event.FMLInitializationEvent;
+import cpw.mods.fml.common.event.FMLPostInitializationEvent;
+import cpw.mods.fml.common.event.FMLPreInitializationEvent;
+import net.minecraft.client.renderer.entity.Render;
+import net.minecraft.client.renderer.entity.RenderSnowball;
+import net.minecraft.item.ItemStack;
+import net.minecraftforge.client.MinecraftForgeClient;
+import net.minecraftforge.common.MinecraftForge;
+import vazkii.botania.common.Botania;
+import vazkii.botania.common.item.ModItems;
+
+public class ClientProxy extends CommonProxy {
+
+ public void preInit(FMLPreInitializationEvent event) {
+ super.preInit(event);
+ }
+
+ public void init(FMLInitializationEvent event) {
+ super.init(event);
+
+ FMLCommonHandler.instance().bus().register(new ClientHandler());
+ MinecraftForge.EVENT_BUS.register(new HudRenderHandler());
+ MinecraftForge.EVENT_BUS.register(new PlayerRendererHandler());
+ MinecraftForge.EVENT_BUS.register(new BoundRenderHandler());
+
+ if(ConfigABHandler.hasAbPlate)
+ ClientRegistry.bindTileEntitySpecialRenderer(TileNidavellirForge.class, new RenderTileNidavellirForge());
+ ClientRegistry.bindTileEntitySpecialRenderer(TileABSpreader.class, new RenderTileABSpreader());
+ ClientRegistry.bindTileEntitySpecialRenderer(TileManaContainer.class, new RenderTileManaContainer());
+ ClientRegistry.bindTileEntitySpecialRenderer(TileManaCrystalCube.class, new RenderTileManaCrystalCube());
+ if(ConfigABHandler.hasManaCharger)
+ ClientRegistry.bindTileEntitySpecialRenderer(TileManaCharger.class, new RenderTileManaCharger());
+ ClientRegistry.bindTileEntitySpecialRenderer(TileEngineerHopper.class, new RenderTileEngineerHopper());
+ ClientRegistry.bindTileEntitySpecialRenderer(TileBoardFate.class, new RenderTileBoardFate());
+ ClientRegistry.bindTileEntitySpecialRenderer(TileGameBoard.class, new RenderTileGameBoard());
+ if(Botania.thaumcraftLoaded && ConfigABHandler.hasAutoThaum)
+ ClientRegistry.bindTileEntitySpecialRenderer(TileMagicCraftCrate.class, new RenderTileMagicCraftingCrate());
+
+ BlockListAB.blockABSpreaderRI = RenderingRegistry.getNextAvailableRenderId();
+ BlockListAB.blockManaContainerRI = RenderingRegistry.getNextAvailableRenderId();
+ BlockListAB.blockManaCrystalCubeRI = RenderingRegistry.getNextAvailableRenderId();
+ BlockListAB.blockManaChargerRI = RenderingRegistry.getNextAvailableRenderId();
+ BlockListAB.blockEngineerHopperRI = RenderingRegistry.getNextAvailableRenderId();
+ BlockListAB.blockABPlateRI = RenderingRegistry.getNextAvailableRenderId();
+
+ RenderingRegistry.registerBlockHandler(new RenderBlockABSpreader());
+ RenderingRegistry.registerBlockHandler(new RenderBlockManaContainer());
+ RenderingRegistry.registerBlockHandler(new RenderBlockManaCrystalCube());
+ RenderingRegistry.registerBlockHandler(new RenderBlockManaCharger());
+ RenderingRegistry.registerBlockHandler(new RenderBlockEngineerHopper());
+ RenderingRegistry.registerBlockHandler(new RenderBlockNidavellirForge());
+
+ RenderingRegistry.registerEntityRenderingHandler(EntityAdvancedSpark.class, new RenderEntityAdvancedSpark());
+ RenderingRegistry.registerEntityRenderingHandler(EntityNebulaBlaze.class, new EntityNullRender());
+ RenderingRegistry.registerEntityRenderingHandler(EntityManaVine.class, new EntityNullRender());
+ RenderingRegistry.registerEntityRenderingHandler(EntityAlphirinePortal.class, new RenderEntityAlphirinePortal());
+ RenderingRegistry.registerEntityRenderingHandler(EntitySword.class, new EntityNullRender());
+ RenderingRegistry.registerEntityRenderingHandler(EntitySeed.class, new EntityNullRender());
+
+ MinecraftForgeClient.registerItemRenderer(ItemListAB.itemAntigravityCharm, new RenderItemAntigravityCharm());
+ }
+
+ public void postInit(FMLPostInitializationEvent event) {
+ super.postInit(event);
+// ItemStack crashGameForRender = null;
+// System.out.println(crashGameForRender.stackSize);
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/fd/80f42bba04ad001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/fd/80f42bba04ad001c1d59e42be7477558
deleted file mode 100644
index bf50d0f..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/fd/80f42bba04ad001c1d59e42be7477558
+++ /dev/null
@@ -1,211 +0,0 @@
-package ab.common.block.tile;
-
-import java.util.List;
-
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.ChatComponentTranslation;
-import net.minecraft.util.ChatStyle;
-import net.minecraft.util.EnumChatFormatting;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-import vazkii.botania.common.block.tile.TileMod;
-
-public class TileGameBoard extends TileMod {
-
- public String[] playersName = new String[] { "", "" };
- public byte[] slotChance = new byte[] { 0, 0, 0, 0 };
- protected int botTick = -1;
- public int endGameTick = -1;
- protected boolean requestUpdate;
- public boolean isSingleGame = true;
- public int clientTick[] = new int[] { 0, 0, 0, 0 };
-
- public void updateEntity() {
- if(botTick > 0)
- botTick--;
- if(endGameTick > 0)
- endGameTick--;
- if(!worldObj.isRemote)
- updateServer();
- else
- updateAnimationTicks();
- }
-
- public void updateAnimationTicks() {
- for(int i = 0; i < slotChance.length; i++)
- if(slotChance[i] > 0)
- clientTick[i]++;
- else
- clientTick[i] = 0;
- }
-
- protected void updateServer() {
- if(hasGame() && endGameTick == 0)
- finishGame();
- if(requestUpdate)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- boolean hasUpdate = false;
- if(isSingleGame) {
- if(botTick == 0 && hasGame()) {
- for(int i = 2; i < 4; i++) {
- if(slotChance[i] == 0) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = -1;
- hasUpdate = true;
- break;
- }
- }
- }
- } else {
- if(botTick == 0 && hasGame())
- endGameTick = 0;
- }
- requestUpdate = hasUpdate;
- }
-
- public void setPlayer(EntityPlayer player) {
- if(isSingleGame) {
- playersName[0] = player.getCommandSenderName();
- playersName[1] = "";
- requestUpdate = true;
- botTick = 8;
- } else {
- if(playersName[0].isEmpty())
- playersName[0] = player.getCommandSenderName();
- else if(!playersName[0].equals(player.getCommandSenderName()))
- playersName[1] = player.getCommandSenderName();
- requestUpdate = true;
- }
- }
-
- public boolean dropDice(EntityPlayer player) {
- if(isSingleGame) {
- if(player.getCommandSenderName().equals(playersName[0]) && botTick == -1) {
- boolean isLastDice = false;
- boolean hasDrop = false;
- for(int i = 0; i < 2; i++) {
- if(slotChance[i] == 0) {
- hasDrop = true;
- if(!worldObj.isRemote) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = 18;
- requestUpdate = true;
- if(i == 1)
- isLastDice = true;
- }
- break;
- }
- }
- if(isLastDice)
- endGameTick = 28;
- return hasDrop;
- }
- } else {
- for(int i = 0; i < playersName.length; i++) {
- if(player.getCommandSenderName().equals(playersName[i])) {
- boolean hasDrop = false;
- for(int j = i * 2; j < (i + 1) * 2; j++) {
- if(slotChance[j] == 0) {
- hasDrop = true;
- if(!worldObj.isRemote) {
- slotChance[j] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = 1200;
- if(hasFullDice())
- endGameTick = 28;
- requestUpdate = true;
- }
- break;
- }
- }
- return hasDrop;
- }
- }
- }
- return false;
- }
-
- public boolean hasFullDice() {
- boolean hasFull = false;
- for(int i = 0; i < slotChance.length; i++) {
- if(!(slotChance[i] > 0))
- return false;
- hasFull = slotChance[i] > 0;
- }
- return hasFull;
- }
-
- public boolean hasGame() {
- if(isSingleGame)
- return !playersName[0].isEmpty();
- else
- for(int i = 0; i < playersName.length; i++)
- if(!playersName[i].isEmpty())
- return true;
- return false;
- }
-
- public void finishGame() {
- if(worldObj.isRemote)
- return;
- if(isSingleGame) {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won");
- else if((slotChance[0] + slotChance[1]) == (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " not win");
- else
- sendNearMessage(playersName[0] + " you Lose!");
- resetGame();
- } else {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won!");
- else if((slotChance[0] + slotChance[1]) == (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " " + playersName[1] + "we are not win");
- else
- sendNearMessage(playersName[1] + " you Won!");
- resetGame();
- }
- }
-
- public void sendNearMessage(String text) {
- List players = this.worldObj.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(this.xCoord, this.yCoord, this.zCoord, (this.xCoord + 1), (this.yCoord + 1), (this.zCoord + 1)).expand(3.5f, 3.5f, 3.5f));
- for(EntityPlayer player : players) {
- if(player != null)
- player.addChatMessage((new ChatComponentTranslation(text, new Object[] {})).setChatStyle((new ChatStyle()).setColor(EnumChatFormatting.DARK_GREEN)));
- }
- }
-
- public void resetGame() {
- playersName[0] = "";
- playersName[1] = "";
- for(int i = 0; i < slotChance.length; i++)
- slotChance[i] = 0;
- botTick = -1;
- endGameTick = -1;
- requestUpdate = true;
- }
-
- public void writeCustomNBT(NBTTagCompound cmp) {
- super.writeCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- cmp.setString("playerName" + i, playersName[i]);
- cmp.setByteArray("slotChance", slotChance);
- cmp.setInteger("botTick", botTick);
- cmp.setInteger("endGameTick", endGameTick);
- cmp.setBoolean("requestUpdate", requestUpdate);
- cmp.setBoolean("isSingleGame", isSingleGame);
- }
-
- public void readCustomNBT(NBTTagCompound cmp) {
- super.readCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- playersName[i] = cmp.getString("playerName" + i);
- botTick = cmp.getInteger("botTick");
- endGameTick = cmp.getInteger("endGameTick");
- slotChance = cmp.getByteArray("slotChance");
- requestUpdate = cmp.getBoolean("requestUpdate");
- isSingleGame = cmp.getBoolean("isSingleGame");
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/fe/10141f27e1ac001c1d59e42be7477558 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/fe/10141f27e1ac001c1d59e42be7477558
deleted file mode 100644
index c5e8677..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/fe/10141f27e1ac001c1d59e42be7477558
+++ /dev/null
@@ -1,165 +0,0 @@
-package ab.common.block.tile;
-
-import java.util.List;
-
-import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.ChatComponentTranslation;
-import net.minecraft.util.ChatStyle;
-import net.minecraft.util.EnumChatFormatting;
-import vazkii.botania.api.internal.VanillaPacketDispatcher;
-
-public class TileGameBoard extends TileInventory {
-
- protected String[] playersName = new String[] { "", "" };
- public byte[] slotChance = new byte[] { 0, 0, 0, 0 };
- protected int botTick = -1;
- public int endGameTick = -1;
- protected boolean requestUpdate;
- public boolean isSingleGame = true;
- public int clientTick[] = new int[] { 0, 0, 0, 0};
-
- public void updateEntity() {
- if(botTick > 0)
- botTick--;
- if(endGameTick > 0)
- endGameTick--;
- if(!worldObj.isRemote)
- updateServer();
- else
- updateClient();
- }
-
- protected void updateClient() {
- for(int i = 0; i < slotChance.length; i++)
- if(slotChance[i] > 0)
- clientTick[i]++;
- else
- clientTick[i] = 0;
- }
-
- protected void updateServer() {
- if(requestUpdate)
- VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- boolean hasUpdate = false;
- if(isSingleGame && botTick == 0 && hasGame()) {
- for(int i = 2; i < 4; i++) {
- if(slotChance[i] == 0) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = -1;
- hasUpdate = true;
- break;
- }
- }
- }
- if(hasGame() && endGameTick == 0)
- finishGame();
- requestUpdate = hasUpdate;
- }
-
- public void setPlayer(EntityPlayer player) {
- if(isSingleGame) {
- playersName[0] = player.getCommandSenderName();
- playersName[1] = "";
- requestUpdate = true;
- botTick = 8;
- }
- }
-
- public boolean dropDice(EntityPlayer player) {
- if(isSingleGame) {
- System.out.println(player.getCommandSenderName() == playersName[0] && botTick <= 0);
- if(player.getCommandSenderName() == playersName[0] && botTick <= 0) {
- boolean isLastDice = false;
- for(int i = 0; i < 2; i++) {
- if(slotChance[i] == 0 && !worldObj.isRemote) {
- slotChance[i] = (byte)(worldObj.rand.nextInt(6) + 1);
- botTick = 18;
- requestUpdate = true;
- if(i == 1)
- isLastDice = true;
- break;
- }
- }
- if(isLastDice)
- endGameTick = 28;
- return true;
- }
- }
- return false;
- }
-
- public boolean hasGame() {
- if(isSingleGame)
- return !playersName[0].isEmpty();
- return !playersName[0].isEmpty() && !playersName[1].isEmpty();
- }
-
- public void finishGame() {
- if(worldObj.isRemote)
- return;
- if(isSingleGame) {
- if((slotChance[0] + slotChance[1]) > (slotChance[2] + slotChance[3]))
- sendNearMessage(playersName[0] + " you Won");
- else
- sendNearMessage(playersName[0] + " you Lose!");
- resetGame();
- requestUpdate = true;
- }
- }
-
- public void sendNearMessage(String text) {
- List players = this.worldObj.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(this.xCoord, this.yCoord, this.zCoord, (this.xCoord + 1), (this.yCoord + 1), (this.zCoord + 1)).expand(3.5f, 3.5f, 3.5f));
- for(EntityPlayer player : players) {
- if(player != null)
- player.addChatMessage((new ChatComponentTranslation(text, new Object[] {})).setChatStyle((new ChatStyle()).setColor(EnumChatFormatting.DARK_GREEN)));
- }
- }
-
- public void resetGame() {
- playersName[0] = "";
- playersName[1] = "";
- for(int i = 0; i < slotChance.length; i++)
- slotChance[i] = 0;
- requestUpdate = true;
- botTick = -1;
- endGameTick = -1;
- }
-
- public void writeCustomNBT(NBTTagCompound cmp) {
- super.writeCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- cmp.setString("playerName" + i, playersName[i]);
- cmp.setByteArray("slotChance", slotChance);
- cmp.setInteger("botTick", botTick);
- cmp.setInteger("endGameTick", endGameTick);
- cmp.setBoolean("requestUpdate", requestUpdate);
- cmp.setBoolean("isSingleGame", isSingleGame);
- }
-
- public void readCustomNBT(NBTTagCompound cmp) {
- super.readCustomNBT(cmp);
- for(int i = 0; i < playersName.length; i++)
- playersName[i] = cmp.getString("playerName" + i);
- botTick = cmp.getInteger("botTick");
- endGameTick = cmp.getInteger("endGameTick");
- slotChance = cmp.getByteArray("slotChance");
- requestUpdate = cmp.getBoolean("requestUpdate");
- isSingleGame = cmp.getBoolean("isSingleGame");
- }
-
- public int getInventoryStackLimit() {
- return 1;
- }
-
- public int getSizeInventory() {
- return 4;
- }
-
- public String getInventoryName() {
- return "inv.gameBoard";
- }
-}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/fe/70e9b2eabcbc001c1a9f99005529f322 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/fe/70e9b2eabcbc001c1a9f99005529f322
new file mode 100644
index 0000000..4a3ff72
--- /dev/null
+++ b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/fe/70e9b2eabcbc001c1a9f99005529f322
@@ -0,0 +1,38 @@
+package ab.client.render.block;
+
+import org.lwjgl.opengl.GL11;
+
+import ab.client.render.tile.RenderTileManaContainer;
+import ab.common.block.tile.TileNidavellirForge;
+import ab.common.lib.register.BlockListAB;
+import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
+import net.minecraft.block.Block;
+import net.minecraft.client.renderer.RenderBlocks;
+import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.world.IBlockAccess;
+
+public class RenderBlockNidavellirForge implements ISimpleBlockRenderingHandler {
+
+ public void renderInventoryBlock(Block block, int metadata, int modelID, RenderBlocks renderer) {
+ GL11.glPushMatrix();
+ GL11.glTranslatef(-0.5F, -0.2F, -0.5F);
+ GL11.glScalef(1.4f, 1.4f, 1.4f);
+ TileNidavellirForge forge = new TileNidavellirForge();
+ RenderTileManaContainer.metadata = metadata;
+ TileEntityRendererDispatcher.instance.renderTileEntityAt((TileEntity)forge, 0.0D, 0.0D, 0.0D, 0.0F);
+ GL11.glPopMatrix();
+ }
+
+ public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId, RenderBlocks renderer) {
+ return false;
+ }
+
+ public int getRenderId() {
+ return BlockListAB.blockABPlateRI;
+ }
+
+ public boolean shouldRender3DInInventory(int modelId) {
+ return true;
+ }
+}
\ No newline at end of file
diff --git a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/fe/803ab33484ae001c1bd4eaa9a9be6b81 b/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/fe/803ab33484ae001c1bd4eaa9a9be6b81
deleted file mode 100644
index 0340011..0000000
--- a/1.7.10/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/fe/803ab33484ae001c1bd4eaa9a9be6b81
+++ /dev/null
@@ -1,296 +0,0 @@
-package ab.common.lib.register;
-
-import java.io.Serializable;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.List;
-
-import ab.api.AdvancedBotanyAPI;
-import ab.api.recipe.RecipeAdvancedPlate;
-import ab.api.recipe.RecipeAncientAlphirine;
-import ab.api.recipe.lexicon.AdvancedPlateCraftPage;
-import ab.api.recipe.lexicon.AlphirineCraftPage;
-import ab.common.block.tile.TileAgglomerationPlate;
-import ab.common.block.tile.TileLebethronCore;
-import ab.common.block.tile.TileMagicCraftCrate;
-import ab.common.core.handler.ConfigABHandler;
-import ab.common.item.ItemCraftingPattern;
-import cpw.mods.fml.common.registry.GameRegistry;
-import net.minecraft.init.Blocks;
-import net.minecraft.init.Items;
-import net.minecraft.item.ItemStack;
-import net.minecraft.item.crafting.CraftingManager;
-import net.minecraft.item.crafting.IRecipe;
-import net.minecraft.util.EnumChatFormatting;
-import net.minecraftforge.oredict.ShapedOreRecipe;
-import net.minecraftforge.oredict.ShapelessOreRecipe;
-import thaumcraft.common.config.ConfigBlocks;
-import thaumcraft.common.config.ConfigItems;
-import vazkii.botania.api.BotaniaAPI;
-import vazkii.botania.api.lexicon.KnowledgeType;
-import vazkii.botania.api.lexicon.LexiconCategory;
-import vazkii.botania.api.lexicon.LexiconEntry;
-import vazkii.botania.api.lexicon.LexiconPage;
-import vazkii.botania.api.recipe.RecipePetals;
-import vazkii.botania.common.Botania;
-import vazkii.botania.common.block.ModBlocks;
-import vazkii.botania.common.block.ModFluffBlocks;
-import vazkii.botania.common.core.handler.ConfigHandler;
-import vazkii.botania.common.item.ModItems;
-import vazkii.botania.common.item.block.ItemBlockSpecialFlower;
-import vazkii.botania.common.lexicon.BLexiconCategory;
-import vazkii.botania.common.lexicon.BLexiconEntry;
-import vazkii.botania.common.lexicon.RLexiconEntry;
-import vazkii.botania.common.lexicon.page.PageText;
-
-public class RecipeListAB {
-
- public static LexiconCategory categoryForgotten;
-
- public static RecipeAncientAlphirine lebethroneRecipe;
- public static RecipeAncientAlphirine forgottenLandRecipe;
- public static RecipeAncientAlphirine advancedSparkRecipe;
- public static RecipeAncientAlphirine manaFlowerRecipe;
- public static RecipeAncientAlphirine hopperRecipe;
- public static RecipeAncientAlphirine fateBoardRecipe;
-
- public static RecipeAdvancedPlate manaStarRecipe;
- public static RecipeAdvancedPlate terrasteelRecipe;
- public static RecipeAdvancedPlate mithrillRecipe;
- public static RecipeAdvancedPlate nebulaRecipe;
-
- public static RecipePetals alphirineRecipe;
- public static RecipePetals dictariusRecipe;
- public static RecipePetals aspecolusRecipe;
- public static RecipePetals pureGladRecipe;
-
- public static LexiconEntry advandedAgglomerationPlate;
- public static LexiconEntry ancientAlphirine;
- public static LexiconEntry lebethronWood;
- public static LexiconEntry lebethronSpreader;
- public static LexiconEntry mithrill;
- public static LexiconEntry manaContainer;
- public static LexiconEntry manaCrystalCube;
- public static LexiconEntry terraHoe;
- public static LexiconEntry manaRings;
- public static LexiconEntry manaFlower;
- public static LexiconEntry mithrillSword;
- public static LexiconEntry nebula;
- public static LexiconEntry blackHalo;
- public static LexiconEntry antigravityCharm;
- public static LexiconEntry nebulaBlaze;
- public static LexiconEntry aspecolus;
- public static LexiconEntry dictarius;
- public static LexiconEntry manaCharger;
- public static LexiconEntry nebulaArmor;
- public static LexiconEntry freyrSlingshot;
- public static LexiconEntry engineerHopper;
- public static LexiconEntry nebulaRod;
- public static LexiconEntry thaumAutoCraft;
- public static LexiconEntry gladious;
- public static LexiconEntry gameBoard;
- public static LexiconEntry fateBoard;
- public static LexiconEntry richesKey;
- public static LexiconEntry cubeWardrobe;
- public static LexiconEntry sprawlRod;
-
- public static KnowledgeType forgotten;
-
- public static void init() {
-
- BotaniaAPI.addCategory(categoryForgotten = new BLexiconCategory("forgotten", 5));
- forgotten = BotaniaAPI.registerKnowledgeType("ab_forgotten", EnumChatFormatting.BLUE, false);
-
- lebethroneRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(BlockListAB.blockLebethron), new ItemStack(ModBlocks.dreamwood, 1, 0), 15);
- forgottenLandRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(ItemListAB.itemABResource, 1, 3), new ItemStack(ModItems.manaResource, 1, 15), 75);
- advancedSparkRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(ItemListAB.itemAdvancedSpark), new ItemStack(ModItems.spark), 11);
- manaFlowerRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(ItemListAB.itemABResource, 1, 4), new ItemStack(ModBlocks.flower, 1, 32767), 32);
- hopperRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(BlockListAB.blockEngineerHopper), new ItemStack(Blocks.hopper), 23);
- fateBoardRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(BlockListAB.blockBoardFate, 1, 1), new ItemStack(BlockListAB.blockBoardFate), 60);
-
- mithrillRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ItemListAB.itemABResource, 1, 0), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModBlocks.storage, 1, 0), new ItemStack(ModItems.manaResource, 1, 18), 7500000, 0x25d6b7);
- terrasteelRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ModItems.manaResource, 1, 4), new ItemStack(ModItems.manaResource, 1, 2), new ItemStack(ModItems.manaResource, 1, 0), new ItemStack(ModItems.manaResource, 1, 1), 500000, 0x29de20);
- manaStarRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ItemListAB.itemABResource, 1, 2), new ItemStack(ModItems.manaResource, 1, 23), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(Items.nether_star), 250000, 0x6bc9ec);
- nebulaRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ItemListAB.itemABResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 8), new ItemStack(ModBlocks.storage, 1, 4), new ItemStack(ItemListAB.itemABResource, 1, 1), 50000000, 0x8d16e0);
-
- ancientAlphirine = new BLexiconEntry("ancientAlphirine", categoryForgotten);
- alphirineRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("ancientAlphirine"), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.rune, 1, 8), new ItemStack(ModItems.rune, 1, 4), new ItemStack(ModItems.rune, 1, 5), new ItemStack(ModItems.rune, 1, 6), new ItemStack(ModItems.rune, 1, 7), new ItemStack(ModItems.petal, 1, 1), new ItemStack(ModItems.petal, 1, 4));
- ancientAlphirine.setPriority().setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), new PageText("1"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", alphirineRecipe), new AlphirineCraftPage(ancientAlphirine, forgottenLandRecipe.getOutput(), ".alphirineCraft") }).setIcon(ItemBlockSpecialFlower.ofType("ancientAlphirine"));
-
- if(ConfigABHandler.hasAbPlate) {
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockABPlate), new Object[] { " ", "MPM", "BRB", Character.valueOf('M'), new ItemStack(ModBlocks.storage), Character.valueOf('P'), new ItemStack(ModBlocks.terraPlate), Character.valueOf('B'), new ItemStack(ItemListAB.itemABResource, 1, 3), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 3)});
- advandedAgglomerationPlate = new BLexiconEntry("advancedPlate", categoryForgotten);
- advandedAgglomerationPlate.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] {new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()), BotaniaAPI.internalHandler.multiblockPage(".structure", TileAgglomerationPlate.makeMultiblockSet()), new AdvancedPlateCraftPage(advandedAgglomerationPlate, terrasteelRecipe.getOutput(), ".abCraft0"), new AdvancedPlateCraftPage(advandedAgglomerationPlate, manaStarRecipe.getOutput(), ".abCraft1") }).setIcon(new ItemStack(BlockListAB.blockABPlate));
- }
-
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockABSpreader), new Object[] { "WMW", "PSP", "WMW", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource, 1, 2), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('S'), new ItemStack(ModBlocks.spreader, 1, 3), Character.valueOf('W'), new ItemStack(BlockListAB.blockLebethron, 1, 4)});
- lebethronSpreader = new BLexiconEntry("lebethronSpreader", categoryForgotten);
- lebethronSpreader.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(BlockListAB.blockABSpreader));
-
- addShapelessOreDictRecipe(new ItemStack(BlockListAB.blockLebethron, 4, 1), new Object[] { new ItemStack(BlockListAB.blockLebethron)});
- IRecipe leb1 = getLastRecipe();
- addShapelessOreDictRecipe(new ItemStack(BlockListAB.blockLebethron, 1, 2), new Object[] { new ItemStack(BlockListAB.blockLebethron, 1, 1), new ItemStack(Items.wheat_seeds)});
- IRecipe leb2 = getLastRecipe();
- addShapelessOreDictRecipe(new ItemStack(BlockListAB.blockLebethron, 1, 3), new Object[] { new ItemStack(BlockListAB.blockLebethron), new ItemStack(Items.glowstone_dust)});
- IRecipe leb3 = getLastRecipe();
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockLebethron, 1, 4), new Object[] { "4W5", "WPW", "6W7", Character.valueOf('P'), new ItemStack(ModBlocks.pylon, 1, 1), Character.valueOf('W'), new ItemStack(BlockListAB.blockLebethron), Character.valueOf('4'), new ItemStack(ModItems.rune, 1, 4), Character.valueOf('5'), new ItemStack(ModItems.rune, 1, 5), Character.valueOf('6'), new ItemStack(ModItems.rune, 1, 6), Character.valueOf('7'), new ItemStack(ModItems.rune, 1, 7)});
- IRecipe leb4 = getLastRecipe();
- lebethronWood = new BLexiconEntry("lebethronWood", categoryForgotten);
- lebethronWood.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AlphirineCraftPage(lebethronWood, lebethroneRecipe.getOutput(), ".alphirineCraft"), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb1), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb2), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb3), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb4), new PageText("1"), BotaniaAPI.internalHandler.multiblockPage(".structure", TileLebethronCore.makeMultiblockSet()) }).setIcon(new ItemStack(BlockListAB.blockLebethron));
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemMihrillMultiTool), new Object[] { " MB", " FM", "F ", Character.valueOf('F'), new ItemStack(ModItems.manaResource, 1, 3), Character.valueOf('B'), new ItemStack(ModBlocks.livingwood), Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource)});
- mithrill = new BLexiconEntry("mithrill", categoryForgotten);
- mithrill.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AdvancedPlateCraftPage(mithrill, mithrillRecipe.getOutput(), ".abCraft"), new PageText("1"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(ItemListAB.itemMihrillMultiTool));
- if(!ConfigABHandler.hasAbPlate)
- mithrill.pages.remove(1);
-
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaContainer), new Object[] { "MGM", "LPL", "M3M", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('L'), new ItemStack(ModBlocks.pool), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('3'), new ItemStack(ModItems.rune, 1, 3), Character.valueOf('G'), new ItemStack(ModItems.rune, 1, 15)});
- IRecipe cont1 = getLastRecipe();
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaContainer, 1, 1), new Object[] { "MGM", "LPL", "M3M", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource, 1, 1), Character.valueOf('L'), new ItemStack(ModBlocks.pool, 1, 2), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('3'), new ItemStack(ModItems.rune, 1, 3), Character.valueOf('G'), new ItemStack(ModItems.rune, 1, 15)});
- IRecipe cont2 = getLastRecipe();
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaContainer, 1, 2), new Object[] { "MGM", "LPL", "M3M", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('L'), new ItemStack(ModBlocks.pool, 1, 3), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('3'), new ItemStack(ModItems.rune, 1, 3), Character.valueOf('G'), new ItemStack(ModItems.rune, 1, 15)});
- IRecipe cont3 = getLastRecipe();
- manaContainer = new BLexiconEntry("manaContainer", categoryForgotten);
- manaContainer.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", cont1), BotaniaAPI.internalHandler.craftingRecipePage(".craft1", cont2), BotaniaAPI.internalHandler.craftingRecipePage(".craft2", cont3), new PageText("1"), new AlphirineCraftPage(manaContainer, advancedSparkRecipe.getOutput(), ".alphirineCraft") }).setIcon(new ItemStack(BlockListAB.blockManaContainer));
-
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaCrystalCube), new Object[] { "TST", "GWG", "DMD", Character.valueOf('D'), new ItemStack(ModBlocks.dreamwood), Character.valueOf('W'), new ItemStack(ModItems.twigWand, 1, 32767), Character.valueOf('G'), new ItemStack(ModBlocks.manaGlass), Character.valueOf('M'), new ItemStack(ModItems.manaResource), Character.valueOf('T'), new ItemStack(ModItems.manaResource, 1, 18), Character.valueOf('S'), new ItemStack(ModItems.spark)});
- manaCrystalCube = new BLexiconEntry("manaCrystalCube", BotaniaAPI.categoryMana);
- manaCrystalCube.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(BlockListAB.blockManaCrystalCube));
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemTerraHoe), new Object[] { "TTL", "RW ", " W ", Character.valueOf('T'), new ItemStack(ModItems.manaResource, 1, 4), Character.valueOf('L'), new ItemStack(ModItems.manaResource, 1, 18), Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 3), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 2)});
- terraHoe = new BLexiconEntry("terraHoe", BotaniaAPI.categoryTools);
- terraHoe.setLexiconPages(new LexiconPage[]{ new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(ItemListAB.itemTerraHoe));
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemMithrillRing), new Object[] { "LML", "MRM", "LML", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('L'), new ItemStack(ItemListAB.itemABResource, 1, 1), Character.valueOf('R'), new ItemStack(ModItems.manaRingGreater)});
- IRecipe ring1 = getLastRecipe();
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaRing), new Object[] { "LML", "MRM", "LML", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource, 1, 6), Character.valueOf('L'), new ItemStack(ModItems.manaResource, 1, 5), Character.valueOf('R'), new ItemStack(ItemListAB.itemMithrillRing)});
- IRecipe ring2 = getLastRecipe();
- manaRings = new BLexiconEntry("manaRings", categoryForgotten);
- manaRings.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[]{ new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", ring1), BotaniaAPI.internalHandler.craftingRecipePage(".craft1", ring2)}).setIcon(new ItemStack(ItemListAB.itemMithrillRing));
- AdvancedBotanyAPI.registerFarmlandSeed(Blocks.nether_wart, 3);
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemManaFlower), new Object[] { " F ", " M ", " R ", Character.valueOf('F'), new ItemStack(ItemListAB.itemABResource, 1, 4), Character.valueOf('M'), new ItemStack(ModItems.manaBottle), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 8)});
- manaFlower = new BLexiconEntry("manaFlower", categoryForgotten);
- manaFlower.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AlphirineCraftPage(manaFlower, manaFlowerRecipe.getOutput(), ".alphirineCraft"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())}).setIcon(new ItemStack(ItemListAB.itemManaFlower));
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemMithrillSword), new Object[] { " M", "SM ", "WS ", Character.valueOf('S'), new ItemStack(ItemListAB.itemABResource, 1, 6), Character.valueOf('T'), new ItemStack(ModItems.terraSword), Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 3)});
- mithrillSword = new BLexiconEntry("mithrillSword", categoryForgotten);
- mithrillSword.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(ItemListAB.itemMithrillSword));
-
- dictariusRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("dictarius"), new ItemStack(ItemListAB.itemABResource, 1, 4), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.rune, 1, 15), new ItemStack(ModItems.petal, 1, 4), new ItemStack(ModItems.petal, 1, 4), new ItemStack(ModItems.petal, 1, 1));
- dictarius = new BLexiconEntry("dictarius", BotaniaAPI.categoryGenerationFlowers);
- dictarius.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", dictariusRecipe)});
-
- nebula = new BLexiconEntry("nebula", categoryForgotten);
- nebula.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AdvancedPlateCraftPage(nebula, nebulaRecipe.getOutput(), ".abCraft")});
- if(!ConfigABHandler.hasAbPlate)
- nebula.pages.remove(1);
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemBlackHalo), new Object[] { " E ", "DHD", " E ", Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.autocraftingHalo), Character.valueOf('D'), new ItemStack(ModItems.blackHoleTalisman)});
- blackHalo = new BLexiconEntry("blackHalo", BotaniaAPI.categoryTools);
- blackHalo.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemAntigravityCharm), new Object[] { " G ", "GDG", "ERE", Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('G'), new ItemStack(ModBlocks.elfGlass), Character.valueOf('D'), new ItemStack(ModBlocks.floatingFlower, 1, 32767), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 3)});
- antigravityCharm = new BLexiconEntry("antigravityCharm", BotaniaAPI.categoryTools);
- antigravityCharm.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())}).setIcon(new ItemStack(ItemListAB.itemAntigravityCharm));
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaBlaze), new Object[] { " N ", "MMN", "AMN", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 6), Character.valueOf('A'), new ItemStack(ItemListAB.itemABResource, 1, 3), Character.valueOf('M'), new ItemStack(ModBlocks.storage)});
- nebulaBlaze = new BLexiconEntry("nebulaBlaze", categoryForgotten);
- nebulaBlaze.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
-
- if(ConfigABHandler.hasManaCharger) {
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaCharger), new Object[] { "NLN", "MPM", " R ", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 1), Character.valueOf('L'), new ItemStack(ModBlocks.livingrock), Character.valueOf('M'), new ItemStack(ModBlocks.bellows), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 8)});
- manaCharger = new BLexiconEntry("manaCharger", categoryForgotten);
- manaCharger.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
- }
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaHelm), new Object[] { "RNR", "NHN", " E ", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelHelm), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8)});
- IRecipe nHelm = getLastRecipe();
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaChest), new Object[] { "RTR", "NHN", "ENE", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelChest), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8), Character.valueOf('T'), new ItemStack(ModItems.flightTiara, 1, 32767)});
- IRecipe nChest = getLastRecipe();
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaLegs), new Object[] { "ENE", "RHR", "NAN", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelLegs), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8), Character.valueOf('A'), new ItemStack(ItemListAB.itemABResource, 1, 3)});
- IRecipe nLegs = getLastRecipe();
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaBoots), new Object[] { "RBR", "NHN", " E ", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelBoots), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8), Character.valueOf('B'), new ItemStack(ModItems.speedUpBelt)});
- IRecipe nBoots = getLastRecipe();
- nebulaArmor = new BLexiconEntry("nebulaArmor", categoryForgotten);
- nebulaArmor.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new PageText("1"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", nHelm), BotaniaAPI.internalHandler.craftingRecipePage(".craft", nChest), BotaniaAPI.internalHandler.craftingRecipePage(".craft", nLegs), BotaniaAPI.internalHandler.craftingRecipePage(".craft", nBoots)});
-
- engineerHopper = new BLexiconEntry("engineerHopper", categoryForgotten);
- engineerHopper.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AlphirineCraftPage(engineerHopper, hopperRecipe.getOutput(), ".alphirineCraft")});
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaRod), new Object[] { " WN", " RW", "W ", Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 13), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 8), Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 6)});
- nebulaRod = new BLexiconEntry("nebulaRod", categoryForgotten);
- nebulaRod.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
-
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockBoardFate), new Object[] { " ", "QDQ", "MPM", Character.valueOf('Q'), new ItemStack(ModFluffBlocks.manaQuartz), Character.valueOf('D'), new ItemStack(ModItems.manaResource, 1, 2), Character.valueOf('M'), new ItemStack(ModItems.manaResource), Character.valueOf('P'), new ItemStack(ModItems.manaResource, 1, 23)});
- gameBoard = new BLexiconEntry("gameBoard", BotaniaAPI.categoryMisc);
- gameBoard.setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
-
- if(ConfigHandler.relicsEnabled) {
- fateBoard = new BLexiconEntry("fateBoard", categoryForgotten);
- fateBoard.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AlphirineCraftPage(fateBoard, fateBoardRecipe.getOutput(), ".alphirineCraft")});
-
- freyrSlingshot = new RLexiconEntry("freyrSlingshot", BotaniaAPI.categoryAlfhomancy, AchievementRegister.relicSlingshot);
- freyrSlingshot.setLexiconPages(new LexiconPage[] { new PageText("0"), new PageText("1")});
-
- richesKey = new RLexiconEntry("richesKey", BotaniaAPI.categoryAlfhomancy, AchievementRegister.relicItemChest);
- richesKey.setLexiconPages(new LexiconPage[] { new PageText("0")});
-
- cubeWardrobe = new RLexiconEntry("cubeWardrobe", BotaniaAPI.categoryAlfhomancy, AchievementRegister.relicPocketArmor);
- cubeWardrobe.setLexiconPages(new LexiconPage[] { new PageText("0")});
- }
-
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemSprawlRod), new Object[] { " SC", " WS", "W ", Character.valueOf('S'), new ItemStack(ModItems.grassSeeds, 1, 32767), Character.valueOf('C'), new ItemStack(BlockListAB.blockLebethron, 1, 4), Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 3)});
- sprawlRod = new BLexiconEntry("sprawlRod", categoryForgotten);
- sprawlRod.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
-
- if(Botania.thaumcraftLoaded)
- thaumcraft();
-
- addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemABResource, 9, 1), new Object[] { new ItemStack(ItemListAB.itemABResource)});
- addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemABResource, 9, 0), new Object[] { new ItemStack(BlockListAB.blockABStorage)});
- addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemABResource, 9, 6), new Object[] { new ItemStack(ItemListAB.itemABResource, 1, 5)});
- GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockABStorage), new Object[] { "III", "III", "III", Character.valueOf('I'), new ItemStack(ItemListAB.itemABResource)});
- GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemABResource, 1, 5), new Object[] { "III", "III", "III", Character.valueOf('I'), new ItemStack(ItemListAB.itemABResource, 1, 6)});
- }
-
- public static void thaumcraft() {
- aspecolus = new BLexiconEntry("aspecolus", BotaniaAPI.categoryFunctionalFlowers);
- aspecolusRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("aspecolus"), new ItemStack(ModItems.manaResource, 1, 6), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.rune, 1, 1), new ItemStack(ModItems.rune), new ItemStack(ItemListAB.itemABResource, 1, 2), new ItemStack(ModItems.petal, 1, 10), new ItemStack(ModItems.petal, 1, 13));
- aspecolus.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", aspecolusRecipe) }).setIcon(ItemBlockSpecialFlower.ofType("aspecolus"));
- addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemNebulaHelmReveal), new Object[] { new ItemStack(ItemListAB.itemNebulaHelm), new ItemStack(ConfigItems.itemGoggles)});
- List recipes = new ArrayList