Interface EnchantmentLevelBasedValue

All Known Implementing Classes:
EnchantmentLevelBasedValue.Clamped, EnchantmentLevelBasedValue.Constant, EnchantmentLevelBasedValue.Fraction, EnchantmentLevelBasedValue.LevelsSquared, EnchantmentLevelBasedValue.Linear, EnchantmentLevelBasedValue.Lookup

public interface EnchantmentLevelBasedValue
Mappings:
Namespace Name
named net/minecraft/enchantment/EnchantmentLevelBasedValue
intermediary net/minecraft/class_9704
official daj
  • Field Details

    • BASE_CODEC

      static final com.mojang.serialization.Codec<EnchantmentLevelBasedValue> BASE_CODEC
      Mappings:
      Namespace Name Mixin selector
      named BASE_CODEC Lnet/minecraft/enchantment/EnchantmentLevelBasedValue;BASE_CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_51689 Lnet/minecraft/class_9704;field_51689:Lcom/mojang/serialization/Codec;
      official a Ldaj;a:Lcom/mojang/serialization/Codec;
    • CODEC

      static final com.mojang.serialization.Codec<EnchantmentLevelBasedValue> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/enchantment/EnchantmentLevelBasedValue;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_51690 Lnet/minecraft/class_9704;field_51690:Lcom/mojang/serialization/Codec;
      official b Ldaj;b:Lcom/mojang/serialization/Codec;
  • Method Details

    • registerAndGetDefault

      static com.mojang.serialization.MapCodec<? extends EnchantmentLevelBasedValue> registerAndGetDefault(Registry<com.mojang.serialization.MapCodec<? extends EnchantmentLevelBasedValue>> registry)
      Mappings:
      Namespace Name Mixin selector
      named registerAndGetDefault Lnet/minecraft/enchantment/EnchantmentLevelBasedValue;registerAndGetDefault(Lnet/minecraft/registry/Registry;)Lcom/mojang/serialization/MapCodec;
      intermediary method_60193 Lnet/minecraft/class_9704;method_60193(Lnet/minecraft/class_2378;)Lcom/mojang/serialization/MapCodec;
      official a Ldaj;a(Ljz;)Lcom/mojang/serialization/MapCodec;
    • constant

      static EnchantmentLevelBasedValue.Constant constant(float value)
      Mappings:
      Namespace Name Mixin selector
      named constant Lnet/minecraft/enchantment/EnchantmentLevelBasedValue;constant(F)Lnet/minecraft/enchantment/EnchantmentLevelBasedValue$Constant;
      intermediary method_60186 Lnet/minecraft/class_9704;method_60186(F)Lnet/minecraft/class_9704$class_9706;
      official a Ldaj;a(F)Ldaj$b;
    • linear

      static EnchantmentLevelBasedValue.Linear linear(float base, float perLevelAboveFirst)
      Mappings:
      Namespace Name Mixin selector
      named linear Lnet/minecraft/enchantment/EnchantmentLevelBasedValue;linear(FF)Lnet/minecraft/enchantment/EnchantmentLevelBasedValue$Linear;
      intermediary method_60187 Lnet/minecraft/class_9704;method_60187(FF)Lnet/minecraft/class_9704$class_9709;
      official a Ldaj;a(FF)Ldaj$e;
    • linear

      static EnchantmentLevelBasedValue.Linear linear(float base)
      Mappings:
      Namespace Name Mixin selector
      named linear Lnet/minecraft/enchantment/EnchantmentLevelBasedValue;linear(F)Lnet/minecraft/enchantment/EnchantmentLevelBasedValue$Linear;
      intermediary method_60194 Lnet/minecraft/class_9704;method_60194(F)Lnet/minecraft/class_9704$class_9709;
      official b Ldaj;b(F)Ldaj$e;
    • lookup

      Mappings:
      Namespace Name Mixin selector
      named lookup Lnet/minecraft/enchantment/EnchantmentLevelBasedValue;lookup(Ljava/util/List;Lnet/minecraft/enchantment/EnchantmentLevelBasedValue;)Lnet/minecraft/enchantment/EnchantmentLevelBasedValue$Lookup;
      intermediary method_60987 Lnet/minecraft/class_9704;method_60987(Ljava/util/List;Lnet/minecraft/class_9704;)Lnet/minecraft/class_9704$class_9819;
      official a Ldaj;a(Ljava/util/List;Ldaj;)Ldaj$f;
    • getValue

      float getValue(int level)
      Mappings:
      Namespace Name Mixin selector
      named getValue Lnet/minecraft/enchantment/EnchantmentLevelBasedValue;getValue(I)F
      intermediary method_60188 Lnet/minecraft/class_9704;method_60188(I)F
      official a Ldaj;a(I)F
    • getCodec

      com.mojang.serialization.MapCodec<? extends EnchantmentLevelBasedValue> getCodec()
      Mappings:
      Namespace Name Mixin selector
      named getCodec Lnet/minecraft/enchantment/EnchantmentLevelBasedValue;getCodec()Lcom/mojang/serialization/MapCodec;
      intermediary method_60185 Lnet/minecraft/class_9704;method_60185()Lcom/mojang/serialization/MapCodec;
      official a Ldaj;a()Lcom/mojang/serialization/MapCodec;