Uses of Class
net.neoforged.neoforge.capabilities.EntityCapability
-
Uses of EntityCapability in net.minecraft.world.entity
Modifier and TypeMethodDescriptionfinal <T,
C> T Entity.getCapability
(EntityCapability<T, C> capability, @UnknownNullability C context) final <T> T
Entity.getCapability
(EntityCapability<T, Void> capability) -
Uses of EntityCapability in net.neoforged.neoforge.capabilities
Modifier and TypeFieldDescriptionstatic final EntityCapability
<IEnergyStorage, @Nullable Direction> Capabilities.EnergyStorage.ENTITY
static final EntityCapability
<IFluidHandler, @Nullable Direction> Capabilities.FluidHandler.ENTITY
static final EntityCapability
<IItemHandler, Void> Capabilities.ItemHandler.ENTITY
Capability for the inventory of an entity.static final EntityCapability
<IItemHandler, @Nullable Direction> Capabilities.ItemHandler.ENTITY_AUTOMATION
Capability for an inventory of entity that should be accessible to automation, in the sense that droppers, hoppers, and similar modded devices will try to use it.Modifier and TypeFieldDescriptionprivate static final CapabilityRegistry
<EntityCapability<?, ?>> EntityCapability.registry
Modifier and TypeMethodDescriptionstatic <T,
C> EntityCapability <T, C> EntityCapability.create
(ResourceLocation name, Class<T> typeClass, Class<C> contextClass) Creates a new entity capability, or gets it if it already exists.static <T> EntityCapability
<T, @Nullable Direction> EntityCapability.createSided
(ResourceLocation name, Class<T> typeClass) Creates a new entity capability with nullableDirection
context, or gets it if it already exists.static <T> EntityCapability
<T, Void> EntityCapability.createVoid
(ResourceLocation name, Class<T> typeClass) Creates a new entity capability withVoid
context, or gets it if it already exists.Modifier and TypeMethodDescriptionstatic List
<EntityCapability<?, ?>> EntityCapability.getAll()
Returns a new immutable copy of all the currently known entity capabilities.Modifier and TypeMethodDescriptionboolean
RegisterCapabilitiesEvent.isEntityRegistered
(EntityCapability<?, ?> capability, EntityType<?> entityType) Returntrue
if a provider is registered for the given entity type and capability.<T,
C, E extends Entity>
voidRegisterCapabilitiesEvent.registerEntity
(EntityCapability<T, C> capability, EntityType<E> entityType, ICapabilityProvider<? super E, C, T> provider) Register a capability provider for some entity type.