Uses of Class
net.minecraftforge.common.util.LazyOptional
Package
Description
-
Uses of LazyOptional in net.minecraft.world.entity
Modifier and TypeMethodDescription<T> LazyOptional<T>
LivingEntity.getCapability(Capability<T> capability, Direction facing)
-
Uses of LazyOptional in net.minecraft.world.entity.animal.horse
Modifier and TypeMethodDescription<T> LazyOptional<T>
AbstractHorse.getCapability(Capability<T> capability, Direction facing)
-
Uses of LazyOptional in net.minecraft.world.entity.player
Modifier and TypeFieldDescriptionprivate LazyOptional<IItemHandler>
Player.playerEquipmentHandler
private LazyOptional<IItemHandler>
Player.playerJoinedHandler
private LazyOptional<IItemHandler>
Player.playerMainHandler
Modifier and TypeMethodDescription<T> LazyOptional<T>
Player.getCapability(Capability<T> capability, Direction facing)
-
Uses of LazyOptional in net.minecraft.world.entity.vehicle
Modifier and TypeMethodDescription<T> LazyOptional<T>
AbstractMinecartContainer.getCapability(Capability<T> capability, Direction facing)
-
Uses of LazyOptional in net.minecraft.world.level.block.entity
Modifier and TypeFieldDescriptionprivate LazyOptional<IItemHandlerModifiable>
ChestBlockEntity.chestHandler
(package private) LazyOptional<? extends IItemHandler>[]
AbstractFurnaceBlockEntity.handlers
(package private) LazyOptional<? extends IItemHandler>[]
BrewingStandBlockEntity.handlers
private LazyOptional<?>
BaseContainerBlockEntity.itemHandler
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)
-
Uses of LazyOptional in net.minecraftforge.common.capabilities
Modifier and TypeMethodDescription<T> LazyOptional<T>
CapabilityDispatcher.getCapability(Capability<T> cap, Direction side)
<T> LazyOptional<T>
CapabilityProvider.getCapability(Capability<T> cap, Direction side)
default <T> LazyOptional<T>
ICapabilityProvider.getCapability(Capability<T> cap)
<T> LazyOptional<T>
ICapabilityProvider.getCapability(Capability<T> cap, Direction side)
Retrieves the Optional handler for the capability requested on the specific side.<R> LazyOptional<R>
Capability.orEmpty(Capability<R> toCheck, LazyOptional<T> inst)
Modifier and TypeMethodDescription<R> LazyOptional<R>
Capability.orEmpty(Capability<R> toCheck, LazyOptional<T> inst)
-
Uses of LazyOptional in net.minecraftforge.common.model.animation
Modifier and TypeFieldDescriptionprivate LazyOptional<IAnimationStateMachine>
CapabilityAnimation.DefaultItemAnimationCapabilityProvider.asm
Modifier and TypeMethodDescription<T> LazyOptional<T>
CapabilityAnimation.DefaultItemAnimationCapabilityProvider.getCapability(Capability<T> capability, Direction facing)
ModifierConstructorDescription -
Uses of LazyOptional in net.minecraftforge.common.util
Modifier and TypeFieldDescriptionprivate Set<NonNullConsumer<LazyOptional<T>>>
LazyOptional.listeners
Modifier and TypeMethodDescription<X> LazyOptional<X>
LazyOptional.cast()
This method hides an unchecked cast to the inferred type.static <T> LazyOptional<T>
LazyOptional.empty()
<U> LazyOptional<U>
LazyOptional.lazyMap(NonNullFunction<? super T,? extends U> mapper)
If a thisLazyOptional
is non-empty, return a newLazyOptional
encapsulating the mapping function.static <T> LazyOptional<T>
LazyOptional.of(NonNullSupplier<T> instanceSupplier)
Construct a newLazyOptional
that wraps the givenNonNullSupplier
.Modifier and TypeMethodDescriptionvoid
LazyOptional.addListener(NonNullConsumer<LazyOptional<T>> listener)
-
Uses of LazyOptional in net.minecraftforge.fluids
Modifier and TypeMethodDescriptionstatic LazyOptional<IFluidHandlerItem>
FluidUtil.getFluidHandler(ItemStack itemStack)
Helper method to get anIFluidHandlerItem
for an itemStack.static LazyOptional<IFluidHandler>
FluidUtil.getFluidHandler(Level world, BlockPos blockPos, Direction side)
Helper method to get an IFluidHandler for at a block position. -
Uses of LazyOptional in net.minecraftforge.fluids.capability
Modifier and TypeMethodDescription<T> LazyOptional<T>
TileFluidHandler.getCapability(Capability<T> capability, Direction facing)
-
Uses of LazyOptional in net.minecraftforge.fluids.capability.templates
Modifier and TypeFieldDescriptionprivate LazyOptional<IFluidHandlerItem>
FluidHandlerItemStack.holder
private LazyOptional<IFluidHandlerItem>
FluidHandlerItemStackSimple.holder
Modifier and TypeMethodDescription<T> LazyOptional<T>
FluidHandlerItemStack.getCapability(Capability<T> capability, Direction facing)
<T> LazyOptional<T>
FluidHandlerItemStackSimple.getCapability(Capability<T> capability, Direction facing)
-
Uses of LazyOptional in net.minecraftforge.fluids.capability.wrappers
Modifier and TypeFieldDescriptionprivate LazyOptional<IFluidHandlerItem>
FluidBucketWrapper.holder
Modifier and TypeMethodDescription<T> LazyOptional<T>
FluidBucketWrapper.getCapability(Capability<T> capability, Direction facing)
-
Uses of LazyOptional in net.minecraftforge.items.wrapper
Modifier and TypeMethodDescriptionstatic LazyOptional<IItemHandlerModifiable>[]
EntityEquipmentInvWrapper.create(LivingEntity entity)
static LazyOptional<IItemHandlerModifiable>[]
SidedInvWrapper.create(WorldlyContainer inv, Direction... sides)