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 named net/minecraft/loot/function/ReferenceLootFunction
intermediary net/minecraft/class_8492
official err
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.loot.function.ConditionalLootFunction
ConditionalLootFunction.Builder<T extends ConditionalLootFunction.Builder<T>>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<ReferenceLootFunction> private static final Logger
private final RegistryKey
<LootFunction> Fields inherited from class net.minecraft.loot.function.ConditionalLootFunction
conditions
-
Constructor Summary
ModifierConstructorDescriptionprivate
ReferenceLootFunction
(List<LootCondition> conditions, RegistryKey<LootFunction> name) -
Method Summary
Modifier and TypeMethodDescriptionstatic ConditionalLootFunction.Builder
<?> builder
(RegistryKey<LootFunction> name) getType()
protected ItemStack
process
(ItemStack stack, LootContext context) void
validate
(LootTableReporter reporter) Methods inherited from class net.minecraft.loot.function.ConditionalLootFunction
addConditionsField, apply, builder
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/ReferenceLootFunction;LOGGER:Lorg/slf4j/Logger;
intermediary field_44506
Lnet/minecraft/class_8492;field_44506:Lorg/slf4j/Logger;
official b
Lerr;b:Lorg/slf4j/Logger;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/loot/function/ReferenceLootFunction;CODEC:Lcom/mojang/serialization/MapCodec;
intermediary field_45828
Lnet/minecraft/class_8492;field_45828:Lcom/mojang/serialization/MapCodec;
official a
Lerr;a:Lcom/mojang/serialization/MapCodec;
-
name
- Mappings:
Namespace Name Mixin selector named name
Lnet/minecraft/loot/function/ReferenceLootFunction;name:Lnet/minecraft/registry/RegistryKey;
intermediary field_44507
Lnet/minecraft/class_8492;field_44507:Lnet/minecraft/class_5321;
official c
Lerr;c:Lale;
-
-
Constructor Details
-
ReferenceLootFunction
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/loot/function/ReferenceLootFunction;<init>(Ljava/util/List;Lnet/minecraft/registry/RegistryKey;)V
intermediary <init>
Lnet/minecraft/class_8492;<init>(Ljava/util/List;Lnet/minecraft/class_5321;)V
official <init>
Lerr;<init>(Ljava/util/List;Lale;)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
Lerw;b()Lerx;
-
validate
- Specified by:
validate
in interfaceLootContextAware
- Overrides:
validate
in classConditionalLootFunction
- 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
-
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
Lerv;a(Lcuq;Leqj;)Lcuq;
-
builder
- Mappings:
Namespace Name Mixin selector named builder
Lnet/minecraft/loot/function/ReferenceLootFunction;builder(Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/loot/function/ConditionalLootFunction$Builder;
intermediary method_51224
Lnet/minecraft/class_8492;method_51224(Lnet/minecraft/class_5321;)Lnet/minecraft/class_120$class_121;
official a
Lerr;a(Lale;)Lerv$a;
-