Class LootContextParameterSet

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

public class LootContextParameterSet extends Object
Mappings:
Namespace Name
named net/minecraft/loot/context/LootContextParameterSet
intermediary net/minecraft/class_8567
official eru
  • Field Details

    • world

      private final ServerWorld world
      Mappings:
      Namespace Name Mixin selector
      named world Lnet/minecraft/loot/context/LootContextParameterSet;world:Lnet/minecraft/server/world/ServerWorld;
      intermediary field_44883 Lnet/minecraft/class_8567;field_44883:Lnet/minecraft/class_3218;
      official a Leru;a:Laqu;
    • parameters

      private final Map<LootContextParameter<?>,Object> parameters
      Mappings:
      Namespace Name Mixin selector
      named parameters Lnet/minecraft/loot/context/LootContextParameterSet;parameters:Ljava/util/Map;
      intermediary field_44884 Lnet/minecraft/class_8567;field_44884:Ljava/util/Map;
      official b Leru;b:Ljava/util/Map;
    • dynamicDrops

      private final Map<Identifier,LootContextParameterSet.DynamicDrop> dynamicDrops
      Mappings:
      Namespace Name Mixin selector
      named dynamicDrops Lnet/minecraft/loot/context/LootContextParameterSet;dynamicDrops:Ljava/util/Map;
      intermediary field_44885 Lnet/minecraft/class_8567;field_44885:Ljava/util/Map;
      official c Leru;c:Ljava/util/Map;
    • luck

      private final float luck
      Mappings:
      Namespace Name Mixin selector
      named luck Lnet/minecraft/loot/context/LootContextParameterSet;luck:F
      intermediary field_44886 Lnet/minecraft/class_8567;field_44886:F
      official d Leru;d:F
  • Constructor Details

    • LootContextParameterSet

      public LootContextParameterSet(ServerWorld world, Map<LootContextParameter<?>,Object> parameters, Map<Identifier,LootContextParameterSet.DynamicDrop> dynamicDrops, float luck)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/loot/context/LootContextParameterSet;<init>(Lnet/minecraft/server/world/ServerWorld;Ljava/util/Map;Ljava/util/Map;F)V
      intermediary <init> Lnet/minecraft/class_8567;<init>(Lnet/minecraft/class_3218;Ljava/util/Map;Ljava/util/Map;F)V
      official <init> Leru;<init>(Laqu;Ljava/util/Map;Ljava/util/Map;F)V
  • Method Details

    • getWorld

      public ServerWorld getWorld()
      Mappings:
      Namespace Name Mixin selector
      named getWorld Lnet/minecraft/loot/context/LootContextParameterSet;getWorld()Lnet/minecraft/server/world/ServerWorld;
      intermediary method_51863 Lnet/minecraft/class_8567;method_51863()Lnet/minecraft/class_3218;
      official a Leru;a()Laqu;
    • contains

      public boolean contains(LootContextParameter<?> parameter)
      Mappings:
      Namespace Name Mixin selector
      named contains Lnet/minecraft/loot/context/LootContextParameterSet;contains(Lnet/minecraft/loot/context/LootContextParameter;)Z
      intermediary method_51865 Lnet/minecraft/class_8567;method_51865(Lnet/minecraft/class_169;)Z
      official a Leru;a(Leuk;)Z
    • get

      public <T> T get(LootContextParameter<T> parameter)
      Mappings:
      Namespace Name Mixin selector
      named get Lnet/minecraft/loot/context/LootContextParameterSet;get(Lnet/minecraft/loot/context/LootContextParameter;)Ljava/lang/Object;
      intermediary method_51867 Lnet/minecraft/class_8567;method_51867(Lnet/minecraft/class_169;)Ljava/lang/Object;
      official b Leru;b(Leuk;)Ljava/lang/Object;
    • method_51868

      @Nullable public <T> T method_51868(LootContextParameter<T> parameter)
      Mappings:
      Namespace Name Mixin selector
      named method_51868 Lnet/minecraft/loot/context/LootContextParameterSet;method_51868(Lnet/minecraft/loot/context/LootContextParameter;)Ljava/lang/Object;
      intermediary method_51868 Lnet/minecraft/class_8567;method_51868(Lnet/minecraft/class_169;)Ljava/lang/Object;
      official c Leru;c(Leuk;)Ljava/lang/Object;
    • getOptional

      @Nullable public <T> T getOptional(LootContextParameter<T> parameter)
      Mappings:
      Namespace Name Mixin selector
      named getOptional Lnet/minecraft/loot/context/LootContextParameterSet;getOptional(Lnet/minecraft/loot/context/LootContextParameter;)Ljava/lang/Object;
      intermediary method_51869 Lnet/minecraft/class_8567;method_51869(Lnet/minecraft/class_169;)Ljava/lang/Object;
      official d Leru;d(Leuk;)Ljava/lang/Object;
    • addDynamicDrops

      public void addDynamicDrops(Identifier id, Consumer<ItemStack> lootConsumer)
      Mappings:
      Namespace Name Mixin selector
      named addDynamicDrops Lnet/minecraft/loot/context/LootContextParameterSet;addDynamicDrops(Lnet/minecraft/util/Identifier;Ljava/util/function/Consumer;)V
      intermediary method_51864 Lnet/minecraft/class_8567;method_51864(Lnet/minecraft/class_2960;Ljava/util/function/Consumer;)V
      official a Leru;a(Lakr;Ljava/util/function/Consumer;)V
    • getLuck

      public float getLuck()
      Mappings:
      Namespace Name Mixin selector
      named getLuck Lnet/minecraft/loot/context/LootContextParameterSet;getLuck()F
      intermediary method_51866 Lnet/minecraft/class_8567;method_51866()F
      official b Leru;b()F