Package net.minecraft.loot.function
Class CopyStateLootFunction
java.lang.Object
net.minecraft.loot.function.ConditionalLootFunction
net.minecraft.loot.function.CopyStateLootFunction
- All Implemented Interfaces:
BiFunction<ItemStack,
,LootContext, ItemStack> LootContextAware
,LootFunction
- Mappings:
Namespace Name named net/minecraft/loot/function/CopyStateLootFunction
intermediary net/minecraft/class_4488
official eri
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final RegistryEntry
<Block> static final com.mojang.serialization.MapCodec
<CopyStateLootFunction> Fields inherited from class net.minecraft.loot.function.ConditionalLootFunction
conditions
-
Constructor Summary
ModifierConstructorDescriptionprivate
CopyStateLootFunction
(List<LootCondition> conditions, RegistryEntry<Block> block, List<String> properties) (package private)
CopyStateLootFunction
(List<LootCondition> conditions, RegistryEntry<Block> block, Set<Property<?>> properties) -
Method Summary
Modifier and TypeMethodDescriptiongetType()
protected ItemStack
process
(ItemStack stack, LootContext context) Methods inherited from class net.minecraft.loot.function.ConditionalLootFunction
addConditionsField, apply, builder, validate
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
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/loot/function/CopyStateLootFunction;CODEC:Lcom/mojang/serialization/MapCodec;
intermediary field_45816
Lnet/minecraft/class_4488;field_45816:Lcom/mojang/serialization/MapCodec;
official a
Leri;a:Lcom/mojang/serialization/MapCodec;
-
block
- Mappings:
Namespace Name Mixin selector named block
Lnet/minecraft/loot/function/CopyStateLootFunction;block:Lnet/minecraft/registry/entry/RegistryEntry;
intermediary field_20449
Lnet/minecraft/class_4488;field_20449:Lnet/minecraft/class_6880;
official b
Leri;b:Lji;
-
properties
- Mappings:
Namespace Name Mixin selector named properties
Lnet/minecraft/loot/function/CopyStateLootFunction;properties:Ljava/util/Set;
intermediary field_20450
Lnet/minecraft/class_4488;field_20450:Ljava/util/Set;
official c
Leri;c:Ljava/util/Set;
-
-
Constructor Details
-
CopyStateLootFunction
CopyStateLootFunction(List<LootCondition> conditions, RegistryEntry<Block> block, Set<Property<?>> properties) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/loot/function/CopyStateLootFunction;<init>(Ljava/util/List;Lnet/minecraft/registry/entry/RegistryEntry;Ljava/util/Set;)V
intermediary <init>
Lnet/minecraft/class_4488;<init>(Ljava/util/List;Lnet/minecraft/class_6880;Ljava/util/Set;)V
official <init>
Leri;<init>(Ljava/util/List;Lji;Ljava/util/Set;)V
-
CopyStateLootFunction
private CopyStateLootFunction(List<LootCondition> conditions, RegistryEntry<Block> block, List<String> properties) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/loot/function/CopyStateLootFunction;<init>(Ljava/util/List;Lnet/minecraft/registry/entry/RegistryEntry;Ljava/util/List;)V
intermediary <init>
Lnet/minecraft/class_4488;<init>(Ljava/util/List;Lnet/minecraft/class_6880;Ljava/util/List;)V
official <init>
Leri;<init>(Ljava/util/List;Lji;Ljava/util/List;)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;
-
getRequiredParameters
- Mappings:
Namespace Name Mixin selector named getRequiredParameters
Lnet/minecraft/loot/context/LootContextAware;getRequiredParameters()Ljava/util/Set;
intermediary method_293
Lnet/minecraft/class_46;method_293()Ljava/util/Set;
official a
Leqk;a()Ljava/util/Set;
-
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/CopyStateLootFunction;builder(Lnet/minecraft/block/Block;)Lnet/minecraft/loot/function/CopyStateLootFunction$Builder;
intermediary method_21892
Lnet/minecraft/class_4488;method_21892(Lnet/minecraft/class_2248;)Lnet/minecraft/class_4488$class_4489;
official a
Leri;a(Ldfa;)Leri$a;
-