net.minecraft.client.render.item.property.numeric

public class CompassState

extends NeedleAngleState

net.minecraft.client.renderer.item.properties.numeric.CompassAngleState
net.minecraft.class_10473
net.minecraft.client.render.item.property.numeric.CompassState

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<CompassState>
MAP_CODEC
field_55385
CODEC
private final NeedleAngleState$Angler
wobbler
field_55386
aimedAngler
private final NeedleAngleState$Angler
noTargetWobbler
field_55387
aimlessAngler
private final CompassState$Target
compassTarget
field_55388
target
private final Random
random
field_55389
random

Constructor summary

ModifierConstructor
public (boolean wobble, CompassState$Target target)

Method summary

Modifier and TypeMethod
protected float
calculate(ItemStack itemStack, ClientLevel level, int seed, ItemOwner owner)
method_65654(class_1799 arg0, class_638 arg1, int arg2, class_11566 arg3)
getAngle(ItemStack arg0, ClientWorld arg1, int arg2, HeldItemContext arg3)
private float
getRandomlySpinningRotation(int seed, long gameTime)
method_65648(int arg0, long arg1)
getAimlessAngle(int seed, long time)
private float
getRotationTowardsCompassTarget(ItemOwner owner, long gameTime, BlockPos compassTargetPos)
method_65650(class_11566 arg0, long arg1, class_2338 arg2)
getAngleTo(HeldItemContext from, long time, BlockPos to)
private static boolean
isValidCompassTargetPos(ItemOwner owner, GlobalPos positionToPointTo)
method_65652(class_11566 arg0, class_4208 arg1)
canPointTo(HeldItemContext from, GlobalPos to)
private static double
getAngleFromEntityToPos(ItemOwner owner, BlockPos position)
method_65651(class_11566 arg0, class_2338 arg1)
getAngleTo(HeldItemContext from, BlockPos to)
private static float
getWrappedVisualRotationY(ItemOwner owner)
method_65649(class_11566 arg0)
getBodyYaw(HeldItemContext context)
private static int
hash(int input)
method_65647(int arg0)
scatter(int seed)
protected CompassState$Target
target()
method_65646()
getTarget()
private static com.mojang.datafixers.kinds.App
lambda$static$0(com.mojang.serialization.codecs.RecordCodecBuilder$Instance arg0)
method_65653(com.mojang.serialization.codecs.RecordCodecBuilder$Instance arg0)
method_65653(com.mojang.serialization.codecs.RecordCodecBuilder$Instance instance)