Class CompassItemPropertyFunction
java.lang.Object
net.minecraft.client.renderer.item.CompassItemPropertyFunction
- All Implemented Interfaces:
- ClampedItemPropertyFunction,- ItemPropertyFunction
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic interface(package private) static class
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intprivate final CompassItemPropertyFunction.CompassWobbleprivate final CompassItemPropertyFunction.CompassWobble
- 
Constructor SummaryConstructorsConstructorDescription
- 
Method SummaryModifier 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.renderer.item.ClampedItemPropertyFunctioncall
- 
Field Details- 
DEFAULT_ROTATIONpublic static final int DEFAULT_ROTATION- See Also:
 
- 
wobble
- 
wobbleRandom
- 
compassTarget
 
- 
- 
Constructor Details- 
CompassItemPropertyFunction
 
- 
- 
Method Details- 
unclampedCallpublic float unclampedCall(ItemStack p_234960_, @Nullable ClientLevel p_234961_, @Nullable LivingEntity p_234962_, int p_234963_) - Specified by:
- unclampedCallin interface- ClampedItemPropertyFunction
 
- 
getCompassRotationprivate float getCompassRotation(ItemStack p_234955_, ClientLevel p_234956_, int p_234957_, Entity p_234958_) 
- 
getRandomlySpinningRotationprivate float getRandomlySpinningRotation(int p_234937_, long p_234938_) 
- 
getRotationTowardsCompassTarget
- 
tryFetchLevelIfMissing@Nullable private ClientLevel tryFetchLevelIfMissing(Entity p_234946_, @Nullable ClientLevel p_234947_) 
- 
isValidCompassTargetPos
- 
getAngleFromEntityToPos
- 
getWrappedVisualRotationY
- 
hashprivate int hash(int p_234935_) 
 
-