Class ClientUtils
java.lang.Object
com.binaris.wizardry.api.client.util.ClientUtils
-
Constructor Summary
Constructors -
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 booleanisFirstPerson(net.minecraft.world.entity.Entity entity) static voidopenSpellBook(net.minecraft.world.item.ItemStack stack) static booleanshouldDisplayDiscovered(Spell spell, net.minecraft.world.item.ItemStack stack)
-
Constructor Details
-
ClientUtils
public ClientUtils()
-
-
Method Details
-
isFirstPerson
public static boolean isFirstPerson(net.minecraft.world.entity.Entity entity) -
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)
-