From a1f0671be0ffb84eedbe3202aec115bbb15f329e Mon Sep 17 00:00:00 2001 From: 1e99 Date: Tue, 17 Dec 2024 17:34:08 +0100 Subject: [PATCH] add prefixes to duck types --- mod-fabric/src/eu/e99/pixelchat/fabric/duck/BossBars.java | 6 +++--- .../src/eu/e99/pixelchat/fabric/image/ImageUploads.java | 4 ++-- .../src/eu/e99/pixelchat/fabric/mixin/BossBarHudMixin.java | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/mod-fabric/src/eu/e99/pixelchat/fabric/duck/BossBars.java b/mod-fabric/src/eu/e99/pixelchat/fabric/duck/BossBars.java index 7d687de..d2fde67 100644 --- a/mod-fabric/src/eu/e99/pixelchat/fabric/duck/BossBars.java +++ b/mod-fabric/src/eu/e99/pixelchat/fabric/duck/BossBars.java @@ -6,9 +6,9 @@ import java.util.UUID; public interface BossBars { - void add(UUID uuid, ClientBossBar bar); + void pixelchat$add(UUID uuid, ClientBossBar bar); - void remove(UUID uuid); + void pixelchat$remove(UUID uuid); - ClientBossBar get(UUID uuid); + ClientBossBar pixelchat$get(UUID uuid); } diff --git a/mod-fabric/src/eu/e99/pixelchat/fabric/image/ImageUploads.java b/mod-fabric/src/eu/e99/pixelchat/fabric/image/ImageUploads.java index 63ece30..81bf3ca 100644 --- a/mod-fabric/src/eu/e99/pixelchat/fabric/image/ImageUploads.java +++ b/mod-fabric/src/eu/e99/pixelchat/fabric/image/ImageUploads.java @@ -43,7 +43,7 @@ public class ImageUploads { false ); - this.minecraft.send(() -> bossBars.add(bossBar.getUuid(), bossBar)); + this.minecraft.send(() -> bossBars.pixelchat$add(bossBar.getUuid(), bossBar)); String url = null; Throwable error = null; @@ -95,7 +95,7 @@ public class ImageUploads { } catch (InterruptedException ignored) { } - this.minecraft.send(() -> bossBars.remove(bossBar.getUuid())); + this.minecraft.send(() -> bossBars.pixelchat$remove(bossBar.getUuid())); } private String upload(String host, Path path) throws Throwable { diff --git a/mod-fabric/src/eu/e99/pixelchat/fabric/mixin/BossBarHudMixin.java b/mod-fabric/src/eu/e99/pixelchat/fabric/mixin/BossBarHudMixin.java index 0b9ccad..5e4ed4f 100644 --- a/mod-fabric/src/eu/e99/pixelchat/fabric/mixin/BossBarHudMixin.java +++ b/mod-fabric/src/eu/e99/pixelchat/fabric/mixin/BossBarHudMixin.java @@ -18,17 +18,17 @@ public class BossBarHudMixin implements BossBars { Map bossBars; @Override - public void add(UUID uuid, ClientBossBar bar) { + public void pixelchat$add(UUID uuid, ClientBossBar bar) { this.bossBars.put(uuid, bar); } @Override - public void remove(UUID uuid) { + public void pixelchat$remove(UUID uuid) { this.bossBars.remove(uuid); } @Override - public ClientBossBar get(UUID uuid) { + public ClientBossBar pixelchat$get(UUID uuid) { return this.bossBars.get(uuid); } }