static class MarkDimensionForDeletionTest.DynamicDimensionCap.Storage extends java.lang.Object implements Capability.IStorage<MarkDimensionForDeletionTest.DynamicDimensionCap>
Constructor and Description |
---|
Storage() |
Modifier and Type | Method and Description |
---|---|
void |
readNBT(Capability<MarkDimensionForDeletionTest.DynamicDimensionCap> capability,
MarkDimensionForDeletionTest.DynamicDimensionCap instance,
Direction side,
INBT nbt)
Read the capability instance from a NBT tag.
|
INBT |
writeNBT(Capability<MarkDimensionForDeletionTest.DynamicDimensionCap> capability,
MarkDimensionForDeletionTest.DynamicDimensionCap instance,
Direction side)
Serialize the capability instance to a NBTTag.
|
@Nullable public INBT writeNBT(Capability<MarkDimensionForDeletionTest.DynamicDimensionCap> capability, MarkDimensionForDeletionTest.DynamicDimensionCap instance, Direction side)
Capability.IStorage
writeNBT
in interface Capability.IStorage<MarkDimensionForDeletionTest.DynamicDimensionCap>
capability
- The Capability being stored.instance
- An instance of that capabilities interface.side
- The side of the object the instance is associated with.public void readNBT(Capability<MarkDimensionForDeletionTest.DynamicDimensionCap> capability, MarkDimensionForDeletionTest.DynamicDimensionCap instance, Direction side, INBT nbt)
Capability.IStorage
readNBT
in interface Capability.IStorage<MarkDimensionForDeletionTest.DynamicDimensionCap>
capability
- The Capability being stored.instance
- An instance of that capabilities interface.side
- The side of the object the instance is associated with.nbt
- A NBT holding the data. Must not be null, as doesn't make sense to call this function with nothing to read...