Support immutability in MaterialData with an internal flag.
Add ImItemStack, immutable subclass of ItemStack.
Add ItemStack.Builder, a nice way to construct ItemStacks and ImItemStacks.
Make ItemStack durability effectively independent from material data values i.e. don't let them affect each other. When converting to CraftItemStack, use the item type to decide which one to use.
Add raw NBT access to CraftMetaItem, so hacky code has a way to put custom NBT on ImItemStacks.
MaterialData
with an internal flag.ImItemStack
, immutable subclass ofItemStack
.ItemStack.Builder
, a nice way to constructItemStack
s andImItemStack
s.ItemStack
durability effectively independent from material data values i.e. don't let them affect each other. When converting toCraftItemStack
, use the item type to decide which one to use.CraftMetaItem
, so hacky code has a way to put custom NBT onImItemStack
s.test-util
module https://github.com/OvercastNetwork/test-util