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
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
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
-