Record Class ForcedChunkManager.OwnedChunks
java.lang.Object
java.lang.Record
net.neoforged.neoforge.common.world.chunk.ForcedChunkManager.OwnedChunks
- Enclosing class:
ForcedChunkManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for theblockChunksrecord component.static final com.mojang.serialization.Codec<ForcedChunkManager.OwnedChunks> private final IdentifierThe field for thecontrollerrecord component.The field for theentityChunksrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionOwnedChunks(Identifier controller, Map<BlockPos, TicketSet> blockChunks, Map<UUID, TicketSet> entityChunks) Creates an instance of aOwnedChunksrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theblockChunksrecord component.Returns the value of thecontrollerrecord component.Returns the value of theentityChunksrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
controller
The field for thecontrollerrecord component. -
blockChunks
-
entityChunks
-
BLOCK_CHUNK_CODEC
-
ENTITY_CHUNK_CODEC
-
CODEC
-
-
Constructor Details
-
OwnedChunks
public OwnedChunks(Identifier controller, Map<BlockPos, TicketSet> blockChunks, Map<UUID, TicketSet> entityChunks) Creates an instance of aOwnedChunksrecord class.- Parameters:
controller- the value for thecontrollerrecord componentblockChunks- the value for theblockChunksrecord componententityChunks- the value for theentityChunksrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
controller
Returns the value of thecontrollerrecord component.- Returns:
- the value of the
controllerrecord component
-
blockChunks
-
entityChunks
-