Record Class Point

java.lang.Object
java.lang.Record
com.hypixel.hytale.builtin.adventure.worldevents.action.effect.shape.Point
All Implemented Interfaces:
Shape

public record Point(int count, Double offsetMin, Double offsetMax) extends Record implements Shape
  • Field Details

  • Constructor Details

    • Point

      public Point(int count, Double offsetMin, Double offsetMax)
      Creates an instance of a Point record class.
      Parameters:
      count - the value for the count record component
      offsetMin - the value for the offsetMin record component
      offsetMax - the value for the offsetMax record component
  • Method Details

    • apply

      public void apply(@Nonnull org.joml.Vector3d origin, @Nullable VisualFX vfx, @Nullable SoundFX sfx, @Nonnull List<Ref<EntityStore>> players, @Nonnull CommandBuffer<EntityStore> buffer, @Nonnull RandomGenerator random)
      Description copied from interface: Shape
      Emits vfx and/or sfx at the positions defined by this shape.

      Either or both effect arguments may be null; check before calling their respective send methods.

      Specified by:
      apply in interface Shape
      Parameters:
      origin - the world position around which effects are distributed
      vfx - the visual effect to emit, or null if none
      sfx - the sound effect to emit, or null if none
      players - the players to receive the effects, already filtered to the action's radius
      buffer - the command buffer for the current tick
      random - a random source for per-point variation (offsets, scale, pitch, etc.)
    • 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.
    • count

      public int count()
      Returns the value of the count record component.
      Returns:
      the value of the count record component
    • offsetMin

      public Double offsetMin()
      Returns the value of the offsetMin record component.
      Returns:
      the value of the offsetMin record component
    • offsetMax

      public Double offsetMax()
      Returns the value of the offsetMax record component.
      Returns:
      the value of the offsetMax record component