Class ContextLootNbtProvider

java.lang.Object
net.minecraft.loot.provider.nbt.ContextLootNbtProvider
All Implemented Interfaces:
LootNbtProvider

public class ContextLootNbtProvider extends Object implements LootNbtProvider
Mappings:
Namespace Name
official ekh
intermediary net/minecraft/class_5646
named net/minecraft/loot/provider/nbt/ContextLootNbtProvider
  • Field Details

    • BLOCK_ENTITY_TARGET_NAME

      private static final String BLOCK_ENTITY_TARGET_NAME
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Lekh;d:Ljava/lang/String;
      intermediary field_31875 Lnet/minecraft/class_5646;field_31875:Ljava/lang/String;
      named BLOCK_ENTITY_TARGET_NAME Lnet/minecraft/loot/provider/nbt/ContextLootNbtProvider;BLOCK_ENTITY_TARGET_NAME:Ljava/lang/String;
    • BLOCK_ENTITY_TARGET

      private static final ContextLootNbtProvider.Target BLOCK_ENTITY_TARGET
      Mappings:
      Namespace Name Mixin selector
      official e Lekh;e:Lekh$a;
      intermediary field_27915 Lnet/minecraft/class_5646;field_27915:Lnet/minecraft/class_5646$class_5648;
      named BLOCK_ENTITY_TARGET Lnet/minecraft/loot/provider/nbt/ContextLootNbtProvider;BLOCK_ENTITY_TARGET:Lnet/minecraft/loot/provider/nbt/ContextLootNbtProvider$Target;
    • BLOCK_ENTITY

      public static final ContextLootNbtProvider BLOCK_ENTITY
      Mappings:
      Namespace Name Mixin selector
      official a Lekh;a:Lekh;
      intermediary field_27914 Lnet/minecraft/class_5646;field_27914:Lnet/minecraft/class_5646;
      named BLOCK_ENTITY Lnet/minecraft/loot/provider/nbt/ContextLootNbtProvider;BLOCK_ENTITY:Lnet/minecraft/loot/provider/nbt/ContextLootNbtProvider;
    • TARGET_CODEC

      private static final com.mojang.serialization.Codec<ContextLootNbtProvider.Target> TARGET_CODEC
      Mappings:
      Namespace Name Mixin selector
      official f Lekh;f:Lcom/mojang/serialization/Codec;
      intermediary field_45881 Lnet/minecraft/class_5646;field_45881:Lcom/mojang/serialization/Codec;
      named TARGET_CODEC Lnet/minecraft/loot/provider/nbt/ContextLootNbtProvider;TARGET_CODEC:Lcom/mojang/serialization/Codec;
    • CODEC

      public static final com.mojang.serialization.Codec<ContextLootNbtProvider> CODEC
      Mappings:
      Namespace Name Mixin selector
      official b Lekh;b:Lcom/mojang/serialization/Codec;
      intermediary field_45879 Lnet/minecraft/class_5646;field_45879:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/loot/provider/nbt/ContextLootNbtProvider;CODEC:Lcom/mojang/serialization/Codec;
    • INLINE_CODEC

      public static final com.mojang.serialization.Codec<ContextLootNbtProvider> INLINE_CODEC
      Mappings:
      Namespace Name Mixin selector
      official c Lekh;c:Lcom/mojang/serialization/Codec;
      intermediary field_45880 Lnet/minecraft/class_5646;field_45880:Lcom/mojang/serialization/Codec;
      named INLINE_CODEC Lnet/minecraft/loot/provider/nbt/ContextLootNbtProvider;INLINE_CODEC:Lcom/mojang/serialization/Codec;
    • target

      private final ContextLootNbtProvider.Target target
      Mappings:
      Namespace Name Mixin selector
      official g Lekh;g:Lekh$a;
      intermediary field_27916 Lnet/minecraft/class_5646;field_27916:Lnet/minecraft/class_5646$class_5648;
      named target Lnet/minecraft/loot/provider/nbt/ContextLootNbtProvider;target:Lnet/minecraft/loot/provider/nbt/ContextLootNbtProvider$Target;
  • Constructor Details

    • ContextLootNbtProvider

      private ContextLootNbtProvider(ContextLootNbtProvider.Target target)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lekh;<init>(Lekh$a;)V
      intermediary <init> Lnet/minecraft/class_5646;<init>(Lnet/minecraft/class_5646$class_5648;)V
      named <init> Lnet/minecraft/loot/provider/nbt/ContextLootNbtProvider;<init>(Lnet/minecraft/loot/provider/nbt/ContextLootNbtProvider$Target;)V
  • Method Details

    • getTarget

      private static ContextLootNbtProvider.Target getTarget(LootContext.EntityTarget entityTarget)
      Mappings:
      Namespace Name Mixin selector
      official b Lekh;b(Legw$b;)Lekh$a;
      intermediary method_32430 Lnet/minecraft/class_5646;method_32430(Lnet/minecraft/class_47$class_50;)Lnet/minecraft/class_5646$class_5648;
      named getTarget Lnet/minecraft/loot/provider/nbt/ContextLootNbtProvider;getTarget(Lnet/minecraft/loot/context/LootContext$EntityTarget;)Lnet/minecraft/loot/provider/nbt/ContextLootNbtProvider$Target;
    • getType

      public LootNbtProviderType getType()
      Specified by:
      getType in interface LootNbtProvider
      Mappings:
      Namespace Name Mixin selector
      official a Lekj;a()Leki;
      intermediary method_32439 Lnet/minecraft/class_5651;method_32439()Lnet/minecraft/class_5650;
      named getType Lnet/minecraft/loot/provider/nbt/LootNbtProvider;getType()Lnet/minecraft/loot/provider/nbt/LootNbtProviderType;
    • getNbt

      @Nullable public @Nullable NbtElement getNbt(LootContext context)
      Specified by:
      getNbt in interface LootNbtProvider
      Mappings:
      Namespace Name Mixin selector
      official a Lekj;a(Legw;)Ltk;
      intermediary method_32440 Lnet/minecraft/class_5651;method_32440(Lnet/minecraft/class_47;)Lnet/minecraft/class_2520;
      named getNbt Lnet/minecraft/loot/provider/nbt/LootNbtProvider;getNbt(Lnet/minecraft/loot/context/LootContext;)Lnet/minecraft/nbt/NbtElement;
    • getRequiredParameters

      public Set<LootContextParameter<?>> getRequiredParameters()
      Specified by:
      getRequiredParameters in interface LootNbtProvider
      Mappings:
      Namespace Name Mixin selector
      official b Lekj;b()Ljava/util/Set;
      intermediary method_32441 Lnet/minecraft/class_5651;method_32441()Ljava/util/Set;
      named getRequiredParameters Lnet/minecraft/loot/provider/nbt/LootNbtProvider;getRequiredParameters()Ljava/util/Set;
    • fromTarget

      public static LootNbtProvider fromTarget(LootContext.EntityTarget target)
      Mappings:
      Namespace Name Mixin selector
      official a Lekh;a(Legw$b;)Lekj;
      intermediary method_35568 Lnet/minecraft/class_5646;method_35568(Lnet/minecraft/class_47$class_50;)Lnet/minecraft/class_5651;
      named fromTarget Lnet/minecraft/loot/provider/nbt/ContextLootNbtProvider;fromTarget(Lnet/minecraft/loot/context/LootContext$EntityTarget;)Lnet/minecraft/loot/provider/nbt/LootNbtProvider;