Class CompassState
java.lang.Object
net.minecraft.client.render.item.property.numeric.NeedleAngleState
net.minecraft.client.render.item.property.numeric.CompassState
- Mappings:
Namespace Name named net/minecraft/client/render/item/property/numeric/CompassState
intermediary net/minecraft/class_10473
official hcm
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.client.render.item.property.numeric.NeedleAngleState
NeedleAngleState.Angler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final NeedleAngleState.Angler
private final NeedleAngleState.Angler
static final com.mojang.serialization.MapCodec
<CompassState> private final Random
private final CompassState.Target
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static boolean
canPointTo
(Entity entity, @Nullable GlobalPos pos) private float
getAimlessAngle
(int seed, long time) protected float
getAngle
(ItemStack stack, ClientWorld world, int seed, Entity user) private float
getAngleTo
(Entity entity, long time, BlockPos pos) private static double
getAngleTo
(Entity entity, BlockPos pos) private static float
getBodyYaw
(Entity entity) protected CompassState.Target
private static int
scatter
(int seed) Scatters a seed by integer overflow in multiplication onto the whole int domain.Methods inherited from class net.minecraft.client.render.item.property.numeric.NeedleAngleState
createAngler, createInstantAngler, createWobblyAngler, getValue, hasWobble
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/client/render/item/property/numeric/CompassState;CODEC:Lcom/mojang/serialization/MapCodec;
intermediary field_55385
Lnet/minecraft/class_10473;field_55385:Lcom/mojang/serialization/MapCodec;
official a
Lhcm;a:Lcom/mojang/serialization/MapCodec;
-
aimedAngler
- Mappings:
Namespace Name Mixin selector named aimedAngler
Lnet/minecraft/client/render/item/property/numeric/CompassState;aimedAngler:Lnet/minecraft/client/render/item/property/numeric/NeedleAngleState$Angler;
intermediary field_55386
Lnet/minecraft/class_10473;field_55386:Lnet/minecraft/class_10480$class_10481;
official b
Lhcm;b:Lhcs$a;
-
aimlessAngler
- Mappings:
Namespace Name Mixin selector named aimlessAngler
Lnet/minecraft/client/render/item/property/numeric/CompassState;aimlessAngler:Lnet/minecraft/client/render/item/property/numeric/NeedleAngleState$Angler;
intermediary field_55387
Lnet/minecraft/class_10473;field_55387:Lnet/minecraft/class_10480$class_10481;
official c
Lhcm;c:Lhcs$a;
-
target
- Mappings:
Namespace Name Mixin selector named target
Lnet/minecraft/client/render/item/property/numeric/CompassState;target:Lnet/minecraft/client/render/item/property/numeric/CompassState$Target;
intermediary field_55388
Lnet/minecraft/class_10473;field_55388:Lnet/minecraft/class_10473$class_10474;
official d
Lhcm;d:Lhcm$a;
-
random
- Mappings:
Namespace Name Mixin selector named random
Lnet/minecraft/client/render/item/property/numeric/CompassState;random:Lnet/minecraft/util/math/random/Random;
intermediary field_55389
Lnet/minecraft/class_10473;field_55389:Lnet/minecraft/class_5819;
official e
Lhcm;e:Lazh;
-
-
Constructor Details
-
CompassState
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/render/item/property/numeric/CompassState;<init>(ZLnet/minecraft/client/render/item/property/numeric/CompassState$Target;)V
intermediary <init>
Lnet/minecraft/class_10473;<init>(ZLnet/minecraft/class_10473$class_10474;)V
official <init>
Lhcm;<init>(ZLhcm$a;)V
-
-
Method Details
-
getAngle
- Specified by:
getAngle
in classNeedleAngleState
- Mappings:
Namespace Name Mixin selector named getAngle
Lnet/minecraft/client/render/item/property/numeric/NeedleAngleState;getAngle(Lnet/minecraft/item/ItemStack;Lnet/minecraft/client/world/ClientWorld;ILnet/minecraft/entity/Entity;)F
intermediary method_65654
Lnet/minecraft/class_10480;method_65654(Lnet/minecraft/class_1799;Lnet/minecraft/class_638;ILnet/minecraft/class_1297;)F
official a
Lhcs;a(Lcwq;Lgga;ILbum;)F
-
getAimlessAngle
private float getAimlessAngle(int seed, long time) - Mappings:
Namespace Name Mixin selector named getAimlessAngle
Lnet/minecraft/client/render/item/property/numeric/CompassState;getAimlessAngle(IJ)F
intermediary method_65648
Lnet/minecraft/class_10473;method_65648(IJ)F
official a
Lhcm;a(IJ)F
-
getAngleTo
- Mappings:
Namespace Name Mixin selector named getAngleTo
Lnet/minecraft/client/render/item/property/numeric/CompassState;getAngleTo(Lnet/minecraft/entity/Entity;JLnet/minecraft/util/math/BlockPos;)F
intermediary method_65650
Lnet/minecraft/class_10473;method_65650(Lnet/minecraft/class_1297;JLnet/minecraft/class_2338;)F
official a
Lhcm;a(Lbum;JLji;)F
-
canPointTo
- Mappings:
Namespace Name Mixin selector named canPointTo
Lnet/minecraft/client/render/item/property/numeric/CompassState;canPointTo(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/GlobalPos;)Z
intermediary method_65652
Lnet/minecraft/class_10473;method_65652(Lnet/minecraft/class_1297;Lnet/minecraft/class_4208;)Z
official a
Lhcm;a(Lbum;Ljq;)Z
-
getAngleTo
- Mappings:
Namespace Name Mixin selector named getAngleTo
Lnet/minecraft/client/render/item/property/numeric/CompassState;getAngleTo(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/BlockPos;)D
intermediary method_65651
Lnet/minecraft/class_10473;method_65651(Lnet/minecraft/class_1297;Lnet/minecraft/class_2338;)D
official a
Lhcm;a(Lbum;Lji;)D
-
getBodyYaw
- Mappings:
Namespace Name Mixin selector named getBodyYaw
Lnet/minecraft/client/render/item/property/numeric/CompassState;getBodyYaw(Lnet/minecraft/entity/Entity;)F
intermediary method_65649
Lnet/minecraft/class_10473;method_65649(Lnet/minecraft/class_1297;)F
official a
Lhcm;a(Lbum;)F
-
scatter
private static int scatter(int seed) Scatters a seed by integer overflow in multiplication onto the whole int domain.- Mappings:
Namespace Name Mixin selector named scatter
Lnet/minecraft/client/render/item/property/numeric/CompassState;scatter(I)I
intermediary method_65647
Lnet/minecraft/class_10473;method_65647(I)I
official a
Lhcm;a(I)I
-
getTarget
- Mappings:
Namespace Name Mixin selector named getTarget
Lnet/minecraft/client/render/item/property/numeric/CompassState;getTarget()Lnet/minecraft/client/render/item/property/numeric/CompassState$Target;
intermediary method_65646
Lnet/minecraft/class_10473;method_65646()Lnet/minecraft/class_10473$class_10474;
official a
Lhcm;a()Lhcm$a;
-