Package net.minecraft.enchantment
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 czt
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final record
static final record
static final record
static final record
static final record
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<EnchantmentLevelBasedValueType> static final com.mojang.serialization.Codec
<EnchantmentLevelBasedValueType> -
Method Summary
Modifier and TypeMethodDescriptionconstant
(float value) com.mojang.serialization.MapCodec
<? extends EnchantmentLevelBasedValueType> getCodec()
float
getValue
(int level) linear
(float base) linear
(float base, float perLevelAboveFirst) static com.mojang.serialization.MapCodec
<? extends EnchantmentLevelBasedValueType> registerAndGetDefault
(Registry<com.mojang.serialization.MapCodec<? extends EnchantmentLevelBasedValueType>> registry)
-
Field Details
-
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
Lczt;a:Lcom/mojang/serialization/Codec;
-
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
Lczt;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
Lczt;a(Ljw;)Lcom/mojang/serialization/MapCodec;
-
constant
- 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
Lczt;a(F)Lczt$b;
-
linear
- 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
Lczt;a(FF)Lczt$e;
-
linear
- 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
Lczt;b(F)Lczt$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
Lczt;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
Lczt;a()Lcom/mojang/serialization/MapCodec;
-