TLHPoE Posted September 10, 2013 Posted September 10, 2013 I'm adding integers into a NBTTagCompound. Currently trying to get the NBT at a different class, but that class fires before the NBT class. Is there anyway to check if the NBT exists? Quote Kain
Mew Posted September 10, 2013 Posted September 10, 2013 if ( nbt != null ) { // do the code } OR something like that... Quote I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes. I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there
GotoLink Posted September 11, 2013 Posted September 11, 2013 If you have a specific nametag: if(tag.hasKey("mynametag")) Quote
Recommended Posts
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.