Package net.swofty.item.updater
Class PlayerItemUpdater
java.lang.Object
net.swofty.item.updater.PlayerItemUpdater
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionPlayerItemUpdater
(BiFunction<SkyBlockPlayer, SkyBlockItem, SkyBlockItem> queuedUpdate) -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minestom.server.item.ItemStack.Builder
playerUpdate
(SkyBlockPlayer player, PlayerItemOrigin origin, net.minestom.server.item.ItemStack stack) queueUpdate
(SkyBlockPlayer player, PlayerItemOrigin origin) static void
updateLoop
(net.minestom.server.timer.Scheduler scheduler)
-
Constructor Details
-
PlayerItemUpdater
-
-
Method Details
-
queueUpdate
-
playerUpdate
public static net.minestom.server.item.ItemStack.Builder playerUpdate(SkyBlockPlayer player, PlayerItemOrigin origin, net.minestom.server.item.ItemStack stack) -
updateLoop
public static void updateLoop(net.minestom.server.timer.Scheduler scheduler)
-