Jump to content

Recommended Posts

Posted

I'm trying to make an item based on the Touhou Project series, and I've figured out everything but some rendering. I want to render the projectiles like snowballs, but I can't seem to find a way to do that without creating a new item for their texture. I've included the projectile texture (IIcon) as part of the actual item's file, but I keep getting errors. It works fine if I use an apple for the projectile's texture, but anything from my mod crashes. I've been messing with it, but I don't know where the problem is. Either I'm inexperienced, the error report is vague, or what I'm trying to do is impossible. Help please? Here's some of my code:

 

Main file

 


@EventHandler
   public void init(FMLInitializationEvent event)
   {
      createItems();
      registerItems();
      registerRenders();
      registerEntity();
   }
   private void registerRenders()
   {
      RenderingRegistry.registerEntityRenderingHandler(EntityDanmaku.class, new RenderArcanaThrowable(ArcanaModBase.danmaku, 1));
      RenderingRegistry.registerEntityRenderingHandler(EntityDanmakuCenter.class, new RenderInvisible());
   }
   private void registerEntity()
   {
      EntityRegistry.registerModEntity(EntityDanmaku.class, "Danmaku Bullet", entityIndex++, this, 80, 10, true);
   }
   public static void registerItems()
   {
      danmaku = (ItemDanmaku)Item.itemRegistry.getObject("danmaku");
   }
   public static void createItems()
   {
      GameData.getItemRegistry().addObject(16000, "danmaku", (new ItemDanmaku()).setUnlocalizedName("danmaku").setTextureName("danmaku"));
   }

 

Item file

 

 


@SideOnly(Side.CLIENT)
   private IIcon bulletIcon;
   @SideOnly(Side.CLIENT)
   private IIcon overlay;
blah blah blah...

    /**
     * Gets an icon index based on an item's damage value
     */
    @SideOnly(Side.CLIENT)
    public IIcon getIconFromDamage(int par1)
    {
        return par1 == 1 ? this.bulletIcon : super.getIconFromDamage(par1);
    }


    @SideOnly(Side.CLIENT)
    public void registerIcons(IIconRegister par1IconRegister)
    {
        this.bulletIcon = par1IconRegister.registerIcon("arcana:danmaku_bullet");
        this.itemIcon = par1IconRegister.registerIcon("arcana:danmaku");
    }

 

Render Class (Basically RenderSnowball)

 

@SideOnly(Side.CLIENT)
public class RenderArcanaThrowable extends Render
{
   private Item field_94151_a;
   private int field_94150_f;


   public RenderArcanaThrowable(Item par1Item, int par2)
   {
      this.field_94151_a = par1Item;
      this.field_94150_f = par2;
   }


   public RenderArcanaThrowable(Item par1Item)
   {
      this(par1Item, 0);
   }


   /**
    * Actually renders the given argument. This is a synthetic bridge method, always casting down its argument and then
    * handing it off to a worker function which does the actual work. In all probabilty, the class Render is generic
    * (Render<T extends Entity) and this method has signature public void doRender(T entity, double d, double d1,
    * double d2, float f, float f1). But JAD is pre 1.5 so doesn't do that.
    */
   public void doRender(Entity par1Entity, double par2, double par4, double par6, float par8, float par9)
   {
      IIcon icon = this.field_94151_a.getIconFromDamage(this.field_94150_f);


      if (icon != null)
      {
         GL11.glPushMatrix();
         GL11.glTranslatef((float)par2, (float)par4, (float)par6);
         GL11.glEnable(GL12.GL_RESCALE_NORMAL);
         GL11.glScalef(0.5F, 0.5F, 0.5F);
         // this.func_110777_b(par1Entity); // worked in Forge 804, but no longer; use this:
         this.bindEntityTexture(par1Entity);
         Tessellator tessellator = Tessellator.instance;


         this.func_77026_a(tessellator, icon);
         GL11.glDisable(GL12.GL_RESCALE_NORMAL);
         GL11.glPopMatrix();
      }
   }
   @Override
   protected ResourceLocation getEntityTexture(Entity entity)
   {
      return TextureMap.locationItemsTexture;
   }


   private void func_77026_a(Tessellator par1Tessellator, IIcon par2Icon)
   {
      float f = par2Icon.getMinU();
      float f1 = par2Icon.getMaxU();
      float f2 = par2Icon.getMinV();
      float f3 = par2Icon.getMaxV();
      float f4 = 1.0F;
      float f5 = 0.5F;
      float f6 = 0.25F;
      GL11.glRotatef(180.0F - this.renderManager.playerViewY, 0.0F, 1.0F, 0.0F);
      GL11.glRotatef(-this.renderManager.playerViewX, 1.0F, 0.0F, 0.0F);
      par1Tessellator.startDrawingQuads();
      par1Tessellator.setNormal(0.0F, 1.0F, 0.0F);
      par1Tessellator.addVertexWithUV((double)(0.0F - f5), (double)(0.0F - f6), 0.0D, (double)f, (double)f3);
      par1Tessellator.addVertexWithUV((double)(f4 - f5), (double)(0.0F - f6), 0.0D, (double)f1, (double)f3);
      par1Tessellator.addVertexWithUV((double)(f4 - f5), (double)(f4 - f6), 0.0D, (double)f1, (double)f2);
      par1Tessellator.addVertexWithUV((double)(0.0F - f5), (double)(f4 - f6), 0.0D, (double)f, (double)f2);
      par1Tessellator.draw();
   }
}

 

And here's the error report:


---- Minecraft Crash Report ----
// Surprise! Haha. Well, this is awkward.


Time: 6/3/14 10:29 AM
Description: Rendering entity in world


java.lang.NullPointerException: Rendering entity in world
   at alchemymouse.arcana.RenderArcanaThrowable.doRender(RenderArcanaThrowable.java:43)
   at net.minecraft.client.renderer.entity.RenderManager.func_147939_a(RenderManager.java:300)
   at net.minecraft.client.renderer.entity.RenderManager.renderEntityStatic(RenderManager.java:278)
   at net.minecraft.client.renderer.entity.RenderManager.renderEntitySimple(RenderManager.java:251)
   at net.minecraft.client.renderer.RenderGlobal.renderEntities(RenderGlobal.java:532)
   at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1295)
   at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1094)
   at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1022)
   at net.minecraft.client.Minecraft.run(Minecraft.java:910)
   at net.minecraft.client.main.Main.main(Main.java:112)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:606)
   at net.minecraft.launchwrapper.Launch.launch(Launch.java:134)
   at net.minecraft.launchwrapper.Launch.main(Launch.java:28)




A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------


-- Head --
Stacktrace:
   at alchemymouse.arcana.RenderArcanaThrowable.doRender(RenderArcanaThrowable.java:43)


-- Entity being rendered --
Details:
   Entity Type: arcana.Danmaku Bullet (alchemymouse.arcana.EntityDanmaku)
   Entity ID: 1428
   Entity Name: entity.arcana.Danmaku Bullet.name
   Entity's Exact location: 275.60, 56.74, 132.01
   Entity's Block location: World: (275,56,132), Chunk: (at 3,3,4 in 17,8; contains blocks 272,0,128 to 287,255,143), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
   Entity's Momentum: -0.12, 0.00, 0.22


-- Renderer details --
Details:
   Assigned renderer: alchemymouse.arcana.RenderArcanaThrowable@5d212dc5
   Location: -0.48,-0.88,0.64 - World: (-1,-1,0), Chunk: (at 15,-1,0 in -1,0; contains blocks -16,0,0 to -1,255,15), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
   Rotation: -30.0
   Delta: 0.07442641
Stacktrace:
   at net.minecraft.client.renderer.entity.RenderManager.func_147939_a(RenderManager.java:300)
   at net.minecraft.client.renderer.entity.RenderManager.renderEntityStatic(RenderManager.java:278)
   at net.minecraft.client.renderer.entity.RenderManager.renderEntitySimple(RenderManager.java:251)
   at net.minecraft.client.renderer.RenderGlobal.renderEntities(RenderGlobal.java:532)
   at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1295)


