Record Class TicketSet

java.lang.Object
java.lang.Record
net.neoforged.neoforge.common.world.chunk.TicketSet
Record Components:
nonTicking - the non-fully ticking tickets
ticking - the fully ticking tickets

public record TicketSet(it.unimi.dsi.fastutil.longs.LongSet nonTicking, it.unimi.dsi.fastutil.longs.LongSet ticking) extends Record
Represents a pair of chunk-loaded ticket sets.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final it.unimi.dsi.fastutil.longs.LongSet
    The field for the nonTicking record component.
    private final it.unimi.dsi.fastutil.longs.LongSet
    The field for the ticking record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    TicketSet(it.unimi.dsi.fastutil.longs.LongSet nonTicking, it.unimi.dsi.fastutil.longs.LongSet ticking)
    Creates an instance of a TicketSet record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    it.unimi.dsi.fastutil.longs.LongSet
    Returns the value of the nonTicking record component.
    it.unimi.dsi.fastutil.longs.LongSet
    Returns the value of the ticking record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • nonTicking

      private final it.unimi.dsi.fastutil.longs.LongSet nonTicking
      The field for the nonTicking record component.
    • ticking

      private final it.unimi.dsi.fastutil.longs.LongSet ticking
      The field for the ticking record component.
  • Constructor Details

    • TicketSet

      public TicketSet(it.unimi.dsi.fastutil.longs.LongSet nonTicking, it.unimi.dsi.fastutil.longs.LongSet ticking)
      Creates an instance of a TicketSet record class.
      Parameters:
      nonTicking - the value for the nonTicking record component
      ticking - the value for the ticking 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • nonTicking

      public it.unimi.dsi.fastutil.longs.LongSet nonTicking()
      Returns the value of the nonTicking record component.
      Returns:
      the value of the nonTicking record component
    • ticking

      public it.unimi.dsi.fastutil.longs.LongSet ticking()
      Returns the value of the ticking record component.
      Returns:
      the value of the ticking record component