public interface ItemStackSnapshot extends ImmutableDataHolder<ItemStackSnapshot>
ItemStack
as an
ImmutableDataHolder
to represent all of the data associated with
the ItemStack
of which the snapshot was created from. Being that
it is a snapshot, a snapshot cannot be modified, but modifications will
result in a new instance of the ItemStackSnapshot
.Modifier and Type | Field and Description |
---|---|
static ItemStackSnapshot |
NONE |
Modifier and Type | Method and Description |
---|---|
ItemStack |
createStack()
Creates a new
ItemStack with all the data currently available
on this ItemStackSnapshot . |
int |
getCount()
Gets the current stack size count of the
ItemStack this
ItemStackSnapshot is representing. |
ItemType |
getType()
Gets the
ItemType of this ItemStackSnapshot . |
getManipulators
toContainer
getApplicableProperties, getProperty
get, getContainers, getOrCreate, merge, merge, supports, transform, with, with, with, with, without
static final ItemStackSnapshot NONE
ItemType getType()
int getCount()
ItemStack
this
ItemStackSnapshot
is representing.ItemStack createStack()
ItemStack
with all the data currently available
on this ItemStackSnapshot
.