Record Class EntityData.PatternGroup<Data>
java.lang.Object
java.lang.Record
org.skriptlang.skript.bukkit.entity.EntityData.PatternGroup<Data>
- Type Parameters:
Data- The object for representing a state of the entity.- Record Components:
isDefault- Whether this group should be the default group.index- The index of the entity/thisEntityData.PatternGroup.name- The name of the entity.data- The object representing a state of the entity. Ifnull, will be marked as default group if no other group is marked with default.patterns- The patterns that could be used to refer to the entity/thisEntityData.PatternGroup.
- Enclosing class:
EntityData<E extends org.bukkit.entity.Entity>
public static record EntityData.PatternGroup<Data>(boolean isDefault, int index, GeneralNoun name, Data data, String[] patterns)
extends Record
Grouping of data for an entity that is to be parsed and retrieved.
-
Constructor Summary
ConstructorsConstructorDescriptionPatternGroup(boolean isDefault, int index, String name, Data data, String... patterns) PatternGroup(boolean isDefault, int index, GeneralNoun name, Data data, String... patterns) Creates an instance of aPatternGrouprecord class.PatternGroup(int index, String name, Data data, String... patterns) PatternGroup(int index, String name, String... patterns) PatternGroup(int index, GeneralNoun name, Data data, String... patterns) PatternGroup(int index, GeneralNoun name, String... patterns) -
Method Summary
Modifier and TypeMethodDescriptiondata()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intindex()Returns the value of theindexrecord component.booleanReturns the value of theisDefaultrecord component.name()Returns the value of thenamerecord component.String[]patterns()Returns the value of thepatternsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PatternGroup
-
PatternGroup
-
PatternGroup
-
PatternGroup
-
PatternGroup
-
PatternGroup
public PatternGroup(boolean isDefault, int index, GeneralNoun name, @Nullable Data data, String... patterns) Creates an instance of aPatternGrouprecord class.
-
-
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. -
isDefault
-
index
-
name
-
data
-
patterns
-