Package net.minecraft.client.item
Class CompassAnglePredicateProvider
java.lang.Object
net.minecraft.client.item.CompassAnglePredicateProvider
- All Implemented Interfaces:
ClampedModelPredicateProvider
,ModelPredicateProvider
@Environment(CLIENT)
public class CompassAnglePredicateProvider
extends Object
implements ClampedModelPredicateProvider
- Mappings:
Namespace Name official fub
intermediary net/minecraft/class_7391
named net/minecraft/client/item/CompassAnglePredicateProvider
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static class
static interface
-
Field Summary
Modifier and TypeFieldDescriptionprivate final CompassAnglePredicateProvider.AngleInterpolator
private final CompassAnglePredicateProvider.AngleInterpolator
static final int
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
canPointTo
(Entity entity, @Nullable GlobalPos pos) private float
getAimlessAngle
(int seed, long time) private float
getAngle
(ItemStack stack, ClientWorld world, int seed, Entity entity) private float
getAngleTo
(Entity entity, long time, BlockPos pos) private double
getAngleTo
(Entity entity, BlockPos pos) private double
getBodyYaw
(Entity entity) private @Nullable ClientWorld
getClientWorld
(Entity entity, @Nullable ClientWorld world) private int
scatter
(int seed) Scatters a seed by integer overflow in multiplication onto the whole int domain.float
unclampedCall
(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity, int seed) 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.item.ClampedModelPredicateProvider
call
-
Field Details
-
field_38798
public static final int field_38798- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lfub;a:I
intermediary field_38798
Lnet/minecraft/class_7391;field_38798:I
named field_38798
Lnet/minecraft/client/item/CompassAnglePredicateProvider;field_38798:I
-
aimedInterpolator
- Mappings:
Namespace Name Mixin selector official c
Lfub;c:Lfub$b;
intermediary field_24449
Lnet/minecraft/class_7391;field_24449:Lnet/minecraft/class_7391$class_5171;
named aimedInterpolator
Lnet/minecraft/client/item/CompassAnglePredicateProvider;aimedInterpolator:Lnet/minecraft/client/item/CompassAnglePredicateProvider$AngleInterpolator;
-
aimlessInterpolator
- Mappings:
Namespace Name Mixin selector official d
Lfub;d:Lfub$b;
intermediary field_24450
Lnet/minecraft/class_7391;field_24450:Lnet/minecraft/class_7391$class_5171;
named aimlessInterpolator
Lnet/minecraft/client/item/CompassAnglePredicateProvider;aimlessInterpolator:Lnet/minecraft/client/item/CompassAnglePredicateProvider$AngleInterpolator;
-
compassTarget
- Mappings:
Namespace Name Mixin selector official b
Lfub;b:Lfub$a;
intermediary field_38799
Lnet/minecraft/class_7391;field_38799:Lnet/minecraft/class_7391$class_7392;
named compassTarget
Lnet/minecraft/client/item/CompassAnglePredicateProvider;compassTarget:Lnet/minecraft/client/item/CompassAnglePredicateProvider$CompassTarget;
-
-
Constructor Details
-
CompassAnglePredicateProvider
- Mappings:
Namespace Name Mixin selector official <init>
Lfub;<init>(Lfub$a;)V
intermediary <init>
Lnet/minecraft/class_7391;<init>(Lnet/minecraft/class_7391$class_7392;)V
named <init>
Lnet/minecraft/client/item/CompassAnglePredicateProvider;<init>(Lnet/minecraft/client/item/CompassAnglePredicateProvider$CompassTarget;)V
-
-
Method Details
-
unclampedCall
public float unclampedCall(ItemStack stack, @Nullable @Nullable ClientWorld world, @Nullable @Nullable LivingEntity entity, int seed) - Specified by:
unclampedCall
in interfaceClampedModelPredicateProvider
- Mappings:
Namespace Name Mixin selector official unclampedCall
Lfua;unclampedCall(Lcfz;Lfew;Lbfz;I)F
intermediary unclampedCall
Lnet/minecraft/class_6395;unclampedCall(Lnet/minecraft/class_1799;Lnet/minecraft/class_638;Lnet/minecraft/class_1309;I)F
named unclampedCall
Lnet/minecraft/client/item/ClampedModelPredicateProvider;unclampedCall(Lnet/minecraft/item/ItemStack;Lnet/minecraft/client/world/ClientWorld;Lnet/minecraft/entity/LivingEntity;I)F
-
getAngle
- Mappings:
Namespace Name Mixin selector official a
Lfub;a(Lcfz;Lfew;ILbfj;)F
intermediary method_43218
Lnet/minecraft/class_7391;method_43218(Lnet/minecraft/class_1799;Lnet/minecraft/class_638;ILnet/minecraft/class_1297;)F
named getAngle
Lnet/minecraft/client/item/CompassAnglePredicateProvider;getAngle(Lnet/minecraft/item/ItemStack;Lnet/minecraft/client/world/ClientWorld;ILnet/minecraft/entity/Entity;)F
-
getAimlessAngle
private float getAimlessAngle(int seed, long time) - Mappings:
Namespace Name Mixin selector official a
Lfub;a(IJ)F
intermediary method_43212
Lnet/minecraft/class_7391;method_43212(IJ)F
named getAimlessAngle
Lnet/minecraft/client/item/CompassAnglePredicateProvider;getAimlessAngle(IJ)F
-
getAngleTo
- Mappings:
Namespace Name Mixin selector official a
Lfub;a(Lbfj;JLgu;)F
intermediary method_43214
Lnet/minecraft/class_7391;method_43214(Lnet/minecraft/class_1297;JLnet/minecraft/class_2338;)F
named getAngleTo
Lnet/minecraft/client/item/CompassAnglePredicateProvider;getAngleTo(Lnet/minecraft/entity/Entity;JLnet/minecraft/util/math/BlockPos;)F
-
getClientWorld
@Nullable private @Nullable ClientWorld getClientWorld(Entity entity, @Nullable @Nullable ClientWorld world) - Mappings:
Namespace Name Mixin selector official a
Lfub;a(Lbfj;Lfew;)Lfew;
intermediary method_43215
Lnet/minecraft/class_7391;method_43215(Lnet/minecraft/class_1297;Lnet/minecraft/class_638;)Lnet/minecraft/class_638;
named getClientWorld
Lnet/minecraft/client/item/CompassAnglePredicateProvider;getClientWorld(Lnet/minecraft/entity/Entity;Lnet/minecraft/client/world/ClientWorld;)Lnet/minecraft/client/world/ClientWorld;
-
canPointTo
- Mappings:
Namespace Name Mixin selector official a
Lfub;a(Lbfj;Lhd;)Z
intermediary method_43217
Lnet/minecraft/class_7391;method_43217(Lnet/minecraft/class_1297;Lnet/minecraft/class_4208;)Z
named canPointTo
Lnet/minecraft/client/item/CompassAnglePredicateProvider;canPointTo(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/GlobalPos;)Z
-
getAngleTo
- Mappings:
Namespace Name Mixin selector official a
Lfub;a(Lbfj;Lgu;)D
intermediary method_43216
Lnet/minecraft/class_7391;method_43216(Lnet/minecraft/class_1297;Lnet/minecraft/class_2338;)D
named getAngleTo
Lnet/minecraft/client/item/CompassAnglePredicateProvider;getAngleTo(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/BlockPos;)D
-
getBodyYaw
- Mappings:
Namespace Name Mixin selector official a
Lfub;a(Lbfj;)D
intermediary method_43213
Lnet/minecraft/class_7391;method_43213(Lnet/minecraft/class_1297;)D
named getBodyYaw
Lnet/minecraft/client/item/CompassAnglePredicateProvider;getBodyYaw(Lnet/minecraft/entity/Entity;)D
-
scatter
private int scatter(int seed) Scatters a seed by integer overflow in multiplication onto the whole int domain.- Mappings:
Namespace Name Mixin selector official a
Lfub;a(I)I
intermediary method_32800
Lnet/minecraft/class_7391;method_32800(I)I
named scatter
Lnet/minecraft/client/item/CompassAnglePredicateProvider;scatter(I)I
-