Interface EnchantmentProvider
- All Known Implementing Classes:
EnchantmentsByCost
,EnchantmentsByCostWithDifficulty
,SingleEnchantment
public interface EnchantmentProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<EnchantmentProvider> -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec
<? extends EnchantmentProvider> codec()
void
enchant
(ItemStack pStack, ItemEnchantments.Mutable pEnchantments, RandomSource pRandom, DifficultyInstance pDifficulty)
-
Field Details
-
DIRECT_CODEC
-
-
Method Details
-
enchant
void enchant(ItemStack pStack, ItemEnchantments.Mutable pEnchantments, RandomSource pRandom, DifficultyInstance pDifficulty) -
codec
com.mojang.serialization.MapCodec<? extends EnchantmentProvider> codec()
-