Package net.minecraft.loot.function
Class ConditionalLootFunction
java.lang.Object
net.minecraft.loot.function.ConditionalLootFunction
- All Implemented Interfaces:
BiFunction<ItemStack,
,LootContext, ItemStack> LootContextAware
,LootFunction
- Direct Known Subclasses:
ApplyBonusLootFunction
,CopyComponentsLootFunction
,CopyNameLootFunction
,CopyNbtLootFunction
,CopyStateLootFunction
,EnchantRandomlyLootFunction
,EnchantWithLevelsLootFunction
,ExplorationMapLootFunction
,ExplosionDecayLootFunction
,FillPlayerHeadLootFunction
,FilteredLootFunction
,FurnaceSmeltLootFunction
,LimitCountLootFunction
,LootingEnchantLootFunction
,ModifyContentsLootFunction
,ReferenceLootFunction
,SetAttributesLootFunction
,SetBannerPatternLootFunction
,SetBookCoverLootFunction
,SetComponentsLootFunction
,SetContentsLootFunction
,SetCountLootFunction
,SetCustomDataLootFunction
,SetCustomModelDataLootFunction
,SetDamageLootFunction
,SetEnchantmentsLootFunction
,SetFireworkExplosionLootFunction
,SetFireworksLootFunction
,SetInstrumentLootFunction
,SetItemLootFunction
,SetLootTableLootFunction
,SetLoreLootFunction
,SetNameLootFunction
,SetOminousBottleAmplifierLootFunction
,SetPotionLootFunction
,SetStewEffectLootFunction
,SetWritableBookPagesLootFunction
,SetWrittenBookPagesLootFunction
,ToggleTooltipsLootFunction
- Mappings:
Namespace Name named net/minecraft/loot/function/ConditionalLootFunction
intermediary net/minecraft/class_120
official erv
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
private static final class
-
Field Summary
Modifier and TypeFieldDescriptionprotected final List
<LootCondition> private final Predicate
<LootContext> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static <T extends ConditionalLootFunction>
com.mojang.datafixers.Products.P1<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<T>, List<LootCondition>> addConditionsField
(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<T> instance) final ItemStack
apply
(ItemStack itemStack, LootContext lootContext) protected static ConditionalLootFunction.Builder
<?> builder
(Function<List<LootCondition>, LootFunction> joiner) abstract LootFunctionType
<? extends ConditionalLootFunction> getType()
protected abstract ItemStack
process
(ItemStack stack, LootContext context) void
validate
(LootTableReporter reporter) 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
-
conditions
- Mappings:
Namespace Name Mixin selector named conditions
Lnet/minecraft/loot/function/ConditionalLootFunction;conditions:Ljava/util/List;
intermediary field_1047
Lnet/minecraft/class_120;field_1047:Ljava/util/List;
official g
Lerv;g:Ljava/util/List;
-
predicate
- Mappings:
Namespace Name Mixin selector named predicate
Lnet/minecraft/loot/function/ConditionalLootFunction;predicate:Ljava/util/function/Predicate;
intermediary field_1048
Lnet/minecraft/class_120;field_1048:Ljava/util/function/Predicate;
official a
Lerv;a:Ljava/util/function/Predicate;
-
-
Constructor Details
-
ConditionalLootFunction
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/loot/function/ConditionalLootFunction;<init>(Ljava/util/List;)V
intermediary <init>
Lnet/minecraft/class_120;<init>(Ljava/util/List;)V
official <init>
Lerv;<init>(Ljava/util/List;)V
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceLootFunction
- 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
Lerw;b()Lerx;
-
addConditionsField
protected static <T extends ConditionalLootFunction> com.mojang.datafixers.Products.P1<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<T>,List<LootCondition>> addConditionsField(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<T> instance) - Mappings:
Namespace Name Mixin selector named addConditionsField
Lnet/minecraft/loot/function/ConditionalLootFunction;addConditionsField(Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/Products$P1;
intermediary method_53344
Lnet/minecraft/class_120;method_53344(Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/Products$P1;
official a
Lerv;a(Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/Products$P1;
-
apply
- Specified by:
apply
in interfaceBiFunction<ItemStack,
LootContext, ItemStack> - Mappings:
Namespace Name Mixin selector named apply
Lnet/minecraft/loot/function/ConditionalLootFunction;apply(Lnet/minecraft/item/ItemStack;Lnet/minecraft/loot/context/LootContext;)Lnet/minecraft/item/ItemStack;
intermediary method_521
Lnet/minecraft/class_120;method_521(Lnet/minecraft/class_1799;Lnet/minecraft/class_47;)Lnet/minecraft/class_1799;
official b
Lerv;b(Lcuq;Leqj;)Lcuq;
-
process
- 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
Lerv;a(Lcuq;Leqj;)Lcuq;
-
validate
- Specified by:
validate
in interfaceLootContextAware
- Mappings:
Namespace Name Mixin selector named validate
Lnet/minecraft/loot/context/LootContextAware;validate(Lnet/minecraft/loot/LootTableReporter;)V
intermediary method_292
Lnet/minecraft/class_46;method_292(Lnet/minecraft/class_58;)V
official a
Leqk;a(Leqp;)V
-
builder
protected static ConditionalLootFunction.Builder<?> builder(Function<List<LootCondition>, LootFunction> joiner) - Mappings:
Namespace Name Mixin selector named builder
Lnet/minecraft/loot/function/ConditionalLootFunction;builder(Ljava/util/function/Function;)Lnet/minecraft/loot/function/ConditionalLootFunction$Builder;
intermediary method_520
Lnet/minecraft/class_120;method_520(Ljava/util/function/Function;)Lnet/minecraft/class_120$class_121;
official a
Lerv;a(Ljava/util/function/Function;)Lerv$a;
-