Package net.minecraft.server.level
Record Class ServerChunkCache.ChunkAndHolder
java.lang.Object
java.lang.Record
net.minecraft.server.level.ServerChunkCache.ChunkAndHolder
- Enclosing class:
- ServerChunkCache
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final LevelChunkThe field for thechunkrecord component.private final ChunkHolderThe field for theholderrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionChunkAndHolder(LevelChunk chunk, ChunkHolder holder) Creates an instance of aChunkAndHolderrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionchunk()Returns the value of thechunkrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.holder()Returns the value of theholderrecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
chunkThe field for thechunkrecord component.
- 
holderThe field for theholderrecord component.
 
- 
- 
Constructor Details- 
ChunkAndHolderChunkAndHolder(LevelChunk chunk, ChunkHolder holder) Creates an instance of aChunkAndHolderrecord class.- Parameters:
- chunk- the value for the- chunkrecord component
- holder- the value for the- holderrecord component
 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
chunkReturns the value of thechunkrecord component.- Returns:
- the value of the chunkrecord component
 
- 
holderReturns the value of theholderrecord component.- Returns:
- the value of the holderrecord component
 
 
-