Uses of Class
net.minecraftforge.common.util.LazyOptional
-
-
Uses of LazyOptional in net.minecraft.entity
Fields in net.minecraft.entity declared as LazyOptional Modifier and Type Field Description private LazyOptional<?>[]
LivingEntity. handlers
Methods in net.minecraft.entity that return LazyOptional Modifier and Type Method Description <T> LazyOptional<T>
LivingEntity. getCapability(Capability<T> capability, Direction facing)
-
Uses of LazyOptional in net.minecraft.entity.item.minecart
Fields in net.minecraft.entity.item.minecart declared as LazyOptional Modifier and Type Field Description private LazyOptional<?>
ContainerMinecartEntity. itemHandler
Methods in net.minecraft.entity.item.minecart that return LazyOptional Modifier and Type Method Description <T> LazyOptional<T>
ContainerMinecartEntity. getCapability(Capability<T> capability, Direction facing)
-
Uses of LazyOptional in net.minecraft.entity.passive.horse
Fields in net.minecraft.entity.passive.horse declared as LazyOptional Modifier and Type Field Description private LazyOptional<?>
AbstractHorseEntity. itemHandler
Methods in net.minecraft.entity.passive.horse that return LazyOptional Modifier and Type Method Description <T> LazyOptional<T>
AbstractHorseEntity. getCapability(Capability<T> capability, Direction facing)
-
Uses of LazyOptional in net.minecraft.entity.player
Fields in net.minecraft.entity.player declared as LazyOptional Modifier and Type Field Description private LazyOptional<IItemHandler>
PlayerEntity. playerEquipmentHandler
private LazyOptional<IItemHandler>
PlayerEntity. playerJoinedHandler
private LazyOptional<IItemHandler>
PlayerEntity. playerMainHandler
Methods in net.minecraft.entity.player that return LazyOptional Modifier and Type Method Description <T> LazyOptional<T>
PlayerEntity. getCapability(Capability<T> capability, Direction facing)
-
Uses of LazyOptional in net.minecraft.tileentity
Fields in net.minecraft.tileentity declared as LazyOptional Modifier and Type Field Description private LazyOptional<IItemHandlerModifiable>
ChestTileEntity. chestHandler
(package private) LazyOptional<? extends IItemHandler>[]
AbstractFurnaceTileEntity. handlers
(package private) LazyOptional<? extends IItemHandler>[]
BrewingStandTileEntity. handlers
private LazyOptional<?>
LockableTileEntity. itemHandler
Methods in net.minecraft.tileentity that return LazyOptional Modifier and Type Method Description <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
Methods in net.minecraftforge.common.capabilities that return LazyOptional Modifier and Type Method Description <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)
Methods in net.minecraftforge.common.capabilities with parameters of type LazyOptional Modifier and Type Method Description <R> LazyOptional<R>
Capability. orEmpty(Capability<R> toCheck, LazyOptional<T> inst)
-
Uses of LazyOptional in net.minecraftforge.common.model.animation
Fields in net.minecraftforge.common.model.animation declared as LazyOptional Modifier and Type Field Description private LazyOptional<IAnimationStateMachine>
CapabilityAnimation.DefaultItemAnimationCapabilityProvider. asm
Methods in net.minecraftforge.common.model.animation that return LazyOptional Modifier and Type Method Description <T> LazyOptional<T>
CapabilityAnimation.DefaultItemAnimationCapabilityProvider. getCapability(Capability<T> capability, Direction facing)
Constructors in net.minecraftforge.common.model.animation with parameters of type LazyOptional Constructor Description DefaultItemAnimationCapabilityProvider(LazyOptional<IAnimationStateMachine> asm)
-
Uses of LazyOptional in net.minecraftforge.common.util
Fields in net.minecraftforge.common.util declared as LazyOptional Modifier and Type Field Description private static LazyOptional<java.lang.Void>
LazyOptional. EMPTY
Fields in net.minecraftforge.common.util with type parameters of type LazyOptional Modifier and Type Field Description private java.util.Set<NonNullConsumer<LazyOptional<T>>>
LazyOptional. listeners
Methods in net.minecraftforge.common.util that return LazyOptional Modifier and Type Method Description <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
.Method parameters in net.minecraftforge.common.util with type arguments of type LazyOptional Modifier and Type Method Description void
LazyOptional. addListener(NonNullConsumer<LazyOptional<T>> listener)
-
Uses of LazyOptional in net.minecraftforge.fluids
Methods in net.minecraftforge.fluids that return LazyOptional Modifier and Type Method Description static 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
Fields in net.minecraftforge.fluids.capability declared as LazyOptional Modifier and Type Field Description private LazyOptional<IFluidHandler>
TileFluidHandler. holder
Methods in net.minecraftforge.fluids.capability that return LazyOptional Modifier and Type Method Description <T> LazyOptional<T>
TileFluidHandler. getCapability(Capability<T> capability, Direction facing)
-
Uses of LazyOptional in net.minecraftforge.fluids.capability.templates
Fields in net.minecraftforge.fluids.capability.templates declared as LazyOptional Modifier and Type Field Description private LazyOptional<IFluidHandlerItem>
FluidHandlerItemStack. holder
private LazyOptional<IFluidHandlerItem>
FluidHandlerItemStackSimple. holder
Methods in net.minecraftforge.fluids.capability.templates that return LazyOptional Modifier and Type Method Description <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
Fields in net.minecraftforge.fluids.capability.wrappers declared as LazyOptional Modifier and Type Field Description private LazyOptional<IFluidHandlerItem>
FluidBucketWrapper. holder
Methods in net.minecraftforge.fluids.capability.wrappers that return LazyOptional Modifier and Type Method Description <T> LazyOptional<T>
FluidBucketWrapper. getCapability(Capability<T> capability, Direction facing)
-
Uses of LazyOptional in net.minecraftforge.items.wrapper
Methods in net.minecraftforge.items.wrapper that return LazyOptional Modifier and Type Method Description static LazyOptional<IItemHandlerModifiable>[]
EntityEquipmentInvWrapper. create(LivingEntity entity)
static LazyOptional<IItemHandlerModifiable>[]
SidedInvWrapper. create(ISidedInventory inv, Direction... sides)
-