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 named net/minecraft/world/chunk/Chunk$TickSchedulersintermediary net/minecraft/class_2791$class_6745official duy$anamed blocksintermediary comp_239official anamed fluidsintermediary comp_240official b
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SerializableTickScheduler<Block> The field for theblocksrecord component.private final SerializableTickScheduler<Fluid> The field for thefluidsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionTickSchedulers(SerializableTickScheduler<Block> serializableTickScheduler, SerializableTickScheduler<Fluid> serializableTickScheduler2) -
Method Summary
Modifier and TypeMethodDescriptionblocks()Returns the value of theblocksrecord component.final booleanIndicates whether some other object is "equal to" this one.fluids()Returns the value of thefluidsrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()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 theblocksrecord component.- Returns:
- the value of the
blocksrecord component
-
fluids
Returns the value of thefluidsrecord component.- Returns:
- the value of the
fluidsrecord component
-