Klasse SyncTasks
java.lang.Object
com.viaversion.viafabricplus.base.sync_tasks.SyncTasks
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final StringThis identifier is an internal identifier used to identify packets that are sent by ViaFabricPlus -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic StringexecuteSyncTask(Consumer<net.minecraft.network.RegistryFriendlyByteBuf> task) Executes a task synchronized with the main thread from networking threadsstatic voidhandleSyncTask(net.minecraft.network.FriendlyByteBuf buf) Handles a sync task that was sent from the networking threadstatic voidinit()
-
Felddetails
-
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
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
-