类 CompassItemPropertyFunction
java.lang.Object
net.minecraft.client.renderer.item.CompassItemPropertyFunction
- 所有已实现的接口:
ClampedItemPropertyFunction
,ItemPropertyFunction
-
嵌套类概要
嵌套类修饰符和类型类说明static interface
(专用程序包) static class
-
字段概要
字段修饰符和类型字段说明static final int
private final CompassItemPropertyFunction.CompassWobble
private final CompassItemPropertyFunction.CompassWobble
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private double
getAngleFromEntityToPos
(Entity pEntity, BlockPos pPos) private float
getCompassRotation
(ItemStack pStack, ClientLevel pLevel, int pSeed, Entity pEntity) private float
getRandomlySpinningRotation
(int pSeed, long pTicks) private float
getRotationTowardsCompassTarget
(Entity pEntity, long pTicks, BlockPos pPos) private double
getWrappedVisualRotationY
(Entity pEntity) private int
hash
(int pValue) private boolean
isValidCompassTargetPos
(Entity pEntity, GlobalPos pPos) private ClientLevel
tryFetchLevelIfMissing
(Entity pEntity, ClientLevel pLevel) float
unclampedCall
(ItemStack pStack, ClientLevel pLevel, LivingEntity pEntity, int pSeed) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.client.renderer.item.ClampedItemPropertyFunction
call
-
字段详细资料
-
DEFAULT_ROTATION
public static final int DEFAULT_ROTATION- 另请参阅:
-
wobble
-
wobbleRandom
-
compassTarget
-
-
构造器详细资料
-
CompassItemPropertyFunction
-
-
方法详细资料
-
unclampedCall
public float unclampedCall(ItemStack pStack, @Nullable ClientLevel pLevel, @Nullable LivingEntity pEntity, int pSeed) - 指定者:
unclampedCall
在接口中ClampedItemPropertyFunction
-
getCompassRotation
-
getRandomlySpinningRotation
private float getRandomlySpinningRotation(int pSeed, long pTicks) -
getRotationTowardsCompassTarget
-
tryFetchLevelIfMissing
-
isValidCompassTargetPos
-
getAngleFromEntityToPos
-
getWrappedVisualRotationY
-
hash
private int hash(int pValue)
-