Class CapabilityDispatcher

java.lang.Object
net.minecraftforge.common.capabilities.CapabilityDispatcher
All Implemented Interfaces:
ICapabilityProvider, INBTSerializable<CompoundNBT>

@ParametersAreNonnullByDefault @MethodsReturnNonnullByDefault public final class CapabilityDispatcher extends Object implements INBTSerializable<CompoundNBT>, ICapabilityProvider
A high-speed implementation of a capability delegator. This is used to wrap the results of the AttachCapabilitiesEvent. It is HIGHLY recommended that you DO NOT use this approach unless you MUST delegate to multiple providers instead just implement y our handlers using normal if statements. Internally the handlers are baked into arrays for fast iteration. The ResourceLocations will be used for the NBT Key when serializing.