Record Class FluidItems.Bucket.Item
java.lang.Object
java.lang.Record
fr.robie.machineengine.api.resource.fluid.FluidItems.Bucket.Item
- All Implemented Interfaces:
FluidItems.Bucket
- Enclosing interface:
FluidItems.Bucket
public static record FluidItems.Bucket.Item(@NotNull net.kyori.adventure.key.Key item)
extends Record
implements FluidItems.Bucket
An existing CraftEngine item, e.g.
mymod:oil_bucket.-
Nested Class Summary
Nested classes/interfaces inherited from interface FluidItems.Bucket
FluidItems.Bucket.Auto, FluidItems.Bucket.Item, FluidItems.Bucket.None -
Constructor Summary
ConstructorsConstructorDescriptionItem(@NotNull net.kyori.adventure.key.Key item) Creates an instance of aItemrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull net.kyori.adventure.key.Keyitem()Returns the value of theitemrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Item
public Item(@NotNull @NotNull net.kyori.adventure.key.Key item) Creates an instance of aItemrecord class.- Parameters:
item- the value for theitemrecord 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). -
item
@NotNull public @NotNull net.kyori.adventure.key.Key item()Returns the value of theitemrecord component.- Returns:
- the value of the
itemrecord component
-