Class LootContextType

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

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

    • required

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

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

    • LootContextType

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

    • isAllowed

      public boolean isAllowed(LootContextParameter<?> parameter)
      Mappings:
      Namespace Name Mixin selector
      named isAllowed Lnet/minecraft/loot/context/LootContextType;isAllowed(Lnet/minecraft/loot/context/LootContextParameter;)Z
      intermediary method_35553 Lnet/minecraft/class_176;method_35553(Lnet/minecraft/class_169;)Z
      official a Leul;a(Leuk;)Z
    • getRequired

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

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

      public String toString()
      Overrides:
      toString in class Object
    • validate

      public void validate(LootTableReporter lootTableReporter, LootContextAware parameterConsumer)
      Mappings:
      Namespace Name Mixin selector
      named validate Lnet/minecraft/loot/context/LootContextType;validate(Lnet/minecraft/loot/LootTableReporter;Lnet/minecraft/loot/context/LootContextAware;)V
      intermediary method_60298 Lnet/minecraft/class_176;method_60298(Lnet/minecraft/class_58;Lnet/minecraft/class_46;)V
      official a Leul;a(Lerx;Lers;)V
    • validate

      public void validate(ErrorReporter errorReporter, LootContextAware parameterConsumer)
      Mappings:
      Namespace Name Mixin selector
      named validate Lnet/minecraft/loot/context/LootContextType;validate(Lnet/minecraft/util/ErrorReporter;Lnet/minecraft/loot/context/LootContextAware;)V
      intermediary method_776 Lnet/minecraft/class_176;method_776(Lnet/minecraft/class_8942;Lnet/minecraft/class_46;)V
      official a Leul;a(Layu;Lers;)V
    • create

      public static LootContextType.Builder create()
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/loot/context/LootContextType;create()Lnet/minecraft/loot/context/LootContextType$Builder;
      intermediary method_35554 Lnet/minecraft/class_176;method_35554()Lnet/minecraft/class_176$class_177;
      official c Leul;c()Leul$a;