Class ClientUtils

java.lang.Object
com.binaris.wizardry.api.client.util.ClientUtils

public final class ClientUtils extends Object
  • Method Details

    • shouldDisplayDiscovered

      public static boolean shouldDisplayDiscovered(Spell spell, @Nullable net.minecraft.world.item.ItemStack stack)
    • getPlayer

      public static net.minecraft.client.player.LocalPlayer getPlayer()
    • handleGlyphDataPacket

      public static void handleGlyphDataPacket(SpellGlyphPacketS2C message)
    • getScrollDisplayName

      public static net.minecraft.network.chat.Component getScrollDisplayName(net.minecraft.world.item.ItemStack scroll)
    • getBookDisplayName

      public static net.minecraft.network.chat.Component getBookDisplayName(net.minecraft.world.item.ItemStack book)
    • openSpellBook

      public static void openSpellBook(net.minecraft.world.item.ItemStack stack)
    • smoothScaleFactor

      public static float smoothScaleFactor(int lifetime, int ticksExisted, float partialTicks, int startLength, int endLength)
    • makeTranslucentColor

      public static int makeTranslucentColor(int color, float opacity)
    • mixColor

      public static int mixColor(int color1, int color2, float proportion)