diff options
author | Kevinthegreat <92656833+kevinthegreat1@users.noreply.github.com> | 2024-01-15 10:18:32 -0500 |
---|---|---|
committer | Kevinthegreat <92656833+kevinthegreat1@users.noreply.github.com> | 2024-01-18 22:20:34 -0500 |
commit | d35c6302f0602fed563e12e5c4ee911caecc4fc7 (patch) | |
tree | 22db9458ee4166ed905775ce5a875e0f1bba7341 /src/main/java/de/hysky/skyblocker/mixin/accessor | |
parent | 053804addd560a61ee0246f8775d2e2c9c0007d0 (diff) | |
download | Skyblocker-d35c6302f0602fed563e12e5c4ee911caecc4fc7.tar.gz Skyblocker-d35c6302f0602fed563e12e5c4ee911caecc4fc7.tar.bz2 Skyblocker-d35c6302f0602fed563e12e5c4ee911caecc4fc7.zip |
Refactor
Diffstat (limited to 'src/main/java/de/hysky/skyblocker/mixin/accessor')
-rw-r--r-- | src/main/java/de/hysky/skyblocker/mixin/accessor/SkullBlockEntityAccessor.java | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/src/main/java/de/hysky/skyblocker/mixin/accessor/SkullBlockEntityAccessor.java b/src/main/java/de/hysky/skyblocker/mixin/accessor/SkullBlockEntityAccessor.java index 2714c4ee..dfe544bc 100644 --- a/src/main/java/de/hysky/skyblocker/mixin/accessor/SkullBlockEntityAccessor.java +++ b/src/main/java/de/hysky/skyblocker/mixin/accessor/SkullBlockEntityAccessor.java @@ -1,14 +1,8 @@ package de.hysky.skyblocker.mixin.accessor; -import com.google.common.cache.LoadingCache; import com.mojang.authlib.GameProfile; import net.minecraft.block.entity.SkullBlockEntity; -import net.minecraft.client.gui.screen.Screen; -import net.minecraft.util.UserCache; -import org.jetbrains.annotations.Contract; -import org.jetbrains.annotations.Nullable; import org.spongepowered.asm.mixin.Mixin; -import org.spongepowered.asm.mixin.gen.Accessor; import org.spongepowered.asm.mixin.gen.Invoker; import java.util.Optional; @@ -16,14 +10,8 @@ import java.util.concurrent.CompletableFuture; @Mixin(SkullBlockEntity.class) public interface SkullBlockEntityAccessor { - @Contract(pure = true) - @Accessor("userCache") - public static @Nullable LoadingCache<String, CompletableFuture<Optional<GameProfile>>> getUserCache() { - return null; - } - @Invoker - public static CompletableFuture<Optional<GameProfile>> invokeFetchProfile(String name) { - return new CompletableFuture<>(); + static CompletableFuture<Optional<GameProfile>> invokeFetchProfile(String name) { + throw new UnsupportedOperationException(); } } |