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
,CopyNameLootFunction
,CopyNbtLootFunction
,CopyStateFunction
,EnchantRandomlyLootFunction
,EnchantWithLevelsLootFunction
,ExplorationMapLootFunction
,ExplosionDecayLootFunction
,FillPlayerHeadLootFunction
,FurnaceSmeltLootFunction
,LimitCountLootFunction
,LootingEnchantLootFunction
,ReferenceLootFunction
,SetAttributesLootFunction
,SetBannerPatternFunction
,SetContentsLootFunction
,SetCountLootFunction
,SetDamageLootFunction
,SetEnchantmentsLootFunction
,SetInstrumentLootFunction
,SetLootTableLootFunction
,SetLoreLootFunction
,SetNameLootFunction
,SetNbtLootFunction
,SetPotionLootFunction
,SetStewEffectLootFunction
- Mappings:
Namespace Name official eay
intermediary net/minecraft/class_120
named net/minecraft/loot/function/ConditionalLootFunction
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
private static final class
static class
-
Field Summary
Modifier and TypeFieldDescriptionprotected final LootCondition[]
private final Predicate<LootContext>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal ItemStack
apply
(ItemStack itemStack, LootContext lootContext) protected static ConditionalLootFunction.Builder<?>
builder
(Function<LootCondition[], LootFunction> joiner) 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
Methods inherited from interface net.minecraft.loot.function.LootFunction
getType
-
Field Details
-
conditions
- Mappings:
Namespace Name Mixin selector official g
Leay;g:[Leck;
intermediary field_1047
Lnet/minecraft/class_120;field_1047:[Lnet/minecraft/class_5341;
named conditions
Lnet/minecraft/loot/function/ConditionalLootFunction;conditions:[Lnet/minecraft/loot/condition/LootCondition;
-
predicate
- Mappings:
Namespace Name Mixin selector official a
Leay;a:Ljava/util/function/Predicate;
intermediary field_1048
Lnet/minecraft/class_120;field_1048:Ljava/util/function/Predicate;
named predicate
Lnet/minecraft/loot/function/ConditionalLootFunction;predicate:Ljava/util/function/Predicate;
-
-
Constructor Details
-
ConditionalLootFunction
- Mappings:
Namespace Name Mixin selector official <init>
Leay;<init>([Leck;)V
intermediary <init>
Lnet/minecraft/class_120;<init>([Lnet/minecraft/class_5341;)V
named <init>
Lnet/minecraft/loot/function/ConditionalLootFunction;<init>([Lnet/minecraft/loot/condition/LootCondition;)V
-
-
Method Details
-
apply
- Specified by:
apply
in interfaceBiFunction<ItemStack,
LootContext, ItemStack> - Mappings:
Namespace Name Mixin selector official b
Leay;b(Lcfz;Ldzk;)Lcfz;
intermediary method_521
Lnet/minecraft/class_120;method_521(Lnet/minecraft/class_1799;Lnet/minecraft/class_47;)Lnet/minecraft/class_1799;
named apply
Lnet/minecraft/loot/function/ConditionalLootFunction;apply(Lnet/minecraft/item/ItemStack;Lnet/minecraft/loot/context/LootContext;)Lnet/minecraft/item/ItemStack;
-
process
- Mappings:
Namespace Name Mixin selector official a
Leay;a(Lcfz;Ldzk;)Lcfz;
intermediary method_522
Lnet/minecraft/class_120;method_522(Lnet/minecraft/class_1799;Lnet/minecraft/class_47;)Lnet/minecraft/class_1799;
named process
Lnet/minecraft/loot/function/ConditionalLootFunction;process(Lnet/minecraft/item/ItemStack;Lnet/minecraft/loot/context/LootContext;)Lnet/minecraft/item/ItemStack;
-
validate
- Specified by:
validate
in interfaceLootContextAware
- Mappings:
Namespace Name Mixin selector official a
Ldzl;a(Ldzv;)V
intermediary method_292
Lnet/minecraft/class_46;method_292(Lnet/minecraft/class_58;)V
named validate
Lnet/minecraft/loot/context/LootContextAware;validate(Lnet/minecraft/loot/LootTableReporter;)V
-
builder
protected static ConditionalLootFunction.Builder<?> builder(Function<LootCondition[], LootFunction> joiner) - Mappings:
Namespace Name Mixin selector official a
Leay;a(Ljava/util/function/Function;)Leay$a;
intermediary method_520
Lnet/minecraft/class_120;method_520(Ljava/util/function/Function;)Lnet/minecraft/class_120$class_121;
named builder
Lnet/minecraft/loot/function/ConditionalLootFunction;builder(Ljava/util/function/Function;)Lnet/minecraft/loot/function/ConditionalLootFunction$Builder;
-