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 SummaryFieldsModifier and TypeFieldDescriptionprivate final it.unimi.dsi.fastutil.longs.LongSetThe field for thenonTickingrecord component.private final it.unimi.dsi.fastutil.longs.LongSetThe field for thetickingrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionTicketSet(it.unimi.dsi.fastutil.longs.LongSet nonTicking, it.unimi.dsi.fastutil.longs.LongSet ticking) Creates an instance of aTicketSetrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.it.unimi.dsi.fastutil.longs.LongSetReturns the value of thenonTickingrecord component.it.unimi.dsi.fastutil.longs.LongSetticking()Returns the value of thetickingrecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
nonTickingprivate final it.unimi.dsi.fastutil.longs.LongSet nonTickingThe field for thenonTickingrecord component.
- 
tickingprivate final it.unimi.dsi.fastutil.longs.LongSet tickingThe field for thetickingrecord component.
 
- 
- 
Constructor Details- 
TicketSetpublic TicketSet(it.unimi.dsi.fastutil.longs.LongSet nonTicking, it.unimi.dsi.fastutil.longs.LongSet ticking) Creates an instance of aTicketSetrecord class.- Parameters:
- nonTicking- the value for the- nonTickingrecord component
- ticking- the value for the- tickingrecord component
 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
nonTickingpublic it.unimi.dsi.fastutil.longs.LongSet nonTicking()Returns the value of thenonTickingrecord component.- Returns:
- the value of the nonTickingrecord component
 
- 
tickingpublic it.unimi.dsi.fastutil.longs.LongSet ticking()Returns the value of thetickingrecord component.- Returns:
- the value of the tickingrecord component
 
 
-