Uses of Enum Class
alexiil.mc.lib.attributes.Simulation
Package
Description
The base package for
fluid
management.-
Uses of Simulation in alexiil.mc.lib.attributes
Modifier and TypeMethodDescriptionstatic Simulation
Returns the enum constant of this class with the specified name.static Simulation[]
Simulation.values()
Returns an array containing the constants of this enum class, in the order they are declared. -
Uses of Simulation in alexiil.mc.lib.attributes.fluid
Modifier and TypeMethodDescriptiondefault FluidVolume
FluidExtractable.attemptAnyExtraction(int maxAmount, Simulation simulation)
Deprecated, for removal: This API element is subject to removal in a future version.default FluidVolume
FluidExtractable.attemptAnyExtraction(FluidAmount maxAmount, Simulation simulation)
default FluidVolume
FluidExtractable.attemptExtraction(FluidFilter filter, int maxAmount, Simulation simulation)
Deprecated.default FluidVolume
FluidExtractable.attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)
SingleFluidTank.attemptExtraction(FluidFilter filter, int maxAmount, Simulation simulation)
Deprecated, for removal: This API element is subject to removal in a future version.SingleFluidTank.attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)
FluidInsertable.attemptInsertion(FluidVolume fluid, Simulation simulation)
Inserts the given stack into this insertable, and returns the excess.SingleFluidTank.attemptInsertion(FluidVolume fluid, Simulation simulation)
default FluidVolume
FixedFluidInv.extractFluid(int tank, FluidFilter filter, FluidVolume mergeWith, FluidAmount maxAmount, Simulation simulation)
Attempts to extract part of the fluid volume that is held in the given tank.static FluidVolume
FluidVolumeUtil.extractSingle(FixedFluidInv inv, int tank, FluidFilter filter, FluidVolume toAddWith, int maxAmount, Simulation simulation)
Deprecated, for removal: This API element is subject to removal in a future version.static FluidVolume
FluidVolumeUtil.extractSingle(FixedFluidInv inv, int tank, FluidFilter filter, FluidVolume toAddWith, FluidAmount maxAmount, Simulation simulation)
Deprecated, for removal: This API element is subject to removal in a future version.FluidContainerRegistry.FluidFillFunction.insert(net.minecraft.item.ItemStack stack, FluidVolume fluid, Simulation simulation, FluidContainerRegistry.FluidFillHandler.StackReturnFunc stackReturn)
protected abstract FluidVolume
FluidContainerRegistry.FluidFillHandler.insert(net.minecraft.item.ItemStack stack, FluidVolume fluid, Simulation simulation, FluidContainerRegistry.FluidFillHandler.StackReturnFunc stackReturn)
default FluidVolume
FixedFluidInv.insertFluid(int tank, FluidVolume volume, Simulation simulation)
Attempts to insert the given fluid volume into the given tank, returning the excess.static FluidVolume
FluidVolumeUtil.insertSingle(FixedFluidInv inv, int tank, FluidVolume toInsert, Simulation simulation)
Deprecated, for removal: This API element is subject to removal in a future version.As this has been moved toFixedFluidInv.insertFluid(int, FluidVolume, Simulation)
static FluidVolume
FluidVolumeUtil.move(FluidExtractable from, FluidInsertable to, FluidAmount maximum, Simulation simulation)
Attempts to move up to the given amount of fluid from theFluidExtractable
to theFluidInsertable
.static FluidVolume
FluidVolumeUtil.move(FluidExtractable from, FluidInsertable to, FluidFilter filter, FluidAmount maximum, Simulation simulation)
Attempts to move up to the given maximum amount of fluids from theFluidExtractable
to theFluidInsertable
, provided they match the givenFluidFilter
.static FluidVolume
FluidVolumeUtil.move(FluidExtractable from, FluidInsertable to, FluidFilter filter, Simulation simulation)
Attempts to move up to the given maximum amount of fluids from theFluidExtractable
to theFluidInsertable
, provided they match the givenFluidFilter
.static FluidVolume
FluidVolumeUtil.move(FluidExtractable from, FluidInsertable to, Simulation simulation)
Attempts to move as much fluid as possible from theFluidExtractable
to theFluidInsertable
.default boolean
FluidInsertable.offer(FluidVolume fluid, Simulation simulation)
Deprecated.This is an override forLimitedConsumer
, for the full javadoc you probably want to callFluidInsertable.attemptInsertion(FluidVolume, Simulation)
directly.boolean
SingleFluidTank.set(FluidVolume to, Simulation simulation)
boolean
FixedFluidInv.setInvFluid(int tank, FluidVolume to, Simulation simulation)
Sets the fluid in the given tank to the given fluid. -
Uses of Simulation in alexiil.mc.lib.attributes.fluid.impl
Modifier and TypeMethodDescriptionDelegatingGroupedFluidInv.attemptAnyExtraction(FluidAmount maxAmount, Simulation simulation)
SimpleFixedFluidInv.attemptAnyExtraction(FluidAmount maxAmount, Simulation simulation)
CombinedFluidExtractable.attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)
CombinedGroupedFluidInv.attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)
DelegatingGroupedFluidInv.attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)
EmptyFluidExtractable.attemptExtraction(FluidFilter filter, int maxAmount, Simulation simulation)
Deprecated, for removal: This API element is subject to removal in a future version.EmptyFluidExtractable.attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)
EmptyFluidTransferable.attemptExtraction(FluidFilter filter, int maxAmount, Simulation simulation)
EmptyGroupedFluidInv.attemptExtraction(FluidFilter filter, int maxAmount, Simulation simulation)
FilteredFluidExtractable.attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)
FilteredFluidTransferable.attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)
GroupedFluidInvFixedWrapper.attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)
SimpleFixedFluidInv.attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)
SimpleFixedFluidInvExtractable.attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)
Deprecated, for removal: This API element is subject to removal in a future version.SimpleLimitedGroupedFluidInv.attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)
CombinedFluidInsertable.attemptInsertion(FluidVolume stack, Simulation simulation)
CombinedGroupedFluidInv.attemptInsertion(FluidVolume fluid, Simulation simulation)
DelegatingGroupedFluidInv.attemptInsertion(FluidVolume fluid, Simulation simulation)
EmptyFluidTransferable.attemptInsertion(FluidVolume fluid, Simulation simulation)
EmptyGroupedFluidInv.attemptInsertion(FluidVolume fluid, Simulation simulation)
FilteredFluidInsertable.attemptInsertion(FluidVolume fluid, Simulation simulation)
FilteredFluidTransferable.attemptInsertion(FluidVolume fluid, Simulation simulation)
GroupedFluidInvFixedWrapper.attemptInsertion(FluidVolume fluid, Simulation simulation)
RejectingFluidInsertable.attemptInsertion(FluidVolume stack, Simulation simulation)
SimpleFixedFluidInv.attemptInsertion(FluidVolume fluid, Simulation simulation)
SimpleFixedFluidInvInsertable.attemptInsertion(FluidVolume fluid, Simulation simulation)
Deprecated, for removal: This API element is subject to removal in a future version.SimpleLimitedGroupedFluidInv.attemptInsertion(FluidVolume fluid, Simulation simulation)
boolean
CombinedFixedFluidInv.setInvFluid(int tank, FluidVolume to, Simulation simulation)
boolean
DelegatingFixedFluidInv.setInvFluid(int tank, FluidVolume to, Simulation simulation)
boolean
EmptyFixedFluidInv.setInvFluid(int tank, FluidVolume to, Simulation simulation)
boolean
MappedFixedFluidInv.setInvFluid(int tank, FluidVolume to, Simulation simulation)
boolean
SimpleFixedFluidInv.setInvFluid(int tank, FluidVolume to, Simulation simulation)
boolean
SimpleLimitedFixedFluidInv.setInvFluid(int tank, FluidVolume to, Simulation simulation)
boolean
SubFixedFluidInv.setInvFluid(int tank, FluidVolume to, Simulation simulation)
-
Uses of Simulation in alexiil.mc.lib.attributes.fluid.item
Modifier and TypeMethodDescriptionItemBasedSingleFluidInv.attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)
ItemBasedSingleFluidInv.attemptInsertion(FluidVolume fluid, Simulation simulation)
-
Uses of Simulation in alexiil.mc.lib.attributes.fluid.volume
Modifier and TypeMethodDescriptionboolean
FluidVolume.merge(FluidVolume other, FluidAmount.FluidMergeRounding rounding, Simulation simulation)
boolean
FluidVolume.merge(FluidVolume other, Simulation simulation)
static boolean
FluidVolume.mergeInto(FluidVolume source, FluidVolume target, FluidAmount.FluidMergeRounding rounding, Simulation simulation)
Merges as much fluid as possible from the source into the target, leaving the result in the source. -
Uses of Simulation in alexiil.mc.lib.attributes.fluid.world
Modifier and TypeMethodDescriptionstatic FluidVolume
FluidWorldUtil.drain(net.minecraft.world.WorldAccess world, net.minecraft.util.math.BlockPos pos, Simulation simulation)
Attempts to drain the given block of it's fluid.static FluidVolume
FluidWorldUtil.fill(net.minecraft.world.WorldAccess world, net.minecraft.util.math.BlockPos pos, FluidVolume volume, Simulation simulation)
Attempts to place the given fluid volume into the given block position.IFluidVolumeDrainable.tryDrainFluid(net.minecraft.world.WorldAccess world, net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state, Simulation simulation)
-
Uses of Simulation in alexiil.mc.lib.attributes.item
Modifier and TypeMethodDescriptiondefault net.minecraft.item.ItemStack
ItemExtractable.attemptAnyExtraction(int maxAmount, Simulation simulation)
net.minecraft.item.ItemStack
ItemExtractable.attemptExtraction(ItemFilter filter, int maxAmount, Simulation simulation)
net.minecraft.item.ItemStack
SingleItemSlot.attemptExtraction(ItemFilter filter, int maxAmount, Simulation simulation)
net.minecraft.item.ItemStack
ItemInsertable.attemptInsertion(net.minecraft.item.ItemStack stack, Simulation simulation)
Inserts the given stack into this insertable, and returns the excess.net.minecraft.item.ItemStack
SingleItemSlot.attemptInsertion(net.minecraft.item.ItemStack stack, Simulation simulation)
static net.minecraft.item.ItemStack
ItemInvUtil.extractSingle(FixedItemInv inv, int slot, ItemFilter filter, net.minecraft.item.ItemStack toAddWith, int maxAmount, Simulation simulation)
Deprecated, for removal: This API element is subject to removal in a future version.Because this has been moved toFixedItemInv.extractStack(int, ItemFilter, ItemStack, int, Simulation)
.default net.minecraft.item.ItemStack
FixedItemInv.extractStack(int slot, ItemFilter filter, net.minecraft.item.ItemStack mergeWith, int maxCount, Simulation simulation)
Attempts to extract part of the stack that is held in the given slot.static net.minecraft.item.ItemStack
ItemInvUtil.insertSingle(FixedItemInv inv, int slot, net.minecraft.item.ItemStack toInsert, Simulation simulation)
Deprecated, for removal: This API element is subject to removal in a future version.Because this has been moved toFixedItemInv.insertStack(int, ItemStack, Simulation)
.default net.minecraft.item.ItemStack
FixedItemInv.insertStack(int slot, net.minecraft.item.ItemStack stack, Simulation simulation)
Attempts to insert the given stack into the given slot, returning the excess.static int
ItemInvUtil.move(ItemExtractable from, ItemInsertable to, ItemFilter filter, int maximum, Simulation simulation)
Attempts to move up to the given maximum number of items from theItemExtractable
to theItemInsertable
, provided they match the givenItemFilter
.default boolean
ItemInsertable.offer(net.minecraft.item.ItemStack stack, Simulation simulation)
Deprecated.This is an override forLimitedConsumer
, for the full javadoc you probably want to callItemInsertable.attemptInsertion(ItemStack, Simulation)
directly.boolean
SingleItemSlot.set(net.minecraft.item.ItemStack to, Simulation simulation)
Sets the stack in this slot to the given stack.boolean
FixedItemInv.ModifiableFixedItemInv.setInvStack(int slot, net.minecraft.item.ItemStack to, Simulation simulation)
boolean
FixedItemInv.setInvStack(int slot, net.minecraft.item.ItemStack to, Simulation simulation)
Sets the stack in the given slot to the given stack. -
Uses of Simulation in alexiil.mc.lib.attributes.item.compat
Modifier and TypeMethodDescriptionboolean
FixedInventoryVanillaWrapper.setInvStack(int slot, net.minecraft.item.ItemStack to, Simulation simulation)
-
Uses of Simulation in alexiil.mc.lib.attributes.item.entity
Modifier and TypeMethodDescriptionnet.minecraft.item.ItemStack
ItemExtractableProjectileEntity.attemptExtraction(ItemFilter filter, int maxAmount, Simulation simulation)
net.minecraft.item.ItemStack
ItemTransferableItemEntity.attemptExtraction(ItemFilter filter, int maxAmount, Simulation simulation)
net.minecraft.item.ItemStack
ItemTransferableItemEntity.attemptInsertion(net.minecraft.item.ItemStack stack, Simulation simulation)
-
Uses of Simulation in alexiil.mc.lib.attributes.item.impl
Modifier and TypeMethodDescriptionnet.minecraft.item.ItemStack
DelegatingGroupedItemInv.attemptAnyExtraction(int maxAmount, Simulation simulation)
net.minecraft.item.ItemStack
EmptyGroupedItemInv.attemptAnyExtraction(int maxAmount, Simulation simulation)
net.minecraft.item.ItemStack
FilteredItemExtractable.attemptAnyExtraction(int maxAmount, Simulation simulation)
net.minecraft.item.ItemStack
FilteredItemTransferable.attemptAnyExtraction(int maxAmount, Simulation simulation)
net.minecraft.item.ItemStack
FullFixedItemInv.attemptAnyExtraction(int maxAmount, Simulation simulation)
net.minecraft.item.ItemStack
CombinedGroupedItemInv.attemptExtraction(ItemFilter filter, int maxAmount, Simulation simulation)
net.minecraft.item.ItemStack
CombinedItemExtractable.attemptExtraction(ItemFilter filter, int maxAmount, Simulation simulation)
net.minecraft.item.ItemStack
DelegatingGroupedItemInv.attemptExtraction(ItemFilter filter, int maxAmount, Simulation simulation)
net.minecraft.item.ItemStack
DirectFixedItemInv.attemptExtraction(ItemFilter filter, int maxAmount, Simulation simulation)
net.minecraft.item.ItemStack
EmptyGroupedItemInv.attemptExtraction(ItemFilter filter, int maxAmount, Simulation simulation)
net.minecraft.item.ItemStack
EmptyItemExtractable.attemptExtraction(ItemFilter filter, int maxCount, Simulation simulation)
net.minecraft.item.ItemStack
EmptyItemTransferable.attemptExtraction(ItemFilter filter, int maxAmount, Simulation simulation)
net.minecraft.item.ItemStack
FilteredItemExtractable.attemptExtraction(ItemFilter filter, int maxAmount, Simulation simulation)
net.minecraft.item.ItemStack
FilteredItemTransferable.attemptExtraction(ItemFilter filter, int maxAmount, Simulation simulation)
net.minecraft.item.ItemStack
FullFixedItemInv.attemptExtraction(ItemFilter filter, int maxAmount, Simulation simulation)
net.minecraft.item.ItemStack
GroupedItemInvFixedWrapper.attemptExtraction(ItemFilter filter, int maxCount, Simulation simulation)
net.minecraft.item.ItemStack
SimpleFixedItemInvExtractable.attemptExtraction(ItemFilter filter, int maxCount, Simulation simulation)
Deprecated, for removal: This API element is subject to removal in a future version.net.minecraft.item.ItemStack
SimpleGroupedItemInv.attemptExtraction(ItemFilter filter, int maxAmount, Simulation simulation)
net.minecraft.item.ItemStack
SimpleLimitedGroupedItemInv.attemptExtraction(ItemFilter filter, int maxAmount, Simulation simulation)
net.minecraft.item.ItemStack
CombinedGroupedItemInv.attemptInsertion(net.minecraft.item.ItemStack stack, Simulation simulation)
net.minecraft.item.ItemStack
CombinedItemInsertable.attemptInsertion(net.minecraft.item.ItemStack stack, Simulation simulation)
net.minecraft.item.ItemStack
DelegatingGroupedItemInv.attemptInsertion(net.minecraft.item.ItemStack stack, Simulation simulation)
net.minecraft.item.ItemStack
DirectFixedItemInv.attemptInsertion(net.minecraft.item.ItemStack stack, Simulation simulation)
net.minecraft.item.ItemStack
EmptyGroupedItemInv.attemptInsertion(net.minecraft.item.ItemStack stack, Simulation simulation)
net.minecraft.item.ItemStack
EmptyItemTransferable.attemptInsertion(net.minecraft.item.ItemStack stack, Simulation simulation)
net.minecraft.item.ItemStack
FilteredItemInsertable.attemptInsertion(net.minecraft.item.ItemStack stack, Simulation simulation)
net.minecraft.item.ItemStack
FilteredItemTransferable.attemptInsertion(net.minecraft.item.ItemStack stack, Simulation simulation)
net.minecraft.item.ItemStack
FullFixedItemInv.attemptInsertion(net.minecraft.item.ItemStack stack, Simulation simulation)
net.minecraft.item.ItemStack
GroupedItemInvFixedWrapper.attemptInsertion(net.minecraft.item.ItemStack stack, Simulation simulation)
net.minecraft.item.ItemStack
RejectingItemInsertable.attemptInsertion(net.minecraft.item.ItemStack stack, Simulation simulation)
net.minecraft.item.ItemStack
SimpleFixedItemInvInsertable.attemptInsertion(net.minecraft.item.ItemStack stack, Simulation simulation)
Deprecated, for removal: This API element is subject to removal in a future version.net.minecraft.item.ItemStack
SimpleGroupedItemInv.attemptInsertion(net.minecraft.item.ItemStack stack, Simulation simulation)
net.minecraft.item.ItemStack
SimpleLimitedGroupedItemInv.attemptInsertion(net.minecraft.item.ItemStack stack, Simulation simulation)
net.minecraft.item.ItemStack
DelegatingFixedItemInv.extractStack(int slot, ItemFilter filter, net.minecraft.item.ItemStack mergeWith, int maxCount, Simulation simulation)
net.minecraft.item.ItemStack
SimpleLimitedFixedItemInv.extractStack(int slot, ItemFilter filter, net.minecraft.item.ItemStack mergeWith, int maxCount, Simulation simulation)
net.minecraft.item.ItemStack
DelegatingFixedItemInv.insertStack(int slot, net.minecraft.item.ItemStack stack, Simulation simulation)
net.minecraft.item.ItemStack
SimpleLimitedFixedItemInv.insertStack(int slot, net.minecraft.item.ItemStack stack, Simulation simulation)
boolean
CombinedFixedItemInv.setInvStack(int slot, net.minecraft.item.ItemStack to, Simulation simulation)
boolean
DelegatingFixedItemInv.setInvStack(int slot, net.minecraft.item.ItemStack to, Simulation simulation)
boolean
DirectFixedItemInv.setInvStack(int slot, net.minecraft.item.ItemStack to, Simulation simulation)
boolean
EmptyFixedItemInv.setInvStack(int slot, net.minecraft.item.ItemStack to, Simulation simulation)
boolean
FullFixedItemInv.setInvStack(int slot, net.minecraft.item.ItemStack to, Simulation simulation)
boolean
MappedFixedItemInv.setInvStack(int slot, net.minecraft.item.ItemStack to, Simulation simulation)
boolean
SimpleLimitedFixedItemInv.setInvStack(int slot, net.minecraft.item.ItemStack to, Simulation simulation)
boolean
SubFixedItemInv.setInvStack(int slot, net.minecraft.item.ItemStack to, Simulation simulation)
-
Uses of Simulation in alexiil.mc.lib.attributes.misc
Modifier and TypeMethodDescriptionboolean
LimitedConsumer.offer(T object, Simulation simulation)
default boolean
Reference.set(T value, Simulation simulation)
Delegates toReference.set(Object)
if the simulation isACTION
, otherwise it delegates toReference.isValid(Object)
.boolean
SimulatableRef.set(T value, Simulation simulation)
boolean
AbstractItemBasedAttribute.setStacks(Simulation simulation, net.minecraft.item.ItemStack oldStack, net.minecraft.item.ItemStack newStack)
Attempts to place the stacks in the reference and excess.
FluidExtractable.attemptAnyExtraction(FluidAmount, Simulation)