Package net.minecraft.loot.function
Class SetBookCoverLootFunction
java.lang.Object
net.minecraft.loot.function.ConditionalLootFunction
net.minecraft.loot.function.SetBookCoverLootFunction
- All Implemented Interfaces:
BiFunction<ItemStack,
,LootContext, ItemStack> LootContextAware
,LootFunction
- Mappings:
Namespace Name named net/minecraft/loot/function/SetBookCoverLootFunction
intermediary net/minecraft/class_9374
official eyj
-
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
<SetBookCoverLootFunction> private final Optional
<RawFilteredPair<String>> Fields inherited from class net.minecraft.loot.function.ConditionalLootFunction
conditions
-
Constructor Summary
ConstructorDescriptionSetBookCoverLootFunction
(List<LootCondition> conditions, Optional<RawFilteredPair<String>> title, Optional<String> author, Optional<Integer> generation) -
Method Summary
Modifier and TypeMethodDescriptionprivate WrittenBookContentComponent
apply
(WrittenBookContentComponent current) getType()
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
Methods inherited from interface net.minecraft.loot.context.LootContextAware
getAllowedParameters
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/loot/function/SetBookCoverLootFunction;CODEC:Lcom/mojang/serialization/MapCodec;
intermediary field_49870
Lnet/minecraft/class_9374;field_49870:Lcom/mojang/serialization/MapCodec;
official a
Leyj;a:Lcom/mojang/serialization/MapCodec;
-
author
- Mappings:
Namespace Name Mixin selector named author
Lnet/minecraft/loot/function/SetBookCoverLootFunction;author:Ljava/util/Optional;
intermediary field_49871
Lnet/minecraft/class_9374;field_49871:Ljava/util/Optional;
official b
Leyj;b:Ljava/util/Optional;
-
title
- Mappings:
Namespace Name Mixin selector named title
Lnet/minecraft/loot/function/SetBookCoverLootFunction;title:Ljava/util/Optional;
intermediary field_49872
Lnet/minecraft/class_9374;field_49872:Ljava/util/Optional;
official c
Leyj;c:Ljava/util/Optional;
-
generation
- Mappings:
Namespace Name Mixin selector named generation
Lnet/minecraft/loot/function/SetBookCoverLootFunction;generation:Ljava/util/Optional;
intermediary field_49873
Lnet/minecraft/class_9374;field_49873:Ljava/util/Optional;
official d
Leyj;d:Ljava/util/Optional;
-
-
Constructor Details
-
SetBookCoverLootFunction
public SetBookCoverLootFunction(List<LootCondition> conditions, Optional<RawFilteredPair<String>> title, Optional<String> author, Optional<Integer> generation) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/loot/function/SetBookCoverLootFunction;<init>(Ljava/util/List;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V
intermediary <init>
Lnet/minecraft/class_9374;<init>(Ljava/util/List;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V
official <init>
Leyj;<init>(Ljava/util/List;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V
-
-
Method Details
-
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
Leyb;a(Lcxo;Lewo;)Lcxo;
-
apply
- Mappings:
Namespace Name Mixin selector named apply
Lnet/minecraft/loot/function/SetBookCoverLootFunction;apply(Lnet/minecraft/component/type/WrittenBookContentComponent;)Lnet/minecraft/component/type/WrittenBookContentComponent;
intermediary method_58200
Lnet/minecraft/class_9374;method_58200(Lnet/minecraft/class_9302;)Lnet/minecraft/class_9302;
official a
Leyj;a(Ldaw;)Ldaw;
-
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
Leyc;b()Leyd;
-