Changing something in item.getItemMeta doesn't update the original itemstack. Declare an ItemMeta object, edit it, and set it back to the original...
bump.
Hey Everybody! I'm trying to get a HorseInventory from a string saved with Gson. The code below works for every mob type with an inventory...
I would keep a hashset (or map depending on if what you're inviting them to is single instance or if you would need more information stored) of...
You're going to have to find that yourself. https://github.com/Bukkit/mc-dev/tree/master/net/minecraft/server
I'm not going to spoon feed you, but your issue might be that you're always incrementing your counter, so you need to be checking which value is...
Why are you updating in a delayed task? Also, you should check the updateInventory actually works for furnaces, chests, etc. I've never used it...
loop through all the values between the v1.x and v2.x, and inside that loop through all the values between your 2 z's. Then whatever value each...
Yikes... I would make a scheduler for this. That way you could check it at further apart, fixed intervals and save the server a little hassle.
Alternatively, you could use entity metadata. That way you wouldn't have to keep a list anywhere and could simply check each mob for your...
Sweet. Thanks
Would you mind elaborating as to why? I'm basically trying to decide if it's better to keep a lot of things in memory, or access a file a lot of...
Hey guys, I'm wondering about the pros and cons of these 2 systems. I've got maybe 200 integers that need to be read in from a config file. What...
That was a joke...
Right click on your project, then go to properties, java build path, and add in the bukkit jar.
If you cancelled player packets, the name plate wouldnt be sent either, which is what he wants.
Why would you use reflection on publicly accessible methods? Entity bukkitEntity; //set else where net.minecraft.server.v1_5_R1.Entity...
There are methods for this in the LivingEntity class. I got this all working editing the nbt without even checking for api since they're usually...
Wow... I had all this working last night editing the mobs nbt tags. I didn't even think to check for api because they're typically so slow... lol
You should terminate all schedulers in your onDisable
Separate names with a comma.