Package me.shedaniel.architectury.fluid
Class FluidStack
java.lang.Object
me.shedaniel.architectury.fluid.FluidStack
-
Method Summary
Modifier and TypeMethodDescriptionstatic Fractioncopy()static FluidStackstatic FluidStackcreate(Supplier<net.minecraft.world.level.material.Fluid> fluid, Fraction amount, @Nullable net.minecraft.nbt.CompoundTag tag) static FluidStackcreate(FluidStack stack, Fraction amount) static FluidStackstatic FluidStackcreate(net.minecraft.world.level.material.Fluid fluid, Fraction amount, @Nullable net.minecraft.nbt.CompoundTag tag) static FluidStackempty()final boolean@Nullable net.minecraft.nbt.CompoundTaggetChildTag(String childName) final net.minecraft.world.level.material.FluidgetFluid()net.minecraft.network.chat.ComponentgetName()net.minecraft.nbt.CompoundTaggetOrCreateChildTag(String childName) net.minecraft.nbt.CompoundTagfinal @Nullable net.minecraft.world.level.material.Fluidfinal Supplier<net.minecraft.world.level.material.Fluid>@Nullable net.minecraft.nbt.CompoundTaggetTag()voidfinal inthashCode()booleanhasTag()booleanisEmpty()booleanisFluidStackEqual(FluidStack other) static FluidStackread(net.minecraft.nbt.CompoundTag tag) static FluidStackread(net.minecraft.network.FriendlyByteBuf buf) voidremoveChildTag(String childName) voidvoidsetTag(@Nullable net.minecraft.nbt.CompoundTag tag) voidnet.minecraft.nbt.CompoundTagwrite(net.minecraft.nbt.CompoundTag tag) voidwrite(net.minecraft.network.FriendlyByteBuf buf)
-
Method Details
-
empty
-
create
public static FluidStack create(net.minecraft.world.level.material.Fluid fluid, Fraction amount, @Nullable @Nullable net.minecraft.nbt.CompoundTag tag) -
create
-
create
public static FluidStack create(Supplier<net.minecraft.world.level.material.Fluid> fluid, Fraction amount, @Nullable @Nullable net.minecraft.nbt.CompoundTag tag) -
create
public static FluidStack create(Supplier<net.minecraft.world.level.material.Fluid> fluid, Fraction amount) -
create
-
bucketAmount
-
getFluid
public final net.minecraft.world.level.material.Fluid getFluid() -
getRawFluid
@Nullable public final @Nullable net.minecraft.world.level.material.Fluid getRawFluid() -
getRawFluidSupplier
-
isEmpty
public boolean isEmpty() -
getAmount
-
setAmount
-
grow
-
shrink
-
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
-
getOrCreateChildTag
-
removeChildTag
-
getName
public net.minecraft.network.chat.Component getName() -
getTranslationKey
-
copy
-
hashCode
public final int hashCode() -
equals
-
isFluidStackEqual
-
read
-
read
-
write
public void write(net.minecraft.network.FriendlyByteBuf buf) -
write
public net.minecraft.nbt.CompoundTag write(net.minecraft.nbt.CompoundTag tag)
-