Record Class TriggerEffectAsset.VolumeSettings

java.lang.Object
java.lang.Record
com.hypixel.hytale.builtin.triggervolumes.asset.TriggerEffectAsset.VolumeSettings
Enclosing class:
TriggerEffectAsset

public static record TriggerEffectAsset.VolumeSettings(@Nonnull Set<EntityTargetType> targetTypes, @Nonnull Map<String,String> tags, @Nonnull RejectionDelayMode rejectionDelayMode, float cooldown, @Nonnull CooldownMode cooldownMode, float activationDelay, @Nonnull ProjectileSource projectileSource, boolean keepLoaded, boolean rotateEffectsOnPaste, boolean cancelDelayedOnExit) extends Record
  • Constructor Details

    • VolumeSettings

      public VolumeSettings(@Nonnull Set<EntityTargetType> targetTypes, @Nonnull Map<String,String> tags, @Nonnull RejectionDelayMode rejectionDelayMode, float cooldown, @Nonnull CooldownMode cooldownMode, float activationDelay, @Nonnull ProjectileSource projectileSource, boolean keepLoaded, boolean rotateEffectsOnPaste, boolean cancelDelayedOnExit)
      Creates an instance of a VolumeSettings record class.
      Parameters:
      targetTypes - the value for the targetTypes record component
      tags - the value for the tags record component
      rejectionDelayMode - the value for the rejectionDelayMode record component
      cooldown - the value for the cooldown record component
      cooldownMode - the value for the cooldownMode record component
      activationDelay - the value for the activationDelay record component
      projectileSource - the value for the projectileSource record component
      keepLoaded - the value for the keepLoaded record component
      rotateEffectsOnPaste - the value for the rotateEffectsOnPaste record component
      cancelDelayedOnExit - the value for the cancelDelayedOnExit record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • targetTypes

      @Nonnull public Set<EntityTargetType> targetTypes()
      Returns the value of the targetTypes record component.
      Returns:
      the value of the targetTypes record component
    • tags

      @Nonnull public Map<String,String> tags()
      Returns the value of the tags record component.
      Returns:
      the value of the tags record component
    • rejectionDelayMode

      @Nonnull public RejectionDelayMode rejectionDelayMode()
      Returns the value of the rejectionDelayMode record component.
      Returns:
      the value of the rejectionDelayMode record component
    • cooldown

      public float cooldown()
      Returns the value of the cooldown record component.
      Returns:
      the value of the cooldown record component
    • cooldownMode

      @Nonnull public CooldownMode cooldownMode()
      Returns the value of the cooldownMode record component.
      Returns:
      the value of the cooldownMode record component
    • activationDelay

      public float activationDelay()
      Returns the value of the activationDelay record component.
      Returns:
      the value of the activationDelay record component
    • projectileSource

      @Nonnull public ProjectileSource projectileSource()
      Returns the value of the projectileSource record component.
      Returns:
      the value of the projectileSource record component
    • keepLoaded

      public boolean keepLoaded()
      Returns the value of the keepLoaded record component.
      Returns:
      the value of the keepLoaded record component
    • rotateEffectsOnPaste

      public boolean rotateEffectsOnPaste()
      Returns the value of the rotateEffectsOnPaste record component.
      Returns:
      the value of the rotateEffectsOnPaste record component
    • cancelDelayedOnExit

      public boolean cancelDelayedOnExit()
      Returns the value of the cancelDelayedOnExit record component.
      Returns:
      the value of the cancelDelayedOnExit record component