Class CompassProperty

java.lang.Object
net.minecraft.client.render.item.property.numeric.CompassProperty
All Implemented Interfaces:
NumericProperty

@Environment(CLIENT) public class CompassProperty extends Object implements NumericProperty
Mappings:
Namespace Name
named net/minecraft/client/render/item/property/numeric/CompassProperty
intermediary net/minecraft/class_10472
official hcl
  • Field Details Link icon

    • CODEC Link icon

      public static final com.mojang.serialization.MapCodec<CompassProperty> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/client/render/item/property/numeric/CompassProperty;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_55383 Lnet/minecraft/class_10472;field_55383:Lcom/mojang/serialization/MapCodec;
      official a Lhcl;a:Lcom/mojang/serialization/MapCodec;
    • state Link icon

      private final CompassState state
      Mappings:
      Namespace Name Mixin selector
      named state Lnet/minecraft/client/render/item/property/numeric/CompassProperty;state:Lnet/minecraft/client/render/item/property/numeric/CompassState;
      intermediary field_55384 Lnet/minecraft/class_10472;field_55384:Lnet/minecraft/class_10473;
      official b Lhcl;b:Lhcm;
  • Constructor Details Link icon

    • CompassProperty Link icon

      public CompassProperty(boolean wobble, CompassState.Target target)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/render/item/property/numeric/CompassProperty;<init>(ZLnet/minecraft/client/render/item/property/numeric/CompassState$Target;)V
      intermediary <init> Lnet/minecraft/class_10472;<init>(ZLnet/minecraft/class_10473$class_10474;)V
      official <init> Lhcl;<init>(ZLhcm$a;)V
    • CompassProperty Link icon

      private CompassProperty(CompassState state)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/render/item/property/numeric/CompassProperty;<init>(Lnet/minecraft/client/render/item/property/numeric/CompassState;)V
      intermediary <init> Lnet/minecraft/class_10472;<init>(Lnet/minecraft/class_10473;)V
      official <init> Lhcl;<init>(Lhcm;)V
  • Method Details Link icon

    • getValue Link icon

      public float getValue(ItemStack stack, @Nullable @Nullable ClientWorld world, @Nullable @Nullable LivingEntity holder, int seed)
      Specified by:
      getValue in interface NumericProperty
      Mappings:
      Namespace Name Mixin selector
      named getValue Lnet/minecraft/client/render/item/property/numeric/NumericProperty;getValue(Lnet/minecraft/item/ItemStack;Lnet/minecraft/client/world/ClientWorld;Lnet/minecraft/entity/LivingEntity;I)F
      intermediary method_65644 Lnet/minecraft/class_1800;method_65644(Lnet/minecraft/class_1799;Lnet/minecraft/class_638;Lnet/minecraft/class_1309;I)F
      official a Lhcu;a(Lcwq;Lgga;Lbvi;I)F
    • getCodec Link icon

      public com.mojang.serialization.MapCodec<CompassProperty> getCodec()
      Specified by:
      getCodec in interface NumericProperty
      Mappings:
      Namespace Name Mixin selector
      named getCodec Lnet/minecraft/client/render/item/property/numeric/NumericProperty;getCodec()Lcom/mojang/serialization/MapCodec;
      intermediary method_65643 Lnet/minecraft/class_1800;method_65643()Lcom/mojang/serialization/MapCodec;
      official a Lhcu;a()Lcom/mojang/serialization/MapCodec;