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 Summary
Modifier and TypeFieldDescriptionprivate final ReloadableServerResources
The field for themanagers
record component.private final CloseableResourceManager
The field for theresourceManager
record component. -
Constructor Summary
ConstructorDescriptionReloadableResources
(CloseableResourceManager resourceManager, ReloadableServerResources managers) Creates an instance of aReloadableResources
record class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.managers()
Returns the value of themanagers
record component.Returns the value of theresourceManager
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
resourceManager
The field for theresourceManager
record component. -
managers
The field for themanagers
record component.
-
-
Constructor Details
-
ReloadableResources
public ReloadableResources(CloseableResourceManager resourceManager, ReloadableServerResources managers) Creates an instance of aReloadableResources
record class.- Parameters:
resourceManager
- the value for theresourceManager
record componentmanagers
- the value for themanagers
record component
-
-
Method Details
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
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)
. -
resourceManager
Returns the value of theresourceManager
record component.- Returns:
- the value of the
resourceManager
record component
-
managers
Returns the value of themanagers
record component.- Returns:
- the value of the
managers
record component
-