Enum Class LootContext.BlockEntityReference

java.lang.Object
java.lang.Enum<LootContext.BlockEntityReference>
net.minecraft.loot.context.LootContext.BlockEntityReference
All Implemented Interfaces:
Serializable, Comparable<LootContext.BlockEntityReference>, Constable, class_12283<BlockEntity>, class_12283.class_12286<BlockEntity>, StringIdentifiable
Enclosing class:
LootContext

public static enum LootContext.BlockEntityReference extends Enum<LootContext.BlockEntityReference> implements StringIdentifiable, class_12283.class_12286<BlockEntity>
Mappings:
Namespace Name
named net/minecraft/loot/context/LootContext$BlockEntityReference
intermediary net/minecraft/class_47$class_9319
official fmm$a
  • Enum Constant Details

    • BLOCK_ENTITY

      public static final LootContext.BlockEntityReference BLOCK_ENTITY
      Mappings:
      Namespace Name Mixin selector
      named BLOCK_ENTITY Lnet/minecraft/loot/context/LootContext$BlockEntityReference;BLOCK_ENTITY:Lnet/minecraft/loot/context/LootContext$BlockEntityReference;
      intermediary field_49436 Lnet/minecraft/class_47$class_9319;field_49436:Lnet/minecraft/class_47$class_9319;
      official a Lfmm$a;a:Lfmm$a;
  • Field Details

    • id

      private final String id
      Mappings:
      Namespace Name Mixin selector
      named id Lnet/minecraft/loot/context/LootContext$BlockEntityReference;id:Ljava/lang/String;
      intermediary field_49438 Lnet/minecraft/class_47$class_9319;field_49438:Ljava/lang/String;
      official b Lfmm$a;b:Ljava/lang/String;
    • parameter

      private final ContextParameter<? extends BlockEntity> parameter
      Mappings:
      Namespace Name Mixin selector
      named parameter Lnet/minecraft/loot/context/LootContext$BlockEntityReference;parameter:Lnet/minecraft/util/context/ContextParameter;
      intermediary field_63053 Lnet/minecraft/class_47$class_9319;field_63053:Lnet/minecraft/class_169;
      official c Lfmm$a;c:Lbho;
  • Constructor Details

    • BlockEntityReference

      private BlockEntityReference(String id, ContextParameter<? extends BlockEntity> parameter)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/loot/context/LootContext$BlockEntityReference;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/util/context/ContextParameter;)V
      intermediary <init> Lnet/minecraft/class_47$class_9319;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/class_169;)V
      official <init> Lfmm$a;<init>(Ljava/lang/String;ILjava/lang/String;Lbho;)V
  • Method Details

    • values

      public static LootContext.BlockEntityReference[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static LootContext.BlockEntityReference valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • contextParam

      public ContextParameter<? extends BlockEntity> contextParam()
      Specified by:
      contextParam in interface class_12283<BlockEntity>
      Specified by:
      contextParam in interface class_12283.class_12286<BlockEntity>
      Mappings:
      Namespace Name Mixin selector
      named contextParam Lnet/minecraft/class_12283;contextParam()Lnet/minecraft/util/context/ContextParameter;
      intermediary comp_4920 Lnet/minecraft/class_12283;comp_4920()Lnet/minecraft/class_169;
      official a Lfmn;a()Lbho;
    • asString

      public String asString()
      Returns the unique string representation of the enum, used for serialization.
      Specified by:
      asString in interface StringIdentifiable
      Returns:
      the unique string representation of the enum, used for serialization
      Mappings:
      Namespace Name Mixin selector
      named asString Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
      intermediary method_15434 Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;
      official c Lbhb;c()Ljava/lang/String;