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 final LazyOptional<IItemHandler>
Player.playerEquipmentHandler
private final LazyOptional<IItemHandler>
Player.playerJoinedHandler
private final 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 TypeFieldDescriptionprivate LazyOptional<?>
AbstractMinecartContainer.itemHandler
private LazyOptional<?>
ChestBoat.itemHandler
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 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.minecraft.world.level.chunk
Modifier and TypeMethodDescription<T> LazyOptional<T>
LevelChunk.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, @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 TypeMethodDescription<R> @NotNull LazyOptional<R>
Capability.orEmpty
(Capability<R> toCheck, LazyOptional<T> inst) -
Uses of LazyOptional in net.minecraftforge.common.util
Modifier and TypeFieldDescriptionprivate static final @NotNull LazyOptional<Void>
LazyOptional.EMPTY
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
(@Nullable 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.debug.misc
Modifier and TypeFieldDescriptionprivate final LazyOptional<IEnergyStorage>
GameTestTest.EnergyBlockEntity.energyHolder
Modifier and TypeMethodDescription<T> @NotNull LazyOptional<T>
GameTestTest.EnergyBlockEntity.getCapability
(@NotNull Capability<T> capability, @Nullable Direction facing) -
Uses of LazyOptional in net.minecraftforge.fluids
Modifier and TypeMethodDescriptionstatic LazyOptional<IFluidHandlerItem>
FluidUtil.getFluidHandler
(@NotNull ItemStack itemStack) Helper method to get anIFluidHandlerItem
for an itemStack.static LazyOptional<IFluidHandler>
FluidUtil.getFluidHandler
(Level level, BlockPos blockPos, @Nullable 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>
FluidHandlerBlockEntity.holder
Modifier and TypeMethodDescription<T> @NotNull LazyOptional<T>
FluidHandlerBlockEntity.getCapability
(@NotNull Capability<T> capability, @Nullable 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> @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 LazyOptional in net.minecraftforge.fluids.capability.wrappers
Modifier and TypeFieldDescriptionprivate final LazyOptional<IFluidHandlerItem>
FluidBucketWrapper.holder
Modifier and TypeMethodDescription<T> @NotNull LazyOptional<T>
FluidBucketWrapper.getCapability
(@NotNull Capability<T> capability, @Nullable Direction facing) -
Uses of LazyOptional in net.minecraftforge.items.wrapper
Modifier and TypeFieldDescriptionprivate final LazyOptional<IItemHandler>
ShulkerItemStackInvWrapper.holder
Modifier and TypeMethodDescriptionstatic LazyOptional<IItemHandlerModifiable>[]
EntityEquipmentInvWrapper.create
(LivingEntity entity) static LazyOptional<IItemHandlerModifiable>[]
SidedInvWrapper.create
(WorldlyContainer inv, Direction... sides) <T> @NotNull LazyOptional<T>
ShulkerItemStackInvWrapper.getCapability
(@NotNull Capability<T> cap, @Nullable Direction side)