Interface EnchantmentLevelBasedValueType

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

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

    • BASE_CODEC

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

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

    • registerAndGetDefault

      static com.mojang.serialization.MapCodec<? extends EnchantmentLevelBasedValueType> registerAndGetDefault(Registry<com.mojang.serialization.MapCodec<? extends EnchantmentLevelBasedValueType>> registry)
      Mappings:
      Namespace Name Mixin selector
      named registerAndGetDefault Lnet/minecraft/enchantment/EnchantmentLevelBasedValueType;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 Ldah;a(Ljz;)Lcom/mojang/serialization/MapCodec;
    • constant

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

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

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

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

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