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

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.server.network.ConfigurationTask.Type
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    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 a SyncConfigurationTask record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    net.minecraft.server.network.ServerConfigurationPacketListenerImpl
    Returns the value of the handler record component.
    final int
    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 the map record component.
    void
    start(Consumer<net.minecraft.network.protocol.Packet<?>> sender)
     
    final String
    Returns a string representation of this record class.
    net.minecraft.server.network.ConfigurationTask.Type
     

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    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 a SyncConfigurationTask record class.
      Parameters:
      handler - the value for the handler record component
      map - the value for the map record component
  • Method Details

    • start

      public void start(Consumer<net.minecraft.network.protocol.Packet<?>> sender)
      Specified by:
      start in interface net.minecraft.server.network.ConfigurationTask
    • type

      public net.minecraft.server.network.ConfigurationTask.Type type()
      Specified by:
      type in interface net.minecraft.server.network.ConfigurationTask
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • handler

      public net.minecraft.server.network.ServerConfigurationPacketListenerImpl handler()
      Returns the value of the handler record component.
      Returns:
      the value of the handler record component
    • map

      public Map<net.minecraft.resources.Identifier, it.unimi.dsi.fastutil.objects.Object2IntMap<net.minecraft.resources.Identifier>> map()
      Returns the value of the map record component.
      Returns:
      the value of the map record component