Uses of Class
net.neoforged.neoforge.capabilities.ItemCapability
-
Uses of ItemCapability in net.neoforged.neoforge.capabilities
Modifier and TypeFieldDescriptionstatic final ItemCapability
<IEnergyStorage, Void> Capabilities.EnergyStorage.ITEM
static final ItemCapability
<IFluidHandlerItem, Void> Capabilities.FluidHandler.ITEM
static final ItemCapability
<IItemHandler, Void> Capabilities.ItemHandler.ITEM
Modifier and TypeFieldDescriptionprivate static final CapabilityRegistry
<ItemCapability<?, ?>> ItemCapability.registry
Modifier and TypeMethodDescriptionstatic <T,
C> ItemCapability <T, C> ItemCapability.create
(ResourceLocation name, Class<T> typeClass, Class<C> contextClass) Creates a new item capability, or gets it if it already exists.static <T> ItemCapability
<T, Void> ItemCapability.createVoid
(ResourceLocation name, Class<T> typeClass) Creates a new item capability withVoid
context, or gets it if it already exists.Modifier and TypeMethodDescriptionstatic List
<ItemCapability<?, ?>> ItemCapability.getAll()
Returns a new immutable copy of all the currently known item capabilities.Modifier and TypeMethodDescriptionboolean
RegisterCapabilitiesEvent.isItemRegistered
(ItemCapability<?, ?> capability, Item item) Returntrue
if a provider is registered for the given item and capability.<T,
C> void RegisterCapabilitiesEvent.registerItem
(ItemCapability<T, C> capability, ICapabilityProvider<ItemStack, C, T> provider, ItemLike... items) Register a capability provider for some items. -
Uses of ItemCapability in net.neoforged.neoforge.common.extensions
Modifier and TypeMethodDescriptiondefault <T,
C> T IItemStackExtension.getCapability
(ItemCapability<T, C> capability, C context) default <T> T
IItemStackExtension.getCapability
(ItemCapability<T, Void> capability)