Interface ItemStackSnapshot
- All Superinterfaces:
ComponentLike
,CopyableDataHolder
,DataHolder
,DataHolder.Immutable<ItemStackSnapshot>
,DataSerializable
,HoverEventSource<HoverEvent.ShowItem>
,ItemStackLike
,SerializableDataHolder
,SerializableDataHolder.Immutable<ItemStackSnapshot>
,ValueContainer
public interface ItemStackSnapshot
extends ItemStackLike, SerializableDataHolder.Immutable<ItemStackSnapshot>
Represents a snapshot of an
ItemStack
as an
DataHolder.Immutable
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
.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.spongepowered.api.data.DataHolder
DataHolder.Immutable<I extends DataHolder.Immutable<I>>, DataHolder.Mutable
Nested classes/interfaces inherited from interface org.spongepowered.api.data.SerializableDataHolder
SerializableDataHolder.Immutable<I extends SerializableDataHolder.Immutable<I>>, SerializableDataHolder.Mutable
-
Method Summary
Modifier and TypeMethodDescriptionstatic ItemStackSnapshot
empty()
Gets a emptyItemStackSnapshot
.Methods inherited from interface net.kyori.adventure.text.ComponentLike
asComponent
Methods inherited from interface org.spongepowered.api.data.DataHolder.Immutable
mergeWith, mergeWith, transform, transform, with, with, with, without, without, without
Methods inherited from interface org.spongepowered.api.data.persistence.DataSerializable
contentVersion, toContainer
Methods inherited from interface net.kyori.adventure.text.event.HoverEventSource
asHoverEvent, asHoverEvent
Methods inherited from interface org.spongepowered.api.item.inventory.ItemStackLike
asImmutable, asMutable, asMutableCopy, attributeModifiers, attributeModifiers, attributeModifiers, attributeModifiers, copy, isEmpty, maxStackQuantity, quantity, type
Methods inherited from interface org.spongepowered.api.data.SerializableDataHolder
validateRawData
Methods inherited from interface org.spongepowered.api.data.SerializableDataHolder.Immutable
copy, withRawData
-
Method Details
-
empty
Gets a emptyItemStackSnapshot
.- Returns:
- The empty item stack snapshot
-