Class CompassItemPropertyFunction
java.lang.Object
net.minecraft.client.renderer.item.CompassItemPropertyFunction
- All Implemented Interfaces:
ClampedItemPropertyFunction
,ItemPropertyFunction
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
(package private) static class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
private final CompassItemPropertyFunction.CompassWobble
private final CompassItemPropertyFunction.CompassWobble
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionprivate double
getAngleFromEntityToPos
(Entity p_234949_, BlockPos p_234950_) private float
getCompassRotation
(ItemStack p_234955_, ClientLevel p_234956_, int p_234957_, Entity p_234958_) private float
getRandomlySpinningRotation
(int p_234937_, long p_234938_) private float
getRotationTowardsCompassTarget
(Entity p_234942_, long p_234943_, BlockPos p_234944_) private double
getWrappedVisualRotationY
(Entity p_234940_) private int
hash
(int p_234935_) private boolean
isValidCompassTargetPos
(Entity p_234952_, GlobalPos p_234953_) private ClientLevel
tryFetchLevelIfMissing
(Entity p_234946_, ClientLevel p_234947_) float
unclampedCall
(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, wait
Methods 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:
unclampedCall
in 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_)
-