Jump to content

How do i put this in a method?


Drachenbauer

Recommended Posts

If i try to register one of theese entitys without using the method gives the same error in the same place...

 

It looks like, if an entity has no build-construct in EntityType, it´s not compatible with the method "EntityType.Builder.create"

 

So how do i register an entity, that has no build-construct in EntityType?

 

Now i managed to write a class with such build-constructs for my own entitys.

so i was able to shape the constructors of my entity-classes similar to the one of the chicken class

Edited by Drachenbauer
Link to comment
Share on other sites

and i get theese errors:

Spoiler

[20Mär2019 23:10:26.382] [Server thread/FATAL] [net.minecraft.server.MinecraftServer/]: Error executing task
java.util.concurrent.ExecutionException: java.lang.ExceptionInInitializerError
    at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_202]
    at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_202]
    at net.minecraft.util.Util.runTask(SourceFile:200) [?:?]
    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:715) [?:?]
    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:669) [?:?]
    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:115) [?:?]
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:565) [?:?]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_202]
Caused by: java.lang.ExceptionInInitializerError
    at drachenbauer32.angrybirdsmod.entity.EntityBlues.<init>(EntityBlues.java:15) ~[?:?]
    at net.minecraft.entity.EntityType.create(EntityType.java:357) ~[?:?]
    at net.minecraft.entity.EntityType.makeEntity(EntityType.java:272) ~[?:?]
    at net.minecraft.entity.EntityType.spawnEntity(EntityType.java:265) ~[?:?]
    at net.minecraft.entity.EntityType.spawnEntity(EntityType.java:260) ~[?:?]
    at net.minecraft.item.ItemSpawnEgg.onItemUse(SourceFile:81) ~[?:?]
    at net.minecraft.item.ItemStack.lambda$onItemUse$0(ItemStack.java:162) ~[?:?]
    at net.minecraft.item.ItemStack.onItemUse(ItemStack.java:178) ~[?:?]
    at net.minecraft.item.ItemStack.onItemUse(ItemStack.java:162) ~[?:?]
    at net.minecraft.server.management.PlayerInteractionManager.processRightClickBlock(PlayerInteractionManager.java:373) ~[?:?]
    at net.minecraft.network.NetHandlerPlayServer.processTryUseItemOnBlock(NetHandlerPlayServer.java:847) ~[?:?]
    at net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock.processPacket(SourceFile:53) ~[?:?]
    at net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock.processPacket(SourceFile:11) ~[?:?]
    at net.minecraft.network.PacketThreadUtil.func_210405_a(SourceFile:10) ~[?:?]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_202]
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_202]
    at net.minecraft.util.Util.runTask(SourceFile:199) ~[?:?]
    ... 5 more
