Uses of Class
net.minecraftforge.fluids.FluidStack
Package
Description
-
Uses of FluidStack in net.minecraftforge.client.extensions.common
Modifier and TypeMethodDescriptiondefault ResourceLocation
IClientFluidTypeExtensions.getFlowingTexture
(FluidStack stack) Returns the reference of the texture to apply to a flowing fluid.default ResourceLocation
IClientFluidTypeExtensions.getOverlayTexture
(FluidStack stack) Returns the reference of the texture to apply to a fluid directly touching a non-opaque block other than air.default ResourceLocation
IClientFluidTypeExtensions.getStillTexture
(FluidStack stack) Returns the reference of the texture to apply to a source fluid.default int
IClientFluidTypeExtensions.getTintColor
(FluidStack stack) Returns the tint applied to the fluid's textures. -
Uses of FluidStack in net.minecraftforge.common.extensions
Modifier and TypeMethodDescriptiondefault FluidStack
IForgeFriendlyByteBuf.readFluidStack()
Reads a FluidStack from this buffer.Modifier and TypeMethodDescriptiondefault void
IForgeFriendlyByteBuf.writeFluidStack
(FluidStack stack) Writes a FluidStack to the packet buffer, easy enough. -
Uses of FluidStack in net.minecraftforge.fluids
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<FluidStack>
FluidStack.CODEC
Modifier and TypeMethodDescriptionFluidStack.copy()
@NotNull FluidStack
IFluidBlock.drain
(Level level, BlockPos pos, IFluidHandler.FluidAction action) Attempt to drain the block.@NotNull FluidStack
IFluidTank.drain
(int maxDrain, IFluidHandler.FluidAction action) @NotNull FluidStack
IFluidTank.drain
(FluidStack resource, IFluidHandler.FluidAction action) @NotNull FluidStack
IFluidTank.getFluid()
static FluidStack
FluidStack.loadFluidStackFromNBT
(CompoundTag nbt) This provides a safe method for retrieving a FluidStack - if the Fluid is invalid, the stack will return as null.static FluidStack
FluidStack.readFromPacket
(FriendlyByteBuf buf) static @NotNull FluidStack
FluidUtil.tryFluidTransfer
(IFluidHandler fluidDestination, IFluidHandler fluidSource, int maxAmount, boolean doTransfer) Fill a destination fluid handler from a source fluid handler with a max amount.static @NotNull FluidStack
FluidUtil.tryFluidTransfer
(IFluidHandler fluidDestination, IFluidHandler fluidSource, FluidStack resource, boolean doTransfer) Fill a destination fluid handler from a source fluid handler using a specific fluid.private static @NotNull FluidStack
FluidUtil.tryFluidTransfer_Internal
(IFluidHandler fluidDestination, IFluidHandler fluidSource, FluidStack drainable, boolean doTransfer) Internal method for filling a destination fluid handler from a source fluid handler using a specific fluid.Modifier and TypeMethodDescriptionstatic Optional<FluidStack>
FluidUtil.getFluidContained
(@NotNull ItemStack container) Helper method to get the fluid contained in an itemStackModifier and TypeMethodDescriptionstatic boolean
FluidStack.areFluidStackTagsEqual
(@NotNull FluidStack stack1, @NotNull FluidStack stack2) Determines if the NBT Tags are equal.final boolean
FluidType.canBePlacedInLevel
(BlockAndTintGetter getter, BlockPos pos, FluidStack stack) Returns whether the fluid can be placed in the level.boolean
FluidType.canConvertToSource
(FluidStack stack) Returns whether the fluid can create a source.boolean
FluidType.canHydrate
(FluidStack stack) Returns whether the fluid can hydrate.boolean
FluidStack.containsFluid
(@NotNull FluidStack other) Determines if the Fluids are equal and this stack is larger.@NotNull FluidStack
IFluidTank.drain
(FluidStack resource, IFluidHandler.FluidAction action) int
IFluidTank.fill
(FluidStack resource, IFluidHandler.FluidAction action) FluidType.getBucket
(FluidStack stack) Returns the bucket containing the fluid.int
FluidType.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 @NotNull ItemStack
FluidUtil.getFilledBucket
(@NotNull FluidStack fluidStack) int
FluidType.getLightLevel
(FluidStack stack) Returns the light level emitted by the fluid.FluidType.getRarity
(FluidStack stack) Returns the rarity of the fluid.@Nullable SoundEvent
FluidType.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 theFluidState
when aFluidStack
is trying to place it.int
FluidType.getTemperature
(FluidStack stack) Returns the temperature of the fluid.int
FluidType.getViscosity
(FluidStack stack) Returns the viscosity, or thickness, of the fluid.boolean
FluidStack.isFluidEqual
(@NotNull FluidStack other) Determines if the FluidIDs and NBT Tags are equal.boolean
FluidStack.isFluidStackIdentical
(FluidStack other) Determines if the FluidIDs, Amounts, and NBT Tags are all equal.private boolean
FluidStack.isFluidStackTagEqual
(FluidStack other) boolean
IFluidTank.isFluidValid
(FluidStack stack) boolean
FluidType.isVaporizedOnPlacement
(Level level, BlockPos pos, FluidStack stack) Determines if this fluid should be vaporized when placed into a level.void
FluidType.onVaporize
(@Nullable Player player, Level level, BlockPos pos, FluidStack stack) Performs an action when a fluid can be vaporized when placed into a level.int
IFluidBlock.place
(Level level, BlockPos pos, @NotNull FluidStack fluidStack, IFluidHandler.FluidAction action) Attempts to place the block at a given position.static @NotNull FluidStack
FluidUtil.tryFluidTransfer
(IFluidHandler fluidDestination, IFluidHandler fluidSource, FluidStack resource, boolean doTransfer) Fill a destination fluid handler from a source fluid handler using a specific fluid.private static @NotNull FluidStack
FluidUtil.tryFluidTransfer_Internal
(IFluidHandler fluidDestination, IFluidHandler fluidSource, FluidStack drainable, boolean doTransfer) Internal method for filling a destination fluid handler from a source fluid handler using a specific fluid.static @NotNull FluidActionResult
FluidUtil.tryPlaceFluid
(@Nullable Player player, Level level, InteractionHand hand, BlockPos pos, @NotNull ItemStack container, FluidStack resource) static boolean
FluidUtil.tryPlaceFluid
(@Nullable Player player, Level level, InteractionHand hand, BlockPos pos, IFluidHandler fluidSource, FluidStack resource) Tries to place a fluid resource into the level as a block and drains the fluidSource. -
Uses of FluidStack in net.minecraftforge.fluids.capability
Modifier and TypeMethodDescription@NotNull FluidStack
IFluidHandler.drain
(int maxDrain, IFluidHandler.FluidAction action) Drains fluid out of internal tanks, distribution is left entirely to the IFluidHandler.@NotNull FluidStack
IFluidHandler.drain
(FluidStack resource, IFluidHandler.FluidAction action) Drains fluid out of internal tanks, distribution is left entirely to the IFluidHandler.@NotNull FluidStack
IFluidHandler.getFluidInTank
(int tank) Returns the FluidStack in a given tank.Modifier and TypeMethodDescription@NotNull FluidStack
IFluidHandler.drain
(FluidStack resource, IFluidHandler.FluidAction action) Drains fluid out of internal tanks, distribution is left entirely to the IFluidHandler.int
IFluidHandler.fill
(FluidStack resource, IFluidHandler.FluidAction action) Fills fluid into internal tanks, distribution is left entirely to the IFluidHandler.boolean
IFluidHandler.isFluidValid
(int tank, @NotNull FluidStack stack) This function is a way to determine which fluids can exist inside a given handler. -
Uses of FluidStack in net.minecraftforge.fluids.capability.templates
Modifier and TypeMethodDescription@NotNull FluidStack
EmptyFluidHandler.drain
(int maxDrain, IFluidHandler.FluidAction action) @NotNull FluidStack
EmptyFluidHandler.drain
(FluidStack resource, IFluidHandler.FluidAction action) @NotNull FluidStack
FluidHandlerItemStack.drain
(int maxDrain, IFluidHandler.FluidAction action) @NotNull FluidStack
FluidHandlerItemStack.drain
(FluidStack resource, IFluidHandler.FluidAction action) @NotNull FluidStack
FluidHandlerItemStackSimple.drain
(int maxDrain, IFluidHandler.FluidAction action) @NotNull FluidStack
FluidHandlerItemStackSimple.drain
(FluidStack resource, IFluidHandler.FluidAction action) @NotNull FluidStack
FluidTank.drain
(int maxDrain, IFluidHandler.FluidAction action) @NotNull FluidStack
FluidTank.drain
(FluidStack resource, IFluidHandler.FluidAction action) @NotNull FluidStack
VoidFluidHandler.drain
(int maxDrain, IFluidHandler.FluidAction action) @NotNull FluidStack
VoidFluidHandler.drain
(FluidStack resource, IFluidHandler.FluidAction action) @NotNull FluidStack
FluidHandlerItemStack.getFluid()
@NotNull FluidStack
FluidHandlerItemStackSimple.getFluid()
@NotNull FluidStack
FluidTank.getFluid()
@NotNull FluidStack
EmptyFluidHandler.getFluidInTank
(int tank) @NotNull FluidStack
FluidHandlerItemStack.getFluidInTank
(int tank) @NotNull FluidStack
FluidHandlerItemStackSimple.getFluidInTank
(int tank) @NotNull FluidStack
FluidTank.getFluidInTank
(int tank) @NotNull FluidStack
VoidFluidHandler.getFluidInTank
(int tank) Modifier and TypeMethodDescriptionboolean
FluidHandlerItemStack.canDrainFluidType
(FluidStack fluid) boolean
FluidHandlerItemStackSimple.canDrainFluidType
(FluidStack fluid) boolean
FluidHandlerItemStack.canFillFluidType
(FluidStack fluid) boolean
FluidHandlerItemStackSimple.canFillFluidType
(FluidStack fluid) @NotNull FluidStack
EmptyFluidHandler.drain
(FluidStack resource, IFluidHandler.FluidAction action) @NotNull FluidStack
FluidHandlerItemStack.drain
(FluidStack resource, IFluidHandler.FluidAction action) @NotNull FluidStack
FluidHandlerItemStackSimple.drain
(FluidStack resource, IFluidHandler.FluidAction action) @NotNull FluidStack
FluidTank.drain
(FluidStack resource, IFluidHandler.FluidAction action) @NotNull FluidStack
VoidFluidHandler.drain
(FluidStack resource, IFluidHandler.FluidAction action) int
EmptyFluidHandler.fill
(FluidStack resource, IFluidHandler.FluidAction action) int
FluidHandlerItemStack.fill
(FluidStack resource, IFluidHandler.FluidAction doFill) int
FluidHandlerItemStackSimple.fill
(@NotNull FluidStack resource, IFluidHandler.FluidAction action) int
FluidTank.fill
(FluidStack resource, IFluidHandler.FluidAction action) int
VoidFluidHandler.fill
(FluidStack resource, IFluidHandler.FluidAction action) boolean
EmptyFluidHandler.isFluidValid
(int tank, @NotNull FluidStack stack) boolean
FluidHandlerItemStack.isFluidValid
(int tank, @NotNull FluidStack stack) boolean
FluidHandlerItemStackSimple.isFluidValid
(int tank, @NotNull FluidStack stack) boolean
FluidTank.isFluidValid
(int tank, @NotNull FluidStack stack) boolean
FluidTank.isFluidValid
(FluidStack stack) boolean
VoidFluidHandler.isFluidValid
(int tank, @NotNull FluidStack stack) protected void
FluidHandlerItemStack.setFluid
(FluidStack fluid) protected void
FluidHandlerItemStackSimple.setFluid
(FluidStack fluid) void
FluidTank.setFluid
(FluidStack stack) -
Uses of FluidStack in net.minecraftforge.fluids.capability.wrappers
Modifier and TypeMethodDescription@NotNull FluidStack
BucketPickupHandlerWrapper.drain
(int maxDrain, IFluidHandler.FluidAction action) @NotNull FluidStack
BucketPickupHandlerWrapper.drain
(FluidStack resource, IFluidHandler.FluidAction action) @NotNull FluidStack
FluidBlockWrapper.drain
(int maxDrain, IFluidHandler.FluidAction action) @NotNull FluidStack
FluidBlockWrapper.drain
(FluidStack resource, IFluidHandler.FluidAction action) @NotNull FluidStack
FluidBucketWrapper.drain
(int maxDrain, IFluidHandler.FluidAction action) @NotNull FluidStack
FluidBucketWrapper.drain
(FluidStack resource, IFluidHandler.FluidAction action) @NotNull FluidStack
FluidBucketWrapper.getFluid()
@NotNull FluidStack
BucketPickupHandlerWrapper.getFluidInTank
(int tank) @NotNull FluidStack
FluidBlockWrapper.getFluidInTank
(int tank) @NotNull FluidStack
FluidBucketWrapper.getFluidInTank
(int tank) Modifier and TypeMethodDescriptionboolean
FluidBucketWrapper.canFillFluidType
(FluidStack fluid) @NotNull FluidStack
BucketPickupHandlerWrapper.drain
(FluidStack resource, IFluidHandler.FluidAction action) @NotNull FluidStack
FluidBlockWrapper.drain
(FluidStack resource, IFluidHandler.FluidAction action) @NotNull FluidStack
FluidBucketWrapper.drain
(FluidStack resource, IFluidHandler.FluidAction action) int
BlockWrapper.fill
(FluidStack resource, IFluidHandler.FluidAction action) int
BlockWrapper.LiquidContainerBlockWrapper.fill
(FluidStack resource, IFluidHandler.FluidAction action) int
BucketPickupHandlerWrapper.fill
(FluidStack resource, IFluidHandler.FluidAction action) int
FluidBlockWrapper.fill
(FluidStack resource, IFluidHandler.FluidAction action) int
FluidBucketWrapper.fill
(FluidStack resource, IFluidHandler.FluidAction action) boolean
BucketPickupHandlerWrapper.isFluidValid
(int tank, @NotNull FluidStack stack) boolean
FluidBlockWrapper.isFluidValid
(int tank, @NotNull FluidStack stack) boolean
FluidBucketWrapper.isFluidValid
(int tank, @NotNull FluidStack stack) protected void
FluidBucketWrapper.setFluid
(@NotNull FluidStack fluidStack)