Package net.frozenblock.lib.item.impl
Class SaveableItemCooldowns
java.lang.Object
net.frozenblock.lib.item.impl.SaveableItemCooldowns
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull List<SaveableItemCooldowns.SaveableCooldownInstance>makeSaveableCooldownInstanceList(@NotNull net.minecraft.server.level.ServerPlayer player) static @NotNull List<SaveableItemCooldowns.SaveableCooldownInstance>readCooldowns(@NotNull net.minecraft.nbt.CompoundTag tag) static voidsaveCooldowns(@NotNull net.minecraft.nbt.CompoundTag tag, @NotNull net.minecraft.server.level.ServerPlayer player) static voidsetCooldowns(@NotNull List<SaveableItemCooldowns.SaveableCooldownInstance> saveableCooldownInstances, @NotNull net.minecraft.server.level.ServerPlayer player)
-
Constructor Details
-
SaveableItemCooldowns
public SaveableItemCooldowns()
-
-
Method Details
-
makeSaveableCooldownInstanceList
@NotNull public static @NotNull List<SaveableItemCooldowns.SaveableCooldownInstance> makeSaveableCooldownInstanceList(@NotNull @NotNull net.minecraft.server.level.ServerPlayer player) -
saveCooldowns
public static void saveCooldowns(@NotNull @NotNull net.minecraft.nbt.CompoundTag tag, @NotNull @NotNull net.minecraft.server.level.ServerPlayer player) -
readCooldowns
@NotNull public static @NotNull List<SaveableItemCooldowns.SaveableCooldownInstance> readCooldowns(@NotNull @NotNull net.minecraft.nbt.CompoundTag tag) -
setCooldowns
public static void setCooldowns(@NotNull @NotNull List<SaveableItemCooldowns.SaveableCooldownInstance> saveableCooldownInstances, @NotNull @NotNull net.minecraft.server.level.ServerPlayer player)
-