Class LootWorldContext

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

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

    • world

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

      private final ContextParameterMap parameters
      Mappings:
      Namespace Name Mixin selector
      named parameters Lnet/minecraft/loot/context/LootWorldContext;parameters:Lnet/minecraft/util/context/ContextParameterMap;
      intermediary field_44884 Lnet/minecraft/class_8567;field_44884:Lnet/minecraft/class_10352;
      official b Lewr;b:Lbbp;
    • dynamicDrops

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

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

    • LootWorldContext

      public LootWorldContext(ServerWorld world, ContextParameterMap parameters, Map<Identifier,LootWorldContext.DynamicDrop> dynamicDrops, float luck)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/loot/context/LootWorldContext;<init>(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/context/ContextParameterMap;Ljava/util/Map;F)V
      intermediary <init> Lnet/minecraft/class_8567;<init>(Lnet/minecraft/class_3218;Lnet/minecraft/class_10352;Ljava/util/Map;F)V
      official <init> Lewr;<init>(Lash;Lbbp;Ljava/util/Map;F)V
  • Method Details

    • getWorld

      public ServerWorld getWorld()
      Mappings:
      Namespace Name Mixin selector
      named getWorld Lnet/minecraft/loot/context/LootWorldContext;getWorld()Lnet/minecraft/server/world/ServerWorld;
      intermediary method_51863 Lnet/minecraft/class_8567;method_51863()Lnet/minecraft/class_3218;
      official a Lewr;a()Lash;
    • getParameters

      public ContextParameterMap getParameters()
      Mappings:
      Namespace Name Mixin selector
      named getParameters Lnet/minecraft/loot/context/LootWorldContext;getParameters()Lnet/minecraft/util/context/ContextParameterMap;
      intermediary method_65014 Lnet/minecraft/class_8567;method_65014()Lnet/minecraft/class_10352;
      official b Lewr;b()Lbbp;
    • addDynamicDrops

      public void addDynamicDrops(Identifier id, Consumer<ItemStack> lootConsumer)
      Mappings:
      Namespace Name Mixin selector
      named addDynamicDrops Lnet/minecraft/loot/context/LootWorldContext;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 Lewr;a(Lalz;Ljava/util/function/Consumer;)V
    • getLuck

      public float getLuck()
      Mappings:
      Namespace Name Mixin selector
      named getLuck Lnet/minecraft/loot/context/LootWorldContext;getLuck()F
      intermediary method_51866 Lnet/minecraft/class_8567;method_51866()F
      official c Lewr;c()F