Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- trait NBTAccess
- {
- def getNBTData( itemStack: ItemStack ): NBTTagCompound =
- {
- var compound = itemStack.getTagCompound
- if( compound == null )
- {
- compound = new NBTTagCompound
- itemStack.setTagCompound( compound )
- }
- compound
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement