Package net.minecraft.world.chunk
Record Class Chunk.TickSchedulers
java.lang.Object
java.lang.Record
net.minecraft.world.chunk.Chunk.TickSchedulers
- Record Components:
blocks
-fluids
-
- Enclosing class:
Chunk
public static record Chunk.TickSchedulers(SerializableTickScheduler<Block> blocks, SerializableTickScheduler<Fluid> fluids)
extends Record
- Mappings:
Namespace Name official ddx$a
intermediary net/minecraft/class_2791$class_6745
named net/minecraft/world/chunk/Chunk$TickSchedulers
official a
intermediary comp_239
named blocks
official b
intermediary comp_240
named fluids
-
Field Summary
Modifier and TypeFieldDescriptionprivate final SerializableTickScheduler<Block>
The field for theblocks
record component.private final SerializableTickScheduler<Fluid>
The field for thefluids
record component. -
Constructor Summary
ConstructorDescriptionTickSchedulers
(SerializableTickScheduler<Block> serializableTickScheduler, SerializableTickScheduler<Fluid> serializableTickScheduler2) -
Method Summary
Modifier and TypeMethodDescriptionblocks()
Returns the value of theblocks
record component.final boolean
Indicates whether some other object is "equal to" this one.fluids()
Returns the value of thefluids
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
TickSchedulers
public TickSchedulers(SerializableTickScheduler<Block> serializableTickScheduler, SerializableTickScheduler<Fluid> serializableTickScheduler2)
-
-
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)
. -
blocks
Returns the value of theblocks
record component.- Returns:
- the value of the
blocks
record component
-
fluids
Returns the value of thefluids
record component.- Returns:
- the value of the
fluids
record component
-