Package net.minecraft.loot.function
Class ReferenceLootFunction
java.lang.Object
net.minecraft.loot.function.ConditionalLootFunction
net.minecraft.loot.function.ReferenceLootFunction
- All Implemented Interfaces:
BiFunction<ItemStack,,LootContext, ItemStack> LootContextAware,LootFunction
- Mappings:
Namespace Name official edqintermediary net/minecraft/class_8492named net/minecraft/loot/function/ReferenceLootFunction
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.loot.function.ConditionalLootFunction
ConditionalLootFunction.Builder<T extends ConditionalLootFunction.Builder<T>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ReferenceLootFunction>private static final Loggerprivate final IdentifierFields inherited from class net.minecraft.loot.function.ConditionalLootFunction
conditions -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateReferenceLootFunction(List<LootCondition> list, Identifier name) -
Method Summary
Modifier and TypeMethodDescriptionstatic ConditionalLootFunction.Builder<?>builder(Identifier name) getType()protected ItemStackprocess(ItemStack stack, LootContext context) voidvalidate(LootTableReporter reporter) Methods inherited from class net.minecraft.loot.function.ConditionalLootFunction
apply, builder, method_53344Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiFunction
andThenMethods inherited from interface net.minecraft.loot.context.LootContextAware
getRequiredParameters
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official bLedq;b:Lorg/slf4j/Logger;intermediary field_44506Lnet/minecraft/class_8492;field_44506:Lorg/slf4j/Logger;named LOGGERLnet/minecraft/loot/function/ReferenceLootFunction;LOGGER:Lorg/slf4j/Logger;
-
field_45828
- Mappings:
Namespace Name Mixin selector official aLedq;a:Lcom/mojang/serialization/Codec;intermediary field_45828Lnet/minecraft/class_8492;field_45828:Lcom/mojang/serialization/Codec;named field_45828Lnet/minecraft/loot/function/ReferenceLootFunction;field_45828:Lcom/mojang/serialization/Codec;
-
name
- Mappings:
Namespace Name Mixin selector official cLedq;c:Laer;intermediary field_44507Lnet/minecraft/class_8492;field_44507:Lnet/minecraft/class_2960;named nameLnet/minecraft/loot/function/ReferenceLootFunction;name:Lnet/minecraft/util/Identifier;
-
-
Constructor Details
-
ReferenceLootFunction
- Mappings:
Namespace Name Mixin selector official <init>Ledq;<init>(Ljava/util/List;Laer;)Vintermediary <init>Lnet/minecraft/class_8492;<init>(Ljava/util/List;Lnet/minecraft/class_2960;)Vnamed <init>Lnet/minecraft/loot/function/ReferenceLootFunction;<init>(Ljava/util/List;Lnet/minecraft/util/Identifier;)V
-
-
Method Details
-
getType
- Mappings:
Namespace Name Mixin selector official bLedu;b()Ledv;intermediary method_29321Lnet/minecraft/class_117;method_29321()Lnet/minecraft/class_5339;named getTypeLnet/minecraft/loot/function/LootFunction;getType()Lnet/minecraft/loot/function/LootFunctionType;
-
validate
- Specified by:
validatein interfaceLootContextAware- Overrides:
validatein classConditionalLootFunction- Mappings:
Namespace Name Mixin selector official aLeci;a(Lecq;)Vintermediary method_292Lnet/minecraft/class_46;method_292(Lnet/minecraft/class_58;)Vnamed validateLnet/minecraft/loot/context/LootContextAware;validate(Lnet/minecraft/loot/LootTableReporter;)V
-
process
- Specified by:
processin classConditionalLootFunction- Mappings:
Namespace Name Mixin selector official aLedt;a(Lciy;Lech;)Lciy;intermediary method_522Lnet/minecraft/class_120;method_522(Lnet/minecraft/class_1799;Lnet/minecraft/class_47;)Lnet/minecraft/class_1799;named processLnet/minecraft/loot/function/ConditionalLootFunction;process(Lnet/minecraft/item/ItemStack;Lnet/minecraft/loot/context/LootContext;)Lnet/minecraft/item/ItemStack;
-
builder
- Mappings:
Namespace Name Mixin selector official aLedq;a(Laer;)Ledt$a;intermediary method_51224Lnet/minecraft/class_8492;method_51224(Lnet/minecraft/class_2960;)Lnet/minecraft/class_120$class_121;named builderLnet/minecraft/loot/function/ReferenceLootFunction;builder(Lnet/minecraft/util/Identifier;)Lnet/minecraft/loot/function/ConditionalLootFunction$Builder;
-