Class SerializableCapabilityProvider<T>
java.lang.Object
org.cyclops.cyclopscore.modcompat.capabilities.DefaultCapabilityProvider<T>
org.cyclops.cyclopscore.modcompat.capabilities.SerializableCapabilityProvider<T>
- All Implemented Interfaces:
net.minecraftforge.common.capabilities.ICapabilityProvider
,net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.Tag>
public abstract class SerializableCapabilityProvider<T>
extends DefaultCapabilityProvider<T>
implements net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.Tag>
A serializable implementation of the capability provider.
-
Field Summary
Fields inherited from class org.cyclops.cyclopscore.modcompat.capabilities.DefaultCapabilityProvider
capability, capabilityGetter
-
Constructor Summary
ConstructorDescriptionSerializableCapabilityProvider
(net.minecraftforge.common.capabilities.Capability<T> capabilityType, T capability) Deprecated.SerializableCapabilityProvider
(ICapabilityTypeGetter<T> capabilityGetter, T capability) -
Method Summary
Modifier and TypeMethodDescriptionvoid
deserializeNBT
(net.minecraft.nbt.Tag nbt) protected abstract void
deserializeNBT
(T capability, net.minecraft.nbt.Tag tag) net.minecraft.nbt.Tag
protected abstract net.minecraft.nbt.Tag
serializeNBT
(T capability) Methods inherited from class org.cyclops.cyclopscore.modcompat.capabilities.DefaultCapabilityProvider
getCapability, getCapabilityType
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability
-
Constructor Details
-
SerializableCapabilityProvider
-
SerializableCapabilityProvider
@Deprecated public SerializableCapabilityProvider(net.minecraftforge.common.capabilities.Capability<T> capabilityType, T capability) Deprecated.
-
-
Method Details
-
serializeNBT
public net.minecraft.nbt.Tag serializeNBT()- Specified by:
serializeNBT
in interfacenet.minecraftforge.common.util.INBTSerializable<T>
-
deserializeNBT
public void deserializeNBT(net.minecraft.nbt.Tag nbt) - Specified by:
deserializeNBT
in interfacenet.minecraftforge.common.util.INBTSerializable<T>
-
serializeNBT
-
deserializeNBT
-