Okay, I am working on making a modding in a new Fishing rod and what's happening is that I've basically just made new EntityFishHook, ItemFishingRod, and I also had to make a RenderEntity Class. I did in fact render the entity fine. So right now I am going in game and I am trying to right click and to see if the item will work and I spits this error at me.
java.lang.NullPointerException
at net.minecraft.entity.projectile.EntityFishHook.onUpdate(EntityFishHook.java:205)
at PixelGoal.EntityFishingHook.onUpdate(EntityFishingHook.java:190)
at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2337)
at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:717)
at net.minecraft.world.World.updateEntity(World.java:2299)
at net.minecraft.world.World.updateEntities(World.java:2145)
at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:546)
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:652)
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:571)
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:127)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:469)
at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
--- END ERROR REPORT c50339c7 ----------
Obviously the error has something to do with the Entity. here is the class can somone please give me some help.