Caused by: java.lang.IllegalStateException: The object net.minecraft.entity.EntityType@122d5fa7 (name minecraft:red) is being added too late.
    at net.minecraftforge.registries.ForgeRegistry.add(ForgeRegistry.java:333) ~[?:?]
    at net.minecraftforge.registries.ForgeRegistry.add(ForgeRegistry.java:293) ~[?:?]
    at net.minecraftforge.registries.NamespacedWrapper.register(NamespacedWrapper.java:58) ~[?:?]
    at net.minecraftforge.registries.NamespacedWrapper.put(NamespacedWrapper.java:66) ~[?:?]
    at net.minecraftforge.registries.NamespacedWrapper.put(NamespacedWrapper.java:36) ~[?:?]
    at net.minecraft.entity.EntityType.register(EntityType.java:236) ~[?:?]
    at drachenbauer32.angrybirdsmod.util.AngryBirdsEntityTypes.<clinit>(AngryBirdsEntityTypes.java:12) ~[?:?]
    at drachenbauer32.angrybirdsmod.entity.EntityBlues.<init>(EntityBlues.java:15) ~[?:?]
    at net.minecraft.entity.EntityType.create(EntityType.java:357) ~[?:?]
    at net.minecraft.entity.EntityType.makeEntity(EntityType.java:272) ~[?:?]
    at net.minecraft.entity.EntityType.spawnEntity(EntityType.java:265) ~[?:?]
    at net.minecraft.entity.EntityType.spawnEntity(EntityType.java:260) ~[?:?]
    at net.minecraft.item.ItemSpawnEgg.onItemUse(SourceFile:81) ~[?:?]
    at net.minecraft.item.ItemStack.lambda$onItemUse$0(ItemStack.java:162) ~[?:?]
    at net.minecraft.item.ItemStack.onItemUse(ItemStack.java:178) ~[?:?]
    at net.minecraft.item.ItemStack.onItemUse(ItemStack.java:162) ~[?:?]
    at net.minecraft.server.management.PlayerInteractionManager.processRightClickBlock(PlayerInteractionManager.java:373) ~[?:?]
    at net.minecraft.network.NetHandlerPlayServer.processTryUseItemOnBlock(NetHandlerPlayServer.java:847) ~[?:?]
    at net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock.processPacket(SourceFile:53) ~[?:?]
    at net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock.processPacket(SourceFile:11) ~[?:?]
    at net.minecraft.network.PacketThreadUtil.func_210405_a(SourceFile:10) ~[?:?]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_202]
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_202]
    at net.minecraft.util.Util.runTask(SourceFile:199) ~[?:?]
    ... 5 more
[20Mär2019 23:10:27.827] [Server thread/FATAL] [net.minecraft.server.MinecraftServer/]: Error executing task
java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: Could not initialize class drachenbauer32.angrybirdsmod.util.AngryBirdsEntityTypes
    at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_202]
    at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_202]
    at net.minecraft.util.Util.runTask(SourceFile:200) [?:?]
    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:715) [?:?]
    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:669) [?:?]
    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:115) [?:?]
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:565) [?:?]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_202]
Caused by: java.lang.NoClassDefFoundError: Could not initialize class drachenbauer32.angrybirdsmod.util.AngryBirdsEntityTypes
    at drachenbauer32.angrybirdsmod.entity.EntityBlues.<init>(EntityBlues.java:15) ~[?:?]
    at net.minecraft.entity.EntityType.create(EntityType.java:357) ~[?:?]
    at net.minecraft.entity.EntityType.makeEntity(EntityType.java:272) ~[?:?]
    at net.minecraft.entity.EntityType.spawnEntity(EntityType.java:265) ~[?:?]
    at net.minecraft.entity.EntityType.spawnEntity(EntityType.java:260) ~[?:?]
    at net.minecraft.item.ItemSpawnEgg.onItemUse(SourceFile:81) ~[?:?]
    at net.minecraft.item.ItemStack.lambda$onItemUse$0(ItemStack.java:162) ~[?:?]
    at net.minecraft.item.ItemStack.onItemUse(ItemStack.java:178) ~[?:?]
    at net.minecraft.item.ItemStack.onItemUse(ItemStack.java:162) ~[?:?]
    at net.minecraft.server.management.PlayerInteractionManager.processRightClickBlock(PlayerInteractionManager.java:373) ~[?:?]
    at net.minecraft.network.NetHandlerPlayServer.processTryUseItemOnBlock(NetHandlerPlayServer.java:847) ~[?:?]
    at net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock.processPacket(SourceFile:53) ~[?:?]
    at net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock.processPacket(SourceFile:11) ~[?:?]
    at net.minecraft.network.PacketThreadUtil.func_210405_a(SourceFile:10) ~[?:?]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_202]
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_202]
    at net.minecraft.util.Util.runTask(SourceFile:199) ~[?:?]
    ... 5 more
