Jump to content

Recommended Posts

Posted

can u give me an example how you would use it in my case.

Looking at the tutorial, where exactly should i be looking at that will help me with the issue i am having or have been having. most topic names seem to be basic information i have already acknowledged

Posted (edited)

I have been doing so, and a little more clear. The problem is using compound outside of readEntityNBT i cant use it. I do understand it not declared in the class scope, but I have a feeling that maybe not something i should doing.

Edited by clowcadia
Realized ur quoting me
Posted
	@Override
	public void readEntityFromNBT(NBTTagCompound compound) {
		if(compound.hasKey(tagStomach)) Utils.getLogger().info("Has Stomach");
		this.handler.deserializeNBT(compound.getCompoundTag("ItemStackHandler"));
		
		this.stomach = compound.getInteger("Stomach");
		super.readEntityFromNBT(compound);
	}
[17:25:57] [Server thread/INFO] [testmod]: Has Stomach

 

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



×
×
  • Create New...

Important Information

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