Record Class GuideRegistration.OwnedItemUse
java.lang.Object
java.lang.Record
ke.ric.api.GuideRegistration.OwnedItemUse
- Enclosing class:
GuideRegistration
public static record GuideRegistration.OwnedItemUse(String ownerId, String id, RecipeItemRef input, RecipeItemRef output, GuideDestination destination, String label, Predicate<org.bukkit.entity.Player> visibility)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionOwnedItemUse(String ownerId, String id, RecipeItemRef input, RecipeItemRef output, GuideDestination destination, String label, Predicate<org.bukkit.entity.Player> visibility) Creates an instance of aOwnedItemUserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedestinationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.input()Returns the value of theinputrecord component.label()Returns the value of thelabelrecord component.output()Returns the value of theoutputrecord component.ownerId()Returns the value of theownerIdrecord component.final StringtoString()Returns a string representation of this record class.Predicate<org.bukkit.entity.Player> Returns the value of thevisibilityrecord component.
-
Constructor Details
-
OwnedItemUse
public OwnedItemUse(String ownerId, String id, RecipeItemRef input, RecipeItemRef output, GuideDestination destination, String label, Predicate<org.bukkit.entity.Player> visibility) Creates an instance of aOwnedItemUserecord class.- Parameters:
ownerId- the value for theownerIdrecord componentid- the value for theidrecord componentinput- the value for theinputrecord componentoutput- the value for theoutputrecord componentdestination- the value for thedestinationrecord componentlabel- the value for thelabelrecord componentvisibility- the value for thevisibilityrecord 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). -
ownerId
Returns the value of theownerIdrecord component.- Returns:
- the value of the
ownerIdrecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
input
Returns the value of theinputrecord component.- Returns:
- the value of the
inputrecord component
-
output
Returns the value of theoutputrecord component.- Returns:
- the value of the
outputrecord component
-
destination
Returns the value of thedestinationrecord component.- Returns:
- the value of the
destinationrecord component
-
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
visibility
Returns the value of thevisibilityrecord component.- Returns:
- the value of the
visibilityrecord component
-