public class TextureCompass extends TextureAtlasSprite
| Modifier and Type | Field and Description |
|---|---|
double |
angleDelta
Speed and direction of compass rotation
|
double |
currentAngle
Current compass heading in radians
|
frameCounter, framesTextureData, height, originX, originY, rotated, tickCounter, width| Constructor and Description |
|---|
TextureCompass(java.lang.String p_i1286_1_) |
| Modifier and Type | Method and Description |
|---|---|
void |
updateAnimation() |
void |
updateCompass(World p_94241_1_,
double p_94241_2_,
double p_94241_4_,
double p_94241_6_,
boolean p_94241_8_,
boolean p_94241_9_)
Updates the compass based on the given x,z coords and camera direction
|
clearFramesTextureData, copyFrom, generateMipmaps, getFrameCount, getFrameTextureData, getIconHeight, getIconName, getIconWidth, getInterpolatedU, getInterpolatedV, getMaxU, getMaxV, getMinU, getMinV, getOriginX, getOriginY, hasAnimationMetadata, hasCustomLoader, initSprite, load, loadSprite, setFramesTextureData, setIconHeight, setIconWidth, toStringpublic double currentAngle
public double angleDelta
public void updateAnimation()
updateAnimation in class TextureAtlasSpritepublic void updateCompass(World p_94241_1_, double p_94241_2_, double p_94241_4_, double p_94241_6_, boolean p_94241_8_, boolean p_94241_9_)