-- Affected level --
Details:
   Level name: MpServer
   All players: 1 total; [EntityClientPlayerMP['Player628'/0, l='MpServer', x=276.19, y=57.62, z=131.18]]
   Chunk stats: MultiplayerChunkCache: 85, 85
   Level seed: 0
   Level generator: ID 01 - flat, ver 0. Features enabled: false
   Level generator options: 
   Level spawn location: World: (259,4,142), Chunk: (at 3,0,14 in 16,8; contains blocks 256,0,128 to 271,255,143), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
   Level time: 7113 game time, 7113 day time
   Level dimension: 0
   Level storage version: 0x00000 - Unknown?
   Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
   Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
   Forced entities: 14 total; [EntityClientPlayerMP['Player628'/0, l='MpServer', x=276.19, y=57.62, z=131.18], EntityDanmaku['entity.arcana.Danmaku Bullet.name'/1427, l='MpServer', x=276.17, y=56.74, z=132.16], EntityDanmaku['entity.arcana.Danmaku Bullet.name'/1424, l='MpServer', x=277.16, y=56.74, z=131.59], EntityDanmaku['entity.arcana.Danmaku Bullet.name'/1425, l='MpServer', x=276.74, y=56.74, z=132.01], EntityDanmaku['entity.arcana.Danmaku Bullet.name'/1430, l='MpServer', x=275.18, y=56.74, z=131.59], EntityDanmaku['entity.arcana.Danmaku Bullet.name'/1431, l='MpServer', x=275.03, y=56.74, z=131.02], EntityDanmaku['entity.arcana.Danmaku Bullet.name'/1428, l='MpServer', x=275.60, y=56.74, z=132.01], EntityDanmaku['entity.arcana.Danmaku Bullet.name'/1434, l='MpServer', x=275.60, y=56.74, z=130.04], EntityDanmaku['entity.arcana.Danmaku Bullet.name'/1433, l='MpServer', x=275.18, y=56.74, z=130.45], EntityDanmaku['entity.arcana.Danmaku Bullet.name'/1423, l='MpServer', x=277.31, y=56.74, z=131.02], EntityDanmaku['entity.arcana.Danmaku Bullet.name'/1439, l='MpServer', x=277.16, y=56.74, z=130.45], EntityDanmaku['entity.arcana.Danmaku Bullet.name'/1436, l='MpServer', x=276.17, y=56.74, z=129.88], EntityDanmakuCenter['unknown'/1421, l='MpServer', x=276.17, y=57.64, z=131.02], EntityDanmaku['entity.arcana.Danmaku Bullet.name'/1437, l='MpServer', x=276.74, y=56.74, z=130.04]]
   Retry entities: 0 total; []
   Server brand: fml,forge
   Server type: Integrated singleplayer server
Stacktrace:
   at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:412)
   at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2521)
   at net.minecraft.client.Minecraft.run(Minecraft.java:932)
   at net.minecraft.client.main.Main.main(Main.java:112)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:606)
   at net.minecraft.launchwrapper.Launch.launch(Launch.java:134)
   at net.minecraft.launchwrapper.Launch.main(Launch.java:28)


-- System Details --
Details:
   Minecraft Version: 1.7.2
   Operating System: Windows 7 (amd64) version 6.1
   Java Version: 1.7.0_25, Oracle Corporation
   Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
   Memory: 793287608 bytes (756 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
   JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
   AABB Pool Size: 9283 (519848 bytes; 0 MB) allocated, 59 (3304 bytes; 0 MB) used
   IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
   FML: MCP v9.01-pre FML v7.2.156.1060 Minecraft Forge 10.12.1.1060 5 mods loaded, 5 mods active
   mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
   FML{7.2.156.1060} [Forge Mod Loader] (forgeSrc-1.7.2-10.12.1.1060.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
   Forge{10.12.1.1060} [Minecraft Forge] (forgeSrc-1.7.2-10.12.1.1060.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
   arcana{1.0} [arcana] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
   examplemod{1.0} [Example Mod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
   Launched Version: 1.6
   LWJGL: 2.9.0
   OpenGL: Intel(R) HD Graphics 2500 GL version 4.0.0 - Build 9.17.10.2932, Intel
   Is Modded: Definitely; Client brand changed to 'fml,forge'
   Type: Client (map_client.txt)
   Resource Packs: []
   Current Language: English (US)
   Profiler Position: N/A (disabled)
   Vec3 Pool Size: 120 (6720 bytes; 0 MB) allocated, 120 (6720 bytes; 0 MB) used
   Anisotropic Filtering: Off (1)
#@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Mike\Desktop\Modding\1.7.2\Arcana\eclipse\.\crash-reports\crash-2014-06-03_10.29.17-client.txt
AL lib: (EE) alc_cleanup: 1 device not closed

 

 

Thanks in advance for any help you can give me. Oh, and sorry for being too stupid to figure out how to use spoilers.

Posted

This is in the crash report:
code]java.lang.NullPointerException: Rendering entity in world
at alchemymouse.arcana.RenderArcanaThrowable.doRender(RenderArcanaThrowable.java:43)

So in line 43 is something null, so could you show that exact line?

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Posted

Here's line 43. If I use RenderSnowball, it gives me the same errors, and the same exact line. I tried making a new item and using that icon, but that didn't change anything.

IIcon icon = this.item.getIconFromDamage(this.meta);

Posted

Hi

 

So my train of thought on this

 

1) One of the variables on this line is null and a method is being called on it

IIcon icon = this.item.getIconFromDamage(this.meta);

--> There is only one possibility (item) since this can't be null.

2) Why is this.item null?  It is being set in the constructor

   public RenderArcanaThrowable(Item par1Item, int par2)
   {
      this.field_94151_a = par1Item;
      this.field_94150_f = par2;
   }

3) The constructor is being called here

      RenderingRegistry.registerEntityRenderingHandler(EntityDanmaku.class, new RenderArcanaThrowable(ArcanaModBase.danmaku, 1));

so it appears that ArcanaModBase.danmaku is null

4) Why is that null?

      danmaku = (ItemDanmaku)Item.itemRegistry.getObject("danmaku");

Perhaps this call is failing, perhaps it is being called after the registryEntityRenderingHandler, or perhaps it is not the same variable as ArcanaModBase.danmaku

 

At this point I would either use a breakpoint (if you know how to do that) or alternatively insert a

System.out.println("danmaku is null:" + (danmaku == null));   // or parItem1 == null or this.item == null  as appropriate

into a  couple of your methods, i.e. in the constructor, just after getObject("danmaku"), etc

 

Once you've narrowed that down, you can keep troubleshooting in the same way until you get to the root cause.  If you get stuck again, let us know?

 

-TGG

 

 

 

Posted

Hi

 

So my train of thought on this

 

1) One of the variables on this line is null and a method is being called on it

IIcon icon = this.item.getIconFromDamage(this.meta);

--> There is only one possibility (item) since this can't be null.

2) Why is this.item null?  It is being set in the constructor

   public RenderArcanaThrowable(Item par1Item, int par2)
   {
      this.field_94151_a = par1Item;
      this.field_94150_f = par2;
   }

3) The constructor is being called here

      RenderingRegistry.registerEntityRenderingHandler(EntityDanmaku.class, new RenderArcanaThrowable(ArcanaModBase.danmaku, 1));

so it appears that ArcanaModBase.danmaku is null

4) Why is that null?

      danmaku = (ItemDanmaku)Item.itemRegistry.getObject("danmaku");

Perhaps this call is failing, perhaps it is being called after the registryEntityRenderingHandler, or perhaps it is not the same variable as ArcanaModBase.danmaku

 

At this point I would either use a breakpoint (if you know how to do that) or alternatively insert a

System.out.println("danmaku is null:" + (danmaku == null));   // or parItem1 == null or this.item == null  as appropriate

into a  couple of your methods, i.e. in the constructor, just after getObject("danmaku"), etc

 

Once you've narrowed that down, you can keep troubleshooting in the same way until you get to the root cause.  If you get stuck again, let us know?

 

-TGG

 

Thanks a lot for the help! I'll work on it.

Posted
@EventHandler

  public void init(FMLInitializationEvent event)

  {

      createItems();

      registerItems();

      registerRenders();

      registerEntity();

  }

You need to create and register items and blocks in preInit and not init.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Posted

