Package net.minecraft.server
Record Class MinecraftServer.ReloadableResources
java.lang.Object
java.lang.Record
net.minecraft.server.MinecraftServer.ReloadableResources
- All Implemented Interfaces:
- AutoCloseable
- Enclosing class:
- MinecraftServer
public static record MinecraftServer.ReloadableResources(CloseableResourceManager resourceManager, ReloadableServerResources managers)
extends Record
implements AutoCloseable
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final ReloadableServerResourcesThe field for themanagersrecord component.private final CloseableResourceManagerThe field for theresourceManagerrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionReloadableResources(CloseableResourceManager resourceManager, ReloadableServerResources managers) Creates an instance of aReloadableResourcesrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.managers()Returns the value of themanagersrecord component.Returns the value of theresourceManagerrecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
resourceManagerThe field for theresourceManagerrecord component.
- 
managersThe field for themanagersrecord component.
 
- 
- 
Constructor Details- 
ReloadableResourcespublic ReloadableResources(CloseableResourceManager resourceManager, ReloadableServerResources managers) Creates an instance of aReloadableResourcesrecord class.- Parameters:
- resourceManager- the value for the- resourceManagerrecord component
- managers- the value for the- managersrecord component
 
 
- 
- 
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
 
- 
managersReturns the value of themanagersrecord component.- Returns:
- the value of the managersrecord component
 
 
-