Modifier and Type | Field and Description |
---|---|
private LazyOptional<?>[] |
LivingEntity.handlers |
Modifier and Type | Method and Description |
---|---|
<T> LazyOptional<T> |
LivingEntity.getCapability(Capability<T> capability,
Direction facing) |
Modifier and Type | Field and Description |
---|---|
private LazyOptional<?> |
ContainerMinecartEntity.itemHandler |
Modifier and Type | Method and Description |
---|---|
<T> LazyOptional<T> |
ContainerMinecartEntity.getCapability(Capability<T> capability,
Direction facing) |
Modifier and Type | Field and Description |
---|---|
private LazyOptional<?> |
AbstractHorseEntity.itemHandler |
Modifier and Type | Method and Description |
---|---|
<T> LazyOptional<T> |
AbstractHorseEntity.getCapability(Capability<T> capability,
Direction facing) |
Modifier and Type | Field and Description |
---|---|
private LazyOptional<IItemHandler> |
PlayerEntity.playerEquipmentHandler |
private LazyOptional<IItemHandler> |
PlayerEntity.playerJoinedHandler |
private LazyOptional<IItemHandler> |
PlayerEntity.playerMainHandler |
Modifier and Type | Method and Description |
---|---|
<T> LazyOptional<T> |
PlayerEntity.getCapability(Capability<T> capability,
Direction facing) |
Modifier and Type | Field and Description |
---|---|
private LazyOptional<IItemHandlerModifiable> |
ChestTileEntity.chestHandler |
(package private) LazyOptional<? extends IItemHandler>[] |
BrewingStandTileEntity.handlers |
(package private) LazyOptional<? extends IItemHandler>[] |
AbstractFurnaceTileEntity.handlers |
private LazyOptional<?> |
LockableTileEntity.itemHandler |
Modifier and Type | Method and Description |
---|---|
<T> LazyOptional<T> |
ChestTileEntity.getCapability(Capability<T> cap,
Direction side) |
<T> LazyOptional<T> |
BrewingStandTileEntity.getCapability(Capability<T> capability,
Direction facing) |
<T> LazyOptional<T> |
AbstractFurnaceTileEntity.getCapability(Capability<T> capability,
Direction facing) |
<T> LazyOptional<T> |
LockableTileEntity.getCapability(Capability<T> cap,
Direction side) |
Modifier and Type | Method and Description |
---|---|
default <T> LazyOptional<T> |
ICapabilityProvider.getCapability(Capability<T> cap) |
<T> LazyOptional<T> |
CapabilityProvider.getCapability(Capability<T> cap,
Direction side) |
<T> LazyOptional<T> |
CapabilityDispatcher.getCapability(Capability<T> cap,
Direction side) |
<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 Type | Method and Description |
---|---|
<R> LazyOptional<R> |
Capability.orEmpty(Capability<R> toCheck,
LazyOptional<T> inst) |
Modifier and Type | Field and Description |
---|---|
private LazyOptional<IAnimationStateMachine> |
CapabilityAnimation.DefaultItemAnimationCapabilityProvider.asm |
Modifier and Type | Method and Description |
---|---|
<T> LazyOptional<T> |
CapabilityAnimation.DefaultItemAnimationCapabilityProvider.getCapability(Capability<T> capability,
Direction facing) |
Constructor and Description |
---|
DefaultItemAnimationCapabilityProvider(LazyOptional<IAnimationStateMachine> asm) |
Modifier and Type | Field and Description |
---|---|
private static LazyOptional<java.lang.Void> |
LazyOptional.EMPTY |
Modifier and Type | Field and Description |
---|---|
private java.util.Set<NonNullConsumer<LazyOptional<T>>> |
LazyOptional.listeners |
Modifier and Type | Method and Description |
---|---|
<X> LazyOptional<X> |
LazyOptional.cast()
This method hides an unchecked cast to the inferred type.
|
static <T> LazyOptional<T> |
LazyOptional.empty() |
LazyOptional<T> |
LazyOptional.filter(NonNullPredicate<? super T> predicate)
Resolve the contained supplier if non-empty, and filter it by the given
NonNullPredicate , returning empty if false. |
<U> LazyOptional<U> |
LazyOptional.map(NonNullFunction<? super T,? extends U> mapper)
If a this
LazyOptional is non-empty, return a new
LazyOptional encapsulating the mapping function. |
static <T> LazyOptional<T> |
LazyOptional.of(NonNullSupplier<T> instanceSupplier)
Construct a new
LazyOptional that wraps the given
NonNullSupplier . |
Modifier and Type | Method and Description |
---|---|
void |
LazyOptional.addListener(NonNullConsumer<LazyOptional<T>> listener)
|
Modifier and Type | Field and Description |
---|---|
private LazyOptional<MarkDimensionForDeletionTest.DynamicDimensionCap> |
MarkDimensionForDeletionTest.DynamicDimensionCap.instance |
Modifier and Type | Method and Description |
---|---|
<T> LazyOptional<T> |
MarkDimensionForDeletionTest.DynamicDimensionCap.getCapability(Capability<T> cap,
Direction side) |
Modifier and Type | Method and Description |
---|---|
static LazyOptional<FluidStack> |
FluidUtil.getFluidContained(ItemStack container)
Helper method to get the fluid contained in an itemStack
|
static LazyOptional<IFluidHandlerItem> |
FluidUtil.getFluidHandler(ItemStack itemStack)
Helper method to get an
IFluidHandlerItem 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.
|
Modifier and Type | Field and Description |
---|---|
private LazyOptional<IFluidHandler> |
TileFluidHandler.holder |
Modifier and Type | Method and Description |
---|---|
<T> LazyOptional<T> |
TileFluidHandler.getCapability(Capability<T> capability,
Direction facing) |
Modifier and Type | Field and Description |
---|---|
private LazyOptional<IFluidHandlerItem> |
FluidHandlerItemStackSimple.holder |
private LazyOptional<IFluidHandlerItem> |
FluidHandlerItemStack.holder |
Modifier and Type | Method and Description |
---|---|
<T> LazyOptional<T> |
FluidHandlerItemStackSimple.getCapability(Capability<T> capability,
Direction facing) |
<T> LazyOptional<T> |
FluidHandlerItemStack.getCapability(Capability<T> capability,
Direction facing) |
Modifier and Type | Field and Description |
---|---|
private LazyOptional<IFluidHandlerItem> |
FluidBucketWrapper.holder |
Modifier and Type | Method and Description |
---|---|
<T> LazyOptional<T> |
FluidBucketWrapper.getCapability(Capability<T> capability,
Direction facing) |
Modifier and Type | Method and Description |
---|---|
private static LazyOptional<org.apache.commons.lang3.tuple.Pair<IItemHandler,java.lang.Object>> |
VanillaInventoryCodeHooks.getItemHandler(IHopper hopper,
Direction hopperFacing) |
static LazyOptional<org.apache.commons.lang3.tuple.Pair<IItemHandler,java.lang.Object>> |
VanillaInventoryCodeHooks.getItemHandler(World worldIn,
double x,
double y,
double z,
Direction side) |
Modifier and Type | Method and Description |
---|---|
static LazyOptional<IItemHandlerModifiable>[] |
SidedInvWrapper.create(ISidedInventory inv,
Direction... sides) |
static LazyOptional<IItemHandlerModifiable>[] |
EntityEquipmentInvWrapper.create(LivingEntity entity) |