Thanks.

I was too stupid to properly register my Items and stuff. Fixed that, but ran into more problems. I'm not very experienced with Java, so thanks for the help. The item works for about a half a second, as I can see the entities being spawned, then the game quits to menu and tells me"Connection Lost: A fatal error has occurred, this connection is terminated", and sends me to the multiplayer server screen. I'm getting a bunch of errors in the log that have this line in them, and I noticed the same line while trying to fix the other problem:

java.lang.RuntimeException: java.lang.NoSuchMethodException: alchemymouse.arcana.EntityDanmakuCenter.<init>(net.minecraft.world.World)

The lines beneath it in the log are always one of these 2, so I can't edit them (seeing as they're either MC code or Java stuff or whatever):


java.lang.NoSuchMethodException: alchemymouse.arcana.EntityDanmakuCenter.<init>(net.minecraft.world.World)
at java.lang.Class.getConstructor0(Class.java:2800) ~[?:1.7.0_25]
at java.lang.Class.getConstructor(Class.java:1708) ~[?:1.7.0_25]


java.lang.RuntimeException: java.lang.NoSuchMethodException: alchemymouse.arcana.EntityDanmakuCenter.<init>(net.minecraft.world.World)
at com.google.common.base.Throwables.propagate(Throwables.java:160) ~[guava-15.0.jar:?]
at cpw.mods.fml.common.network.internal.EntitySpawnHandler.spawnEntity(EntitySpawnHandler.java:121) ~[EntitySpawnHandler.class:?]
at cpw.mods.fml.common.network.internal.EntitySpawnHandler.channelRead0(EntitySpawnHandler.java:34) ~[EntitySpawnHandler.class:?]

And my changed modfile:
[code]

@EventHandler
public void preInit(FMLPreInitializationEvent event)
{
	Configuration config = new Configuration(event.getSuggestedConfigurationFile());
	instance = this;
	config.load();
	config.save();
}
@EventHandler
public void init(FMLInitializationEvent event)
{
	createItems();
	registerItems();
	registerRenders();
	registerEntity();
}
public static void registerItems()
{
	GameRegistry.registerItem(danmaku, "danmaku");
}
public static void createItems()
{
	danmaku = (ItemDanmaku) new ItemDanmaku().setUnlocalizedName("danmaku").setTextureName("danmaku");
}

@EventHandler

  public void init(FMLInitializationEvent event)

  {

      createItems();

      registerItems();

      registerRenders();

      registerEntity();

  }

You need to create and register items and blocks in preInit and not init.

Moving the registration stuff doesn't change any of these new errors, but thanks for the help.

Posted

Can we have the full log?

@EventHandler
public void preInit(FMLPreInitializationEvent event)
{
	Configuration config = new Configuration(event.getSuggestedConfigurationFile());
	instance = this;
	config.load();
	config.save();
}
@EventHandler
public void init(FMLInitializationEvent event)
{
	createItems();
	registerItems();
	registerRenders();
	registerEntity();
}

I don't see all the registering stuff in preInit. Move the createItems() and all the other methods from init to preInit.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Posted

The full log is huge, and when I moved the stuff to preInit(), it didn't change anything. I'll keep it there though, if that's the correct way to do it.

Starting up SoundSystem...
Initializing LWJGL OpenAL
    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
OpenAL initialized.

[12:03:45] [sound Library Loader/INFO]: Sound engine started
[12:03:45] [MCO Availability Checker #1/ERROR]: Couldn't connect to Realms
[12:04:25] [server thread/INFO]: Starting integrated minecraft server version 1.7.2
[12:04:25] [server thread/INFO]: Generating keypair
[12:04:25] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance
[12:04:25] [server thread/INFO] [FML]: Loading dimension 0 (Test) (net.minecraft.server.integrated.IntegratedServer@25b0aaa8)
[12:04:25] [server thread/INFO] [FML]: Loading dimension 1 (Test) (net.minecraft.server.integrated.IntegratedServer@25b0aaa8)
[12:04:25] [server thread/INFO] [FML]: Loading dimension -1 (Test) (net.minecraft.server.integrated.IntegratedServer@25b0aaa8)
[12:04:25] [server thread/INFO]: Preparing start region for level 0
[12:04:26] [server thread/WARN]: Skipping Entity with id arcana.danmakuCenter
java.lang.NoSuchMethodException: alchemymouse.arcana.EntityDanmakuCenter.<init>(net.minecraft.world.World)
[12:04:26] [server thread/WARN]: Skipping Entity with id arcana.danmakuBullet
   at java.lang.Class.getConstructor0(Class.java:2800)
   at java.lang.Class.getConstructor(Class.java:1708)
   at net.minecraft.entity.EntityList.createEntityFromNBT(EntityList.java:178)
   at net.minecraft.world.chunk.storage.AnvilChunkLoader.readChunkFromNBT(AnvilChunkLoader.java:416)
   at net.minecraft.world.chunk.storage.AnvilChunkLoader.checkedReadChunkFromNBT(AnvilChunkLoader.java:108)
   at net.minecraft.world.chunk.storage.AnvilChunkLoader.loadChunk(AnvilChunkLoader.java:88)
   at net.minecraft.world.gen.ChunkProviderServer.safeLoadChunk(ChunkProviderServer.java:179)
   at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:120)
   at net.minecraft.server.MinecraftServer.initialWorldChunkLoad(MinecraftServer.java:307)
   at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:79)
   at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:96)
   at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:442)
   at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:742)
java.lang.NoSuchMethodException: alchemymouse.arcana.EntityDanmaku.<init>(net.minecraft.world.World)
   at java.lang.Class.getConstructor0(Class.java:2800)
   at java.lang.Class.getConstructor(Class.java:1708)
   at net.minecraft.entity.EntityList.createEntityFromNBT(EntityList.java:178)
   at net.minecraft.world.chunk.storage.AnvilChunkLoader.readChunkFromNBT(AnvilChunkLoader.java:416)
   at net.minecraft.world.chunk.storage.AnvilChunkLoader.checkedReadChunkFromNBT(AnvilChunkLoader.java:108)
   at net.minecraft.world.chunk.storage.AnvilChunkLoader.loadChunk(AnvilChunkLoader.java:88)
   at net.minecraft.world.gen.ChunkProviderServer.safeLoadChunk(ChunkProviderServer.java:179)
   at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:120)
   at net.minecraft.server.MinecraftServer.initialWorldChunkLoad(MinecraftServer.java:307)
   at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:79)
   at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:96)
   at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:442)
   at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:742)
java.lang.NoSuchMethodException: alchemymouse.arcana.EntityDanmaku.<init>(net.minecraft.world.World)
   at java.lang.Class.getConstructor0(Class.java:2800)
   at java.lang.Class.getConstructor(Class.java:1708)
   at net.minecraft.entity.EntityList.createEntityFromNBT(EntityList.java:178)
   at net.minecraft.world.chunk.storage.AnvilChunkLoader.readChunkFromNBT(AnvilChunkLoader.java:416)
   at net.minecraft.world.chunk.storage.AnvilChunkLoader.checkedReadChunkFromNBT(AnvilChunkLoader.java:108)
   at net.minecraft.world.chunk.storage.AnvilChunkLoader.loadChunk(AnvilChunkLoader.java:88)
   at net.minecraft.world.gen.ChunkProviderServer.safeLoadChunk(ChunkProviderServer.java:179)
   at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:120)
   at net.minecraft.server.MinecraftServer.initialWorldChunkLoad(MinecraftServer.java:307)
   at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:79)
   at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:96)
   at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:442)
   at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:742)
[12:04:26] [server thread/WARN]: Skipping Entity with id arcana.danmakuBullet
java.lang.NoSuchMethodException: alchemymouse.arcana.EntityDanmaku.<init>(net.minecraft.world.World)
   at java.lang.Class.getConstructor0(Class.java:2800)
   at java.lang.Class.getConstructor(Class.java:1708)
   at net.minecraft.entity.EntityList.createEntityFromNBT(EntityList.java:178)
   at net.minecraft.world.chunk.storage.AnvilChunkLoader.readChunkFromNBT(AnvilChunkLoader.java:416)
   at net.minecraft.world.chunk.storage.AnvilChunkLoader.checkedReadChunkFromNBT(AnvilChunkLoader.java:108)
   at net.minecraft.world.chunk.storage.AnvilChunkLoader.loadChunk(AnvilChunkLoader.java:88)
   at net.minecraft.world.gen.ChunkProviderServer.safeLoadChunk(ChunkProviderServer.java:179)
   at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:120)
   at net.minecraft.server.MinecraftServer.initialWorldChunkLoad(MinecraftServer.java:307)
   at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:79)
   at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:96)
   at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:442)
   at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:742)
