Uses of Class
net.neoforged.neoforge.fluids.FluidStack
Packages that use FluidStack
Package
Description
-
Uses of FluidStack in net.neoforged.neoforge.client.extensions.common
Methods in net.neoforged.neoforge.client.extensions.common with parameters of type FluidStackModifier and TypeMethodDescriptiondefault IdentifierIClientFluidTypeExtensions.getFlowingTexture(FluidStack stack) Returns the reference of the texture to apply to a flowing fluid.default IdentifierIClientFluidTypeExtensions.getOverlayTexture(FluidStack stack) Returns the reference of the texture to apply to a fluid directly touching a non-opaque block other than air.default IdentifierIClientFluidTypeExtensions.getStillTexture(FluidStack stack) Returns the reference of the texture to apply to a source fluid.default intIClientFluidTypeExtensions.getTintColor(FluidStack stack) Returns the tint applied to the fluid's textures. -
Uses of FluidStack in net.neoforged.neoforge.common.extensions
Methods in net.neoforged.neoforge.common.extensions with parameters of type FluidStackModifier and TypeMethodDescriptiondefault voidIFluidExtension.appendHoverText(FluidStack fluidStack, Item.TooltipContext context, TooltipDisplay display, Consumer<Component> builder, TooltipFlag tooltipFlag) Adds additional tooltip components for the givenFluidStack. -
Uses of FluidStack in net.neoforged.neoforge.event
Methods in net.neoforged.neoforge.event with parameters of type FluidStackModifier and TypeMethodDescriptionstatic FluidTooltipEventEventHooks.onFluidTooltip(FluidStack fluidStack, @Nullable Player entityPlayer, List<Component> list, TooltipFlag flags, Item.TooltipContext context) -
Uses of FluidStack in net.neoforged.neoforge.event.entity.player
Fields in net.neoforged.neoforge.event.entity.player declared as FluidStackMethods in net.neoforged.neoforge.event.entity.player that return FluidStackModifier and TypeMethodDescriptionFluidTooltipEvent.getFluidStack()TheFluidStackwith the tooltip.Constructors in net.neoforged.neoforge.event.entity.player with parameters of type FluidStackModifierConstructorDescriptionFluidTooltipEvent(FluidStack fluidStack, @Nullable Player player, List<Component> list, TooltipFlag flags, Item.TooltipContext context) This event is fired ingetTooltipLines(TooltipContext, Player, TooltipFlag), which in turn is called from its respective modded GUI. -
Uses of FluidStack in net.neoforged.neoforge.fluids
Fields in net.neoforged.neoforge.fluids declared as FluidStackModifier and TypeFieldDescriptionstatic final FluidStackFluidStack.EMPTYprivate final FluidStackSimpleFluidContent.fluidStackFields in net.neoforged.neoforge.fluids with type parameters of type FluidStackModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<FluidStack> FluidStack.CODECA standard codec for fluid stacks that does not accept empty stacks.static final com.mojang.serialization.MapCodec<FluidStack> FluidStack.MAP_CODECA standard map codec for fluid stacks that does not accept empty stacks.static final com.mojang.serialization.Codec<FluidStack> FluidStack.OPTIONAL_CODECA standard codec for fluid stacks that accepts empty stacks, serializing them as{}.static final StreamCodec<RegistryFriendlyByteBuf, FluidStack> FluidStack.OPTIONAL_STREAM_CODECA stream codec for fluid stacks that accepts empty stacks.static final StreamCodec<RegistryFriendlyByteBuf, FluidStack> FluidStack.STREAM_CODECA stream codec for fluid stacks that does not accept empty stacks.static final it.unimi.dsi.fastutil.Hash.Strategy<? super FluidStack> FluidStackLinkedSet.TYPE_AND_COMPONENTSMethods in net.neoforged.neoforge.fluids that return FluidStackModifier and TypeMethodDescriptionFluidStack.copy()Creates a copy of this fluid stack.SimpleFluidContent.copy()FluidStack.copyAndClear()Creates a copy of this stack with0amount.FluidStack.copyWithAmount(int amount) Creates a copy of this fluid stack with the given amount.IFluidTank.drain(int maxDrain, IFluidHandler.FluidAction action) Deprecated, for removal: This API element is subject to removal in a future version.IFluidTank.drain(FluidStack resource, IFluidHandler.FluidAction action) Deprecated, for removal: This API element is subject to removal in a future version.IFluidTank.getFluid()Deprecated, for removal: This API element is subject to removal in a future version.FluidStack.split(int amount) Splits off a stack of the given amount of this stack and reduces this stack by the amount.static FluidStackFluidUtil.tryFluidTransfer(IFluidHandler fluidDestination, IFluidHandler fluidSource, int maxAmount, boolean doTransfer) Deprecated, for removal: This API element is subject to removal in a future version.static FluidStackFluidUtil.tryFluidTransfer(IFluidHandler fluidDestination, IFluidHandler fluidSource, FluidStack resource, boolean doTransfer) Deprecated, for removal: This API element is subject to removal in a future version.UseResourceHandlerUtil.move(net.neoforged.neoforge.transfer.ResourceHandler<T>, net.neoforged.neoforge.transfer.ResourceHandler<T>, java.util.function.Predicate<T>, int, net.neoforged.neoforge.transfer.transaction.TransactionContext)orResourceHandlerUtil.moveFirst(net.neoforged.neoforge.transfer.ResourceHandler<T>, net.neoforged.neoforge.transfer.ResourceHandler<T>, java.util.function.Predicate<T>, int, net.neoforged.neoforge.transfer.transaction.TransactionContext)instead.private static FluidStackFluidUtil.tryFluidTransfer_Internal(IFluidHandler fluidDestination, IFluidHandler fluidSource, FluidStack drainable, boolean doTransfer) Deprecated, for removal: This API element is subject to removal in a future version.Internal method for filling a destination fluid handler from a source fluid handler using a specific fluid.Methods in net.neoforged.neoforge.fluids that return types with arguments of type FluidStackModifier and TypeMethodDescriptionstatic Set<FluidStack> FluidStackLinkedSet.createTypeAndComponentsSet()static com.mojang.serialization.Codec<FluidStack> FluidStack.fixedAmountCodec(int amount) A standard codec for fluid stacks that always deserializes with a fixed amount, and does not accept empty stacks.static Optional<FluidStack> FluidUtil.getFluidContained(ItemStack container) Deprecated, for removal: This API element is subject to removal in a future version.static com.mojang.serialization.MapCodec<FluidStack> FluidStack.lenientOptionalFieldOf(String fieldName) Methods in net.neoforged.neoforge.fluids with parameters of type FluidStackModifier and TypeMethodDescriptionfinal booleanFluidType.canBePlacedInLevel(BlockAndTintGetter getter, BlockPos pos, FluidStack stack) Returns whether the fluid can be placed in the level.booleanFluidType.canConvertToSource(FluidStack stack) Returns whether the fluid can create a source.booleanFluidType.canHydrate(FluidStack stack) Returns whether the fluid can hydrate.static SimpleFluidContentSimpleFluidContent.copyOf(FluidStack fluidStack) IFluidTank.drain(FluidStack resource, IFluidHandler.FluidAction action) Deprecated, for removal: This API element is subject to removal in a future version.intIFluidTank.fill(FluidStack resource, IFluidHandler.FluidAction action) Deprecated, for removal: This API element is subject to removal in a future version.FluidType.getBucket(FluidStack stack) Returns the bucket containing the fluid.intFluidType.getDensity(FluidStack stack) Returns the density of the fluid.FluidType.getDescription(FluidStack stack) Returns the component representing the name of the fluid type.FluidType.getDescriptionId(FluidStack stack) Returns the identifier representing the name of the fluid.static ItemStackFluidUtil.getFilledBucket(FluidStack fluidStack) Deprecated, for removal: This API element is subject to removal in a future version.intFluidType.getLightLevel(FluidStack stack) Returns the light level emitted by the fluid.FluidType.getRarity(FluidStack stack) Returns the rarity of the fluid.@Nullable SoundEventFluidType.getSound(FluidStack stack, SoundAction action) Returns a sound to play when a certain action is performed.FluidType.getStateForPlacement(BlockAndTintGetter getter, BlockPos pos, FluidStack stack) Returns theFluidStatewhen aFluidStackis trying to place it.intFluidType.getTemperature(FluidStack stack) Returns the temperature of the fluid.intFluidType.getViscosity(FluidStack stack) Returns the viscosity, or thickness, of the fluid.static intFluidStack.hashFluidAndComponents(@Nullable FluidStack stack) Hashes the fluid and components of this stack, ignoring the amount.booleanIFluidTank.isFluidValid(FluidStack stack) Deprecated, for removal: This API element is subject to removal in a future version.static booleanFluidStack.isSameFluid(FluidStack first, FluidStack second) Checks if the two fluid stacks have the same fluid.booleanSimpleFluidContent.isSameFluid(FluidStack other) static booleanFluidStack.isSameFluidSameComponents(FluidStack first, FluidStack second) Checks if the two fluid stacks have the same fluid and components.booleanSimpleFluidContent.isSameFluidSameComponents(FluidStack other) booleanFluidType.isVaporizedOnPlacement(Level level, BlockPos pos, FluidStack stack) Determines if this fluid should be vaporized when placed into a level.static booleanFluidStack.matches(FluidStack first, FluidStack second) Checks if the two fluid stacks are equal.booleanSimpleFluidContent.matches(FluidStack other) voidFluidType.onVaporize(@Nullable LivingEntity entity, Level level, BlockPos pos, FluidStack stack) Performs an action when a fluid can be vaporized when placed into a level.static FluidStackFluidUtil.tryFluidTransfer(IFluidHandler fluidDestination, IFluidHandler fluidSource, FluidStack resource, boolean doTransfer) Deprecated, for removal: This API element is subject to removal in a future version.UseResourceHandlerUtil.move(net.neoforged.neoforge.transfer.ResourceHandler<T>, net.neoforged.neoforge.transfer.ResourceHandler<T>, java.util.function.Predicate<T>, int, net.neoforged.neoforge.transfer.transaction.TransactionContext)orResourceHandlerUtil.moveFirst(net.neoforged.neoforge.transfer.ResourceHandler<T>, net.neoforged.neoforge.transfer.ResourceHandler<T>, java.util.function.Predicate<T>, int, net.neoforged.neoforge.transfer.transaction.TransactionContext)instead.private static FluidStackFluidUtil.tryFluidTransfer_Internal(IFluidHandler fluidDestination, IFluidHandler fluidSource, FluidStack drainable, boolean doTransfer) Deprecated, for removal: This API element is subject to removal in a future version.Internal method for filling a destination fluid handler from a source fluid handler using a specific fluid.static FluidActionResultFluidUtil.tryPlaceFluid(@Nullable Player player, Level level, InteractionHand hand, BlockPos pos, ItemStack container, FluidStack resource) Deprecated, for removal: This API element is subject to removal in a future version.static booleanFluidUtil.tryPlaceFluid(@Nullable Player player, Level level, InteractionHand hand, BlockPos pos, IFluidHandler fluidSource, FluidStack resource) Deprecated, for removal: This API element is subject to removal in a future version.Constructors in net.neoforged.neoforge.fluids with parameters of type FluidStack -
Uses of FluidStack in net.neoforged.neoforge.fluids.capability
Methods in net.neoforged.neoforge.fluids.capability that return FluidStackModifier and TypeMethodDescriptionFluidResourceHandlerAdapter.drain(int maxDrain, IFluidHandler.FluidAction action) Deprecated, for removal: This API element is subject to removal in a future version.FluidResourceHandlerAdapter.drain(FluidStack resource, IFluidHandler.FluidAction action) Deprecated, for removal: This API element is subject to removal in a future version.IFluidHandler.drain(int maxDrain, IFluidHandler.FluidAction action) Deprecated, for removal: This API element is subject to removal in a future version.IFluidHandler.drain(FluidStack resource, IFluidHandler.FluidAction action) Deprecated, for removal: This API element is subject to removal in a future version.FluidResourceHandlerAdapter.getFluidInTank(int tank) Deprecated, for removal: This API element is subject to removal in a future version.IFluidHandler.getFluidInTank(int tank) Deprecated, for removal: This API element is subject to removal in a future version.UseResourceHandler.getAmountAsInt(int)andResourceHandler.getResource(int)instead.Methods in net.neoforged.neoforge.fluids.capability with parameters of type FluidStackModifier and TypeMethodDescriptionFluidResourceHandlerAdapter.drain(FluidStack resource, IFluidHandler.FluidAction action) Deprecated, for removal: This API element is subject to removal in a future version.IFluidHandler.drain(FluidStack resource, IFluidHandler.FluidAction action) Deprecated, for removal: This API element is subject to removal in a future version.intFluidResourceHandlerAdapter.fill(FluidStack resource, IFluidHandler.FluidAction action) Deprecated, for removal: This API element is subject to removal in a future version.intIFluidHandler.fill(FluidStack resource, IFluidHandler.FluidAction action) Deprecated, for removal: This API element is subject to removal in a future version.booleanFluidResourceHandlerAdapter.isFluidValid(int tank, FluidStack stack) Deprecated, for removal: This API element is subject to removal in a future version.booleanIFluidHandler.isFluidValid(int tank, FluidStack stack) Deprecated, for removal: This API element is subject to removal in a future version.UseResourceHandler.isValid(int, T)instead, however note that it doesn't make the same strong guarantees regarding how long a resource is valid. -
Uses of FluidStack in net.neoforged.neoforge.fluids.capability.templates
Fields in net.neoforged.neoforge.fluids.capability.templates declared as FluidStackModifier and TypeFieldDescriptionprotected FluidStackFluidTank.fluidDeprecated, for removal: This API element is subject to removal in a future version.Fields in net.neoforged.neoforge.fluids.capability.templates with type parameters of type FluidStackModifier and TypeFieldDescriptionprotected Predicate<FluidStack> FluidTank.validatorDeprecated, for removal: This API element is subject to removal in a future version.Methods in net.neoforged.neoforge.fluids.capability.templates that return FluidStackModifier and TypeMethodDescriptionEmptyFluidHandler.drain(int maxDrain, IFluidHandler.FluidAction action) Deprecated, for removal: This API element is subject to removal in a future version.EmptyFluidHandler.drain(FluidStack resource, IFluidHandler.FluidAction action) Deprecated, for removal: This API element is subject to removal in a future version.FluidHandlerItemStack.drain(int maxDrain, IFluidHandler.FluidAction action) Deprecated, for removal: This API element is subject to removal in a future version.FluidHandlerItemStack.drain(FluidStack resource, IFluidHandler.FluidAction action) Deprecated, for removal: This API element is subject to removal in a future version.FluidHandlerItemStackSimple.drain(int maxDrain, IFluidHandler.FluidAction action) Deprecated, for removal: This API element is subject to removal in a future version.FluidHandlerItemStackSimple.drain(FluidStack resource, IFluidHandler.FluidAction action) Deprecated, for removal: This API element is subject to removal in a future version.FluidTank.drain(int maxDrain, IFluidHandler.FluidAction action) Deprecated, for removal: This API element is subject to removal in a future version.FluidTank.drain(FluidStack resource, IFluidHandler.FluidAction action) Deprecated, for removal: This API element is subject to removal in a future version.VoidFluidHandler.drain(int maxDrain, IFluidHandler.FluidAction action) Deprecated, for removal: This API element is subject to removal in a future version.VoidFluidHandler.drain(FluidStack resource, IFluidHandler.FluidAction action) Deprecated, for removal: This API element is subject to removal in a future version.FluidHandlerItemStack.getFluid()Deprecated, for removal: This API element is subject to removal in a future version.FluidHandlerItemStackSimple.getFluid()Deprecated, for removal: This API element is subject to removal in a future version.FluidTank.getFluid()Deprecated, for removal: This API element is subject to removal in a future version.EmptyFluidHandler.getFluidInTank(int tank) Deprecated, for removal: This API element is subject to removal in a future version.FluidHandlerItemStack.getFluidInTank(int tank) Deprecated, for removal: This API element is subject to removal in a future version.FluidHandlerItemStackSimple.getFluidInTank(int tank) Deprecated, for removal: This API element is subject to removal in a future version.FluidTank.getFluidInTank(int tank) Deprecated, for removal: This API element is subject to removal in a future version.VoidFluidHandler.getFluidInTank(int tank) Deprecated, for removal: This API element is subject to removal in a future version.Methods in net.neoforged.neoforge.fluids.capability.templates with parameters of type FluidStackModifier and TypeMethodDescriptionbooleanFluidHandlerItemStack.canDrainFluidType(FluidStack fluid) Deprecated, for removal: This API element is subject to removal in a future version.booleanFluidHandlerItemStackSimple.canDrainFluidType(FluidStack fluid) Deprecated, for removal: This API element is subject to removal in a future version.booleanFluidHandlerItemStack.canFillFluidType(FluidStack fluid) Deprecated, for removal: This API element is subject to removal in a future version.booleanFluidHandlerItemStackSimple.canFillFluidType(FluidStack fluid) Deprecated, for removal: This API element is subject to removal in a future version.EmptyFluidHandler.drain(FluidStack resource, IFluidHandler.FluidAction action) Deprecated, for removal: This API element is subject to removal in a future version.FluidHandlerItemStack.drain(FluidStack resource, IFluidHandler.FluidAction action) Deprecated, for removal: This API element is subject to removal in a future version.FluidHandlerItemStackSimple.drain(FluidStack resource, IFluidHandler.FluidAction action) Deprecated, for removal: This API element is subject to removal in a future version.FluidTank.drain(FluidStack resource, IFluidHandler.FluidAction action) Deprecated, for removal: This API element is subject to removal in a future version.VoidFluidHandler.drain(FluidStack resource, IFluidHandler.FluidAction action) Deprecated, for removal: This API element is subject to removal in a future version.intEmptyFluidHandler.fill(FluidStack resource, IFluidHandler.FluidAction action) Deprecated, for removal: This API element is subject to removal in a future version.intFluidHandlerItemStack.fill(FluidStack resource, IFluidHandler.FluidAction doFill) Deprecated, for removal: This API element is subject to removal in a future version.intFluidHandlerItemStackSimple.fill(FluidStack resource, IFluidHandler.FluidAction action) Deprecated, for removal: This API element is subject to removal in a future version.intFluidTank.fill(FluidStack resource, IFluidHandler.FluidAction action) Deprecated, for removal: This API element is subject to removal in a future version.intVoidFluidHandler.fill(FluidStack resource, IFluidHandler.FluidAction action) Deprecated, for removal: This API element is subject to removal in a future version.booleanEmptyFluidHandler.isFluidValid(int tank, FluidStack stack) Deprecated, for removal: This API element is subject to removal in a future version.booleanFluidHandlerItemStack.isFluidValid(int tank, FluidStack stack) Deprecated, for removal: This API element is subject to removal in a future version.booleanFluidHandlerItemStackSimple.isFluidValid(int tank, FluidStack stack) Deprecated, for removal: This API element is subject to removal in a future version.booleanFluidTank.isFluidValid(int tank, FluidStack stack) Deprecated, for removal: This API element is subject to removal in a future version.booleanFluidTank.isFluidValid(FluidStack stack) Deprecated, for removal: This API element is subject to removal in a future version.booleanVoidFluidHandler.isFluidValid(int tank, FluidStack stack) Deprecated, for removal: This API element is subject to removal in a future version.protected voidFluidHandlerItemStack.setFluid(FluidStack fluid) Deprecated, for removal: This API element is subject to removal in a future version.protected voidFluidHandlerItemStackSimple.setFluid(FluidStack fluid) Deprecated, for removal: This API element is subject to removal in a future version.voidFluidTank.setFluid(FluidStack stack) Deprecated, for removal: This API element is subject to removal in a future version.Method parameters in net.neoforged.neoforge.fluids.capability.templates with type arguments of type FluidStackModifier and TypeMethodDescriptionFluidTank.setValidator(Predicate<FluidStack> validator) Deprecated, for removal: This API element is subject to removal in a future version.Constructor parameters in net.neoforged.neoforge.fluids.capability.templates with type arguments of type FluidStackModifierConstructorDescriptionFluidTank(int capacity, Predicate<FluidStack> validator) Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of FluidStack in net.neoforged.neoforge.fluids.capability.wrappers
Methods in net.neoforged.neoforge.fluids.capability.wrappers that return FluidStackModifier and TypeMethodDescriptionBucketPickupHandlerWrapper.drain(int maxDrain, IFluidHandler.FluidAction action) Deprecated, for removal: This API element is subject to removal in a future version.BucketPickupHandlerWrapper.drain(FluidStack resource, IFluidHandler.FluidAction action) Deprecated, for removal: This API element is subject to removal in a future version.FluidBucketWrapper.drain(int maxDrain, IFluidHandler.FluidAction action) Deprecated, for removal: This API element is subject to removal in a future version.FluidBucketWrapper.drain(FluidStack resource, IFluidHandler.FluidAction action) Deprecated, for removal: This API element is subject to removal in a future version.FluidBucketWrapper.getFluid()Deprecated, for removal: This API element is subject to removal in a future version.BucketPickupHandlerWrapper.getFluidInTank(int tank) Deprecated, for removal: This API element is subject to removal in a future version.FluidBucketWrapper.getFluidInTank(int tank) Deprecated, for removal: This API element is subject to removal in a future version.Methods in net.neoforged.neoforge.fluids.capability.wrappers with parameters of type FluidStackModifier and TypeMethodDescriptionbooleanFluidBucketWrapper.canFillFluidType(FluidStack fluid) Deprecated, for removal: This API element is subject to removal in a future version.BucketPickupHandlerWrapper.drain(FluidStack resource, IFluidHandler.FluidAction action) Deprecated, for removal: This API element is subject to removal in a future version.FluidBucketWrapper.drain(FluidStack resource, IFluidHandler.FluidAction action) Deprecated, for removal: This API element is subject to removal in a future version.intBlockWrapper.fill(FluidStack resource, IFluidHandler.FluidAction action) Deprecated, for removal: This API element is subject to removal in a future version.intBlockWrapper.LiquidContainerBlockWrapper.fill(FluidStack resource, IFluidHandler.FluidAction action) Deprecated, for removal: This API element is subject to removal in a future version.intBucketPickupHandlerWrapper.fill(FluidStack resource, IFluidHandler.FluidAction action) Deprecated, for removal: This API element is subject to removal in a future version.intFluidBucketWrapper.fill(FluidStack resource, IFluidHandler.FluidAction action) Deprecated, for removal: This API element is subject to removal in a future version.booleanBucketPickupHandlerWrapper.isFluidValid(int tank, FluidStack stack) Deprecated, for removal: This API element is subject to removal in a future version.booleanFluidBucketWrapper.isFluidValid(int tank, FluidStack stack) Deprecated, for removal: This API element is subject to removal in a future version.protected voidFluidBucketWrapper.setFluid(FluidStack fluidStack) Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of FluidStack in net.neoforged.neoforge.fluids.crafting
Fields in net.neoforged.neoforge.fluids.crafting declared as FluidStackMethods in net.neoforged.neoforge.fluids.crafting with parameters of type FluidStackModifier and TypeMethodDescriptionstatic FluidIngredientDataComponentFluidIngredient.of(boolean strict, FluidStack stack) Creates a new ingredient matching the given fluid, containing the given componentsstatic FluidIngredientFluidIngredient.of(FluidStack... fluids) booleanCompoundFluidIngredient.test(FluidStack stack) booleanCustomDisplayFluidIngredient.test(FluidStack stack) booleanDataComponentFluidIngredient.test(FluidStack stack) booleanDifferenceFluidIngredient.test(FluidStack stack) abstract booleanFluidIngredient.test(FluidStack fluidStack) Checks if a given fluid stack matches this ingredient.booleanIntersectionFluidIngredient.test(FluidStack stack) booleanSimpleFluidIngredient.test(FluidStack fluidStack) booleanSizedFluidIngredient.test(FluidStack stack) Performs a size-sensitive test on the given stack. -
Uses of FluidStack in net.neoforged.neoforge.fluids.crafting.display
Fields in net.neoforged.neoforge.fluids.crafting.display declared as FluidStackModifier and TypeFieldDescriptionprivate final FluidStackFluidStackSlotDisplay.stackThe field for thestackrecord component.Methods in net.neoforged.neoforge.fluids.crafting.display that return FluidStackModifier and TypeMethodDescriptionFluidStackContentsFactory.forStack(FluidStack fluid) FluidStackSlotDisplay.stack()Returns the value of thestackrecord component.Methods in net.neoforged.neoforge.fluids.crafting.display with parameters of type FluidStackModifier and TypeMethodDescriptionFluidStackContentsFactory.forStack(FluidStack fluid) ForFluidStacks.forStack(FluidStack fluid) Returns display data for the given fluid stack.Constructors in net.neoforged.neoforge.fluids.crafting.display with parameters of type FluidStackModifierConstructorDescriptionFluidStackSlotDisplay(FluidStack stack) Creates an instance of aFluidStackSlotDisplayrecord class. -
Uses of FluidStack in net.neoforged.neoforge.transfer.fluid
Fields in net.neoforged.neoforge.transfer.fluid declared as FluidStackModifier and TypeFieldDescriptionprivate final FluidStackFluidResource.innerStackA wrappedFluidStackwhich must never be modified or exposed.Methods in net.neoforged.neoforge.transfer.fluid that return FluidStackModifier and TypeMethodDescriptionprotected FluidStackFluidStacksResourceHandler.copyOf(FluidStack stack) static FluidStackFluidUtil.getFirstStackContained(ItemStack stack) Returns a new fluid stack with the first fluid contents of the given item stack, ignoring the count of the stack.static FluidStackFluidUtil.getStack(ResourceHandler<FluidResource> handler, int index) Returns a new fluid stack with the contents of the handler at the given index.protected FluidStackFluidStacksResourceHandler.getStackFrom(FluidResource resource, int amount) FluidResource.toStack(int amount) Creates aFluidStackof the specified amount.static FluidStackFluidUtil.tryPickupFluid(@Nullable ResourceHandler<FluidResource> destination, @Nullable Player player, Level level, BlockPos pos, @Nullable Direction side) Attempts to pick up a fluid in the level and put it into a fluid handler, first from aBucketPickupblock (such as fluid sources and waterlogged blocks), or second from aCapabilities.Fluid.BLOCKcapability instance.static FluidStackFluidUtil.tryPlaceFluid(@Nullable ResourceHandler<FluidResource> source, @Nullable Player player, Level level, InteractionHand hand, BlockPos pos) Tries to extract one bucket of a fluid resource from a resource handler and place it into the level as a block.Methods in net.neoforged.neoforge.transfer.fluid with parameters of type FluidStackModifier and TypeMethodDescriptionprotected FluidStackFluidStacksResourceHandler.copyOf(FluidStack stack) intFluidStacksResourceHandler.getAmountFrom(FluidStack stack) FluidStacksResourceHandler.getResourceFrom(FluidStack stack) booleanFluidResource.matches(FluidStack stack) Returns true if this resource matches the fluid and components of the passed stack.booleanFluidStacksResourceHandler.matches(FluidStack stack, FluidResource resource) static FluidResourceFluidResource.of(FluidStack stack) Creates aFluidResourcefor the given fluid stack.Method parameters in net.neoforged.neoforge.transfer.fluid with type arguments of type FluidStackModifier and TypeMethodDescriptionbooleanFluidResource.test(Predicate<FluidStack> predicate) Tests aFluidStackpredicate with the inner stack.Constructors in net.neoforged.neoforge.transfer.fluid with parameters of type FluidStackConstructor parameters in net.neoforged.neoforge.transfer.fluid with type arguments of type FluidStackModifierConstructorDescriptionFluidStacksResourceHandler(NonNullList<FluidStack> stacks, int capacity)
ResourceHandlerUtil.move(net.neoforged.neoforge.transfer.ResourceHandler<T>, net.neoforged.neoforge.transfer.ResourceHandler<T>, java.util.function.Predicate<T>, int, net.neoforged.neoforge.transfer.transaction.TransactionContext)orResourceHandlerUtil.moveFirst(net.neoforged.neoforge.transfer.ResourceHandler<T>, net.neoforged.neoforge.transfer.ResourceHandler<T>, java.util.function.Predicate<T>, int, net.neoforged.neoforge.transfer.transaction.TransactionContext)instead.