Class LootContextType

java.lang.Object
net.minecraft.loot.context.LootContextType

public class LootContextType
extends Object
Mappings:
Namespace Name
official dgm
intermediary net/minecraft/class_176
named net/minecraft/loot/context/LootContextType
  • Field Details

    • required

      private final Set<LootContextParameter<?>> required
      Mappings:
      Namespace Name Mixin selector
      official a Ldgm;a:Ljava/util/Set;
      intermediary field_1216 Lnet/minecraft/class_176;field_1216:Ljava/util/Set;
      named required Lnet/minecraft/loot/context/LootContextType;required:Ljava/util/Set;
    • allowed

      private final Set<LootContextParameter<?>> allowed
      Mappings:
      Namespace Name Mixin selector
      official b Ldgm;b:Ljava/util/Set;
      intermediary field_1215 Lnet/minecraft/class_176;field_1215:Ljava/util/Set;
      named allowed Lnet/minecraft/loot/context/LootContextType;allowed:Ljava/util/Set;
  • Constructor Details

    • LootContextType

      private LootContextType​(Set<LootContextParameter<?>> required, Set<LootContextParameter<?>> allowed)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldgm;<init>(Ljava/util/Set;Ljava/util/Set;)V
      intermediary <init> Lnet/minecraft/class_176;<init>(Ljava/util/Set;Ljava/util/Set;)V
      named <init> Lnet/minecraft/loot/context/LootContextType;<init>(Ljava/util/Set;Ljava/util/Set;)V
  • Method Details

    • getRequired

      public Set<LootContextParameter<?>> getRequired()
      Mappings:
      Namespace Name Mixin selector
      official a Ldgm;a()Ljava/util/Set;
      intermediary method_778 Lnet/minecraft/class_176;method_778()Ljava/util/Set;
      named getRequired Lnet/minecraft/loot/context/LootContextType;getRequired()Ljava/util/Set;
    • getAllowed

      public Set<LootContextParameter<?>> getAllowed()
      Mappings:
      Namespace Name Mixin selector
      official b Ldgm;b()Ljava/util/Set;
      intermediary method_777 Lnet/minecraft/class_176;method_777()Ljava/util/Set;
      named getAllowed Lnet/minecraft/loot/context/LootContextType;getAllowed()Ljava/util/Set;
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Mappings:
      Namespace Name Mixin selector
      official toString Ldgm;toString()Ljava/lang/String;
      intermediary toString Lnet/minecraft/class_176;toString()Ljava/lang/String;
      named toString Lnet/minecraft/loot/context/LootContextType;toString()Ljava/lang/String;
    • validate

      public void validate​(LootTableReporter reporter, LootContextAware parameterConsumer)
      Mappings:
      Namespace Name Mixin selector
      official a Ldgm;a(Ldeq;Ldej;)V
      intermediary method_776 Lnet/minecraft/class_176;method_776(Lnet/minecraft/class_58;Lnet/minecraft/class_46;)V
      named validate Lnet/minecraft/loot/context/LootContextType;validate(Lnet/minecraft/loot/LootTableReporter;Lnet/minecraft/loot/context/LootContextAware;)V