Package net.minecraft.enchantment
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
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final record
static final record
static final record
static final record
static final record
static final record
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<EnchantmentLevelBasedValue> static final com.mojang.serialization.Codec
<EnchantmentLevelBasedValue> -
Method Summary
Modifier and TypeMethodDescriptionconstant
(float value) com.mojang.serialization.MapCodec
<? extends EnchantmentLevelBasedValue> getCodec()
float
getValue
(int level) linear
(float base) linear
(float base, float perLevelAboveFirst) lookup
(List<Float> values, EnchantmentLevelBasedValue fallback) static com.mojang.serialization.MapCodec
<? extends EnchantmentLevelBasedValue> registerAndGetDefault
(Registry<com.mojang.serialization.MapCodec<? extends EnchantmentLevelBasedValue>> registry)
-
Field Details
-
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
- 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
- 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
- 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
- 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
static EnchantmentLevelBasedValue.Lookup lookup(List<Float> values, EnchantmentLevelBasedValue fallback) - 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;
-