Record Class GuideRegistration.OwnedProductionDestination
java.lang.Object
java.lang.Record
ke.ric.api.GuideRegistration.OwnedProductionDestination
- Enclosing class:
GuideRegistration
public static record GuideRegistration.OwnedProductionDestination(String ownerId, GuideDestination destination, Supplier<org.bukkit.inventory.ItemStack> preview, boolean preferProduction)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionOwnedProductionDestination(String ownerId, GuideDestination destination) OwnedProductionDestination(String ownerId, GuideDestination destination, Supplier<org.bukkit.inventory.ItemStack> preview) OwnedProductionDestination(String ownerId, GuideDestination destination, Supplier<org.bukkit.inventory.ItemStack> preview, boolean preferProduction) Creates an instance of aOwnedProductionDestinationrecord 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.ownerId()Returns the value of theownerIdrecord component.booleanReturns the value of thepreferProductionrecord component.Supplier<org.bukkit.inventory.ItemStack> preview()Returns the value of thepreviewrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OwnedProductionDestination
public OwnedProductionDestination(String ownerId, GuideDestination destination, Supplier<org.bukkit.inventory.ItemStack> preview) -
OwnedProductionDestination
-
OwnedProductionDestination
public OwnedProductionDestination(String ownerId, GuideDestination destination, Supplier<org.bukkit.inventory.ItemStack> preview, boolean preferProduction) Creates an instance of aOwnedProductionDestinationrecord class.- Parameters:
ownerId- the value for theownerIdrecord componentdestination- the value for thedestinationrecord componentpreview- the value for thepreviewrecord componentpreferProduction- the value for thepreferProductionrecord 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. -
ownerId
Returns the value of theownerIdrecord component.- Returns:
- the value of the
ownerIdrecord component
-
destination
Returns the value of thedestinationrecord component.- Returns:
- the value of the
destinationrecord component
-
preview
Returns the value of thepreviewrecord component.- Returns:
- the value of the
previewrecord component
-
preferProduction
public boolean preferProduction()Returns the value of thepreferProductionrecord component.- Returns:
- the value of the
preferProductionrecord component
-