java.lang.NoSuchMethodException: alchemymouse.arcana.EntityDanmaku.<init>(net.minecraft.world.World)
   at java.lang.Class.getConstructor0(Class.java:2800)
   at java.lang.Class.getConstructor(Class.java:1708)
   at net.minecraft.entity.EntityList.createEntityFromNBT(EntityList.java:178)
   at net.minecraft.world.chunk.storage.AnvilChunkLoader.readChunkFromNBT(AnvilChunkLoader.java:416)
[12:04:26] [server thread/WARN]: Skipping Entity with id arcana.danmakuBullet
   at net.minecraft.world.chunk.storage.AnvilChunkLoader.checkedReadChunkFromNBT(AnvilChunkLoader.java:108)
   at net.minecraft.world.chunk.storage.AnvilChunkLoader.loadChunk(AnvilChunkLoader.java:88)
   at net.minecraft.world.gen.ChunkProviderServer.safeLoadChunk(ChunkProviderServer.java:179)
   at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:120)
   at net.minecraft.server.MinecraftServer.initialWorldChunkLoad(MinecraftServer.java:307)
   at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:79)
   at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:96)
   at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:442)
   at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:742)
[12:04:26] [server thread/WARN]: Skipping Entity with id arcana.danmakuBullet
java.lang.NoSuchMethodException: alchemymouse.arcana.EntityDanmaku.<init>(net.minecraft.world.World)
   at java.lang.Class.getConstructor0(Class.java:2800)
   at java.lang.Class.getConstructor(Class.java:1708)
   at net.minecraft.entity.EntityList.createEntityFromNBT(EntityList.java:178)
   at net.minecraft.world.chunk.storage.AnvilChunkLoader.readChunkFromNBT(AnvilChunkLoader.java:416)
   at net.minecraft.world.chunk.storage.AnvilChunkLoader.checkedReadChunkFromNBT(AnvilChunkLoader.java:108)
   at net.minecraft.world.chunk.storage.AnvilChunkLoader.loadChunk(AnvilChunkLoader.java:88)
   at net.minecraft.world.gen.ChunkProviderServer.safeLoadChunk(ChunkProviderServer.java:179)
   at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:120)
   at net.minecraft.server.MinecraftServer.initialWorldChunkLoad(MinecraftServer.java:307)
   at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:79)
   at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:96)
   at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:442)
   at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:742)
[12:04:26] [server thread/WARN]: Skipping Entity with id arcana.danmakuBullet
java.lang.NoSuchMethodException: alchemymouse.arcana.EntityDanmaku.<init>(net.minecraft.world.World)
   at java.lang.Class.getConstructor0(Class.java:2800)
   at java.lang.Class.getConstructor(Class.java:1708)
   at net.minecraft.entity.EntityList.createEntityFromNBT(EntityList.java:178)
   at net.minecraft.world.chunk.storage.AnvilChunkLoader.readChunkFromNBT(AnvilChunkLoader.java:416)
   at net.minecraft.world.chunk.storage.AnvilChunkLoader.checkedReadChunkFromNBT(AnvilChunkLoader.java:108)
   at net.minecraft.world.chunk.storage.AnvilChunkLoader.loadChunk(AnvilChunkLoader.java:88)
   at net.minecraft.world.gen.ChunkProviderServer.safeLoadChunk(ChunkProviderServer.java:179)
   at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:120)
   at net.minecraft.server.MinecraftServer.initialWorldChunkLoad(MinecraftServer.java:307)
   at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:79)
   at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:96)
   at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:442)
   at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:742)
[12:04:26] [server thread/WARN]: Skipping Entity with id arcana.danmakuBullet
java.lang.NoSuchMethodException: alchemymouse.arcana.EntityDanmaku.<init>(net.minecraft.world.World)
   at java.lang.Class.getConstructor0(Class.java:2800)
   at java.lang.Class.getConstructor(Class.java:1708)
   at net.minecraft.entity.EntityList.createEntityFromNBT(EntityList.java:178)
   at net.minecraft.world.chunk.storage.AnvilChunkLoader.readChunkFromNBT(AnvilChunkLoader.java:416)
   at net.minecraft.world.chunk.storage.AnvilChunkLoader.checkedReadChunkFromNBT(AnvilChunkLoader.java:108)
   at net.minecraft.world.chunk.storage.AnvilChunkLoader.loadChunk(AnvilChunkLoader.java:88)
   at net.minecraft.world.gen.ChunkProviderServer.safeLoadChunk(ChunkProviderServer.java:179)
   at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:120)
   at net.minecraft.server.MinecraftServer.initialWorldChunkLoad(MinecraftServer.java:307)
   at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:79)
   at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:96)
   at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:442)
   at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:742)
[12:04:26] [server thread/WARN]: Skipping Entity with id arcana.danmakuBullet
java.lang.NoSuchMethodException: alchemymouse.arcana.EntityDanmaku.<init>(net.minecraft.world.World)
   at java.lang.Class.getConstructor0(Class.java:2800)
   at java.lang.Class.getConstructor(Class.java:1708)
   at net.minecraft.entity.EntityList.createEntityFromNBT(EntityList.java:178)
   at net.minecraft.world.chunk.storage.AnvilChunkLoader.readChunkFromNBT(AnvilChunkLoader.java:416)
   at net.minecraft.world.chunk.storage.AnvilChunkLoader.checkedReadChunkFromNBT(AnvilChunkLoader.java:108)
   at net.minecraft.world.chunk.storage.AnvilChunkLoader.loadChunk(AnvilChunkLoader.java:88)
   at net.minecraft.world.gen.ChunkProviderServer.safeLoadChunk(ChunkProviderServer.java:179)
   at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:120)
   at net.minecraft.server.MinecraftServer.initialWorldChunkLoad(MinecraftServer.java:307)
   at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:79)
   at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:96)
   at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:442)
   at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:742)
[12:04:26] [server thread/WARN]: Skipping Entity with id arcana.danmakuBullet
java.lang.NoSuchMethodException: alchemymouse.arcana.EntityDanmaku.<init>(net.minecraft.world.World)
   at java.lang.Class.getConstructor0(Class.java:2800)
   at java.lang.Class.getConstructor(Class.java:1708)
   at net.minecraft.entity.EntityList.createEntityFromNBT(EntityList.java:178)
   at net.minecraft.world.chunk.storage.AnvilChunkLoader.readChunkFromNBT(AnvilChunkLoader.java:416)
   at net.minecraft.world.chunk.storage.AnvilChunkLoader.checkedReadChunkFromNBT(AnvilChunkLoader.java:108)
   at net.minecraft.world.chunk.storage.AnvilChunkLoader.loadChunk(AnvilChunkLoader.java:88)
   at net.minecraft.world.gen.ChunkProviderServer.safeLoadChunk(ChunkProviderServer.java:179)
   at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:120)
   at net.minecraft.server.MinecraftServer.initialWorldChunkLoad(MinecraftServer.java:307)
   at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:79)
   at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:96)
   at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:442)
   at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:742)
[12:04:26] [server thread/WARN]: Skipping Entity with id arcana.danmakuBullet
java.lang.NoSuchMethodException: alchemymouse.arcana.EntityDanmaku.<init>(net.minecraft.world.World)
   at java.lang.Class.getConstructor0(Class.java:2800)
   at java.lang.Class.getConstructor(Class.java:1708)
   at net.minecraft.entity.EntityList.createEntityFromNBT(EntityList.java:178)
   at net.minecraft.world.chunk.storage.AnvilChunkLoader.readChunkFromNBT(AnvilChunkLoader.java:416)
   at net.minecraft.world.chunk.storage.AnvilChunkLoader.checkedReadChunkFromNBT(AnvilChunkLoader.java:108)
   at net.minecraft.world.chunk.storage.AnvilChunkLoader.loadChunk(AnvilChunkLoader.java:88)
   at net.minecraft.world.gen.ChunkProviderServer.safeLoadChunk(ChunkProviderServer.java:179)
   at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:120)
   at net.minecraft.server.MinecraftServer.initialWorldChunkLoad(MinecraftServer.java:307)
   at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:79)
   at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:96)
   at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:442)
   at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:742)
