Record Class FluidItems
java.lang.Object
java.lang.Record
fr.robie.machineengine.api.resource.fluid.FluidItems
The items that hold a placed fluid.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FluidItemsA generated bucket.static final FluidItems -
Constructor Summary
ConstructorsConstructorDescriptionFluidItems(@NotNull FluidItems.Bucket bucket) Creates an instance of aFluidItemsrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull FluidItems.Bucketbucket()Returns the value of thebucketrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
AUTO
A generated bucket. -
NONE
-
-
Constructor Details
-
FluidItems
Creates an instance of aFluidItemsrecord class.- Parameters:
bucket- the value for thebucketrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
bucket
Returns the value of thebucketrecord component.- Returns:
- the value of the
bucketrecord component
-