Contents
Record Class EventHandler.PriorityEntry
java.lang.Object
java.lang.Record
com.hypixel.hytale.builtin.worldgen.modifier.EventHandler.PriorityEntry
- All Implemented Interfaces:
Comparable<EventHandler.PriorityEntry>
- Enclosing class:
EventHandler
public static record EventHandler.PriorityEntry(WorldGenModifier modifier, int packPriority)
extends Record
implements Comparable<EventHandler.PriorityEntry>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPriorityEntry(WorldGenModifier modifier, int packPriority) Creates an instance of aPriorityEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.modifier()Returns the value of themodifierrecord component.intReturns the value of thepackPriorityrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
EMPTY_ARRAY
-
-
Constructor Details
-
PriorityEntry
Creates an instance of aPriorityEntryrecord class.- Parameters:
modifier- the value for themodifierrecord componentpackPriority- the value for thepackPriorityrecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<EventHandler.PriorityEntry>
-
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. -
modifier
Returns the value of themodifierrecord component.- Returns:
- the value of the
modifierrecord component
-
packPriority
public int packPriority()Returns the value of thepackPriorityrecord component.- Returns:
- the value of the
packPriorityrecord component
-