[12:04:26] [server thread/WARN]: Skipping Entity with id arcana.danmakuBullet
java.lang.NoSuchMethodException: alchemymouse.arcana.EntityDanmaku.<init>(net.minecraft.world.World)
   at java.lang.Class.getConstructor0(Class.java:2800)
   at java.lang.Class.getConstructor(Class.java:1708)
   at net.minecraft.entity.EntityList.createEntityFromNBT(EntityList.java:178)
   at net.minecraft.world.chunk.storage.AnvilChunkLoader.readChunkFromNBT(AnvilChunkLoader.java:416)
   at net.minecraft.world.chunk.storage.AnvilChunkLoader.checkedReadChunkFromNBT(AnvilChunkLoader.java:108)
   at net.minecraft.world.chunk.storage.AnvilChunkLoader.loadChunk(AnvilChunkLoader.java:88)
   at net.minecraft.world.gen.ChunkProviderServer.safeLoadChunk(ChunkProviderServer.java:179)
   at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:120)
   at net.minecraft.server.MinecraftServer.initialWorldChunkLoad(MinecraftServer.java:307)
   at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:79)
   at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:96)
   at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:442)
   at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:742)
[12:04:26] [server thread/WARN]: Skipping Entity with id arcana.danmakuBullet
java.lang.NoSuchMethodException: alchemymouse.arcana.EntityDanmaku.<init>(net.minecraft.world.World)
   at java.lang.Class.getConstructor0(Class.java:2800)
   at java.lang.Class.getConstructor(Class.java:1708)
   at net.minecraft.entity.EntityList.createEntityFromNBT(EntityList.java:178)
   at net.minecraft.world.chunk.storage.AnvilChunkLoader.readChunkFromNBT(AnvilChunkLoader.java:416)
   at net.minecraft.world.chunk.storage.AnvilChunkLoader.checkedReadChunkFromNBT(AnvilChunkLoader.java:108)
   at net.minecraft.world.chunk.storage.AnvilChunkLoader.loadChunk(AnvilChunkLoader.java:88)
   at net.minecraft.world.gen.ChunkProviderServer.safeLoadChunk(ChunkProviderServer.java:179)
   at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:120)
   at net.minecraft.server.MinecraftServer.initialWorldChunkLoad(MinecraftServer.java:307)
   at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:79)
   at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:96)
   at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:442)
   at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:742)
[12:04:26] [server thread/WARN]: Skipping Entity with id arcana.danmakuBullet
[12:04:27] [Netty Client IO #0/INFO] [FML]: Server protocol version 1
[12:04:27] [Netty IO #1/INFO] [FML]: Client protocol version 1
[12:04:27] [Netty IO #1/INFO] [FML]: Client attempting to join with 5 mods : [email protected],[email protected],[email protected],[email protected],[email protected]
[12:04:27] [Netty IO #1/INFO] [FML]: Attempting connection with missing mods [] at CLIENT
[12:04:27] [Netty Client IO #0/INFO] [FML]: Attempting connection with missing mods [] at SERVER
[12:04:27] [Client thread/INFO] [FML]: [Client thread] Client side modded connection established
[12:04:27] [server thread/INFO] [FML]: [server thread] Server side modded connection established
[12:04:27] [server thread/INFO]: Player790[local:E:45ea6a28] logged in with entity id 297 at (149.7501658085568, 80.14457015784281, 255.59803611294132)
[12:04:27] [server thread/INFO]: Player790 joined the game
[12:04:27] [server thread/INFO]: Saving and pausing game...
[12:04:27] [server thread/INFO]: Saving chunks for level 'Test'/Overworld
[12:04:27] [server thread/INFO]: Saving chunks for level 'Test'/Nether
[12:04:27] [server thread/INFO]: Saving chunks for level 'Test'/The End
[12:04:45] [Client thread/WARN]: Failed to load texture: arcana:textures/items/
java.io.FileNotFoundException: arcana:textures/items/
   at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?]
   at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[simpleReloadableResourceManager.class:?]
   at net.minecraft.client.renderer.texture.SimpleTexture.loadTexture(SimpleTexture.java:35) ~[simpleTexture.class:?]
   at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
   at net.minecraft.client.renderer.texture.TextureManager.bindTexture(TextureManager.java:45) [TextureManager.class:?]
   at net.minecraft.client.renderer.entity.Render.bindTexture(Render.java:62) [Render.class:?]
   at net.minecraft.client.renderer.entity.Render.bindEntityTexture(Render.java:57) [Render.class:?]
   at alchemymouse.arcana.RenderArcanaThrowable.doRender(RenderArcanaThrowable.java:51) [RenderArcanaThrowable.class:?]
   at net.minecraft.client.renderer.entity.RenderManager.func_147939_a(RenderManager.java:300) [RenderManager.class:?]
   at net.minecraft.client.renderer.entity.RenderManager.renderEntityStatic(RenderManager.java:278) [RenderManager.class:?]
   at net.minecraft.client.renderer.entity.RenderManager.renderEntitySimple(RenderManager.java:251) [RenderManager.class:?]
   at net.minecraft.client.renderer.RenderGlobal.renderEntities(RenderGlobal.java:532) [RenderGlobal.class:?]
   at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1295) [EntityRenderer.class:?]
   at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1094) [EntityRenderer.class:?]
   at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1022) [Minecraft.class:?]
   at net.minecraft.client.Minecraft.run(Minecraft.java:910) [Minecraft.class:?]
   at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_25]
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_25]
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_25]
   at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_25]
   at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]
   at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]
[12:04:46] [Client thread/ERROR] [FML]: A severe problem occurred during the spawning of an entity
java.lang.NoSuchMethodException: alchemymouse.arcana.EntityDanmakuCenter.<init>(net.minecraft.world.World)
   at java.lang.Class.getConstructor0(Class.java:2800) ~[?:1.7.0_25]
   at java.lang.Class.getConstructor(Class.java:1708) ~[?:1.7.0_25]
   at cpw.mods.fml.common.network.internal.EntitySpawnHandler.spawnEntity(EntitySpawnHandler.java:72) [EntitySpawnHandler.class:?]
   at cpw.mods.fml.common.network.internal.EntitySpawnHandler.channelRead0(EntitySpawnHandler.java:34) [EntitySpawnHandler.class:?]
   at cpw.mods.fml.common.network.internal.EntitySpawnHandler.channelRead0(EntitySpawnHandler.java:28) [EntitySpawnHandler.class:?]
   at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:98) [simpleChannelInboundHandler.class:?]
   at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?]
   at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?]
   at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [MessageToMessageDecoder.class:?]
   at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) [MessageToMessageCodec.class:?]
   at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?]
   at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?]
   at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) [DefaultChannelPipeline.class:?]
   at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169) [EmbeddedChannel.class:?]
   at cpw.mods.fml.common.network.internal.FMLProxyPacket.processPacket(FMLProxyPacket.java:80) [FMLProxyPacket.class:?]
   at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:232) [NetworkManager.class:?]
   at net.minecraft.client.multiplayer.PlayerControllerMP.updateController(PlayerControllerMP.java:321) [PlayerControllerMP.class:?]
   at net.minecraft.client.Minecraft.runTick(Minecraft.java:1647) [Minecraft.class:?]
   at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:994) [Minecraft.class:?]
   at net.minecraft.client.Minecraft.run(Minecraft.java:910) [Minecraft.class:?]
   at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_25]
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_25]
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_25]
   at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_25]
   at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]
   at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]
