public class ClientUtils
extends java.lang.Object
| Constructor and Description |
|---|
ClientUtils() |
| Modifier and Type | Method and Description |
|---|---|
static float |
interpolate(float prev,
float current,
float partialTicks) |
static boolean |
isAltKeyDown() |
static boolean |
isKeyComboCtrlA(int keyID) |
static boolean |
isKeyComboCtrlC(int keyID) |
static boolean |
isKeyComboCtrlV(int keyID) |
static boolean |
isKeyComboCtrlX(int keyID) |
static boolean |
setPlayerTexture(net.minecraft.client.entity.AbstractClientPlayer player,
com.mojang.authlib.minecraft.MinecraftProfileTexture.Type type,
net.minecraft.util.ResourceLocation texture)
Sets a player specific texture.
|
static void |
updateLast()
Update the current time.
|
static float |
updateValue(float current,
float target)
Update a value with the default factor of 0.5.
|
static float |
updateValue(float current,
float target,
float factor)
Update a value with a custom factor.
|
public static void updateLast()
public static float updateValue(float current,
float target)
current - the current valuetarget - the targetpublic static float updateValue(float current,
float target,
float factor)
current - the current valuetarget - the targetfactor - the factorpublic static float interpolate(float prev,
float current,
float partialTicks)
public static boolean setPlayerTexture(net.minecraft.client.entity.AbstractClientPlayer player,
com.mojang.authlib.minecraft.MinecraftProfileTexture.Type type,
net.minecraft.util.ResourceLocation texture)
player - the player to set the texture totype - the type of texture to applytexture - the texture to applypublic static boolean isKeyComboCtrlX(int keyID)
public static boolean isKeyComboCtrlV(int keyID)
public static boolean isKeyComboCtrlC(int keyID)
public static boolean isKeyComboCtrlA(int keyID)
public static boolean isAltKeyDown()