Package net.kamkeyke.raccooncore.api
Interface IPlayerCapability<T>
- Type Parameters:
T- self type
- All Known Implementing Classes:
CapData
public interface IPlayerCapability<T>
Base contract for player capabilities.
-
Method Summary
Modifier and TypeMethodDescriptionvoidCopies data from another instance.voidloadNBTData(net.minecraft.nbt.CompoundTag tag) Loads internal state from the given tag.voidsaveNBTData(net.minecraft.nbt.CompoundTag tag) Saves internal state into the given tag.
-
Method Details
-
copyFrom
Copies data from another instance. -
saveNBTData
void saveNBTData(net.minecraft.nbt.CompoundTag tag) Saves internal state into the given tag. -
loadNBTData
void loadNBTData(net.minecraft.nbt.CompoundTag tag) Loads internal state from the given tag.
-