Record Class FluidOperationResult
java.lang.Object
java.lang.Record
com.refinedmods.refinedstorage.common.api.support.resource.FluidOperationResult
@API(status=STABLE,
since="2.0.0-milestone.4.5")
public record FluidOperationResult(net.minecraft.world.item.ItemStack container, PlatformResourceKey fluid, long amount)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionFluidOperationResult(net.minecraft.world.item.ItemStack container, PlatformResourceKey fluid, long amount) Creates an instance of aFluidOperationResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongamount()Returns the value of theamountrecord component.net.minecraft.world.item.ItemStackReturns the value of thecontainerrecord component.final booleanIndicates whether some other object is "equal to" this one.fluid()Returns the value of thefluidrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FluidOperationResult
public FluidOperationResult(net.minecraft.world.item.ItemStack container, PlatformResourceKey fluid, long amount) Creates an instance of aFluidOperationResultrecord class.- Parameters:
container- the value for thecontainerrecord componentfluid- the value for thefluidrecord componentamount- the value for theamountrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
container
public net.minecraft.world.item.ItemStack container()Returns the value of thecontainerrecord component.- Returns:
- the value of the
containerrecord component
-
fluid
Returns the value of thefluidrecord component.- Returns:
- the value of the
fluidrecord component
-
amount
public long amount()Returns the value of theamountrecord component.- Returns:
- the value of the
amountrecord component
-