public class ClientUtils
extends java.lang.Object
| Constructor and Description |
|---|
ClientUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addPlayerSkinTypeRenderer(java.lang.String type,
net.minecraft.client.renderer.entity.RenderPlayer renderPlayer) |
static float |
interpolate(float prev,
float current,
float partialTicks) |
static float |
interpolateRotation(float prev,
float current,
float partialTicks) |
static void |
setPlayerSkinType(net.minecraft.client.entity.AbstractClientPlayer player,
java.lang.String type) |
static void |
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 float interpolateRotation(float prev,
float current,
float partialTicks)
public static void 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 void setPlayerSkinType(net.minecraft.client.entity.AbstractClientPlayer player,
java.lang.String type)
public static void addPlayerSkinTypeRenderer(java.lang.String type,
net.minecraft.client.renderer.entity.RenderPlayer renderPlayer)