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/CompassStateintermediary net/minecraft/class_10473official hzt
-
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.Anglerprivate final NeedleAngleState.Anglerstatic final com.mojang.serialization.MapCodec<CompassState> private final Randomprivate final CompassState.Target -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static booleancanPointTo(@Nullable HeldItemContext from, @Nullable GlobalPos to) private floatgetAimlessAngle(int seed, long time) protected floatgetAngle(ItemStack stack, ClientWorld world, int seed, @Nullable HeldItemContext context) private floatgetAngleTo(HeldItemContext from, long time, BlockPos to) private static doublegetAngleTo(HeldItemContext from, BlockPos to) private static floatgetBodyYaw(HeldItemContext context) protected CompassState.Targetprivate static intscatter(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 CODECLnet/minecraft/client/render/item/property/numeric/CompassState;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_55385Lnet/minecraft/class_10473;field_55385:Lcom/mojang/serialization/MapCodec;official aLhzt;a:Lcom/mojang/serialization/MapCodec;
-
aimedAngler
- Mappings:
Namespace Name Mixin selector named aimedAnglerLnet/minecraft/client/render/item/property/numeric/CompassState;aimedAngler:Lnet/minecraft/client/render/item/property/numeric/NeedleAngleState$Angler;intermediary field_55386Lnet/minecraft/class_10473;field_55386:Lnet/minecraft/class_10480$class_10481;official bLhzt;b:Lhzz$a;
-
aimlessAngler
- Mappings:
Namespace Name Mixin selector named aimlessAnglerLnet/minecraft/client/render/item/property/numeric/CompassState;aimlessAngler:Lnet/minecraft/client/render/item/property/numeric/NeedleAngleState$Angler;intermediary field_55387Lnet/minecraft/class_10473;field_55387:Lnet/minecraft/class_10480$class_10481;official cLhzt;c:Lhzz$a;
-
target
- Mappings:
Namespace Name Mixin selector named targetLnet/minecraft/client/render/item/property/numeric/CompassState;target:Lnet/minecraft/client/render/item/property/numeric/CompassState$Target;intermediary field_55388Lnet/minecraft/class_10473;field_55388:Lnet/minecraft/class_10473$class_10474;official dLhzt;d:Lhzt$a;
-
random
- Mappings:
Namespace Name Mixin selector named randomLnet/minecraft/client/render/item/property/numeric/CompassState;random:Lnet/minecraft/util/math/random/Random;intermediary field_55389Lnet/minecraft/class_10473;field_55389:Lnet/minecraft/class_5819;official eLhzt;e:Lbfq;
-
-
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;)Vintermediary <init>Lnet/minecraft/class_10473;<init>(ZLnet/minecraft/class_10473$class_10474;)Vofficial <init>Lhzt;<init>(ZLhzt$a;)V
-
-
Method Details
-
getAngle
protected float getAngle(ItemStack stack, ClientWorld world, int seed, @Nullable @Nullable HeldItemContext context) - Specified by:
getAnglein classNeedleAngleState- Mappings:
Namespace Name Mixin selector named getAngleLnet/minecraft/client/render/item/property/numeric/NeedleAngleState;getAngle(Lnet/minecraft/item/ItemStack;Lnet/minecraft/client/world/ClientWorld;ILnet/minecraft/util/HeldItemContext;)Fintermediary method_65654Lnet/minecraft/class_10480;method_65654(Lnet/minecraft/class_1799;Lnet/minecraft/class_638;ILnet/minecraft/class_11566;)Fofficial aLhzz;a(Ldhp;Lgzn;ILces;)F
-
getAimlessAngle
private float getAimlessAngle(int seed, long time) - Mappings:
Namespace Name Mixin selector named getAimlessAngleLnet/minecraft/client/render/item/property/numeric/CompassState;getAimlessAngle(IJ)Fintermediary method_65648Lnet/minecraft/class_10473;method_65648(IJ)Fofficial aLhzt;a(IJ)F
-
getAngleTo
- Mappings:
Namespace Name Mixin selector named getAngleToLnet/minecraft/client/render/item/property/numeric/CompassState;getAngleTo(Lnet/minecraft/util/HeldItemContext;JLnet/minecraft/util/math/BlockPos;)Fintermediary method_65650Lnet/minecraft/class_10473;method_65650(Lnet/minecraft/class_11566;JLnet/minecraft/class_2338;)Fofficial aLhzt;a(Lces;JLja;)F
-
canPointTo
private static boolean canPointTo(@Nullable @Nullable HeldItemContext from, @Nullable @Nullable GlobalPos to) - Mappings:
Namespace Name Mixin selector named canPointToLnet/minecraft/client/render/item/property/numeric/CompassState;canPointTo(Lnet/minecraft/util/HeldItemContext;Lnet/minecraft/util/math/GlobalPos;)Zintermediary method_65652Lnet/minecraft/class_10473;method_65652(Lnet/minecraft/class_11566;Lnet/minecraft/class_4208;)Zofficial aLhzt;a(Lces;Ljj;)Z
-
getAngleTo
- Mappings:
Namespace Name Mixin selector named getAngleToLnet/minecraft/client/render/item/property/numeric/CompassState;getAngleTo(Lnet/minecraft/util/HeldItemContext;Lnet/minecraft/util/math/BlockPos;)Dintermediary method_65651Lnet/minecraft/class_10473;method_65651(Lnet/minecraft/class_11566;Lnet/minecraft/class_2338;)Dofficial aLhzt;a(Lces;Lja;)D
-
getBodyYaw
- Mappings:
Namespace Name Mixin selector named getBodyYawLnet/minecraft/client/render/item/property/numeric/CompassState;getBodyYaw(Lnet/minecraft/util/HeldItemContext;)Fintermediary method_65649Lnet/minecraft/class_10473;method_65649(Lnet/minecraft/class_11566;)Fofficial aLhzt;a(Lces;)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 scatterLnet/minecraft/client/render/item/property/numeric/CompassState;scatter(I)Iintermediary method_65647Lnet/minecraft/class_10473;method_65647(I)Iofficial aLhzt;a(I)I
-
getTarget
- Mappings:
Namespace Name Mixin selector named getTargetLnet/minecraft/client/render/item/property/numeric/CompassState;getTarget()Lnet/minecraft/client/render/item/property/numeric/CompassState$Target;intermediary method_65646Lnet/minecraft/class_10473;method_65646()Lnet/minecraft/class_10473$class_10474;official aLhzt;a()Lhzt$a;
-