[20Mär2019 23:10:29.420] [Server thread/FATAL] [net.minecraft.server.MinecraftServer/]: Error executing task
java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: Could not initialize class drachenbauer32.angrybirdsmod.util.AngryBirdsEntityTypes
    at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_202]
    at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_202]
    at net.minecraft.util.Util.runTask(SourceFile:200) [?:?]
    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:715) [?:?]
    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:669) [?:?]
    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:115) [?:?]
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:565) [?:?]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_202]
Caused by: java.lang.NoClassDefFoundError: Could not initialize class drachenbauer32.angrybirdsmod.util.AngryBirdsEntityTypes
    at drachenbauer32.angrybirdsmod.entity.EntityBlues.<init>(EntityBlues.java:15) ~[?:?]
    at net.minecraft.entity.EntityType.create(EntityType.java:357) ~[?:?]
    at net.minecraft.entity.EntityType.makeEntity(EntityType.java:272) ~[?:?]
    at net.minecraft.entity.EntityType.spawnEntity(EntityType.java:265) ~[?:?]
    at net.minecraft.entity.EntityType.spawnEntity(EntityType.java:260) ~[?:?]
    at net.minecraft.item.ItemSpawnEgg.onItemUse(SourceFile:81) ~[?:?]
    at net.minecraft.item.ItemStack.lambda$onItemUse$0(ItemStack.java:162) ~[?:?]
    at net.minecraft.item.ItemStack.onItemUse(ItemStack.java:178) ~[?:?]
    at net.minecraft.item.ItemStack.onItemUse(ItemStack.java:162) ~[?:?]
    at net.minecraft.server.management.PlayerInteractionManager.processRightClickBlock(PlayerInteractionManager.java:373) ~[?:?]
    at net.minecraft.network.NetHandlerPlayServer.processTryUseItemOnBlock(NetHandlerPlayServer.java:847) ~[?:?]
    at net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock.processPacket(SourceFile:53) ~[?:?]
    at net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock.processPacket(SourceFile:11) ~[?:?]
    at net.minecraft.network.PacketThreadUtil.func_210405_a(SourceFile:10) ~[?:?]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_202]
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_202]
    at net.minecraft.util.Util.runTask(SourceFile:199) ~[?:?]
    ... 5 more
[20Mär2019 23:10:33.313] [Server thread/FATAL] [net.minecraft.server.MinecraftServer/]: Error executing task
java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: Could not initialize class drachenbauer32.angrybirdsmod.util.AngryBirdsEntityTypes
    at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_202]
    at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_202]
    at net.minecraft.util.Util.runTask(SourceFile:200) [?:?]
    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:715) [?:?]
    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:669) [?:?]
    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:115) [?:?]
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:565) [?:?]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_202]
Caused by: java.lang.NoClassDefFoundError: Could not initialize class drachenbauer32.angrybirdsmod.util.AngryBirdsEntityTypes
    at drachenbauer32.angrybirdsmod.entity.EntityBlues.<init>(EntityBlues.java:15) ~[?:?]
    at net.minecraft.entity.EntityType.create(EntityType.java:357) ~[?:?]
    at net.minecraft.entity.EntityType.makeEntity(EntityType.java:272) ~[?:?]
    at net.minecraft.entity.EntityType.spawnEntity(EntityType.java:265) ~[?:?]
    at net.minecraft.entity.EntityType.spawnEntity(EntityType.java:260) ~[?:?]
    at net.minecraft.item.ItemSpawnEgg.onItemUse(SourceFile:81) ~[?:?]
    at net.minecraft.item.ItemStack.lambda$onItemUse$0(ItemStack.java:162) ~[?:?]
    at net.minecraft.item.ItemStack.onItemUse(ItemStack.java:178) ~[?:?]
    at net.minecraft.item.ItemStack.onItemUse(ItemStack.java:162) ~[?:?]
    at net.minecraft.server.management.PlayerInteractionManager.processRightClickBlock(PlayerInteractionManager.java:373) ~[?:?]
    at net.minecraft.network.NetHandlerPlayServer.processTryUseItemOnBlock(NetHandlerPlayServer.java:847) ~[?:?]
    at net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock.processPacket(SourceFile:53) ~[?:?]
    at net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock.processPacket(SourceFile:11) ~[?:?]
    at net.minecraft.network.PacketThreadUtil.func_210405_a(SourceFile:10) ~[?:?]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_202]
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_202]
    at net.minecraft.util.Util.runTask(SourceFile:199) ~[?:?]
    ... 5 more
