From f3d230cc907aa494cd7be0df0ca011134aef1383 Mon Sep 17 00:00:00 2001 From: Christian Koop Date: Sun, 22 Sep 2024 16:07:02 +0200 Subject: [PATCH] feat!: support creating a wrapped GameProfile with textureSignature --- .../main/java/com/craftaro/core/nms/entity/NMSPlayer.java | 6 +++--- .../craftaro/core/nms/v1_10_R1/entity/NMSPlayerImpl.java | 4 ++-- .../craftaro/core/nms/v1_11_R1/entity/NMSPlayerImpl.java | 4 ++-- .../craftaro/core/nms/v1_12_R1/entity/NMSPlayerImpl.java | 4 ++-- .../craftaro/core/nms/v1_13_R1/entity/NMSPlayerImpl.java | 4 ++-- .../craftaro/core/nms/v1_13_R2/entity/NMSPlayerImpl.java | 4 ++-- .../craftaro/core/nms/v1_14_R1/entity/NMSPlayerImpl.java | 4 ++-- .../craftaro/core/nms/v1_15_R1/entity/NMSPlayerImpl.java | 4 ++-- .../craftaro/core/nms/v1_16_R1/entity/NMSPlayerImpl.java | 4 ++-- .../craftaro/core/nms/v1_16_R2/entity/NMSPlayerImpl.java | 4 ++-- .../craftaro/core/nms/v1_16_R3/entity/NMSPlayerImpl.java | 4 ++-- .../craftaro/core/nms/v1_17_R1/entity/NMSPlayerImpl.java | 4 ++-- .../craftaro/core/nms/v1_18_R1/entity/NMSPlayerImpl.java | 4 ++-- .../craftaro/core/nms/v1_18_R2/entity/NMSPlayerImpl.java | 4 ++-- .../com/craftaro/core/nms/v1_19_0/entity/NMSPlayerImpl.java | 4 ++-- .../craftaro/core/nms/v1_19_R1/entity/NMSPlayerImpl.java | 4 ++-- .../craftaro/core/nms/v1_19_R2/entity/NMSPlayerImpl.java | 4 ++-- .../craftaro/core/nms/v1_19_R3/entity/NMSPlayerImpl.java | 4 ++-- .../craftaro/core/nms/v1_20_R1/entity/NMSPlayerImpl.java | 4 ++-- .../craftaro/core/nms/v1_20_R2/entity/NMSPlayerImpl.java | 4 ++-- .../craftaro/core/nms/v1_20_R3/entity/NMSPlayerImpl.java | 4 ++-- .../craftaro/core/nms/v1_20_R4/entity/NMSPlayerImpl.java | 4 ++-- .../craftaro/core/nms/v1_21_R1/entity/NMSPlayerImpl.java | 4 ++-- .../com/craftaro/core/nms/v1_8_R1/entity/NMSPlayerImpl.java | 4 ++-- .../com/craftaro/core/nms/v1_8_R2/entity/NMSPlayerImpl.java | 4 ++-- .../com/craftaro/core/nms/v1_8_R3/entity/NMSPlayerImpl.java | 4 ++-- .../com/craftaro/core/nms/v1_9_R1/entity/NMSPlayerImpl.java | 4 ++-- .../com/craftaro/core/nms/v1_9_R2/entity/NMSPlayerImpl.java | 4 ++-- 28 files changed, 57 insertions(+), 57 deletions(-) diff --git a/NMS/NMS-API/src/main/java/com/craftaro/core/nms/entity/NMSPlayer.java b/NMS/NMS-API/src/main/java/com/craftaro/core/nms/entity/NMSPlayer.java index 5a2d03b2..f32830c4 100644 --- a/NMS/NMS-API/src/main/java/com/craftaro/core/nms/entity/NMSPlayer.java +++ b/NMS/NMS-API/src/main/java/com/craftaro/core/nms/entity/NMSPlayer.java @@ -13,16 +13,16 @@ public interface NMSPlayer { GameProfile getProfile(Player p); - GameProfile createProfile(UUID id, String name, @Nullable String textureValue); + GameProfile createProfile(UUID id, String name, @Nullable String textureValue, @Nullable String textureSignature); default GameProfile createProfileByUrl(String url) { UUID id = UUID.nameUUIDFromBytes(("SongodaCore:" + url).getBytes(StandardCharsets.UTF_8)); String rawTextureValue = "{\"textures\":{\"SKIN\":{\"url\":\"" + url + "\"}}}"; - return createProfile(id, "by_SongodaCore", Base64.getEncoder().encodeToString(rawTextureValue.getBytes())); + return createProfile(id, "by_SongodaCore", Base64.getEncoder().encodeToString(rawTextureValue.getBytes()), null); } default GameProfile createProfileByTextureValue(String textureValue) { UUID id = UUID.nameUUIDFromBytes(("SongodaCore:" + textureValue).getBytes(StandardCharsets.UTF_8)); - return createProfile(id, "by_SongodaCore", textureValue); + return createProfile(id, "by_SongodaCore", textureValue, null); } } diff --git a/NMS/NMS-v1_10_R1/src/main/java/com/craftaro/core/nms/v1_10_R1/entity/NMSPlayerImpl.java b/NMS/NMS-v1_10_R1/src/main/java/com/craftaro/core/nms/v1_10_R1/entity/NMSPlayerImpl.java index ebbabeae..b174db62 100644 --- a/NMS/NMS-v1_10_R1/src/main/java/com/craftaro/core/nms/v1_10_R1/entity/NMSPlayerImpl.java +++ b/NMS/NMS-v1_10_R1/src/main/java/com/craftaro/core/nms/v1_10_R1/entity/NMSPlayerImpl.java @@ -23,10 +23,10 @@ public class NMSPlayerImpl implements NMSPlayer { } @Override - public GameProfile createProfile(UUID id, String name, @Nullable String textureValue) { + public GameProfile createProfile(UUID id, String name, @Nullable String textureValue, @Nullable String textureSignature) { com.mojang.authlib.GameProfile profile = new com.mojang.authlib.GameProfile(id, name); if (textureValue != null) { - profile.getProperties().put("textures", new Property("textures", textureValue)); + profile.getProperties().put("textures", new Property("textures", textureValue, textureSignature)); } return wrapProfile(profile); diff --git a/NMS/NMS-v1_11_R1/src/main/java/com/craftaro/core/nms/v1_11_R1/entity/NMSPlayerImpl.java b/NMS/NMS-v1_11_R1/src/main/java/com/craftaro/core/nms/v1_11_R1/entity/NMSPlayerImpl.java index 3113e40c..a5604f38 100644 --- a/NMS/NMS-v1_11_R1/src/main/java/com/craftaro/core/nms/v1_11_R1/entity/NMSPlayerImpl.java +++ b/NMS/NMS-v1_11_R1/src/main/java/com/craftaro/core/nms/v1_11_R1/entity/NMSPlayerImpl.java @@ -23,10 +23,10 @@ public class NMSPlayerImpl implements NMSPlayer { } @Override - public GameProfile createProfile(UUID id, String name, @Nullable String textureValue) { + public GameProfile createProfile(UUID id, String name, @Nullable String textureValue, @Nullable String textureSignature) { com.mojang.authlib.GameProfile profile = new com.mojang.authlib.GameProfile(id, name); if (textureValue != null) { - profile.getProperties().put("textures", new Property("textures", textureValue)); + profile.getProperties().put("textures", new Property("textures", textureValue, textureSignature)); } return wrapProfile(profile); diff --git a/NMS/NMS-v1_12_R1/src/main/java/com/craftaro/core/nms/v1_12_R1/entity/NMSPlayerImpl.java b/NMS/NMS-v1_12_R1/src/main/java/com/craftaro/core/nms/v1_12_R1/entity/NMSPlayerImpl.java index 980c3382..21a157a0 100644 --- a/NMS/NMS-v1_12_R1/src/main/java/com/craftaro/core/nms/v1_12_R1/entity/NMSPlayerImpl.java +++ b/NMS/NMS-v1_12_R1/src/main/java/com/craftaro/core/nms/v1_12_R1/entity/NMSPlayerImpl.java @@ -23,10 +23,10 @@ public class NMSPlayerImpl implements NMSPlayer { } @Override - public GameProfile createProfile(UUID id, String name, @Nullable String textureValue) { + public GameProfile createProfile(UUID id, String name, @Nullable String textureValue, @Nullable String textureSignature) { com.mojang.authlib.GameProfile profile = new com.mojang.authlib.GameProfile(id, name); if (textureValue != null) { - profile.getProperties().put("textures", new Property("textures", textureValue)); + profile.getProperties().put("textures", new Property("textures", textureValue, textureSignature)); } return wrapProfile(profile); diff --git a/NMS/NMS-v1_13_R1/src/main/java/com/craftaro/core/nms/v1_13_R1/entity/NMSPlayerImpl.java b/NMS/NMS-v1_13_R1/src/main/java/com/craftaro/core/nms/v1_13_R1/entity/NMSPlayerImpl.java index 550600fa..df2ea6e7 100644 --- a/NMS/NMS-v1_13_R1/src/main/java/com/craftaro/core/nms/v1_13_R1/entity/NMSPlayerImpl.java +++ b/NMS/NMS-v1_13_R1/src/main/java/com/craftaro/core/nms/v1_13_R1/entity/NMSPlayerImpl.java @@ -23,10 +23,10 @@ public class NMSPlayerImpl implements NMSPlayer { } @Override - public GameProfile createProfile(UUID id, String name, @Nullable String textureValue) { + public GameProfile createProfile(UUID id, String name, @Nullable String textureValue, @Nullable String textureSignature) { com.mojang.authlib.GameProfile profile = new com.mojang.authlib.GameProfile(id, name); if (textureValue != null) { - profile.getProperties().put("textures", new Property("textures", textureValue)); + profile.getProperties().put("textures", new Property("textures", textureValue, textureSignature)); } return wrapProfile(profile); diff --git a/NMS/NMS-v1_13_R2/src/main/java/com/craftaro/core/nms/v1_13_R2/entity/NMSPlayerImpl.java b/NMS/NMS-v1_13_R2/src/main/java/com/craftaro/core/nms/v1_13_R2/entity/NMSPlayerImpl.java index 61bd509f..c5815092 100644 --- a/NMS/NMS-v1_13_R2/src/main/java/com/craftaro/core/nms/v1_13_R2/entity/NMSPlayerImpl.java +++ b/NMS/NMS-v1_13_R2/src/main/java/com/craftaro/core/nms/v1_13_R2/entity/NMSPlayerImpl.java @@ -23,10 +23,10 @@ public class NMSPlayerImpl implements NMSPlayer { } @Override - public GameProfile createProfile(UUID id, String name, @Nullable String textureValue) { + public GameProfile createProfile(UUID id, String name, @Nullable String textureValue, @Nullable String textureSignature) { com.mojang.authlib.GameProfile profile = new com.mojang.authlib.GameProfile(id, name); if (textureValue != null) { - profile.getProperties().put("textures", new Property("textures", textureValue)); + profile.getProperties().put("textures", new Property("textures", textureValue, textureSignature)); } return wrapProfile(profile); diff --git a/NMS/NMS-v1_14_R1/src/main/java/com/craftaro/core/nms/v1_14_R1/entity/NMSPlayerImpl.java b/NMS/NMS-v1_14_R1/src/main/java/com/craftaro/core/nms/v1_14_R1/entity/NMSPlayerImpl.java index d84b7686..7aa87ea6 100644 --- a/NMS/NMS-v1_14_R1/src/main/java/com/craftaro/core/nms/v1_14_R1/entity/NMSPlayerImpl.java +++ b/NMS/NMS-v1_14_R1/src/main/java/com/craftaro/core/nms/v1_14_R1/entity/NMSPlayerImpl.java @@ -23,10 +23,10 @@ public class NMSPlayerImpl implements NMSPlayer { } @Override - public GameProfile createProfile(UUID id, String name, @Nullable String textureValue) { + public GameProfile createProfile(UUID id, String name, @Nullable String textureValue, @Nullable String textureSignature) { com.mojang.authlib.GameProfile profile = new com.mojang.authlib.GameProfile(id, name); if (textureValue != null) { - profile.getProperties().put("textures", new Property("textures", textureValue)); + profile.getProperties().put("textures", new Property("textures", textureValue, textureSignature)); } return wrapProfile(profile); diff --git a/NMS/NMS-v1_15_R1/src/main/java/com/craftaro/core/nms/v1_15_R1/entity/NMSPlayerImpl.java b/NMS/NMS-v1_15_R1/src/main/java/com/craftaro/core/nms/v1_15_R1/entity/NMSPlayerImpl.java index 2c946070..d755557b 100644 --- a/NMS/NMS-v1_15_R1/src/main/java/com/craftaro/core/nms/v1_15_R1/entity/NMSPlayerImpl.java +++ b/NMS/NMS-v1_15_R1/src/main/java/com/craftaro/core/nms/v1_15_R1/entity/NMSPlayerImpl.java @@ -23,10 +23,10 @@ public class NMSPlayerImpl implements NMSPlayer { } @Override - public GameProfile createProfile(UUID id, String name, @Nullable String textureValue) { + public GameProfile createProfile(UUID id, String name, @Nullable String textureValue, @Nullable String textureSignature) { com.mojang.authlib.GameProfile profile = new com.mojang.authlib.GameProfile(id, name); if (textureValue != null) { - profile.getProperties().put("textures", new Property("textures", textureValue)); + profile.getProperties().put("textures", new Property("textures", textureValue, textureSignature)); } return wrapProfile(profile); diff --git a/NMS/NMS-v1_16_R1/src/main/java/com/craftaro/core/nms/v1_16_R1/entity/NMSPlayerImpl.java b/NMS/NMS-v1_16_R1/src/main/java/com/craftaro/core/nms/v1_16_R1/entity/NMSPlayerImpl.java index 18056a66..f9503176 100644 --- a/NMS/NMS-v1_16_R1/src/main/java/com/craftaro/core/nms/v1_16_R1/entity/NMSPlayerImpl.java +++ b/NMS/NMS-v1_16_R1/src/main/java/com/craftaro/core/nms/v1_16_R1/entity/NMSPlayerImpl.java @@ -23,10 +23,10 @@ public class NMSPlayerImpl implements NMSPlayer { } @Override - public GameProfile createProfile(UUID id, String name, @Nullable String textureValue) { + public GameProfile createProfile(UUID id, String name, @Nullable String textureValue, @Nullable String textureSignature) { com.mojang.authlib.GameProfile profile = new com.mojang.authlib.GameProfile(id, name); if (textureValue != null) { - profile.getProperties().put("textures", new Property("textures", textureValue)); + profile.getProperties().put("textures", new Property("textures", textureValue, textureSignature)); } return wrapProfile(profile); diff --git a/NMS/NMS-v1_16_R2/src/main/java/com/craftaro/core/nms/v1_16_R2/entity/NMSPlayerImpl.java b/NMS/NMS-v1_16_R2/src/main/java/com/craftaro/core/nms/v1_16_R2/entity/NMSPlayerImpl.java index 5f1bc8b3..044ef1f8 100644 --- a/NMS/NMS-v1_16_R2/src/main/java/com/craftaro/core/nms/v1_16_R2/entity/NMSPlayerImpl.java +++ b/NMS/NMS-v1_16_R2/src/main/java/com/craftaro/core/nms/v1_16_R2/entity/NMSPlayerImpl.java @@ -23,10 +23,10 @@ public class NMSPlayerImpl implements NMSPlayer { } @Override - public GameProfile createProfile(UUID id, String name, @Nullable String textureValue) { + public GameProfile createProfile(UUID id, String name, @Nullable String textureValue, @Nullable String textureSignature) { com.mojang.authlib.GameProfile profile = new com.mojang.authlib.GameProfile(id, name); if (textureValue != null) { - profile.getProperties().put("textures", new Property("textures", textureValue)); + profile.getProperties().put("textures", new Property("textures", textureValue, textureSignature)); } return wrapProfile(profile); diff --git a/NMS/NMS-v1_16_R3/src/main/java/com/craftaro/core/nms/v1_16_R3/entity/NMSPlayerImpl.java b/NMS/NMS-v1_16_R3/src/main/java/com/craftaro/core/nms/v1_16_R3/entity/NMSPlayerImpl.java index 7c42818d..15c1e50b 100644 --- a/NMS/NMS-v1_16_R3/src/main/java/com/craftaro/core/nms/v1_16_R3/entity/NMSPlayerImpl.java +++ b/NMS/NMS-v1_16_R3/src/main/java/com/craftaro/core/nms/v1_16_R3/entity/NMSPlayerImpl.java @@ -23,10 +23,10 @@ public class NMSPlayerImpl implements NMSPlayer { } @Override - public GameProfile createProfile(UUID id, String name, @Nullable String textureValue) { + public GameProfile createProfile(UUID id, String name, @Nullable String textureValue, @Nullable String textureSignature) { com.mojang.authlib.GameProfile profile = new com.mojang.authlib.GameProfile(id, name); if (textureValue != null) { - profile.getProperties().put("textures", new Property("textures", textureValue)); + profile.getProperties().put("textures", new Property("textures", textureValue, textureSignature)); } return wrapProfile(profile); diff --git a/NMS/NMS-v1_17_R1/src/main/java/com/craftaro/core/nms/v1_17_R1/entity/NMSPlayerImpl.java b/NMS/NMS-v1_17_R1/src/main/java/com/craftaro/core/nms/v1_17_R1/entity/NMSPlayerImpl.java index ddd0e41d..07aa8584 100644 --- a/NMS/NMS-v1_17_R1/src/main/java/com/craftaro/core/nms/v1_17_R1/entity/NMSPlayerImpl.java +++ b/NMS/NMS-v1_17_R1/src/main/java/com/craftaro/core/nms/v1_17_R1/entity/NMSPlayerImpl.java @@ -23,10 +23,10 @@ public class NMSPlayerImpl implements NMSPlayer { } @Override - public GameProfile createProfile(UUID id, String name, @Nullable String textureValue) { + public GameProfile createProfile(UUID id, String name, @Nullable String textureValue, @Nullable String textureSignature) { com.mojang.authlib.GameProfile profile = new com.mojang.authlib.GameProfile(id, name); if (textureValue != null) { - profile.getProperties().put("textures", new Property("textures", textureValue)); + profile.getProperties().put("textures", new Property("textures", textureValue, textureSignature)); } return wrapProfile(profile); diff --git a/NMS/NMS-v1_18_R1/src/main/java/com/craftaro/core/nms/v1_18_R1/entity/NMSPlayerImpl.java b/NMS/NMS-v1_18_R1/src/main/java/com/craftaro/core/nms/v1_18_R1/entity/NMSPlayerImpl.java index fc7c0262..b2706a80 100644 --- a/NMS/NMS-v1_18_R1/src/main/java/com/craftaro/core/nms/v1_18_R1/entity/NMSPlayerImpl.java +++ b/NMS/NMS-v1_18_R1/src/main/java/com/craftaro/core/nms/v1_18_R1/entity/NMSPlayerImpl.java @@ -23,10 +23,10 @@ public class NMSPlayerImpl implements NMSPlayer { } @Override - public GameProfile createProfile(UUID id, String name, @Nullable String textureValue) { + public GameProfile createProfile(UUID id, String name, @Nullable String textureValue, @Nullable String textureSignature) { com.mojang.authlib.GameProfile profile = new com.mojang.authlib.GameProfile(id, name); if (textureValue != null) { - profile.getProperties().put("textures", new Property("textures", textureValue)); + profile.getProperties().put("textures", new Property("textures", textureValue, textureSignature)); } return wrapProfile(profile); diff --git a/NMS/NMS-v1_18_R2/src/main/java/com/craftaro/core/nms/v1_18_R2/entity/NMSPlayerImpl.java b/NMS/NMS-v1_18_R2/src/main/java/com/craftaro/core/nms/v1_18_R2/entity/NMSPlayerImpl.java index a824ea91..59307664 100644 --- a/NMS/NMS-v1_18_R2/src/main/java/com/craftaro/core/nms/v1_18_R2/entity/NMSPlayerImpl.java +++ b/NMS/NMS-v1_18_R2/src/main/java/com/craftaro/core/nms/v1_18_R2/entity/NMSPlayerImpl.java @@ -23,10 +23,10 @@ public class NMSPlayerImpl implements NMSPlayer { } @Override - public GameProfile createProfile(UUID id, String name, @Nullable String textureValue) { + public GameProfile createProfile(UUID id, String name, @Nullable String textureValue, @Nullable String textureSignature) { com.mojang.authlib.GameProfile profile = new com.mojang.authlib.GameProfile(id, name); if (textureValue != null) { - profile.getProperties().put("textures", new Property("textures", textureValue)); + profile.getProperties().put("textures", new Property("textures", textureValue, textureSignature)); } return wrapProfile(profile); diff --git a/NMS/NMS-v1_19_0/src/main/java/com/craftaro/core/nms/v1_19_0/entity/NMSPlayerImpl.java b/NMS/NMS-v1_19_0/src/main/java/com/craftaro/core/nms/v1_19_0/entity/NMSPlayerImpl.java index ec4ef74f..8cbe2607 100644 --- a/NMS/NMS-v1_19_0/src/main/java/com/craftaro/core/nms/v1_19_0/entity/NMSPlayerImpl.java +++ b/NMS/NMS-v1_19_0/src/main/java/com/craftaro/core/nms/v1_19_0/entity/NMSPlayerImpl.java @@ -23,10 +23,10 @@ public class NMSPlayerImpl implements NMSPlayer { } @Override - public GameProfile createProfile(UUID id, String name, @Nullable String textureValue) { + public GameProfile createProfile(UUID id, String name, @Nullable String textureValue, @Nullable String textureSignature) { com.mojang.authlib.GameProfile profile = new com.mojang.authlib.GameProfile(id, name); if (textureValue != null) { - profile.getProperties().put("textures", new Property("textures", textureValue)); + profile.getProperties().put("textures", new Property("textures", textureValue, textureSignature)); } return wrapProfile(profile); diff --git a/NMS/NMS-v1_19_R1/src/main/java/com/craftaro/core/nms/v1_19_R1/entity/NMSPlayerImpl.java b/NMS/NMS-v1_19_R1/src/main/java/com/craftaro/core/nms/v1_19_R1/entity/NMSPlayerImpl.java index f79bedea..7badf1f0 100644 --- a/NMS/NMS-v1_19_R1/src/main/java/com/craftaro/core/nms/v1_19_R1/entity/NMSPlayerImpl.java +++ b/NMS/NMS-v1_19_R1/src/main/java/com/craftaro/core/nms/v1_19_R1/entity/NMSPlayerImpl.java @@ -23,10 +23,10 @@ public class NMSPlayerImpl implements NMSPlayer { } @Override - public GameProfile createProfile(UUID id, String name, @Nullable String textureValue) { + public GameProfile createProfile(UUID id, String name, @Nullable String textureValue, @Nullable String textureSignature) { com.mojang.authlib.GameProfile profile = new com.mojang.authlib.GameProfile(id, name); if (textureValue != null) { - profile.getProperties().put("textures", new Property("textures", textureValue)); + profile.getProperties().put("textures", new Property("textures", textureValue, textureSignature)); } return wrapProfile(profile); diff --git a/NMS/NMS-v1_19_R2/src/main/java/com/craftaro/core/nms/v1_19_R2/entity/NMSPlayerImpl.java b/NMS/NMS-v1_19_R2/src/main/java/com/craftaro/core/nms/v1_19_R2/entity/NMSPlayerImpl.java index af92dd41..838fedc9 100644 --- a/NMS/NMS-v1_19_R2/src/main/java/com/craftaro/core/nms/v1_19_R2/entity/NMSPlayerImpl.java +++ b/NMS/NMS-v1_19_R2/src/main/java/com/craftaro/core/nms/v1_19_R2/entity/NMSPlayerImpl.java @@ -23,10 +23,10 @@ public class NMSPlayerImpl implements NMSPlayer { } @Override - public GameProfile createProfile(UUID id, String name, @Nullable String textureValue) { + public GameProfile createProfile(UUID id, String name, @Nullable String textureValue, @Nullable String textureSignature) { com.mojang.authlib.GameProfile profile = new com.mojang.authlib.GameProfile(id, name); if (textureValue != null) { - profile.getProperties().put("textures", new Property("textures", textureValue)); + profile.getProperties().put("textures", new Property("textures", textureValue, textureSignature)); } return wrapProfile(profile); diff --git a/NMS/NMS-v1_19_R3/src/main/java/com/craftaro/core/nms/v1_19_R3/entity/NMSPlayerImpl.java b/NMS/NMS-v1_19_R3/src/main/java/com/craftaro/core/nms/v1_19_R3/entity/NMSPlayerImpl.java index 4a156aef..7e8f2f11 100644 --- a/NMS/NMS-v1_19_R3/src/main/java/com/craftaro/core/nms/v1_19_R3/entity/NMSPlayerImpl.java +++ b/NMS/NMS-v1_19_R3/src/main/java/com/craftaro/core/nms/v1_19_R3/entity/NMSPlayerImpl.java @@ -23,10 +23,10 @@ public class NMSPlayerImpl implements NMSPlayer { } @Override - public GameProfile createProfile(UUID id, String name, @Nullable String textureValue) { + public GameProfile createProfile(UUID id, String name, @Nullable String textureValue, @Nullable String textureSignature) { com.mojang.authlib.GameProfile profile = new com.mojang.authlib.GameProfile(id, name); if (textureValue != null) { - profile.getProperties().put("textures", new Property("textures", textureValue)); + profile.getProperties().put("textures", new Property("textures", textureValue, textureSignature)); } return wrapProfile(profile); diff --git a/NMS/NMS-v1_20_R1/src/main/java/com/craftaro/core/nms/v1_20_R1/entity/NMSPlayerImpl.java b/NMS/NMS-v1_20_R1/src/main/java/com/craftaro/core/nms/v1_20_R1/entity/NMSPlayerImpl.java index 95c689ce..dad5613a 100644 --- a/NMS/NMS-v1_20_R1/src/main/java/com/craftaro/core/nms/v1_20_R1/entity/NMSPlayerImpl.java +++ b/NMS/NMS-v1_20_R1/src/main/java/com/craftaro/core/nms/v1_20_R1/entity/NMSPlayerImpl.java @@ -23,10 +23,10 @@ public class NMSPlayerImpl implements NMSPlayer { } @Override - public GameProfile createProfile(UUID id, String name, @Nullable String textureValue) { + public GameProfile createProfile(UUID id, String name, @Nullable String textureValue, @Nullable String textureSignature) { com.mojang.authlib.GameProfile profile = new com.mojang.authlib.GameProfile(id, name); if (textureValue != null) { - profile.getProperties().put("textures", new Property("textures", textureValue)); + profile.getProperties().put("textures", new Property("textures", textureValue, textureSignature)); } return wrapProfile(profile); diff --git a/NMS/NMS-v1_20_R2/src/main/java/com/craftaro/core/nms/v1_20_R2/entity/NMSPlayerImpl.java b/NMS/NMS-v1_20_R2/src/main/java/com/craftaro/core/nms/v1_20_R2/entity/NMSPlayerImpl.java index e02771db..a8c14b9e 100644 --- a/NMS/NMS-v1_20_R2/src/main/java/com/craftaro/core/nms/v1_20_R2/entity/NMSPlayerImpl.java +++ b/NMS/NMS-v1_20_R2/src/main/java/com/craftaro/core/nms/v1_20_R2/entity/NMSPlayerImpl.java @@ -23,10 +23,10 @@ public class NMSPlayerImpl implements NMSPlayer { } @Override - public GameProfile createProfile(UUID id, String name, @Nullable String textureValue) { + public GameProfile createProfile(UUID id, String name, @Nullable String textureValue, @Nullable String textureSignature) { com.mojang.authlib.GameProfile profile = new com.mojang.authlib.GameProfile(id, name); if (textureValue != null) { - profile.getProperties().put("textures", new Property("textures", textureValue)); + profile.getProperties().put("textures", new Property("textures", textureValue, textureSignature)); } return wrapProfile(profile); diff --git a/NMS/NMS-v1_20_R3/src/main/java/com/craftaro/core/nms/v1_20_R3/entity/NMSPlayerImpl.java b/NMS/NMS-v1_20_R3/src/main/java/com/craftaro/core/nms/v1_20_R3/entity/NMSPlayerImpl.java index 29297da3..defaeff2 100644 --- a/NMS/NMS-v1_20_R3/src/main/java/com/craftaro/core/nms/v1_20_R3/entity/NMSPlayerImpl.java +++ b/NMS/NMS-v1_20_R3/src/main/java/com/craftaro/core/nms/v1_20_R3/entity/NMSPlayerImpl.java @@ -23,10 +23,10 @@ public class NMSPlayerImpl implements NMSPlayer { } @Override - public GameProfile createProfile(UUID id, String name, @Nullable String textureValue) { + public GameProfile createProfile(UUID id, String name, @Nullable String textureValue, @Nullable String textureSignature) { com.mojang.authlib.GameProfile profile = new com.mojang.authlib.GameProfile(id, name); if (textureValue != null) { - profile.getProperties().put("textures", new Property("textures", textureValue)); + profile.getProperties().put("textures", new Property("textures", textureValue, textureSignature)); } return wrapProfile(profile); diff --git a/NMS/NMS-v1_20_R4/src/main/java/com/craftaro/core/nms/v1_20_R4/entity/NMSPlayerImpl.java b/NMS/NMS-v1_20_R4/src/main/java/com/craftaro/core/nms/v1_20_R4/entity/NMSPlayerImpl.java index ceb795b7..435e5223 100644 --- a/NMS/NMS-v1_20_R4/src/main/java/com/craftaro/core/nms/v1_20_R4/entity/NMSPlayerImpl.java +++ b/NMS/NMS-v1_20_R4/src/main/java/com/craftaro/core/nms/v1_20_R4/entity/NMSPlayerImpl.java @@ -24,10 +24,10 @@ public class NMSPlayerImpl implements NMSPlayer { } @Override - public GameProfile createProfile(UUID id, String name, @Nullable String textureValue) { + public GameProfile createProfile(UUID id, String name, @Nullable String textureValue, @Nullable String textureSignature) { com.mojang.authlib.GameProfile profile = new com.mojang.authlib.GameProfile(id, name); if (textureValue != null) { - profile.getProperties().put("textures", new Property("textures", textureValue)); + profile.getProperties().put("textures", new Property("textures", textureValue, textureSignature)); } return wrapProfile(profile); diff --git a/NMS/NMS-v1_21_R1/src/main/java/com/craftaro/core/nms/v1_21_R1/entity/NMSPlayerImpl.java b/NMS/NMS-v1_21_R1/src/main/java/com/craftaro/core/nms/v1_21_R1/entity/NMSPlayerImpl.java index bd0ca00f..8396be21 100644 --- a/NMS/NMS-v1_21_R1/src/main/java/com/craftaro/core/nms/v1_21_R1/entity/NMSPlayerImpl.java +++ b/NMS/NMS-v1_21_R1/src/main/java/com/craftaro/core/nms/v1_21_R1/entity/NMSPlayerImpl.java @@ -24,10 +24,10 @@ public class NMSPlayerImpl implements NMSPlayer { } @Override - public GameProfile createProfile(UUID id, String name, @Nullable String textureValue) { + public GameProfile createProfile(UUID id, String name, @Nullable String textureValue, @Nullable String textureSignature) { com.mojang.authlib.GameProfile profile = new com.mojang.authlib.GameProfile(id, name); if (textureValue != null) { - profile.getProperties().put("textures", new Property("textures", textureValue)); + profile.getProperties().put("textures", new Property("textures", textureValue, textureSignature)); } return wrapProfile(profile); diff --git a/NMS/NMS-v1_8_R1/src/main/java/com/craftaro/core/nms/v1_8_R1/entity/NMSPlayerImpl.java b/NMS/NMS-v1_8_R1/src/main/java/com/craftaro/core/nms/v1_8_R1/entity/NMSPlayerImpl.java index b9b0642c..106e2a69 100644 --- a/NMS/NMS-v1_8_R1/src/main/java/com/craftaro/core/nms/v1_8_R1/entity/NMSPlayerImpl.java +++ b/NMS/NMS-v1_8_R1/src/main/java/com/craftaro/core/nms/v1_8_R1/entity/NMSPlayerImpl.java @@ -23,10 +23,10 @@ public class NMSPlayerImpl implements NMSPlayer { } @Override - public GameProfile createProfile(UUID id, String name, @Nullable String textureValue) { + public GameProfile createProfile(UUID id, String name, @Nullable String textureValue, @Nullable String textureSignature) { com.mojang.authlib.GameProfile profile = new com.mojang.authlib.GameProfile(id, name); if (textureValue != null) { - profile.getProperties().put("textures", new Property("textures", textureValue)); + profile.getProperties().put("textures", new Property("textures", textureValue, textureSignature)); } return wrapProfile(profile); diff --git a/NMS/NMS-v1_8_R2/src/main/java/com/craftaro/core/nms/v1_8_R2/entity/NMSPlayerImpl.java b/NMS/NMS-v1_8_R2/src/main/java/com/craftaro/core/nms/v1_8_R2/entity/NMSPlayerImpl.java index 68d51ccf..ef5ef955 100644 --- a/NMS/NMS-v1_8_R2/src/main/java/com/craftaro/core/nms/v1_8_R2/entity/NMSPlayerImpl.java +++ b/NMS/NMS-v1_8_R2/src/main/java/com/craftaro/core/nms/v1_8_R2/entity/NMSPlayerImpl.java @@ -23,10 +23,10 @@ public class NMSPlayerImpl implements NMSPlayer { } @Override - public GameProfile createProfile(UUID id, String name, @Nullable String textureValue) { + public GameProfile createProfile(UUID id, String name, @Nullable String textureValue, @Nullable String textureSignature) { com.mojang.authlib.GameProfile profile = new com.mojang.authlib.GameProfile(id, name); if (textureValue != null) { - profile.getProperties().put("textures", new Property("textures", textureValue)); + profile.getProperties().put("textures", new Property("textures", textureValue, textureSignature)); } return wrapProfile(profile); diff --git a/NMS/NMS-v1_8_R3/src/main/java/com/craftaro/core/nms/v1_8_R3/entity/NMSPlayerImpl.java b/NMS/NMS-v1_8_R3/src/main/java/com/craftaro/core/nms/v1_8_R3/entity/NMSPlayerImpl.java index f267be5b..40504209 100644 --- a/NMS/NMS-v1_8_R3/src/main/java/com/craftaro/core/nms/v1_8_R3/entity/NMSPlayerImpl.java +++ b/NMS/NMS-v1_8_R3/src/main/java/com/craftaro/core/nms/v1_8_R3/entity/NMSPlayerImpl.java @@ -23,10 +23,10 @@ public class NMSPlayerImpl implements NMSPlayer { } @Override - public GameProfile createProfile(UUID id, String name, @Nullable String textureValue) { + public GameProfile createProfile(UUID id, String name, @Nullable String textureValue, @Nullable String textureSignature) { com.mojang.authlib.GameProfile profile = new com.mojang.authlib.GameProfile(id, name); if (textureValue != null) { - profile.getProperties().put("textures", new Property("textures", textureValue)); + profile.getProperties().put("textures", new Property("textures", textureValue, textureSignature)); } return wrapProfile(profile); diff --git a/NMS/NMS-v1_9_R1/src/main/java/com/craftaro/core/nms/v1_9_R1/entity/NMSPlayerImpl.java b/NMS/NMS-v1_9_R1/src/main/java/com/craftaro/core/nms/v1_9_R1/entity/NMSPlayerImpl.java index 5d788c21..17ac8bd3 100644 --- a/NMS/NMS-v1_9_R1/src/main/java/com/craftaro/core/nms/v1_9_R1/entity/NMSPlayerImpl.java +++ b/NMS/NMS-v1_9_R1/src/main/java/com/craftaro/core/nms/v1_9_R1/entity/NMSPlayerImpl.java @@ -23,10 +23,10 @@ public class NMSPlayerImpl implements NMSPlayer { } @Override - public GameProfile createProfile(UUID id, String name, @Nullable String textureValue) { + public GameProfile createProfile(UUID id, String name, @Nullable String textureValue, @Nullable String textureSignature) { com.mojang.authlib.GameProfile profile = new com.mojang.authlib.GameProfile(id, name); if (textureValue != null) { - profile.getProperties().put("textures", new Property("textures", textureValue)); + profile.getProperties().put("textures", new Property("textures", textureValue, textureSignature)); } return wrapProfile(profile); diff --git a/NMS/NMS-v1_9_R2/src/main/java/com/craftaro/core/nms/v1_9_R2/entity/NMSPlayerImpl.java b/NMS/NMS-v1_9_R2/src/main/java/com/craftaro/core/nms/v1_9_R2/entity/NMSPlayerImpl.java index 18ab8829..5002bfc4 100644 --- a/NMS/NMS-v1_9_R2/src/main/java/com/craftaro/core/nms/v1_9_R2/entity/NMSPlayerImpl.java +++ b/NMS/NMS-v1_9_R2/src/main/java/com/craftaro/core/nms/v1_9_R2/entity/NMSPlayerImpl.java @@ -23,10 +23,10 @@ public class NMSPlayerImpl implements NMSPlayer { } @Override - public GameProfile createProfile(UUID id, String name, @Nullable String textureValue) { + public GameProfile createProfile(UUID id, String name, @Nullable String textureValue, @Nullable String textureSignature) { com.mojang.authlib.GameProfile profile = new com.mojang.authlib.GameProfile(id, name); if (textureValue != null) { - profile.getProperties().put("textures", new Property("textures", textureValue)); + profile.getProperties().put("textures", new Property("textures", textureValue, textureSignature)); } return wrapProfile(profile);