Class FluidStack

java.lang.Object
dev.architectury.fluid.FluidStack

public final class FluidStack extends Object
  • Method Details

    • empty

      public static FluidStack empty()
    • create

      public static FluidStack create(net.minecraft.world.level.material.Fluid fluid, long amount, @Nullable @Nullable net.minecraft.nbt.CompoundTag tag)
    • create

      public static FluidStack create(net.minecraft.world.level.material.Fluid fluid, long amount)
    • create

      public static FluidStack create(Supplier<net.minecraft.world.level.material.Fluid> fluid, long amount, @Nullable @Nullable net.minecraft.nbt.CompoundTag tag)
    • create

      public static FluidStack create(Supplier<net.minecraft.world.level.material.Fluid> fluid, long amount)
    • create

      public static FluidStack create(FluidStack stack, long amount)
    • bucketAmount

      public static long bucketAmount()
    • getFluid

      public net.minecraft.world.level.material.Fluid getFluid()
    • getRawFluid

      @Nullable public @Nullable net.minecraft.world.level.material.Fluid getRawFluid()
    • getRawFluidSupplier

      public Supplier<net.minecraft.world.level.material.Fluid> getRawFluidSupplier()
    • isEmpty

      public boolean isEmpty()
    • getAmount

      public long getAmount()
    • setAmount

      public void setAmount(long amount)
    • grow

      public void grow(long amount)
    • shrink

      public void shrink(long amount)
    • hasTag

      public boolean hasTag()
    • getTag

      @Nullable public @Nullable net.minecraft.nbt.CompoundTag getTag()
    • setTag

      public void setTag(@Nullable @Nullable net.minecraft.nbt.CompoundTag tag)
    • getOrCreateTag

      public net.minecraft.nbt.CompoundTag getOrCreateTag()
    • getChildTag

      @Nullable public @Nullable net.minecraft.nbt.CompoundTag getChildTag(String childName)
    • getOrCreateChildTag

      public net.minecraft.nbt.CompoundTag getOrCreateChildTag(String childName)
    • removeChildTag

      public void removeChildTag(String childName)
    • getName

      public net.minecraft.network.chat.Component getName()
    • getTranslationKey

      public String getTranslationKey()
    • copy

      public FluidStack copy()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • isFluidStackEqual

      public boolean isFluidStackEqual(FluidStack other)
    • isFluidEqual

      public boolean isFluidEqual(FluidStack other)
    • isTagEqual

      public boolean isTagEqual(FluidStack other)
    • read

      public static FluidStack read(net.minecraft.network.FriendlyByteBuf buf)
    • read

      public static FluidStack read(net.minecraft.nbt.CompoundTag tag)
    • write

      public void write(net.minecraft.network.FriendlyByteBuf buf)
    • write

      public net.minecraft.nbt.CompoundTag write(net.minecraft.nbt.CompoundTag tag)
    • copyWithAmount

      public FluidStack copyWithAmount(long amount)
    • init

      @Internal public static void init()