Package me.shedaniel.architectury.fluid
Class FluidStack
java.lang.Object
me.shedaniel.architectury.fluid.FluidStack
-
Method Summary
Modifier and TypeMethodDescriptionstatic Fraction
copy()
static FluidStack
static FluidStack
create
(Supplier<net.minecraft.world.level.material.Fluid> fluid, Fraction amount, @Nullable net.minecraft.nbt.CompoundTag tag) static FluidStack
create
(FluidStack stack, Fraction amount) static FluidStack
static FluidStack
create
(net.minecraft.world.level.material.Fluid fluid, Fraction amount, @Nullable net.minecraft.nbt.CompoundTag tag) static FluidStack
empty()
final boolean
@Nullable net.minecraft.nbt.CompoundTag
getChildTag
(String childName) final net.minecraft.world.level.material.Fluid
getFluid()
net.minecraft.network.chat.Component
getName()
net.minecraft.nbt.CompoundTag
getOrCreateChildTag
(String childName) net.minecraft.nbt.CompoundTag
final @Nullable net.minecraft.world.level.material.Fluid
final Supplier<net.minecraft.world.level.material.Fluid>
@Nullable net.minecraft.nbt.CompoundTag
getTag()
void
final int
hashCode()
boolean
hasTag()
boolean
isEmpty()
boolean
isFluidStackEqual
(FluidStack other) static FluidStack
read
(net.minecraft.nbt.CompoundTag tag) static FluidStack
read
(net.minecraft.network.FriendlyByteBuf buf) void
removeChildTag
(String childName) void
void
setTag
(@Nullable net.minecraft.nbt.CompoundTag tag) void
net.minecraft.nbt.CompoundTag
write
(net.minecraft.nbt.CompoundTag tag) void
write
(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)
-