Package net.minecraft.server
Record Class MinecraftServer.ResourceManagerHolder
java.lang.Object
java.lang.Record
net.minecraft.server.MinecraftServer.ResourceManagerHolder
- Record Components:
- resourceManager-
- dataPackContents-
- All Implemented Interfaces:
- AutoCloseable
- Enclosing class:
- MinecraftServer
private static record MinecraftServer.ResourceManagerHolder(LifecycledResourceManager resourceManager, DataPackContents dataPackContents)
extends Record
implements AutoCloseable
- Mappings:
- Namespace - Name - named - net/minecraft/server/MinecraftServer$ResourceManagerHolder- intermediary - net/minecraft/server/MinecraftServer$class_6897- official - net/minecraft/server/MinecraftServer$a- named - resourceManager- intermediary - comp_352- official - a- named - dataPackContents- intermediary - comp_353- official - b
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final DataPackContentsThe field for thedataPackContentsrecord component.private final LifecycledResourceManagerThe field for theresourceManagerrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionResourceManagerHolder(LifecycledResourceManager lifecycledResourceManager, DataPackContents dataPackContents) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()Returns the value of thedataPackContentsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theresourceManagerrecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
resourceManagerThe field for theresourceManagerrecord component.
- 
dataPackContentsThe field for thedataPackContentsrecord component.
 
- 
- 
Constructor Details- 
ResourceManagerHolderResourceManagerHolder(LifecycledResourceManager lifecycledResourceManager, DataPackContents dataPackContents) 
 
- 
- 
Method Details- 
closepublic void close()- Specified by:
- closein interface- AutoCloseable
 
- 
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).
- 
resourceManagerReturns the value of theresourceManagerrecord component.- Returns:
- the value of the resourceManagerrecord component
 
- 
dataPackContentsReturns the value of thedataPackContentsrecord component.- Returns:
- the value of the dataPackContentsrecord component
 
 
-