java.lang.Object
com.viaversion.viafabricplus.base.sync_tasks.SyncTasks

public final class SyncTasks extends Object
  • Feldübersicht

    Felder
    Modifizierer und Typ
    Feld
    Beschreibung
    static final String
    This identifier is an internal identifier used to identify packets that are sent by ViaFabricPlus
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
     
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    static String
    executeSyncTask(Consumer<net.minecraft.network.RegistryFriendlyByteBuf> task)
    Executes a task synchronized with the main thread from networking threads
    static void
    handleSyncTask(net.minecraft.network.FriendlyByteBuf buf)
    Handles a sync task that was sent from the networking thread
    static void
     

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Felddetails

    • PACKET_SYNC_IDENTIFIER

      public static final String PACKET_SYNC_IDENTIFIER
      This identifier is an internal identifier used to identify packets that are sent by ViaFabricPlus
  • Konstruktordetails

    • SyncTasks

      public SyncTasks()
  • Methodendetails

    • init

      public static void init()
    • executeSyncTask

      public static String executeSyncTask(Consumer<net.minecraft.network.RegistryFriendlyByteBuf> task)
      Executes a task synchronized with the main thread from networking threads
      Parameter:
      task - The task to execute
      Gibt zurück:
      The uuid of the task
    • handleSyncTask

      public static void handleSyncTask(net.minecraft.network.FriendlyByteBuf buf)
      Handles a sync task that was sent from the networking thread
      Parameter:
      buf - The packet buffer