[12:04:46] [Client thread/ERROR] [FML]: EntitySpawnHandler exception
java.lang.RuntimeException: java.lang.NoSuchMethodException: alchemymouse.arcana.EntityDanmakuCenter.<init>(net.minecraft.world.World)
   at com.google.common.base.Throwables.propagate(Throwables.java:160) ~[guava-15.0.jar:?]
   at cpw.mods.fml.common.network.internal.EntitySpawnHandler.spawnEntity(EntitySpawnHandler.java:121) ~[EntitySpawnHandler.class:?]
   at cpw.mods.fml.common.network.internal.EntitySpawnHandler.channelRead0(EntitySpawnHandler.java:34) ~[EntitySpawnHandler.class:?]
   at cpw.mods.fml.common.network.internal.EntitySpawnHandler.channelRead0(EntitySpawnHandler.java:28) ~[EntitySpawnHandler.class:?]
   at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:98) ~[simpleChannelInboundHandler.class:?]
   at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?]
   at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?]
   at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [MessageToMessageDecoder.class:?]
   at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) [MessageToMessageCodec.class:?]
   at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?]
   at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?]
   at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) [DefaultChannelPipeline.class:?]
   at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169) [EmbeddedChannel.class:?]
   at cpw.mods.fml.common.network.internal.FMLProxyPacket.processPacket(FMLProxyPacket.java:80) [FMLProxyPacket.class:?]
   at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:232) [NetworkManager.class:?]
   at net.minecraft.client.multiplayer.PlayerControllerMP.updateController(PlayerControllerMP.java:321) [PlayerControllerMP.class:?]
   at net.minecraft.client.Minecraft.runTick(Minecraft.java:1647) [Minecraft.class:?]
   at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:994) [Minecraft.class:?]
   at net.minecraft.client.Minecraft.run(Minecraft.java:910) [Minecraft.class:?]
   at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_25]
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_25]
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_25]
   at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_25]
   at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]
   at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]
Caused by: java.lang.NoSuchMethodException: alchemymouse.arcana.EntityDanmakuCenter.<init>(net.minecraft.world.World)
   at java.lang.Class.getConstructor0(Class.java:2800) ~[?:1.7.0_25]
   at java.lang.Class.getConstructor(Class.java:1708) ~[?:1.7.0_25]
   at cpw.mods.fml.common.network.internal.EntitySpawnHandler.spawnEntity(EntitySpawnHandler.java:72) ~[EntitySpawnHandler.class:?]
   ... 24 more
[12:04:46] [Client thread/ERROR] [FML]: OpenGuiHandler exception
java.lang.RuntimeException: java.lang.NoSuchMethodException: alchemymouse.arcana.EntityDanmakuCenter.<init>(net.minecraft.world.World)
   at com.google.common.base.Throwables.propagate(Throwables.java:160) ~[guava-15.0.jar:?]
   at cpw.mods.fml.common.network.internal.EntitySpawnHandler.spawnEntity(EntitySpawnHandler.java:121) ~[EntitySpawnHandler.class:?]
   at cpw.mods.fml.common.network.internal.EntitySpawnHandler.channelRead0(EntitySpawnHandler.java:34) ~[EntitySpawnHandler.class:?]
   at cpw.mods.fml.common.network.internal.EntitySpawnHandler.channelRead0(EntitySpawnHandler.java:28) ~[EntitySpawnHandler.class:?]
   at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:98) ~[simpleChannelInboundHandler.class:?]
   at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?]
   at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?]
   at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [MessageToMessageDecoder.class:?]
   at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) [MessageToMessageCodec.class:?]
   at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?]
   at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?]
   at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) [DefaultChannelPipeline.class:?]
   at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169) [EmbeddedChannel.class:?]
   at cpw.mods.fml.common.network.internal.FMLProxyPacket.processPacket(FMLProxyPacket.java:80) [FMLProxyPacket.class:?]
   at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:232) [NetworkManager.class:?]
   at net.minecraft.client.multiplayer.PlayerControllerMP.updateController(PlayerControllerMP.java:321) [PlayerControllerMP.class:?]
   at net.minecraft.client.Minecraft.runTick(Minecraft.java:1647) [Minecraft.class:?]
   at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:994) [Minecraft.class:?]
   at net.minecraft.client.Minecraft.run(Minecraft.java:910) [Minecraft.class:?]
   at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_25]
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_25]
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_25]
   at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_25]
   at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]
   at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]
Caused by: java.lang.NoSuchMethodException: alchemymouse.arcana.EntityDanmakuCenter.<init>(net.minecraft.world.World)
   at java.lang.Class.getConstructor0(Class.java:2800) ~[?:1.7.0_25]
   at java.lang.Class.getConstructor(Class.java:1708) ~[?:1.7.0_25]
   at cpw.mods.fml.common.network.internal.EntitySpawnHandler.spawnEntity(EntitySpawnHandler.java:72) ~[EntitySpawnHandler.class:?]
   ... 24 more
[12:04:46] [Client thread/ERROR] [FML]: HandshakeCompletionHandler exception
java.lang.RuntimeException: java.lang.NoSuchMethodException: alchemymouse.arcana.EntityDanmakuCenter.<init>(net.minecraft.world.World)
   at com.google.common.base.Throwables.propagate(Throwables.java:160) ~[guava-15.0.jar:?]
   at cpw.mods.fml.common.network.internal.EntitySpawnHandler.spawnEntity(EntitySpawnHandler.java:121) ~[EntitySpawnHandler.class:?]
   at cpw.mods.fml.common.network.internal.EntitySpawnHandler.channelRead0(EntitySpawnHandler.java:34) ~[EntitySpawnHandler.class:?]
   at cpw.mods.fml.common.network.internal.EntitySpawnHandler.channelRead0(EntitySpawnHandler.java:28) ~[EntitySpawnHandler.class:?]
   at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:98) ~[simpleChannelInboundHandler.class:?]
   at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?]
   at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?]
   at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [MessageToMessageDecoder.class:?]
   at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) [MessageToMessageCodec.class:?]
   at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?]
   at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?]
   at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) [DefaultChannelPipeline.class:?]
   at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169) [EmbeddedChannel.class:?]
   at cpw.mods.fml.common.network.internal.FMLProxyPacket.processPacket(FMLProxyPacket.java:80) [FMLProxyPacket.class:?]
   at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:232) [NetworkManager.class:?]
   at net.minecraft.client.multiplayer.PlayerControllerMP.updateController(PlayerControllerMP.java:321) [PlayerControllerMP.class:?]
   at net.minecraft.client.Minecraft.runTick(Minecraft.java:1647) [Minecraft.class:?]
   at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:994) [Minecraft.class:?]
   at net.minecraft.client.Minecraft.run(Minecraft.java:910) [Minecraft.class:?]
   at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_25]
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_25]
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_25]
   at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_25]
   at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]
   at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]
Caused by: java.lang.NoSuchMethodException: alchemymouse.arcana.EntityDanmakuCenter.<init>(net.minecraft.world.World)
   at java.lang.Class.getConstructor0(Class.java:2800) ~[?:1.7.0_25]
   at java.lang.Class.getConstructor(Class.java:1708) ~[?:1.7.0_25]
   at cpw.mods.fml.common.network.internal.EntitySpawnHandler.spawnEntity(EntitySpawnHandler.java:72) ~[EntitySpawnHandler.class:?]
   ... 24 more
