Record Class RegistrySyncManager.SyncConfigurationTask
java.lang.Object
java.lang.Record
net.fabricmc.fabric.impl.registry.sync.RegistrySyncManager.SyncConfigurationTask
- All Implemented Interfaces:
net.minecraft.server.network.ConfigurationTask
- Enclosing class:
RegistrySyncManager
public static record RegistrySyncManager.SyncConfigurationTask(net.minecraft.server.network.ServerConfigurationPacketListenerImpl handler, Map<net.minecraft.resources.Identifier, it.unimi.dsi.fastutil.objects.Object2IntMap<net.minecraft.resources.Identifier>> map)
extends Record
implements net.minecraft.server.network.ConfigurationTask
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.server.network.ConfigurationTask
net.minecraft.server.network.ConfigurationTask.Type -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.server.network.ConfigurationTask.Type -
Constructor Summary
ConstructorsConstructorDescriptionSyncConfigurationTask(net.minecraft.server.network.ServerConfigurationPacketListenerImpl handler, Map<net.minecraft.resources.Identifier, it.unimi.dsi.fastutil.objects.Object2IntMap<net.minecraft.resources.Identifier>> map) Creates an instance of aSyncConfigurationTaskrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.net.minecraft.server.network.ServerConfigurationPacketListenerImplhandler()Returns the value of thehandlerrecord component.final inthashCode()Returns a hash code value for this object.Map<net.minecraft.resources.Identifier, it.unimi.dsi.fastutil.objects.Object2IntMap<net.minecraft.resources.Identifier>> map()Returns the value of themaprecord component.voidfinal StringtoString()Returns a string representation of this record class.net.minecraft.server.network.ConfigurationTask.Typetype()Methods inherited from interface net.minecraft.server.network.ConfigurationTask
tick
-
Field Details
-
KEY
public static final net.minecraft.server.network.ConfigurationTask.Type KEY
-
-
Constructor Details
-
SyncConfigurationTask
public SyncConfigurationTask(net.minecraft.server.network.ServerConfigurationPacketListenerImpl handler, Map<net.minecraft.resources.Identifier, it.unimi.dsi.fastutil.objects.Object2IntMap<net.minecraft.resources.Identifier>> map) Creates an instance of aSyncConfigurationTaskrecord class.- Parameters:
handler- the value for thehandlerrecord componentmap- the value for themaprecord component
-
-
Method Details
-
start
- Specified by:
startin interfacenet.minecraft.server.network.ConfigurationTask
-
type
public net.minecraft.server.network.ConfigurationTask.Type type()- Specified by:
typein interfacenet.minecraft.server.network.ConfigurationTask
-
toString
-
hashCode
-
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). -
handler
public net.minecraft.server.network.ServerConfigurationPacketListenerImpl handler()Returns the value of thehandlerrecord component.- Returns:
- the value of the
handlerrecord component
-
map
public Map<net.minecraft.resources.Identifier, it.unimi.dsi.fastutil.objects.Object2IntMap<net.minecraft.resources.Identifier>> map()Returns the value of themaprecord component.- Returns:
- the value of the
maprecord component
-