Contents
Record Class WorldEventRecord
java.lang.Object
java.lang.Record
com.hypixel.hytale.builtin.adventure.worldevents.WorldEventRecord
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ArrayCodec<WorldEventRecord> static final Validator<WorldEventRecord[]> static final RecordCodec<WorldEventRecord> static final WorldEventRecord[]static final Validator<WorldEventRecord> -
Constructor Summary
ConstructorsConstructorDescriptionWorldEventRecord(UUID id, String event, boolean isTransient) Creates an instance of aWorldEventRecordrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.event()Returns the value of theeventrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.booleanReturns the value of theisTransientrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
ARRAY_CODEC
-
EMPTY_ARRAY
-
VALIDATOR
-
ARRAY_VALIDATOR
-
-
Constructor Details
-
WorldEventRecord
Creates an instance of aWorldEventRecordrecord class.- Parameters:
id- the value for theidrecord componentevent- the value for theeventrecord componentisTransient- the value for theisTransientrecord 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
-
event
Returns the value of theeventrecord component.- Returns:
- the value of the
eventrecord component
-
isTransient
public boolean isTransient()Returns the value of theisTransientrecord component.- Returns:
- the value of the
isTransientrecord component
-