[12:04:46] [Client thread/ERROR] [FML]: There was a critical exception handling a packet on channel FML
java.lang.RuntimeException: java.lang.NoSuchMethodException: alchemymouse.arcana.EntityDanmakuCenter.<init>(net.minecraft.world.World)
   at com.google.common.base.Throwables.propagate(Throwables.java:160) ~[guava-15.0.jar:?]
   at cpw.mods.fml.common.network.internal.EntitySpawnHandler.spawnEntity(EntitySpawnHandler.java:121) ~[EntitySpawnHandler.class:?]
   at cpw.mods.fml.common.network.internal.EntitySpawnHandler.channelRead0(EntitySpawnHandler.java:34) ~[EntitySpawnHandler.class:?]
   at cpw.mods.fml.common.network.internal.EntitySpawnHandler.channelRead0(EntitySpawnHandler.java:28) ~[EntitySpawnHandler.class:?]
   at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:98) ~[simpleChannelInboundHandler.class:?]
   at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) ~[DefaultChannelHandlerContext.class:?]
   at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) ~[DefaultChannelHandlerContext.class:?]
   at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) ~[MessageToMessageDecoder.class:?]
   at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) ~[MessageToMessageCodec.class:?]
   at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) ~[DefaultChannelHandlerContext.class:?]
   at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) ~[DefaultChannelHandlerContext.class:?]
   at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) ~[DefaultChannelPipeline.class:?]
   at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169) ~[EmbeddedChannel.class:?]
   at cpw.mods.fml.common.network.internal.FMLProxyPacket.processPacket(FMLProxyPacket.java:80) [FMLProxyPacket.class:?]
   at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:232) [NetworkManager.class:?]
   at net.minecraft.client.multiplayer.PlayerControllerMP.updateController(PlayerControllerMP.java:321) [PlayerControllerMP.class:?]
   at net.minecraft.client.Minecraft.runTick(Minecraft.java:1647) [Minecraft.class:?]
   at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:994) [Minecraft.class:?]
   at net.minecraft.client.Minecraft.run(Minecraft.java:910) [Minecraft.class:?]
   at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_25]
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_25]
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_25]
   at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_25]
   at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]
   at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]
Caused by: java.lang.NoSuchMethodException: alchemymouse.arcana.EntityDanmakuCenter.<init>(net.minecraft.world.World)
   at java.lang.Class.getConstructor0(Class.java:2800) ~[?:1.7.0_25]
   at java.lang.Class.getConstructor(Class.java:1708) ~[?:1.7.0_25]
   at cpw.mods.fml.common.network.internal.EntitySpawnHandler.spawnEntity(EntitySpawnHandler.java:72) ~[EntitySpawnHandler.class:?]
   ... 24 more
[12:04:46] [server thread/INFO]: Player790 lost connection: TranslatableComponent{key='disconnect.genericReason', args=[internal Exception: java.lang.ClassCastException: net.minecraft.network.NetHandlerPlayServer cannot be cast to net.minecraft.network.play.INetHandlerPlayClient], siblings=[], style=Style{hasParent=false, color=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null}}
[12:04:46] [server thread/INFO]: Player790 left the game
[12:04:46] [server thread/INFO]: Stopping singleplayer server as player logged out
[12:04:46] [server thread/INFO]: Stopping server
[12:04:46] [server thread/INFO]: Saving players
[12:04:46] [server thread/INFO]: Saving worlds
[12:04:46] [server thread/INFO]: Saving chunks for level 'Test'/Overworld
[12:04:46] [server thread/INFO]: Saving chunks for level 'Test'/Nether
[12:04:46] [server thread/INFO]: Saving chunks for level 'Test'/The End
[12:04:46] [server thread/INFO] [FML]: Unloading dimension 0
[12:04:46] [server thread/INFO] [FML]: Unloading dimension -1
[12:04:46] [server thread/INFO] [FML]: Unloading dimension 1
[12:04:48] [Client thread/INFO]: Stopping!

SoundSystem shutting down...
    Author: Paul Lamb, www.paulscode.com

Sorry it's so huge, can't figure out spoilers...

Posted

I've figured out that the problem is in the entity file, and removed my custom render file, seeing as I can just use Render Snowball. I'm getting errors for both entities, as the item spawns EntityDanmakuCenter, which then spawns a bunch of EntityDanmaku in a pattern. The errors above confuse me, so here are the Entity files.

EntityDanmakuCenter

private double offset;
private int livingTimer;
private int fireTime;
public EntityDanmakuCenter(World par1World, EntityLivingBase par2EntityLivingBase)
{
	super(par1World, par2EntityLivingBase);
	this.livingTimer = 0;
	this.offset = 0;
}
@Override
protected void onImpact(MovingObjectPosition var1)
{
}
public void onUpdate()
{
	this.livingTimer++;
	this.fireTime++;
	if(this.livingTimer == 130)
	{
		this.setDead();
	}
	for (double d11 = 0.0D; d11 < (Math.PI * 2D); d11 += 0.5235987755982989D)
	{
		EntityDanmaku danmaku = new EntityDanmaku(this.worldObj, this.posX + (Math.cos(d11) * 0.9D), this.posY - 0.9, this.posZ + (Math.sin(d11) * 0.9D));
		danmaku.setException(this.getThrower());
		danmaku.setDamage(2);
		danmaku.setVelocity(Math.cos(d11 + offset) * 0.24D, 0.0D, Math.sin(d11 + offset) * 0.24D);
		danmaku.size(0.4F, 0.4F);
		this.worldObj.spawnEntityInWorld(danmaku);
	}
	if(this.fireTime == 2)
	{
		this.offset += .0659;
		for (double d11 = 0.0D; d11 < (Math.PI * 2D); d11 += 0.2617993877991494D)
		{
			EntityDanmaku danmaku = new EntityDanmaku(this.worldObj, this.posX + (Math.cos(d11) * 0.5D), this.posY - 0.9, this.posZ + (Math.sin(d11) * 0.5D));
			danmaku.setException(this.getThrower());
			danmaku.setDamage(;
			danmaku.setVelocity(Math.cos(d11 - offset) * 0.24D, 0.0D, Math.sin(d11 - offset) * 0.24D);
			this.worldObj.spawnEntityInWorld(danmaku);
		}

		this.fireTime = 0;
	}
}

 

EntityDanmaku

EntityLivingBase exception;
private int livingTimer;
private int dmg;
public EntityDanmaku(World par1World, double par2, double par3, double par4)
{
	super(par1World, par2, par3, par4);
	this.livingTimer = 0;
}
@Override
public void onUpdate()
{
	super.onUpdate();
	if(this.livingTimer <= 50)
	{
		this.motionX *= 1.05D;
		this.motionY *= 1.05D;
		this.motionZ *= 1.05D;
	}
	++this.livingTimer;
	if(this.livingTimer == 140)
	{
		this.setDead();
	}
}
public void size(float par1, float par2)
{
	this.setSize(par1, par2);
}
@Override
protected void onImpact(MovingObjectPosition par1MovingObjectPosition)
{
	if (par1MovingObjectPosition.entityHit != null)
	{
		if(par1MovingObjectPosition.entityHit != this.exception)
		{
			par1MovingObjectPosition.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, this.getThrower()), (float)dmg);
		}
	}
	this.setDead();
}
/**
 * Gets the amount of gravity to apply to the thrown entity with each tick.
 */
