Package dev.architectury.fluid.fabric
Enum Class FluidStackImpl
- All Implemented Interfaces:
dev.architectury.fluid.FluidStack.FluidStackAdapter<FluidStackImpl.Pair>,Serializable,Comparable<FluidStackImpl>,Constable
@Internal
public enum FluidStackImpl
extends Enum<FluidStackImpl>
implements dev.architectury.fluid.FluidStack.FluidStackAdapter<FluidStackImpl.Pair>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic dev.architectury.fluid.FluidStack.FluidStackAdapter<Object>adapt(Function<dev.architectury.fluid.FluidStack, Object> toValue, Function<Object, dev.architectury.fluid.FluidStack> fromValue) copy(FluidStackImpl.Pair value) create(Supplier<net.minecraft.world.level.material.Fluid> fluid, long amount, net.minecraft.nbt.CompoundTag tag) longgetAmount(FluidStackImpl.Pair object) net.minecraft.world.level.material.FluidgetFluid(FluidStackImpl.Pair object) Supplier<net.minecraft.world.level.material.Fluid>net.minecraft.nbt.CompoundTaggetTag(FluidStackImpl.Pair value) inthashCode(FluidStackImpl.Pair value) voidsetAmount(FluidStackImpl.Pair object, long amount) voidsetTag(FluidStackImpl.Pair value, net.minecraft.nbt.CompoundTag tag) static FluidStackImplReturns the enum constant of this class with the specified name.static FluidStackImpl[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
-
-
Field Details
-
toValue
-
fromValue
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
adapt
-
create
public FluidStackImpl.Pair create(Supplier<net.minecraft.world.level.material.Fluid> fluid, long amount, net.minecraft.nbt.CompoundTag tag) - Specified by:
createin interfacedev.architectury.fluid.FluidStack.FluidStackAdapter<FluidStackImpl.Pair>
-
getRawFluidSupplier
public Supplier<net.minecraft.world.level.material.Fluid> getRawFluidSupplier(FluidStackImpl.Pair object) - Specified by:
getRawFluidSupplierin interfacedev.architectury.fluid.FluidStack.FluidStackAdapter<FluidStackImpl.Pair>
-
getFluid
- Specified by:
getFluidin interfacedev.architectury.fluid.FluidStack.FluidStackAdapter<FluidStackImpl.Pair>
-
getAmount
- Specified by:
getAmountin interfacedev.architectury.fluid.FluidStack.FluidStackAdapter<FluidStackImpl.Pair>
-
setAmount
- Specified by:
setAmountin interfacedev.architectury.fluid.FluidStack.FluidStackAdapter<FluidStackImpl.Pair>
-
getTag
- Specified by:
getTagin interfacedev.architectury.fluid.FluidStack.FluidStackAdapter<FluidStackImpl.Pair>
-
setTag
- Specified by:
setTagin interfacedev.architectury.fluid.FluidStack.FluidStackAdapter<FluidStackImpl.Pair>
-
copy
- Specified by:
copyin interfacedev.architectury.fluid.FluidStack.FluidStackAdapter<FluidStackImpl.Pair>
-
hashCode
- Specified by:
hashCodein interfacedev.architectury.fluid.FluidStack.FluidStackAdapter<FluidStackImpl.Pair>
-