Package net.minecraft.loot.function
Class SetEnchantmentsLootFunction.Builder
java.lang.Object
net.minecraft.loot.function.ConditionalLootFunction.Builder<SetEnchantmentsLootFunction.Builder>
net.minecraft.loot.function.SetEnchantmentsLootFunction.Builder
- All Implemented Interfaces:
LootConditionConsumingBuilder<SetEnchantmentsLootFunction.Builder>,LootFunction.Builder
- Enclosing class:
SetEnchantmentsLootFunction
public static class SetEnchantmentsLootFunction.Builder
extends ConditionalLootFunction.Builder<SetEnchantmentsLootFunction.Builder>
- Mappings:
Namespace Name named net/minecraft/loot/function/SetEnchantmentsLootFunction$Builderintermediary net/minecraft/class_5642$class_6158official ets$a
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final ImmutableMap.Builder<RegistryEntry<Enchantment>, LootNumberProvider> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()enchantment(RegistryEntry<Enchantment> enchantment, LootNumberProvider level) protected SetEnchantmentsLootFunction.BuilderMethods inherited from class net.minecraft.loot.function.ConditionalLootFunction.Builder
conditionally, getConditions, getThisConditionConsumingBuilderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.loot.condition.LootConditionConsumingBuilder
conditionally
-
Field Details
-
enchantments
- Mappings:
Namespace Name Mixin selector named enchantmentsLnet/minecraft/loot/function/SetEnchantmentsLootFunction$Builder;enchantments:Lcom/google/common/collect/ImmutableMap$Builder;intermediary field_31864Lnet/minecraft/class_5642$class_6158;field_31864:Lcom/google/common/collect/ImmutableMap$Builder;official aLets$a;a:Lcom/google/common/collect/ImmutableMap$Builder;
-
add
private final boolean add- Mappings:
Namespace Name Mixin selector named addLnet/minecraft/loot/function/SetEnchantmentsLootFunction$Builder;add:Zintermediary field_31865Lnet/minecraft/class_5642$class_6158;field_31865:Zofficial bLets$a;b:Z
-
-
Constructor Details
-
Builder
public Builder() -
Builder
public Builder(boolean add) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/loot/function/SetEnchantmentsLootFunction$Builder;<init>(Z)Vintermediary <init>Lnet/minecraft/class_5642$class_6158;<init>(Z)Vofficial <init>Lets$a;<init>(Z)V
-
-
Method Details
-
getThisBuilder
- Specified by:
getThisBuilderin classConditionalLootFunction.Builder<SetEnchantmentsLootFunction.Builder>- Mappings:
Namespace Name Mixin selector named getThisBuilderLnet/minecraft/loot/function/SetEnchantmentsLootFunction$Builder;getThisBuilder()Lnet/minecraft/loot/function/SetEnchantmentsLootFunction$Builder;intermediary method_35538Lnet/minecraft/class_5642$class_6158;method_35538()Lnet/minecraft/class_5642$class_6158;official aLets$a;a()Lets$a;
-
enchantment
public SetEnchantmentsLootFunction.Builder enchantment(RegistryEntry<Enchantment> enchantment, LootNumberProvider level) - Mappings:
Namespace Name Mixin selector named enchantmentLnet/minecraft/loot/function/SetEnchantmentsLootFunction$Builder;enchantment(Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/loot/provider/number/LootNumberProvider;)Lnet/minecraft/loot/function/SetEnchantmentsLootFunction$Builder;intermediary method_35539Lnet/minecraft/class_5642$class_6158;method_35539(Lnet/minecraft/class_6880;Lnet/minecraft/class_5658;)Lnet/minecraft/class_5642$class_6158;official aLets$a;a(Ljm;Levy;)Lets$a;
-
build
- Mappings:
Namespace Name Mixin selector named buildLnet/minecraft/loot/function/LootFunction$Builder;build()Lnet/minecraft/loot/function/LootFunction;intermediary method_515Lnet/minecraft/class_117$class_118;method_515()Lnet/minecraft/class_117;official bLetf$a;b()Letf;
-