接口 LootFunction
-
- 所有超级接口:
BiFunction<ItemStack,LootContext,ItemStack>,LootContextAware
- 所有已知实现类:
ApplyBonusLootFunction,ConditionalLootFunction,CopyNameLootFunction,CopyNbtLootFunction,CopyStateFunction,EnchantRandomlyLootFunction,EnchantWithLevelsLootFunction,ExplorationMapLootFunction,ExplosionDecayLootFunction,FillPlayerHeadLootFunction,FurnaceSmeltLootFunction,LimitCountLootFunction,LootFunctionManager.AndFunction,LootingEnchantLootFunction,SetAttributesLootFunction,SetBannerPatternFunction,SetContentsLootFunction,SetCountLootFunction,SetDamageLootFunction,SetEnchantmentsLootFunction,SetLootTableLootFunction,SetLoreLootFunction,SetNameLootFunction,SetNbtLootFunction,SetStewEffectLootFunction
public interface LootFunction extends LootContextAware, BiFunction<ItemStack,LootContext,ItemStack>
- Mappings:
Namespace Name official djaintermediary net/minecraft/class_117named net/minecraft/loot/function/LootFunction
-
-
嵌套类概要
嵌套类 修饰符和类型 接口 说明 static interfaceLootFunction.Builder
-
方法概要
所有方法 静态方法 实例方法 抽象方法 修饰符和类型 方法 说明 static Consumer<ItemStack>apply(BiFunction<ItemStack,LootContext,ItemStack> itemApplier, Consumer<ItemStack> lootConsumer, LootContext context)LootFunctionTypegetType()-
从接口继承的方法 java.util.function.BiFunction
andThen, apply
-
从接口继承的方法 net.minecraft.loot.context.LootContextAware
getRequiredParameters, validate
-
-
-
-
方法详细资料
-
getType
LootFunctionType getType()
- Mappings:
Namespace Name Mixin selector official aLdja;a()Ldjb;intermediary method_29321Lnet/minecraft/class_117;method_29321()Lnet/minecraft/class_5339;named getTypeLnet/minecraft/loot/function/LootFunction;getType()Lnet/minecraft/loot/function/LootFunctionType;
-
apply
static Consumer<ItemStack> apply(BiFunction<ItemStack,LootContext,ItemStack> itemApplier, Consumer<ItemStack> lootConsumer, LootContext context)
- Mappings:
Namespace Name Mixin selector official aLdja;a(Ljava/util/function/BiFunction;Ljava/util/function/Consumer;Ldhp;)Ljava/util/function/Consumer;intermediary method_513Lnet/minecraft/class_117;method_513(Ljava/util/function/BiFunction;Ljava/util/function/Consumer;Lnet/minecraft/class_47;)Ljava/util/function/Consumer;named applyLnet/minecraft/loot/function/LootFunction;apply(Ljava/util/function/BiFunction;Ljava/util/function/Consumer;Lnet/minecraft/loot/context/LootContext;)Ljava/util/function/Consumer;
-
-