Jump to content

Get an Entity by Id


Recommended Posts

Yes it gets spawned on Client, so the problem is not the false registering of my entity right? What could it be hen, any ideas?


Well, it gets spawned, but it won't get updated on client, becuase, I don't know, but it is:


public void init(FMLInitializationEvent event){
	BlockMover = new BlockMover();

//		EntityRegistry.registerGlobalEntityID(EntityNotFallingBlock.class, modid + "Intektor_is_cool__" + "EntityNOTFallingBlock", 23413);

	EntityRegistry.registerModEntity(EntityNotFallingBlock.class, modid  + "EntityNOTFallingBlock", 0, this, 64, 20, true);

	network = NetworkRegistry.INSTANCE.newSimpleChannel(MODID + "Network");

	if(FMLCommonHandler.instance().getEffectiveSide() == Side.CLIENT){
		RenderingRegistry.registerEntityRenderingHandler(EntityNotFallingBlock.class, new RenderNotFallingBlock(Minecraft.getMinecraft().getRenderManager()));

	MinecraftForge.EVENT_BUS.register(new MoreMinecraftEventHandler());

	network.registerMessage(MessageToServerHandler.class, MessageToServer.class, 0, Side.SERVER);
	network.registerMessage(MessageToClientHandler.class, MessageToClient.class, 1, Side.CLIENT);



Creator of Extra Shoes


Watch out, I'm total jerk, and I'll troll anybody if it feels like its necessary. Pls report me then

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.

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.


  • Create New...

Important Information

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