Class ClientUtils
java.lang.Object
com.binaris.wizardry.api.client.util.ClientUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.network.chat.ComponentgetBookDisplayName(net.minecraft.world.item.ItemStack book) static net.minecraft.client.player.LocalPlayerstatic net.minecraft.network.chat.ComponentgetScrollDisplayName(net.minecraft.world.item.ItemStack scroll) static voidhandleGlyphDataPacket(SpellGlyphPacketS2C message) static intmakeTranslucentColor(int color, float opacity) static intmixColor(int color1, int color2, float proportion) static voidopenSpellBook(net.minecraft.world.item.ItemStack stack) static booleanshouldDisplayDiscovered(Spell spell, net.minecraft.world.item.ItemStack stack) static floatsmoothScaleFactor(int lifetime, int ticksExisted, float partialTicks, int startLength, int endLength)
-
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
-
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)
-