History - net.minecraft.loot.function.EnchantRandomlyLootFunction

26.3-snapshot-3

Names

Fields

Constructors

Methods

EnchantRandomlyLootFunction$Builder (RegistryWrapper$WrapperLookup): randomApplicableEnchantment, method_489, builder

EnchantRandomlyLootFunction$Builder (RegistryEntryLookup<Enchantment>): randomApplicableEnchantment, method_489, builder

26.3-snapshot-2

Names

Fields

Constructors

Methods

26.3-snapshot-1

Names

Fields

Constructors

Methods

26.2

Names

Fields

Constructors

Methods

26.1.2

Names

Fields

Constructors

Methods

26.1.1

Names

Fields

Constructors

Methods

26.1

Names

Fields

com.mojang.serialization.MapCodec<EnchantRandomlyLootFunction>: CODEC, field_45823, CODEC

com.mojang.serialization.MapCodec<EnchantRandomlyLootFunction>: MAP_CODEC, field_45823, CODEC

boolean: includeAdditionalCostComponent, field_1_818, includeAdditionalCostComponent

Constructors

(List<LootCondition>, Optional<RegistryEntryList<Enchantment>>, boolean)

(List<LootCondition>, Optional<RegistryEntryList<Enchantment>>, boolean, boolean)

Methods

LootFunctionType<EnchantRandomlyLootFunction> (): getType, method_29321, getType

ItemStack (ItemStack, RegistryEntry<Enchantment>, Random): enchantItem, method_26266, addEnchantmentToStack

boolean (boolean, ItemStack, RegistryEntry): lambda$run$4, method_60291, method_60291

boolean (boolean, ItemStack, RegistryEntry): lambda$run$1, method_60291, method_60291

Stream (LootContext): lambda$run$3, method_60289, method_60289

Stream (LootContext): lambda$run$0, method_60289, method_60289

com.mojang.datafixers.kinds.App (com.mojang.serialization.codecs.RecordCodecBuilder$Instance): lambda$static$2, method_60292, method_60292

com.mojang.datafixers.kinds.App (com.mojang.serialization.codecs.RecordCodecBuilder$Instance): lambda$static$0, method_60292, method_60292

Boolean (EnchantRandomlyLootFunction): lambda$static$1, method_60290, method_60290

Boolean (EnchantRandomlyLootFunction): lambda$static$2, method_60290, method_60290

Optional (EnchantRandomlyLootFunction): lambda$static$0, method_53324, method_53324

Optional (EnchantRandomlyLootFunction): lambda$static$1, method_53324, method_53324

com.mojang.serialization.MapCodec<EnchantRandomlyLootFunction> (): codec, method_1_738, getCodec

Set<ContextParameter<?>> (): getReferencedContextParams, method_293, getAllowedParameters

ItemStack (ItemStack, RegistryEntry<Enchantment>, LootContext): enchantItem, method_1_760, enchant

Boolean (EnchantRandomlyLootFunction): lambda$static$3, method_1_761, method_1_761

1.21.11_unobfuscated

Names

net.minecraft.world.level.storage.loot.functions.EnchantRandomlyFunction

net.minecraft.class_109

net.minecraft.loot.function.EnchantRandomlyLootFunction

Fields

org.slf4j.Logger: LOGGER, field_1031, LOGGER

com.mojang.serialization.MapCodec<EnchantRandomlyLootFunction>: CODEC, field_45823, CODEC

Optional<RegistryEntryList<Enchantment>>: options, field_51792, options

boolean: onlyCompatible, field_51793, onlyCompatible

Constructors

(List<LootCondition>, Optional<RegistryEntryList<Enchantment>>, boolean)

Methods

LootFunctionType<EnchantRandomlyLootFunction> (): getType, method_29321, getType

ItemStack (ItemStack, LootContext): run, method_522, process

ItemStack (ItemStack, RegistryEntry<Enchantment>, Random): enchantItem, method_26266, addEnchantmentToStack

EnchantRandomlyLootFunction$Builder (): randomEnchantment, method_35520, create

EnchantRandomlyLootFunction$Builder (RegistryWrapper$WrapperLookup): randomApplicableEnchantment, method_489, builder

boolean (boolean, ItemStack, RegistryEntry): lambda$run$4, method_60291, method_60291

Stream (LootContext): lambda$run$3, method_60289, method_60289

com.mojang.datafixers.kinds.App (com.mojang.serialization.codecs.RecordCodecBuilder$Instance): lambda$static$2, method_60292, method_60292

Boolean (EnchantRandomlyLootFunction): lambda$static$1, method_60290, method_60290

Optional (EnchantRandomlyLootFunction): lambda$static$0, method_53324, method_53324