Package ch.njol.skript.registrations
Record Class EventValues.EventValueInfo<E extends org.bukkit.event.Event,T>
java.lang.Object
java.lang.Record
ch.njol.skript.registrations.EventValues.EventValueInfo<E,T>
- Enclosing class:
EventValues
public static record EventValues.EventValueInfo<E extends org.bukkit.event.Event,T> (Class<E extends org.bukkit.event.Event> eventClass, Class<T> valueClass, Converter<E extends org.bukkit.event.Event,T> converter, @Nullable String excludeErrorMessage, @Nullable Class<? extends E extends org.bukkit.event.Event>[] excludes, int time)
extends Record
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconverterrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theeventClassrecord component.@Nullable StringReturns the value of theexcludeErrorMessagerecord component.excludes()Returns the value of theexcludesrecord component.final inthashCode()Returns a hash code value for this object.inttime()Returns the value of thetimerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevalueClassrecord component.
-
Constructor Details
-
EventValueInfo
public EventValueInfo(Class<E> eventClass, Class<T> valueClass, Converter<E, T> converter, @Nullable @Nullable String excludeErrorMessage, @Nullable @Nullable Class<? extends E>[] excludes, int time) Creates an instance of aEventValueInforecord class.- Parameters:
eventClass- the value for theeventClassrecord componentvalueClass- the value for thevalueClassrecord componentconverter- the value for theconverterrecord componentexcludeErrorMessage- the value for theexcludeErrorMessagerecord componentexcludes- the value for theexcludesrecord componenttime- the value for thetimerecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
eventClass
Returns the value of theeventClassrecord component.- Returns:
- the value of the
eventClassrecord component
-
valueClass
Returns the value of thevalueClassrecord component.- Returns:
- the value of the
valueClassrecord component
-
converter
Returns the value of theconverterrecord component.- Returns:
- the value of the
converterrecord component
-
excludeErrorMessage
Returns the value of theexcludeErrorMessagerecord component.- Returns:
- the value of the
excludeErrorMessagerecord component
-
excludes
Returns the value of theexcludesrecord component.- Returns:
- the value of the
excludesrecord component
-
time
public int time()Returns the value of thetimerecord component.- Returns:
- the value of the
timerecord component
-