Posted July 26, 201510 yr Hello, so i used chunk load event , and i need to get every EntityCreature (and do some modifications to them) from event.getChunk().getEntityLists(); but i have no idea how , i tried to use for(Object a : b) (where b is entity list) but i cant cast a to EntityCreature. My current code: public class OnChunkLoad { public OnChunkLoad(){ MinecraftForge.EVENT_BUS.register(this); } @SubscribeEvent public void chunkEventLoad(ChunkEvent.Load event) { ClassInheritanceMultiMap[] b = event.getChunk().getEntityLists(); for(Object a : b) { EntityCreature c = (EntityCreature) a; c.setDead(); } } }
July 26, 201510 yr Author From which class I should call that method, its not declared in Object class, there is only getClass()
July 27, 201510 yr Author Thanks, i couldn't find it because i used latest stable version, I updated to latest snapshot and i found it.
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.