@Override
protected float getGravityVelocity()
{
	return 0.0F;
}
public void setException(EntityLivingBase thrower)
{
	this.exception = thrower;
}
public void setDamage(int i)
{
	this.dmg = i;
}

 

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

    • Version 1.19 - Forge 41.0.63 I want to create a wolf entity that I can ride, so far it seems to be working, but the problem is that when I get on the wolf, I can’t control it. I then discovered that the issue is that the server doesn’t detect that I’m riding the wolf, so I’m struggling with synchronization. However, it seems to not be working properly. As I understand it, the server receives the packet but doesn’t register it correctly. I’m a bit new to Java, and I’ll try to provide all the relevant code and prints *The comments and prints are translated by chatgpt since they were originally in Spanish* Thank you very much in advance No player is mounted, or the passenger is not a player. No player is mounted, or the passenger is not a player. No player is mounted, or the passenger is not a player. No player is mounted, or the passenger is not a player. No player is mounted, or the passenger is not a player. MountableWolfEntity package com.vals.valscraft.entity; import com.vals.valscraft.network.MountSyncPacket; import com.vals.valscraft.network.NetworkHandler; import net.minecraft.client.Minecraft; import net.minecraft.network.syncher.EntityDataAccessor; import net.minecraft.network.syncher.EntityDataSerializers; import net.minecraft.network.syncher.SynchedEntityData; import net.minecraft.server.MinecraftServer; import net.minecraft.server.level.ServerPlayer; import net.minecraft.world.entity.EntityType; import net.minecraft.world.entity.Mob; import net.minecraft.world.entity.ai.attributes.AttributeSupplier; import net.minecraft.world.entity.ai.attributes.Attributes; import net.minecraft.world.entity.animal.Wolf; import net.minecraft.world.entity.player.Player; import net.minecraft.world.entity.Entity; import net.minecraft.world.InteractionHand; import net.minecraft.world.InteractionResult; import net.minecraft.world.item.ItemStack; import net.minecraft.world.item.Items; import net.minecraft.world.level.Level; import net.minecraft.world.phys.Vec3; import net.minecraftforge.event.TickEvent; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.network.PacketDistributor; public class MountableWolfEntity extends Wolf { private boolean hasSaddle; private static final EntityDataAccessor<Byte> DATA_ID_FLAGS = SynchedEntityData.defineId(MountableWolfEntity.class, EntityDataSerializers.BYTE); public MountableWolfEntity(EntityType<? extends Wolf> type, Level level) { super(type, level); this.hasSaddle = false; } @Override protected void defineSynchedData() { super.defineSynchedData(); this.entityData.define(DATA_ID_FLAGS, (byte)0); } public static AttributeSupplier.Builder createAttributes() { return Wolf.createAttributes() .add(Attributes.MAX_HEALTH, 20.0) .add(Attributes.MOVEMENT_SPEED, 0.3); } @Override public InteractionResult mobInteract(Player player, InteractionHand hand) { ItemStack itemstack = player.getItemInHand(hand); if (itemstack.getItem() == Items.SADDLE && !this.hasSaddle()) { if (!player.isCreative()) { itemstack.shrink(1); } this.setSaddle(true); return InteractionResult.SUCCESS; } else if (!level.isClientSide && this.hasSaddle()) { player.startRiding(this); MountSyncPacket packet = new MountSyncPacket(true); // 'true' means the player is mounted NetworkHandler.CHANNEL.sendToServer(packet); // Ensure the server handles the packet return InteractionResult.SUCCESS; } return InteractionResult.PASS; } @Override public void travel(Vec3 travelVector) { if (this.isVehicle() && this.getControllingPassenger() instanceof Player) { System.out.println("The wolf has a passenger."); System.out.println("The passenger is a player."); Player player = (Player) this.getControllingPassenger(); // Ensure the player is the controller this.setYRot(player.getYRot()); this.yRotO = this.getYRot(); this.setXRot(player.getXRot() * 0.5F); this.setRot(this.getYRot(), this.getXRot()); this.yBodyRot = this.getYRot(); this.yHeadRot = this.yBodyRot; float forward = player.zza; float strafe = player.xxa; if (forward <= 0.0F) { forward *= 0.25F; } this.flyingSpeed = this.getSpeed() * 0.1F; this.setSpeed((float) this.getAttributeValue(Attributes.MOVEMENT_SPEED) * 1.5F); this.setDeltaMovement(new Vec3(strafe, travelVector.y, forward).scale(this.getSpeed())); this.calculateEntityAnimation(this, false); } else { // The wolf does not have a passenger or the passenger is not a player System.out.println("No player is mounted, or the passenger is not a player."); super.travel(travelVector); } } public boolean hasSaddle() { return this.hasSaddle; } public void setSaddle(boolean hasSaddle) { this.hasSaddle = hasSaddle; } @Override protected void dropEquipment() { super.dropEquipment(); if (this.hasSaddle()) { this.spawnAtLocation(Items.SADDLE); this.setSaddle(false); } } @SubscribeEvent public static void onServerTick(TickEvent.ServerTickEvent event) { if (event.phase == TickEvent.Phase.START) { MinecraftServer server = net.minecraftforge.server.ServerLifecycleHooks.getCurrentServer(); if (server != null) { for (ServerPlayer player : server.getPlayerList().getPlayers()) { if (player.isPassenger() && player.getVehicle() instanceof MountableWolfEntity) { MountableWolfEntity wolf = (MountableWolfEntity) player.getVehicle(); System.out.println("Tick: " + player.getName().getString() + " is correctly mounted on " + wolf); } } } } } private boolean lastMountedState = false; @Override public void tick() { super.tick(); if (!this.level.isClientSide) { // Only on the server boolean isMounted = this.isVehicle() && this.getControllingPassenger() instanceof Player; // Only print if the state changed if (isMounted != lastMountedState) { if (isMounted) { Player player = (Player) this.getControllingPassenger(); // Verify the passenger is a player System.out.println("Server: Player " + player.getName().getString() + " is now mounted."); } else { System.out.println("Server: The wolf no longer has a passenger."); } lastMountedState = isMounted; } } } @Override public void addPassenger(Entity passenger) { super.addPassenger(passenger); if (passenger instanceof Player) { Player player = (Player) passenger; if (!this.level.isClientSide && player instanceof ServerPlayer) { // Send the packet to the server to indicate the player is mounted NetworkHandler.CHANNEL.send(PacketDistributor.PLAYER.with(() -> (ServerPlayer) player), new MountSyncPacket(true)); } } } @Override public void removePassenger(Entity passenger) { super.removePassenger(passenger); if (passenger instanceof Player) { Player player = (Player) passenger; if (!this.level.isClientSide && player instanceof ServerPlayer) { // Send the packet to the server to indicate the player is no longer mounted NetworkHandler.CHANNEL.send(PacketDistributor.PLAYER.with(() -> (ServerPlayer) player), new MountSyncPacket(false)); } } } @Override public boolean isControlledByLocalInstance() { Entity entity = this.getControllingPassenger(); return entity instanceof Player; } @Override public void positionRider(Entity passenger) { if (this.hasPassenger(passenger)) { double xOffset = Math.cos(Math.toRadians(this.getYRot() + 90)) * 0.4; double zOffset = Math.sin(Math.toRadians(this.getYRot() + 90)) * 0.4; passenger.setPos(this.getX() + xOffset, this.getY() + this.getPassengersRidingOffset() + passenger.getMyRidingOffset(), this.getZ() + zOffset); } } } MountSyncPacket package com.vals.valscraft.network; import com.vals.valscraft.entity.MountableWolfEntity; import net.minecraft.network.FriendlyByteBuf; import net.minecraft.server.level.ServerLevel; import net.minecraft.server.level.ServerPlayer; import net.minecraft.world.entity.Entity; import net.minecraft.world.entity.player.Player; import net.minecraftforge.network.NetworkEvent; import java.util.function.Supplier; public class MountSyncPacket { private final boolean isMounted; public MountSyncPacket(boolean isMounted) { this.isMounted = isMounted; } public void encode(FriendlyByteBuf buffer) { buffer.writeBoolean(isMounted); } public static MountSyncPacket decode(FriendlyByteBuf buffer) { return new MountSyncPacket(buffer.readBoolean()); } public void handle(NetworkEvent.Context context) { context.enqueueWork(() -> { ServerPlayer player = context.getSender(); // Get the player from the context if (player != null) { // Verifies if the player has dismounted if (!isMounted) { Entity vehicle = player.getVehicle(); if (vehicle instanceof MountableWolfEntity wolf) { // Logic to remove the player as a passenger wolf.removePassenger(player); System.out.println("Server: Player " + player.getName().getString() + " is no longer mounted."); } } } }); context.setPacketHandled(true); // Marks the packet as handled } } networkHandler package com.vals.valscraft.network; import com.vals.valscraft.valscraft; import net.minecraft.resources.ResourceLocation; import net.minecraftforge.network.NetworkRegistry; import net.minecraftforge.network.simple.SimpleChannel; import net.minecraftforge.network.NetworkEvent; import java.util.function.Supplier; public class NetworkHandler { private static final String PROTOCOL_VERSION = "1"; public static final SimpleChannel CHANNEL = NetworkRegistry.newSimpleChannel( new ResourceLocation(valscraft.MODID, "main"), () -> PROTOCOL_VERSION, PROTOCOL_VERSION::equals, PROTOCOL_VERSION::equals ); public static void init() { int packetId = 0; // Register the mount synchronization packet CHANNEL.registerMessage( packetId++, MountSyncPacket.class, MountSyncPacket::encode, MountSyncPacket::decode, (msg, context) -> msg.handle(context.get()) // Get the context with context.get() ); } }  
    • Do you use features of inventory profiles next (ipnext) or is there a change without it?
    • Remove rubidium - you are already using embeddium, which is a fork of rubidium
  • Topics

×
×
  • Create New...

Important Information

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