Package net.minecraft.loot.function
Class ToggleTooltipsLootFunction
java.lang.Object
net.minecraft.loot.function.ConditionalLootFunction
net.minecraft.loot.function.ToggleTooltipsLootFunction
- All Implemented Interfaces:
BiFunction<ItemStack,
,LootContext, ItemStack> LootContextAware
,LootFunction
- Mappings:
Namespace Name named net/minecraft/loot/function/ToggleTooltipsLootFunction
intermediary net/minecraft/class_9429
official esz
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static final record
private static interface
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
<ToggleTooltipsLootFunction> private static final com.mojang.serialization.Codec
<ToggleTooltipsLootFunction.Toggle<?>> private final Map
<ToggleTooltipsLootFunction.Toggle<?>, Boolean> private static final Map
<DataComponentType<?>, ToggleTooltipsLootFunction.Toggle<?>> Fields inherited from class net.minecraft.loot.function.ConditionalLootFunction
conditions
-
Constructor Summary
ModifierConstructorDescriptionprivate
ToggleTooltipsLootFunction
(List<LootCondition> conditions, Map<ToggleTooltipsLootFunction.Toggle<?>, Boolean> toggles) -
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
Methods inherited from interface net.minecraft.loot.context.LootContextAware
getRequiredParameters
-
Field Details
-
TOGGLES
- Mappings:
Namespace Name Mixin selector named TOGGLES
Lnet/minecraft/loot/function/ToggleTooltipsLootFunction;TOGGLES:Ljava/util/Map;
intermediary field_50028
Lnet/minecraft/class_9429;field_50028:Ljava/util/Map;
official b
Lesz;b:Ljava/util/Map;
-
TOGGLE_CODEC
private static final com.mojang.serialization.Codec<ToggleTooltipsLootFunction.Toggle<?>> TOGGLE_CODEC- Mappings:
Namespace Name Mixin selector named TOGGLE_CODEC
Lnet/minecraft/loot/function/ToggleTooltipsLootFunction;TOGGLE_CODEC:Lcom/mojang/serialization/Codec;
intermediary field_50029
Lnet/minecraft/class_9429;field_50029:Lcom/mojang/serialization/Codec;
official c
Lesz;c:Lcom/mojang/serialization/Codec;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/loot/function/ToggleTooltipsLootFunction;CODEC:Lcom/mojang/serialization/MapCodec;
intermediary field_50027
Lnet/minecraft/class_9429;field_50027:Lcom/mojang/serialization/MapCodec;
official a
Lesz;a:Lcom/mojang/serialization/MapCodec;
-
toggles
- Mappings:
Namespace Name Mixin selector named toggles
Lnet/minecraft/loot/function/ToggleTooltipsLootFunction;toggles:Ljava/util/Map;
intermediary field_50030
Lnet/minecraft/class_9429;field_50030:Ljava/util/Map;
official d
Lesz;d:Ljava/util/Map;
-
-
Constructor Details
-
ToggleTooltipsLootFunction
private ToggleTooltipsLootFunction(List<LootCondition> conditions, Map<ToggleTooltipsLootFunction.Toggle<?>, Boolean> toggles) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/loot/function/ToggleTooltipsLootFunction;<init>(Ljava/util/List;Ljava/util/Map;)V
intermediary <init>
Lnet/minecraft/class_9429;<init>(Ljava/util/List;Ljava/util/Map;)V
official <init>
Lesz;<init>(Ljava/util/List;Ljava/util/Map;)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
Lerv;a(Lcuq;Leqj;)Lcuq;
-
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;
-