Package com.ldtteam.structurize.storage
Class ServerStructurePackLoader
java.lang.Object
com.ldtteam.structurize.storage.ServerStructurePackLoader
Here we load the structure packs on the server side.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDifferent states of the client structure loading progress. -
Field Summary
FieldsModifier and TypeFieldDescriptionSet after the client finished loading the schematics. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidonClientSyncAttempt(Map<String, Double> clientStructurePacks, net.minecraft.server.level.ServerPlayer player) Called on client sync attempt.static voidCalled on server mod construction.static voidonWorldTick(net.neoforged.neoforge.event.TickEvent.LevelTickEvent event)
-
Field Details
-
loadingState
Set after the client finished loading the schematics.
-
-
Constructor Details
-
ServerStructurePackLoader
public ServerStructurePackLoader()
-
-
Method Details
-
onServerStarting
public static void onServerStarting()Called on server mod construction. -
onClientSyncAttempt
public static void onClientSyncAttempt(Map<String, Double> clientStructurePacks, net.minecraft.server.level.ServerPlayer player) Called on client sync attempt.- Parameters:
clientStructurePacks- the client structure packs.
-
onWorldTick
public static void onWorldTick(net.neoforged.neoforge.event.TickEvent.LevelTickEvent event)
-