Class CopyStateLootFunction

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

public class CopyStateLootFunction extends ConditionalLootFunction
Mappings:
Namespace Name
named net/minecraft/loot/function/CopyStateLootFunction
intermediary net/minecraft/class_4488
official exn
  • Field Details

    • CODEC

      public static final com.mojang.serialization.MapCodec<CopyStateLootFunction> 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 Lexn;a:Lcom/mojang/serialization/MapCodec;
    • block

      private final RegistryEntry<Block> 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 Lexn;b:Ljq;
    • properties

      private final Set<Property<?>> 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 Lexn;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> Lexn;<init>(Ljava/util/List;Ljq;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> Lexn;<init>(Ljava/util/List;Ljq;Ljava/util/List;)V
  • Method Details

    • 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 Leyc;b()Leyd;
    • getAllowedParameters

      public Set<ContextParameter<?>> getAllowedParameters()
      Mappings:
      Namespace Name Mixin selector
      named getAllowedParameters Lnet/minecraft/loot/context/LootContextAware;getAllowedParameters()Ljava/util/Set;
      intermediary method_293 Lnet/minecraft/class_46;method_293()Ljava/util/Set;
      official a Lewp;a()Ljava/util/Set;
    • 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 Leyb;a(Lcxo;Lewo;)Lcxo;
    • builder

      public static CopyStateLootFunction.Builder builder(Block block)
      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 Lexn;a(Ldkl;)Lexn$a;