Uses of Class
net.minecraftforge.common.util.LazyOptional
Package
Description
-
Uses of LazyOptional in net.minecraft.entity
Modifier and TypeMethodDescription<T> LazyOptional<T>
LivingEntity.getCapability
(Capability<T> capability, Direction facing) -
Uses of LazyOptional in net.minecraft.entity.item.minecart
Modifier and TypeMethodDescription<T> LazyOptional<T>
ContainerMinecartEntity.getCapability
(Capability<T> capability, Direction facing) -
Uses of LazyOptional in net.minecraft.entity.passive.horse
Modifier and TypeMethodDescription<T> LazyOptional<T>
AbstractHorseEntity.getCapability
(Capability<T> capability, Direction facing) -
Uses of LazyOptional in net.minecraft.entity.player
Modifier and TypeFieldDescriptionprivate final LazyOptional<IItemHandler>
PlayerEntity.playerEquipmentHandler
private final LazyOptional<IItemHandler>
PlayerEntity.playerJoinedHandler
private final LazyOptional<IItemHandler>
PlayerEntity.playerMainHandler
Modifier and TypeMethodDescription<T> LazyOptional<T>
PlayerEntity.getCapability
(Capability<T> capability, Direction facing) -
Uses of LazyOptional in net.minecraft.tileentity
Modifier and TypeFieldDescriptionprivate LazyOptional<IItemHandlerModifiable>
ChestTileEntity.chestHandler
(package private) LazyOptional<? extends IItemHandler>[]
AbstractFurnaceTileEntity.handlers
(package private) LazyOptional<? extends IItemHandler>[]
BrewingStandTileEntity.handlers
private LazyOptional<?>
LockableTileEntity.itemHandler
Modifier and TypeMethodDescription<T> LazyOptional<T>
AbstractFurnaceTileEntity.getCapability
(Capability<T> capability, Direction facing) <T> LazyOptional<T>
BrewingStandTileEntity.getCapability
(Capability<T> capability, Direction facing) <T> LazyOptional<T>
ChestTileEntity.getCapability
(Capability<T> cap, Direction side) <T> LazyOptional<T>
LockableTileEntity.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 final 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
(World 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 TypeFieldDescriptionprivate final LazyOptional<IFluidHandler>
TileFluidHandler.holder
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 final LazyOptional<IFluidHandlerItem>
FluidHandlerItemStack.holder
private final 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 final 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
(ISidedInventory inv, Direction... sides)