Package net.minecraft.server
Record Class MinecraftServer.class_6897
java.lang.Object
java.lang.Record
net.minecraft.server.MinecraftServer.class_6897
- Record Components:
resourceManager-managers-
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
MinecraftServer
private static record MinecraftServer.class_6897(LifecycledResourceManager resourceManager, ServerResourceManager managers)
extends Record
implements AutoCloseable
- Mappings:
Namespace Name official net/minecraft/server/MinecraftServer$aintermediary net/minecraft/server/MinecraftServer$class_6897named net/minecraft/server/MinecraftServer$class_6897official aintermediary comp_352named resourceManagerofficial bintermediary comp_353named managers
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ServerResourceManagerThe field for themanagersrecord component.private final LifecycledResourceManagerThe field for theresourceManagerrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionclass_6897(LifecycledResourceManager lifecycledResourceManager, ServerResourceManager serverResourceManager) -
Method Summary
Modifier 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
-
resourceManager
The field for theresourceManagerrecord component. -
managers
The field for themanagersrecord component.
-
-
Constructor Details
-
class_6897
class_6897(LifecycledResourceManager lifecycledResourceManager, ServerResourceManager serverResourceManager)
-
-
Method Details
-
close
public void close()- Specified by:
closein 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 theresourceManagerrecord component.- Returns:
- the value of the
resourceManagerrecord component
-
managers
Returns the value of themanagersrecord component.- Returns:
- the value of the
managersrecord component
-