Uses of Class
net.minecraftforge.common.capabilities.Capability
Package
Description
-
Uses of Capability in net.minecraft.world.entity
Modifier and TypeMethodDescription<T> LazyOptional<T>
LivingEntity.getCapability
(Capability<T> capability, Direction facing) -
Uses of Capability in net.minecraft.world.entity.animal.horse
Modifier and TypeMethodDescription<T> LazyOptional<T>
AbstractHorse.getCapability
(Capability<T> capability, Direction facing) -
Uses of Capability in net.minecraft.world.entity.player
Modifier and TypeMethodDescription<T> LazyOptional<T>
Player.getCapability
(Capability<T> capability, Direction facing) -
Uses of Capability in net.minecraft.world.entity.vehicle
Modifier and TypeMethodDescription<T> LazyOptional<T>
AbstractMinecartContainer.getCapability
(Capability<T> capability, Direction facing) <T> LazyOptional<T>
ChestBoat.getCapability
(Capability<T> capability, Direction facing) -
Uses of Capability in net.minecraft.world.level.block.entity
Modifier and TypeMethodDescription<T> LazyOptional<T>
AbstractFurnaceBlockEntity.getCapability
(Capability<T> capability, Direction facing) <T> LazyOptional<T>
BaseContainerBlockEntity.getCapability
(Capability<T> cap, Direction side) <T> LazyOptional<T>
BrewingStandBlockEntity.getCapability
(Capability<T> capability, Direction facing) <T> LazyOptional<T>
ChestBlockEntity.getCapability
(Capability<T> cap, Direction side) <T> LazyOptional<T>
ChiseledBookShelfBlockEntity.getCapability
(Capability<T> cap, Direction side) -
Uses of Capability in net.minecraft.world.level.chunk
Modifier and TypeMethodDescription<T> LazyOptional<T>
LevelChunk.getCapability
(Capability<T> cap, Direction side) -
Uses of Capability in net.minecraftforge.common.capabilities
Modifier and TypeFieldDescriptionstatic final Capability<IEnergyStorage>
ForgeCapabilities.ENERGY
static final Capability<IFluidHandler>
ForgeCapabilities.FLUID_HANDLER
static final Capability<IFluidHandlerItem>
ForgeCapabilities.FLUID_HANDLER_ITEM
static final Capability<IItemHandler>
ForgeCapabilities.ITEM_HANDLER
Modifier and TypeFieldDescription(package private) List<Consumer<Capability<T>>>
Capability.listeners
private final IdentityHashMap<String,
Capability<?>> CapabilityManager.providers
Modifier and TypeMethodDescriptionCapability.addListener
(Consumer<Capability<T>> listener) Adds a listener to be called when someone registers this capability.(package private) <T> Capability<T>
static <T> Capability<T>
CapabilityManager.get
(CapabilityToken<T> type) Modifier and TypeMethodDescription<T> LazyOptional<T>
CapabilityDispatcher.getCapability
(Capability<T> cap, @Nullable Direction side) <T> @NotNull LazyOptional<T>
CapabilityProvider.getCapability
(@NotNull Capability<T> cap, @Nullable Direction side) default <T> @NotNull LazyOptional<T>
ICapabilityProvider.getCapability
(@NotNull Capability<T> cap) <T> @NotNull LazyOptional<T>
ICapabilityProvider.getCapability
(@NotNull Capability<T> cap, @Nullable Direction side) Retrieves the Optional handler for the capability requested on the specific side.<R> @NotNull LazyOptional<R>
Capability.orEmpty
(Capability<R> toCheck, LazyOptional<T> inst) Modifier and TypeMethodDescriptionCapability.addListener
(Consumer<Capability<T>> listener) Adds a listener to be called when someone registers this capability. -
Uses of Capability in net.minecraftforge.debug
Modifier and TypeFieldDescriptionstatic Capability<CapabilitiesTest.CapClass>
CapabilitiesTest.INSTANCE
-
Uses of Capability in net.minecraftforge.debug.misc
Modifier and TypeMethodDescription<T> @NotNull LazyOptional<T>
GameTestTest.EnergyBlockEntity.getCapability
(@NotNull Capability<T> capability, @Nullable Direction facing) -
Uses of Capability in net.minecraftforge.fluids.capability
Modifier and TypeMethodDescription<T> @NotNull LazyOptional<T>
FluidHandlerBlockEntity.getCapability
(@NotNull Capability<T> capability, @Nullable Direction facing) -
Uses of Capability in net.minecraftforge.fluids.capability.templates
Modifier and TypeMethodDescription<T> @NotNull LazyOptional<T>
FluidHandlerItemStack.getCapability
(@NotNull Capability<T> capability, @Nullable Direction facing) <T> @NotNull LazyOptional<T>
FluidHandlerItemStackSimple.getCapability
(@NotNull Capability<T> capability, @Nullable Direction facing) -
Uses of Capability in net.minecraftforge.fluids.capability.wrappers
Modifier and TypeMethodDescription<T> @NotNull LazyOptional<T>
FluidBucketWrapper.getCapability
(@NotNull Capability<T> capability, @Nullable Direction facing) -
Uses of Capability in net.minecraftforge.items.wrapper
Modifier and TypeMethodDescription<T> @NotNull LazyOptional<T>
ShulkerItemStackInvWrapper.getCapability
(@NotNull Capability<T> cap, @Nullable Direction side)