Record Class AdvancementDefinition
java.lang.Object
java.lang.Record
ke.ric.api.advancement.AdvancementDefinition
public record AdvancementDefinition(String id, String title, String description, org.bukkit.Material icon, String headTextureHash, String itemId, boolean hidden, boolean announce, AdvancementDefinition.Frame frame)
extends Record
Immutable, owner-scoped addon advancement triggered by eating one custom item.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAdvancementDefinition(String id, String title, String description, org.bukkit.Material icon, String headTextureHash, String itemId, boolean hidden, boolean announce, AdvancementDefinition.Frame frame) Creates an instance of aAdvancementDefinitionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanannounce()Returns the value of theannouncerecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.frame()Returns the value of theframerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theheadTextureHashrecord component.booleanhidden()Returns the value of thehiddenrecord component.static AdvancementDefinitionorg.bukkit.Materialicon()Returns the value of theiconrecord component.id()Returns the value of theidrecord component.itemId()Returns the value of theitemIdrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AdvancementDefinition
public AdvancementDefinition(String id, String title, String description, org.bukkit.Material icon, String headTextureHash, String itemId, boolean hidden, boolean announce, AdvancementDefinition.Frame frame) Creates an instance of aAdvancementDefinitionrecord class.- Parameters:
id- the value for theidrecord componenttitle- the value for thetitlerecord componentdescription- the value for thedescriptionrecord componenticon- the value for theiconrecord componentheadTextureHash- the value for theheadTextureHashrecord componentitemId- the value for theitemIdrecord componenthidden- the value for thehiddenrecord componentannounce- the value for theannouncerecord componentframe- the value for theframerecord 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. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
icon
public org.bukkit.Material icon()Returns the value of theiconrecord component.- Returns:
- the value of the
iconrecord component
-
headTextureHash
Returns the value of theheadTextureHashrecord component.- Returns:
- the value of the
headTextureHashrecord component
-
itemId
Returns the value of theitemIdrecord component.- Returns:
- the value of the
itemIdrecord component
-
announce
public boolean announce()Returns the value of theannouncerecord component.- Returns:
- the value of the
announcerecord component
-
frame
Returns the value of theframerecord component.- Returns:
- the value of the
framerecord component