Package net.minecraft.loot.function
Class EnchantRandomlyLootFunction
java.lang.Object
net.minecraft.loot.function.ConditionalLootFunction
net.minecraft.loot.function.EnchantRandomlyLootFunction
- All Implemented Interfaces:
BiFunction<ItemStack,
,LootContext, ItemStack> LootContextAware
,LootFunction
- Mappings:
Namespace Name named net/minecraft/loot/function/EnchantRandomlyLootFunction
intermediary net/minecraft/class_109
official eso
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<EnchantRandomlyLootFunction> private static final Logger
private final boolean
private final Optional
<RegistryEntryList<Enchantment>> Fields inherited from class net.minecraft.loot.function.ConditionalLootFunction
conditions
-
Constructor Summary
ConstructorDescriptionEnchantRandomlyLootFunction
(List<LootCondition> conditions, Optional<RegistryEntryList<Enchantment>> options, boolean onlyCompatible) -
Method Summary
Modifier and TypeMethodDescriptionprivate static ItemStack
addEnchantmentToStack
(ItemStack stack, RegistryEntry<Enchantment> enchantment, Random random) builder
(RegistryWrapper.WrapperLookup registryLookup) create()
getType()
process
(ItemStack stack, LootContext context) Methods inherited from class net.minecraft.loot.function.ConditionalLootFunction
addConditionsField, apply, builder, validate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.function.BiFunction
andThen
Methods inherited from interface net.minecraft.loot.context.LootContextAware
getRequiredParameters
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/loot/function/EnchantRandomlyLootFunction;LOGGER:Lorg/slf4j/Logger;
intermediary field_1031
Lnet/minecraft/class_109;field_1031:Lorg/slf4j/Logger;
official b
Leso;b:Lorg/slf4j/Logger;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/loot/function/EnchantRandomlyLootFunction;CODEC:Lcom/mojang/serialization/MapCodec;
intermediary field_45823
Lnet/minecraft/class_109;field_45823:Lcom/mojang/serialization/MapCodec;
official a
Leso;a:Lcom/mojang/serialization/MapCodec;
-
options
- Mappings:
Namespace Name Mixin selector named options
Lnet/minecraft/loot/function/EnchantRandomlyLootFunction;options:Ljava/util/Optional;
intermediary field_51792
Lnet/minecraft/class_109;field_51792:Ljava/util/Optional;
official c
Leso;c:Ljava/util/Optional;
-
onlyCompatible
private final boolean onlyCompatible- Mappings:
Namespace Name Mixin selector named onlyCompatible
Lnet/minecraft/loot/function/EnchantRandomlyLootFunction;onlyCompatible:Z
intermediary field_51793
Lnet/minecraft/class_109;field_51793:Z
official d
Leso;d:Z
-
-
Constructor Details
-
EnchantRandomlyLootFunction
EnchantRandomlyLootFunction(List<LootCondition> conditions, Optional<RegistryEntryList<Enchantment>> options, boolean onlyCompatible) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/loot/function/EnchantRandomlyLootFunction;<init>(Ljava/util/List;Ljava/util/Optional;Z)V
intermediary <init>
Lnet/minecraft/class_109;<init>(Ljava/util/List;Ljava/util/Optional;Z)V
official <init>
Leso;<init>(Ljava/util/List;Ljava/util/Optional;Z)V
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceLootFunction
- Specified by:
getType
in classConditionalLootFunction
- Mappings:
Namespace Name Mixin selector named getType
Lnet/minecraft/loot/function/LootFunction;getType()Lnet/minecraft/loot/function/LootFunctionType;
intermediary method_29321
Lnet/minecraft/class_117;method_29321()Lnet/minecraft/class_5339;
official b
Lesz;b()Leta;
-
process
- Specified by:
process
in classConditionalLootFunction
- Mappings:
Namespace Name Mixin selector named process
Lnet/minecraft/loot/function/ConditionalLootFunction;process(Lnet/minecraft/item/ItemStack;Lnet/minecraft/loot/context/LootContext;)Lnet/minecraft/item/ItemStack;
intermediary method_522
Lnet/minecraft/class_120;method_522(Lnet/minecraft/class_1799;Lnet/minecraft/class_47;)Lnet/minecraft/class_1799;
official a
Lesy;a(Lcuo;Lerl;)Lcuo;
-
addEnchantmentToStack
private static ItemStack addEnchantmentToStack(ItemStack stack, RegistryEntry<Enchantment> enchantment, Random random) - Mappings:
Namespace Name Mixin selector named addEnchantmentToStack
Lnet/minecraft/loot/function/EnchantRandomlyLootFunction;addEnchantmentToStack(Lnet/minecraft/item/ItemStack;Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/util/math/random/Random;)Lnet/minecraft/item/ItemStack;
intermediary method_26266
Lnet/minecraft/class_109;method_26266(Lnet/minecraft/class_1799;Lnet/minecraft/class_6880;Lnet/minecraft/class_5819;)Lnet/minecraft/class_1799;
official a
Leso;a(Lcuo;Ljm;Layv;)Lcuo;
-
create
- Mappings:
Namespace Name Mixin selector named create
Lnet/minecraft/loot/function/EnchantRandomlyLootFunction;create()Lnet/minecraft/loot/function/EnchantRandomlyLootFunction$Builder;
intermediary method_35520
Lnet/minecraft/class_109;method_35520()Lnet/minecraft/class_109$class_4954;
official c
Leso;c()Leso$a;
-
builder
public static EnchantRandomlyLootFunction.Builder builder(RegistryWrapper.WrapperLookup registryLookup) - Mappings:
Namespace Name Mixin selector named builder
Lnet/minecraft/loot/function/EnchantRandomlyLootFunction;builder(Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Lnet/minecraft/loot/function/EnchantRandomlyLootFunction$Builder;
intermediary method_489
Lnet/minecraft/class_109;method_489(Lnet/minecraft/class_7225$class_7874;)Lnet/minecraft/class_109$class_4954;
official a
Leso;a(Ljo$a;)Leso$a;
-