Record Class TicketSet
java.lang.Object
java.lang.Record
net.neoforged.neoforge.common.world.chunk.TicketSet
- Record Components:
nonTicking
- the non-fully ticking ticketsticking
- 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
Modifier and TypeFieldDescriptionprivate final it.unimi.dsi.fastutil.longs.LongSet
The field for thenonTicking
record component.private final it.unimi.dsi.fastutil.longs.LongSet
The field for theticking
record component. -
Constructor Summary
ConstructorDescriptionTicketSet
(it.unimi.dsi.fastutil.longs.LongSet nonTicking, it.unimi.dsi.fastutil.longs.LongSet ticking) Creates an instance of aTicketSet
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.it.unimi.dsi.fastutil.longs.LongSet
Returns the value of thenonTicking
record component.it.unimi.dsi.fastutil.longs.LongSet
ticking()
Returns the value of theticking
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
nonTicking
private final it.unimi.dsi.fastutil.longs.LongSet nonTickingThe field for thenonTicking
record component. -
ticking
private final it.unimi.dsi.fastutil.longs.LongSet tickingThe field for theticking
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 aTicketSet
record class.- Parameters:
nonTicking
- the value for thenonTicking
record componentticking
- the value for theticking
record 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. All components in this record class are compared withObjects::equals(Object,Object)
. -
nonTicking
public it.unimi.dsi.fastutil.longs.LongSet nonTicking()Returns the value of thenonTicking
record component.- Returns:
- the value of the
nonTicking
record component
-
ticking
public it.unimi.dsi.fastutil.longs.LongSet ticking()Returns the value of theticking
record component.- Returns:
- the value of the
ticking
record component
-