[20Mär2019 23:10:36.419] [Server thread/WARN] [net.minecraft.server.MinecraftServer/]: Can't keep up! Is the server overloaded? Running 2207ms or 44 ticks behind
[20Mär2019 23:10:36.964] [Server thread/FATAL] [net.minecraft.server.MinecraftServer/]: Error executing task
java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: Could not initialize class drachenbauer32.angrybirdsmod.util.AngryBirdsEntityTypes
    at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_202]
    at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_202]
    at net.minecraft.util.Util.runTask(SourceFile:200) [?:?]
    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:715) [?:?]
    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:669) [?:?]
    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:115) [?:?]
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:565) [?:?]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_202]
Caused by: java.lang.NoClassDefFoundError: Could not initialize class drachenbauer32.angrybirdsmod.util.AngryBirdsEntityTypes
    at drachenbauer32.angrybirdsmod.entity.EntityChuck.<init>(EntityChuck.java:15) ~[?:?]
    at net.minecraft.entity.EntityType.create(EntityType.java:357) ~[?:?]
    at net.minecraft.entity.EntityType.makeEntity(EntityType.java:272) ~[?:?]
    at net.minecraft.entity.EntityType.spawnEntity(EntityType.java:265) ~[?:?]
    at net.minecraft.entity.EntityType.spawnEntity(EntityType.java:260) ~[?:?]
    at net.minecraft.item.ItemSpawnEgg.onItemUse(SourceFile:81) ~[?:?]
    at net.minecraft.item.ItemStack.lambda$onItemUse$0(ItemStack.java:162) ~[?:?]
    at net.minecraft.item.ItemStack.onItemUse(ItemStack.java:178) ~[?:?]
    at net.minecraft.item.ItemStack.onItemUse(ItemStack.java:162) ~[?:?]
    at net.minecraft.server.management.PlayerInteractionManager.processRightClickBlock(PlayerInteractionManager.java:373) ~[?:?]
    at net.minecraft.network.NetHandlerPlayServer.processTryUseItemOnBlock(NetHandlerPlayServer.java:847) ~[?:?]
    at net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock.processPacket(SourceFile:53) ~[?:?]
    at net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock.processPacket(SourceFile:11) ~[?:?]
    at net.minecraft.network.PacketThreadUtil.func_210405_a(SourceFile:10) ~[?:?]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_202]
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_202]
    at net.minecraft.util.Util.runTask(SourceFile:199) ~[?:?]
    ... 5 more
[20Mär2019 23:10:37.762] [Server thread/FATAL] [net.minecraft.server.MinecraftServer/]: Error executing task
java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: Could not initialize class drachenbauer32.angrybirdsmod.util.AngryBirdsEntityTypes
    at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_202]
    at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_202]
    at net.minecraft.util.Util.runTask(SourceFile:200) [?:?]
    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:715) [?:?]
    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:669) [?:?]
    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:115) [?:?]
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:565) [?:?]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_202]
Caused by: java.lang.NoClassDefFoundError: Could not initialize class drachenbauer32.angrybirdsmod.util.AngryBirdsEntityTypes
    at drachenbauer32.angrybirdsmod.entity.EntityChuck.<init>(EntityChuck.java:15) ~[?:?]
    at net.minecraft.entity.EntityType.create(EntityType.java:357) ~[?:?]
    at net.minecraft.entity.EntityType.makeEntity(EntityType.java:272) ~[?:?]
    at net.minecraft.entity.EntityType.spawnEntity(EntityType.java:265) ~[?:?]
    at net.minecraft.entity.EntityType.spawnEntity(EntityType.java:260) ~[?:?]
    at net.minecraft.item.ItemSpawnEgg.onItemUse(SourceFile:81) ~[?:?]
    at net.minecraft.item.ItemStack.lambda$onItemUse$0(ItemStack.java:162) ~[?:?]
    at net.minecraft.item.ItemStack.onItemUse(ItemStack.java:178) ~[?:?]
    at net.minecraft.item.ItemStack.onItemUse(ItemStack.java:162) ~[?:?]
    at net.minecraft.server.management.PlayerInteractionManager.processRightClickBlock(PlayerInteractionManager.java:373) ~[?:?]
    at net.minecraft.network.NetHandlerPlayServer.processTryUseItemOnBlock(NetHandlerPlayServer.java:847) ~[?:?]
    at net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock.processPacket(SourceFile:53) ~[?:?]
    at net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock.processPacket(SourceFile:11) ~[?:?]
    at net.minecraft.network.PacketThreadUtil.func_210405_a(SourceFile:10) ~[?:?]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_202]
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_202]
    at net.minecraft.util.Util.runTask(SourceFile:199) ~[?:?]
    ... 5 more
