Package net.minecraft.world.level.chunk
Record Class ChunkAccess.TicksToSave
java.lang.Object
java.lang.Record
net.minecraft.world.level.chunk.ChunkAccess.TicksToSave
- Enclosing class:
ChunkAccess
public static record ChunkAccess.TicksToSave(SerializableTickContainer<Block> blocks, SerializableTickContainer<Fluid> fluids)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SerializableTickContainer<Block> The field for theblocksrecord component.private final SerializableTickContainer<Fluid> The field for thefluidsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionTicksToSave(SerializableTickContainer<Block> blocks, SerializableTickContainer<Fluid> fluids) Creates an instance of aTicksToSaverecord class. -
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
-
blocks
The field for theblocksrecord component. -
fluids
The field for thefluidsrecord component.
-
-
Constructor Details
-
TicksToSave
public TicksToSave(SerializableTickContainer<Block> blocks, SerializableTickContainer<Fluid> fluids) Creates an instance of aTicksToSaverecord class.- Parameters:
blocks- the value for theblocksrecord componentfluids- the value for thefluidsrecord 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). -
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
-