Establishes base extension of profile systems for future edits too == AT == public org.bukkit.craftbukkit.profile.CraftProfileProperty public org.bukkit.craftbukkit.profile.CraftPlayerTextures public org.bukkit.craftbukkit.profile.CraftPlayerTextures copyFrom(Lorg/bukkit/profile/PlayerTextures;)V public org.bukkit.craftbukkit.profile.CraftPlayerTextures rebuildPropertyIfDirty()V public org.bukkit.craftbukkit.profile.CraftPlayerProfile toString(Lcom/mojang/authlib/properties/PropertyMap;)Ljava/lang/String; public org.bukkit.craftbukkit.profile.CraftPlayerProfile getProperty(Ljava/lang/String;)Lcom/mojang/authlib/properties/Property; public org.bukkit.craftbukkit.profile.CraftPlayerProfile setProperty(Ljava/lang/String;Lcom/mojang/authlib/properties/Property;)V
27 lines
726 B
Java
27 lines
726 B
Java
package com.destroystokyo.paper.profile;
|
|
|
|
import com.mojang.authlib.GameProfile;
|
|
import com.mojang.authlib.properties.Property;
|
|
import net.minecraft.world.item.component.ResolvableProfile;
|
|
import org.jetbrains.annotations.NotNull;
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
import java.util.UUID;
|
|
|
|
public interface SharedPlayerProfile {
|
|
|
|
@Nullable UUID getUniqueId();
|
|
|
|
@Nullable String getName();
|
|
|
|
boolean removeProperty(@NotNull String property);
|
|
|
|
@Nullable Property getProperty(@NotNull String propertyName);
|
|
|
|
@Nullable void setProperty(@NotNull String propertyName, @Nullable Property property);
|
|
|
|
@NotNull GameProfile buildGameProfile();
|
|
|
|
@NotNull ResolvableProfile buildResolvableProfile();
|
|
}
|