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 ResourceLocationThe field for thecontrollerrecord component.The field for theentityChunksrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionOwnedChunks(ResourceLocation 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
The field for theblockChunksrecord component. -
entityChunks
The field for theentityChunksrecord component. -
BLOCK_CHUNK_CODEC
-
ENTITY_CHUNK_CODEC
-
CODEC
-
-
Constructor Details
-
OwnedChunks
public OwnedChunks(ResourceLocation 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
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). -
controller
Returns the value of thecontrollerrecord component.- Returns:
- the value of the
controllerrecord component
-
blockChunks
Returns the value of theblockChunksrecord component.- Returns:
- the value of the
blockChunksrecord component
-
entityChunks
Returns the value of theentityChunksrecord component.- Returns:
- the value of the
entityChunksrecord component
-