mirror of
https://github.com/GTNewHorizons/bdlib.git
synced 2026-11-19 19:59:35 +00:00
Added RichNBTTagCompound.toItemStack
This commit is contained in:
1 parent
b2e138f3cd
commit
fae2825e7b
1 file changed
+2
@@ -9,6 +9,7 @@
|
||||
|
||||
package net.bdew.lib.nbt
|
||||
|
||||
import net.minecraft.item.ItemStack
|
||||
import net.minecraft.nbt.{NBTTagCompound, NBTTagList}
|
||||
|
||||
import scala.language.implicitConversions
|
||||
@@ -27,4 +28,5 @@ class RichNBTTagCompound(tag: NBTTagCompound) {
|
||||
tag.setTag(name, list)
|
||||
}
|
||||
|
||||
def toItemStack = Option(ItemStack.loadItemStackFromNBT(tag))
|
||||
}
|
||||
Reference in new issue
Block a user