public static interface Capability.IStorage<T>
| 修飾子とタイプ | メソッドと説明 | 
|---|---|
| void | readNBT(Capability<T> capability,
       T instance,
       Direction side,
       INBT nbt)Read the capability instance from a NBT tag. | 
| INBT | writeNBT(Capability<T> capability,
        T instance,
        Direction side)Serialize the capability instance to a NBTTag. | 
@Nullable INBT writeNBT(Capability<T> capability, T instance, Direction side)
capability - The Capability being stored.instance - An instance of that capabilities interface.side - The side of the object the instance is associated with.void readNBT(Capability<T> capability, T instance, Direction side, INBT nbt)
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...