Contents
Record Class TriggerVolumeManager.ActiveRule<T extends TriggerRule>
java.lang.Object
java.lang.Record
com.hypixel.hytale.builtin.triggervolumes.manager.TriggerVolumeManager.ActiveRule<T>
- Enclosing class:
TriggerVolumeManager
public static record TriggerVolumeManager.ActiveRule<T extends TriggerRule>(@Nonnull T extends TriggerRule rule, @Nonnull VolumeEntry volume)
extends Record
A rule active at a queried position together with the in-range volume it was found on.
-
Constructor Summary
ConstructorsConstructorDescriptionActiveRule(T rule, VolumeEntry volume) Creates an instance of aActiveRulerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.rule()Returns the value of therulerecord component.final StringtoString()Returns a string representation of this record class.volume()Returns the value of thevolumerecord component.
-
Constructor Details
-
ActiveRule
Creates an instance of aActiveRulerecord class.- Parameters:
rule- the value for therulerecord componentvolume- the value for thevolumerecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
rule
Returns the value of therulerecord component.- Returns:
- the value of the
rulerecord component
-
volume
Returns the value of thevolumerecord component.- Returns:
- the value of the
volumerecord component
-