Class CompassItemPropertyFunction
java.lang.Object
net.minecraft.client.renderer.item.CompassItemPropertyFunction
- All Implemented Interfaces:
 ClampedItemPropertyFunction,ItemPropertyFunction
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface(package private) static class - 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intprivate final CompassItemPropertyFunction.CompassWobbleprivate final CompassItemPropertyFunction.CompassWobble - 
Constructor Summary
ConstructorsConstructorDescription - 
Method Summary
Modifier and TypeMethodDescriptionprivate doublegetAngleFromEntityToPos(Entity p_234949_, BlockPos p_234950_) private floatgetCompassRotation(ItemStack p_234955_, ClientLevel p_234956_, int p_234957_, Entity p_234958_) private floatgetRandomlySpinningRotation(int p_234937_, long p_234938_) private floatgetRotationTowardsCompassTarget(Entity p_234942_, long p_234943_, BlockPos p_234944_) private doublegetWrappedVisualRotationY(Entity p_234940_) private inthash(int p_234935_) private booleanisValidCompassTargetPos(Entity p_234952_, GlobalPos p_234953_) private ClientLeveltryFetchLevelIfMissing(Entity p_234946_, ClientLevel p_234947_) floatunclampedCall(ItemStack p_234960_, ClientLevel p_234961_, LivingEntity p_234962_, int p_234963_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.renderer.item.ClampedItemPropertyFunction
call 
- 
Field Details
- 
DEFAULT_ROTATION
public static final int DEFAULT_ROTATION- See Also:
 
 - 
wobble
 - 
wobbleRandom
 - 
compassTarget
 
 - 
 - 
Constructor Details
- 
CompassItemPropertyFunction
 
 - 
 - 
Method Details
- 
unclampedCall
public float unclampedCall(ItemStack p_234960_, @Nullable ClientLevel p_234961_, @Nullable LivingEntity p_234962_, int p_234963_) - Specified by:
 unclampedCallin interfaceClampedItemPropertyFunction
 - 
getCompassRotation
private float getCompassRotation(ItemStack p_234955_, ClientLevel p_234956_, int p_234957_, Entity p_234958_)  - 
getRandomlySpinningRotation
private float getRandomlySpinningRotation(int p_234937_, long p_234938_)  - 
getRotationTowardsCompassTarget
 - 
tryFetchLevelIfMissing
@Nullable private ClientLevel tryFetchLevelIfMissing(Entity p_234946_, @Nullable ClientLevel p_234947_)  - 
isValidCompassTargetPos
 - 
getAngleFromEntityToPos
 - 
getWrappedVisualRotationY
 - 
hash
private int hash(int p_234935_)  
 -