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 theblockChunks
record component.static final com.mojang.serialization.Codec
<ForcedChunkManager.OwnedChunks> private final net.minecraft.resources.ResourceLocation
The field for thecontroller
record component.The field for theentityChunks
record component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theblockChunks
record component.net.minecraft.resources.ResourceLocation
Returns the value of thecontroller
record component.Returns the value of theentityChunks
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
controller
private final net.minecraft.resources.ResourceLocation controllerThe field for thecontroller
record component. -
blockChunks
The field for theblockChunks
record component. -
entityChunks
The field for theentityChunks
record component. -
BLOCK_CHUNK_CODEC
-
ENTITY_CHUNK_CODEC
-
CODEC
-
-
Constructor Details
-
OwnedChunks
public OwnedChunks(net.minecraft.resources.ResourceLocation controller, Map<net.minecraft.core.BlockPos, TicketSet> blockChunks, Map<UUID, TicketSet> entityChunks) Creates an instance of aOwnedChunks
record class.- Parameters:
controller
- the value for thecontroller
record componentblockChunks
- the value for theblockChunks
record componententityChunks
- the value for theentityChunks
record 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
public net.minecraft.resources.ResourceLocation controller()Returns the value of thecontroller
record component.- Returns:
- the value of the
controller
record component
-
blockChunks
Returns the value of theblockChunks
record component.- Returns:
- the value of the
blockChunks
record component
-
entityChunks
Returns the value of theentityChunks
record component.- Returns:
- the value of the
entityChunks
record component
-