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
FieldsModifier 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 Summary
ConstructorsConstructorDescriptionTicketSet(it.unimi.dsi.fastutil.longs.LongSet nonTicking, it.unimi.dsi.fastutil.longs.LongSet ticking) Creates an instance of aTicketSetrecord class. - 
Method Summary
Modifier 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
- 
nonTicking
private final it.unimi.dsi.fastutil.longs.LongSet nonTickingThe field for thenonTickingrecord component. - 
ticking
private final it.unimi.dsi.fastutil.longs.LongSet tickingThe field for thetickingrecord component. 
 - 
 - 
Constructor Details
- 
TicketSet
public 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 thenonTickingrecord componentticking- the value for thetickingrecord 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 thenonTickingrecord component.- Returns:
 - the value of the 
nonTickingrecord component 
 - 
ticking
public it.unimi.dsi.fastutil.longs.LongSet ticking()Returns the value of thetickingrecord component.- Returns:
 - the value of the 
tickingrecord component 
 
 -