[20Mär2019 23:10:39.325] [Server thread/FATAL] [net.minecraft.server.MinecraftServer/]: Error executing task
java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: Could not initialize class drachenbauer32.angrybirdsmod.util.AngryBirdsEntityTypes
    at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_202]
    at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_202]
    at net.minecraft.util.Util.runTask(SourceFile:200) [?:?]
    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:715) [?:?]
    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:669) [?:?]
    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:115) [?:?]
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:565) [?:?]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_202]
Caused by: java.lang.NoClassDefFoundError: Could not initialize class drachenbauer32.angrybirdsmod.util.AngryBirdsEntityTypes
    at drachenbauer32.angrybirdsmod.entity.EntityRed.<init>(EntityRed.java:15) ~[?:?]
    at net.minecraft.entity.EntityType.create(EntityType.java:357) ~[?:?]
    at net.minecraft.entity.EntityType.makeEntity(EntityType.java:272) ~[?:?]
    at net.minecraft.entity.EntityType.spawnEntity(EntityType.java:265) ~[?:?]
    at net.minecraft.entity.EntityType.spawnEntity(EntityType.java:260) ~[?:?]
    at net.minecraft.item.ItemSpawnEgg.onItemUse(SourceFile:81) ~[?:?]
    at net.minecraft.item.ItemStack.lambda$onItemUse$0(ItemStack.java:162) ~[?:?]
    at net.minecraft.item.ItemStack.onItemUse(ItemStack.java:178) ~[?:?]
    at net.minecraft.item.ItemStack.onItemUse(ItemStack.java:162) ~[?:?]
    at net.minecraft.server.management.PlayerInteractionManager.processRightClickBlock(PlayerInteractionManager.java:373) ~[?:?]
    at net.minecraft.network.NetHandlerPlayServer.processTryUseItemOnBlock(NetHandlerPlayServer.java:847) ~[?:?]
    at net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock.processPacket(SourceFile:53) ~[?:?]
    at net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock.processPacket(SourceFile:11) ~[?:?]
    at net.minecraft.network.PacketThreadUtil.func_210405_a(SourceFile:10) ~[?:?]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_202]
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_202]
    at net.minecraft.util.Util.runTask(SourceFile:199) ~[?:?]
    ... 5 more
