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 classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
-
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) long
getAmount
(FluidStackImpl.Pair object) net.minecraft.world.level.material.Fluid
getFluid
(FluidStackImpl.Pair object) Supplier<net.minecraft.world.level.material.Fluid>
net.minecraft.nbt.CompoundTag
getTag
(FluidStackImpl.Pair value) int
hashCode
(FluidStackImpl.Pair value) void
setAmount
(FluidStackImpl.Pair object, long amount) void
setTag
(FluidStackImpl.Pair value, net.minecraft.nbt.CompoundTag tag) static FluidStackImpl
Returns 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:
create
in interfacedev.architectury.fluid.FluidStack.FluidStackAdapter<FluidStackImpl.Pair>
-
getRawFluidSupplier
public Supplier<net.minecraft.world.level.material.Fluid> getRawFluidSupplier(FluidStackImpl.Pair object) - Specified by:
getRawFluidSupplier
in interfacedev.architectury.fluid.FluidStack.FluidStackAdapter<FluidStackImpl.Pair>
-
getFluid
- Specified by:
getFluid
in interfacedev.architectury.fluid.FluidStack.FluidStackAdapter<FluidStackImpl.Pair>
-
getAmount
- Specified by:
getAmount
in interfacedev.architectury.fluid.FluidStack.FluidStackAdapter<FluidStackImpl.Pair>
-
setAmount
- Specified by:
setAmount
in interfacedev.architectury.fluid.FluidStack.FluidStackAdapter<FluidStackImpl.Pair>
-
getTag
- Specified by:
getTag
in interfacedev.architectury.fluid.FluidStack.FluidStackAdapter<FluidStackImpl.Pair>
-
setTag
- Specified by:
setTag
in interfacedev.architectury.fluid.FluidStack.FluidStackAdapter<FluidStackImpl.Pair>
-
copy
- Specified by:
copy
in interfacedev.architectury.fluid.FluidStack.FluidStackAdapter<FluidStackImpl.Pair>
-
hashCode
- Specified by:
hashCode
in interfacedev.architectury.fluid.FluidStack.FluidStackAdapter<FluidStackImpl.Pair>
-