Class ToggleTooltipsLootFunction

java.lang.Object
net.minecraft.loot.function.ConditionalLootFunction
net.minecraft.loot.function.ToggleTooltipsLootFunction
All Implemented Interfaces:
BiFunction<ItemStack,LootContext,ItemStack>, LootContextAware, LootFunction

public class ToggleTooltipsLootFunction extends ConditionalLootFunction
Mappings:
Namespace Name
named net/minecraft/loot/function/ToggleTooltipsLootFunction
intermediary net/minecraft/class_9429
official eta
  • Field Details

    • TOGGLES

      private static final Map<DataComponentType<?>,ToggleTooltipsLootFunction.Toggle<?>> 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 Leta;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 Leta;c:Lcom/mojang/serialization/Codec;
    • CODEC

      public static final com.mojang.serialization.MapCodec<ToggleTooltipsLootFunction> 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 Leta;a:Lcom/mojang/serialization/MapCodec;
    • toggles

      private final Map<ToggleTooltipsLootFunction.Toggle<?>,Boolean> 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 Leta;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> Leta;<init>(Ljava/util/List;Ljava/util/Map;)V
  • Method Details

    • process

      protected ItemStack process(ItemStack stack, LootContext context)
      Specified by:
      process in class ConditionalLootFunction
      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 Lerw;a(Lcur;Leqk;)Lcur;
    • getType

      Specified by:
      getType in interface LootFunction
      Specified by:
      getType in class ConditionalLootFunction
      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 Lerx;b()Lery;