[20Mär2019 23:10:54.263] [Server thread/WARN] [net.minecraft.server.MinecraftServer/]: Can't keep up! Is the server overloaded? Running 2851ms or 57 ticks behind
[20Mär2019 23:11:14.107] [Server thread/FATAL] [net.minecraft.server.MinecraftServer/]: Error executing task
java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: Could not initialize class drachenbauer32.angrybirdsmod.util.AngryBirdsEntityTypes
    at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_202]
    at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_202]
    at net.minecraft.util.Util.runTask(SourceFile:200) [?:?]
    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:715) [?:?]
    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:669) [?:?]
    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:115) [?:?]
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:565) [?:?]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_202]
Caused by: java.lang.NoClassDefFoundError: Could not initialize class drachenbauer32.angrybirdsmod.util.AngryBirdsEntityTypes
    at drachenbauer32.angrybirdsmod.entity.EntityBlues.<init>(EntityBlues.java:15) ~[main/:?]
    at net.minecraft.entity.EntityType.create(EntityType.java:357) ~[forge-1.13.2-25.0.70_mapped_snapshot_20180921-1.13-recomp.jar:?]
    at net.minecraft.entity.EntityType.create(EntityType.java:386) ~[forge-1.13.2-25.0.70_mapped_snapshot_20180921-1.13-recomp.jar:?]
    at net.minecraft.entity.EntityType.create(EntityType.java:362) ~[forge-1.13.2-25.0.70_mapped_snapshot_20180921-1.13-recomp.jar:?]
    at net.minecraft.entity.EntityType.create(EntityType.java:374) ~[forge-1.13.2-25.0.70_mapped_snapshot_20180921-1.13-recomp.jar:?]
    at net.minecraft.world.chunk.storage.AnvilChunkLoader.createEntityFromNBT(AnvilChunkLoader.java:805) ~[forge-1.13.2-25.0.70_mapped_snapshot_20180921-1.13-recomp.jar:?]
    at net.minecraft.world.chunk.storage.AnvilChunkLoader.createEntityFromNBT(AnvilChunkLoader.java:759) ~[forge-1.13.2-25.0.70_mapped_snapshot_20180921-1.13-recomp.jar:?]
    at net.minecraft.world.chunk.storage.AnvilChunkLoader.readWorldEntityPos(AnvilChunkLoader.java:789) ~[forge-1.13.2-25.0.70_mapped_snapshot_20180921-1.13-recomp.jar:?]
    at net.minecraft.command.impl.SummonCommand.func_198737_a(SourceFile:64) ~[forge-1.13.2-25.0.70_mapped_snapshot_20180921-1.13-recomp.jar:?]
    at net.minecraft.command.impl.SummonCommand.func_198738_c(SourceFile:39) ~[forge-1.13.2-25.0.70_mapped_snapshot_20180921-1.13-recomp.jar:?]
    at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:132) ~[brigadier-1.0.14.jar:?]
    at net.minecraft.command.Commands.handleCommand(Commands.java:204) ~[?:?]
    at net.minecraft.network.NetHandlerPlayServer.handleSlashCommand(NetHandlerPlayServer.java:986) ~[?:?]
    at net.minecraft.network.NetHandlerPlayServer.processChatMessage(NetHandlerPlayServer.java:969) ~[?:?]
    at net.minecraft.network.play.client.CPacketChatMessage.processPacket(SourceFile:37) ~[?:?]
    at net.minecraft.network.play.client.CPacketChatMessage.processPacket(SourceFile:9) ~[?:?]
    at net.minecraft.network.PacketThreadUtil.func_210405_a(SourceFile:10) ~[?:?]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_202]
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_202]
    at net.minecraft.util.Util.runTask(SourceFile:199) ~[?:?]
    ... 5 more

They appear each time, if i try to spawn my birds (spawm-egg or summen-command)

The list includes multiple of them, because i tried it ultiple times during that run.

Edited by Drachenbauer
Link to comment
Share on other sites

Quote

java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: Could not initialize class drachenbauer32.angrybirdsmod.util.AngryBirdsEntityTypes

That is in the long errors list i posted a few posts before.

What exactly does that mean in my case?

 

i made a class to list my own entity-types the same way, like the minecraft-build-in-ones are listed in the class EntityType and it seams like the error has to do with that..

