Class OfflineAttachments
java.lang.Object
net.ixdarklord.coolcatcore.internal.attachment.OfflineAttachments
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanWhether the player has data here (has played on this world or server), online or not.static <T> Tget(net.minecraft.server.MinecraftServer server, UUID id, Attachment<T> key) static <T> booleanset(net.minecraft.server.MinecraftServer server, UUID id, Attachment<T> key, T value) Sets the value (or, for null, removes it).static <T> booleanupdate(net.minecraft.server.MinecraftServer server, UUID id, Attachment<T> key, UnaryOperator<T> function)
-
Method Details
-
get
-
set
public static <T> boolean set(net.minecraft.server.MinecraftServer server, UUID id, Attachment<T> key, @Nullable T value) Sets the value (or, for null, removes it). False if the player has never played here. -
update
public static <T> boolean update(net.minecraft.server.MinecraftServer server, UUID id, Attachment<T> key, UnaryOperator<T> function) -
exists
Whether the player has data here (has played on this world or server), online or not.
-