Class FloatingText
java.lang.Object
cromveil.combatnumbers.client.render.FloatingText
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal AnimationInstancefinal Stringfinal floatfinal SkinRendererfinal net.minecraft.world.phys.Vec3 -
Constructor Summary
ConstructorsConstructorDescriptionFloatingText(net.minecraft.world.phys.Vec3 worldPos, String formattedText, SkinRenderer visual, AnimationInstance animation, float scale, double gameTime) -
Method Summary
Modifier and TypeMethodDescriptionfloatgetAlpha()floatgetCharAlpha(int charIdx) intfloatgetCharOffsetX(int charIdx) floatgetCharOffsetY(int charIdx) floatgetCharRotation(int charIdx) floatgetCharScaleMultiplier(int charIdx) floatfloatfloatfloatbooleanbooleanvoidsampleChannels(int charIdx) voidsetGameTime(double gameTime)
-
Field Details
-
worldPos
public final net.minecraft.world.phys.Vec3 worldPos -
formattedText
-
visual
-
animation
-
scale
public final float scale
-
-
Constructor Details
-
FloatingText
public FloatingText(net.minecraft.world.phys.Vec3 worldPos, String formattedText, SkinRenderer visual, AnimationInstance animation, float scale, double gameTime)
-
-
Method Details
-
setGameTime
public void setGameTime(double gameTime) -
getCharCount
public int getCharCount() -
hasPerCharStagger
public boolean hasPerCharStagger() -
sampleChannels
public void sampleChannels(int charIdx) -
getAlpha
public float getAlpha() -
getScaleMultiplier
public float getScaleMultiplier() -
getCharScaleMultiplier
public float getCharScaleMultiplier(int charIdx) -
getCharAlpha
public float getCharAlpha(int charIdx) -
getOffsetX
public float getOffsetX() -
getOffsetY
public float getOffsetY() -
getCharOffsetX
public float getCharOffsetX(int charIdx) -
getCharOffsetY
public float getCharOffsetY(int charIdx) -
getRotation
public float getRotation() -
getCharRotation
public float getCharRotation(int charIdx) -
isExpired
public boolean isExpired()
-