Edited by Drachenbauer
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • They were already updated, and just to double check I even did a cleanup and fresh update from that same page. I'm quite sure drivers are not the problem here. 
    • i tried downloading the drivers but it says no AMD graphics hardware has been detected    
    • Update your AMD/ATI drivers - get the drivers from their website - do not update via system  
    • As the title says i keep on crashing on forge 1.20.1 even without any mods downloaded, i have the latest drivers (nvidia) and vanilla minecraft works perfectly fine for me logs: https://pastebin.com/5UR01yG9
    • Hello everyone, I'm making this post to seek help for my modded block, It's a special block called FrozenBlock supposed to take the place of an old block, then after a set amount of ticks, it's supposed to revert its Block State, Entity, data... to the old block like this :  The problem I have is that the system breaks when handling multi blocks (I tried some fix but none of them worked) :  The bug I have identified is that the function "setOldBlockFields" in the item's "setFrozenBlock" function gets called once for the 1st block of multiblock getting frozen (as it should), but gets called a second time BEFORE creating the first FrozenBlock with the data of the 1st block, hence giving the same data to the two FrozenBlock :   Old Block Fields set BlockState : Block{minecraft:black_bed}[facing=east,occupied=false,part=head] BlockEntity : net.minecraft.world.level.block.entity.BedBlockEntity@73681674 BlockEntityData : id:"minecraft:bed",x:3,y:-60,z:-6} Old Block Fields set BlockState : Block{minecraft:black_bed}[facing=east,occupied=false,part=foot] BlockEntity : net.minecraft.world.level.block.entity.BedBlockEntity@6d1aa3da BlockEntityData : {id:"minecraft:bed",x:2,y:-60,z:-6} Frozen Block Entity set BlockState : Block{minecraft:black_bed}[facing=east,occupied=false,part=foot] BlockPos{x=3, y=-60, z=-6} BlockEntity : net.minecraft.world.level.block.entity.BedBlockEntity@6d1aa3da BlockEntityData : {id:"minecraft:bed",x:2,y:-60,z:-6} Frozen Block Entity set BlockState : Block{minecraft:black_bed}[facing=east,occupied=false,part=foot] BlockPos{x=2, y=-60, z=-6} BlockEntity : net.minecraft.world.level.block.entity.BedBlockEntity@6d1aa3da BlockEntityData : {id:"minecraft:bed",x:2,y:-60,z:-6} here is the code inside my custom "freeze" item :    @Override     public @NotNull InteractionResult useOn(@NotNull UseOnContext pContext) {         if (!pContext.getLevel().isClientSide() && pContext.getHand() == InteractionHand.MAIN_HAND) {             BlockPos blockPos = pContext.getClickedPos();             BlockPos secondBlockPos = getMultiblockPos(blockPos, pContext.getLevel().getBlockState(blockPos));             if (secondBlockPos != null) {                 createFrozenBlock(pContext, secondBlockPos);             }             createFrozenBlock(pContext, blockPos);             return InteractionResult.SUCCESS;         }         return super.useOn(pContext);     }     public static void createFrozenBlock(UseOnContext pContext, BlockPos blockPos) {         BlockState oldState = pContext.getLevel().getBlockState(blockPos);         BlockEntity oldBlockEntity = oldState.hasBlockEntity() ? pContext.getLevel().getBlockEntity(blockPos) : null;         CompoundTag oldBlockEntityData = oldState.hasBlockEntity() ? oldBlockEntity.serializeNBT() : null;         if (oldBlockEntity != null) {             pContext.getLevel().removeBlockEntity(blockPos);         }         BlockState FrozenBlock = setFrozenBlock(oldState, oldBlockEntity, oldBlockEntityData);         pContext.getLevel().setBlockAndUpdate(blockPos, FrozenBlock);     }     public static BlockState setFrozenBlock(BlockState blockState, @Nullable BlockEntity blockEntity, @Nullable CompoundTag blockEntityData) {         BlockState FrozenBlock = BlockRegister.FROZEN_BLOCK.get().defaultBlockState();         ((FrozenBlock) FrozenBlock.getBlock()).setOldBlockFields(blockState, blockEntity, blockEntityData);         return FrozenBlock;     }  
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.