Uses of Class
net.minecraftforge.fluids.FluidStack
Package
Description
-
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()
IFluidBlock.drain
(Level level, BlockPos pos, IFluidHandler.FluidAction action) Attempt to drain the block.IFluidTank.drain
(int maxDrain, IFluidHandler.FluidAction action) IFluidTank.drain
(FluidStack resource, IFluidHandler.FluidAction action) 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 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 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 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
(ItemStack container) Helper method to get the fluid contained in an itemStackModifier and TypeMethodDescriptionstatic boolean
FluidStack.areFluidStackTagsEqual
(FluidStack stack1, FluidStack stack2) Determines if the NBT Tags are equal.final boolean
FluidAttributes.canBePlacedInWorld
(BlockAndTintGetter reader, BlockPos pos, FluidStack state) boolean
FluidStack.containsFluid
(FluidStack other) Determines if the Fluids are equal and this stack is larger.boolean
FluidAttributes.doesVaporize
(BlockAndTintGetter reader, BlockPos pos, FluidStack fluidStack) Determines if this fluid should vaporize in dimensions where water vaporizes when placed.IFluidTank.drain
(FluidStack resource, IFluidHandler.FluidAction action) int
IFluidTank.fill
(FluidStack resource, IFluidHandler.FluidAction action) FluidAttributes.getBucket
(FluidStack stack) int
FluidAttributes.getColor
(FluidStack stack) int
FluidAttributes.getDensity
(FluidStack stack) FluidAttributes.getDisplayName
(FluidStack stack) Returns the localized name of this fluid.FluidAttributes.getEmptySound
(FluidStack stack) static ItemStack
FluidUtil.getFilledBucket
(FluidStack fluidStack) FluidAttributes.getFillSound
(FluidStack stack) FluidAttributes.getFlowingTexture
(FluidStack stack) int
FluidAttributes.getLuminosity
(FluidStack stack) FluidAttributes.getRarity
(FluidStack stack) FluidAttributes.getStateForPlacement
(BlockAndTintGetter reader, BlockPos pos, FluidStack state) FluidAttributes.getStillTexture
(FluidStack stack) int
FluidAttributes.getTemperature
(FluidStack stack) FluidAttributes.getTranslationKey
(FluidStack stack) A FluidStack sensitive version of getTranslationKeyint
FluidAttributes.getViscosity
(FluidStack stack) boolean
FluidStack.isFluidEqual
(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
FluidAttributes.isGaseous
(FluidStack stack) int
IFluidBlock.place
(Level level, BlockPos pos, FluidStack fluidStack, IFluidHandler.FluidAction action) Attempts to place the block at a given position.static 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 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 FluidActionResult
FluidUtil.tryPlaceFluid
(Player player, Level level, InteractionHand hand, BlockPos pos, ItemStack container, FluidStack resource) static boolean
FluidUtil.tryPlaceFluid
(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.void
FluidAttributes.vaporize
(Player player, Level worldIn, BlockPos pos, FluidStack fluidStack) Called instead of placing the fluid block ifDimensionType.ultraWarm()
andFluidAttributes.doesVaporize(BlockAndTintGetter, BlockPos, FluidStack)
are true. -
Uses of FluidStack in net.minecraftforge.fluids.capability
Modifier and TypeMethodDescriptionIFluidHandler.drain
(int maxDrain, IFluidHandler.FluidAction action) Drains fluid out of internal tanks, distribution is left entirely to the IFluidHandler.IFluidHandler.drain
(FluidStack resource, IFluidHandler.FluidAction action) Drains fluid out of internal tanks, distribution is left entirely to the IFluidHandler.IFluidHandler.getFluidInTank
(int tank) Returns the FluidStack in a given tank.Modifier and TypeMethodDescriptionIFluidHandler.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, 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 TypeMethodDescriptionEmptyFluidHandler.drain
(int maxDrain, IFluidHandler.FluidAction action) EmptyFluidHandler.drain
(FluidStack resource, IFluidHandler.FluidAction action) FluidHandlerItemStack.drain
(int maxDrain, IFluidHandler.FluidAction action) FluidHandlerItemStack.drain
(FluidStack resource, IFluidHandler.FluidAction action) FluidHandlerItemStackSimple.drain
(int maxDrain, IFluidHandler.FluidAction action) FluidHandlerItemStackSimple.drain
(FluidStack resource, IFluidHandler.FluidAction action) FluidTank.drain
(int maxDrain, IFluidHandler.FluidAction action) FluidTank.drain
(FluidStack resource, IFluidHandler.FluidAction action) VoidFluidHandler.drain
(int maxDrain, IFluidHandler.FluidAction action) VoidFluidHandler.drain
(FluidStack resource, IFluidHandler.FluidAction action) FluidHandlerItemStack.getFluid()
FluidHandlerItemStackSimple.getFluid()
FluidTank.getFluid()
EmptyFluidHandler.getFluidInTank
(int tank) FluidHandlerItemStack.getFluidInTank
(int tank) FluidHandlerItemStackSimple.getFluidInTank
(int tank) FluidTank.getFluidInTank
(int tank) 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) EmptyFluidHandler.drain
(FluidStack resource, IFluidHandler.FluidAction action) FluidHandlerItemStack.drain
(FluidStack resource, IFluidHandler.FluidAction action) FluidHandlerItemStackSimple.drain
(FluidStack resource, IFluidHandler.FluidAction action) FluidTank.drain
(FluidStack resource, IFluidHandler.FluidAction action) 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
(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, FluidStack stack) boolean
FluidHandlerItemStack.isFluidValid
(int tank, FluidStack stack) boolean
FluidHandlerItemStackSimple.isFluidValid
(int tank, FluidStack stack) boolean
FluidTank.isFluidValid
(int tank, FluidStack stack) boolean
FluidTank.isFluidValid
(FluidStack stack) boolean
VoidFluidHandler.isFluidValid
(int tank, 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 TypeMethodDescriptionBucketPickupHandlerWrapper.drain
(int maxDrain, IFluidHandler.FluidAction action) BucketPickupHandlerWrapper.drain
(FluidStack resource, IFluidHandler.FluidAction action) FluidBlockWrapper.drain
(int maxDrain, IFluidHandler.FluidAction action) FluidBlockWrapper.drain
(FluidStack resource, IFluidHandler.FluidAction action) FluidBucketWrapper.drain
(int maxDrain, IFluidHandler.FluidAction action) FluidBucketWrapper.drain
(FluidStack resource, IFluidHandler.FluidAction action) FluidBucketWrapper.getFluid()
BucketPickupHandlerWrapper.getFluidInTank
(int tank) FluidBlockWrapper.getFluidInTank
(int tank) FluidBucketWrapper.getFluidInTank
(int tank) Modifier and TypeMethodDescriptionboolean
FluidBucketWrapper.canFillFluidType
(FluidStack fluid) BucketPickupHandlerWrapper.drain
(FluidStack resource, IFluidHandler.FluidAction action) FluidBlockWrapper.drain
(FluidStack resource, IFluidHandler.FluidAction action) 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, FluidStack stack) boolean
FluidBlockWrapper.isFluidValid
(int tank, FluidStack stack) boolean
FluidBucketWrapper.isFluidValid
(int tank, FluidStack stack) protected void
FluidBucketWrapper.setFluid
(FluidStack fluidStack)