Class CapabilityDispatcher

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

@ParametersAreNonnullByDefault public final class CapabilityDispatcher extends Object implements INBTSerializable<CompoundTag>, 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.