Class LootWorldContext.Builder

java.lang.Object
net.minecraft.loot.context.LootWorldContext.Builder
Enclosing class:
LootWorldContext

public static class LootWorldContext.Builder extends Object
Mappings:
Namespace Name
named net/minecraft/loot/context/LootWorldContext$Builder
intermediary net/minecraft/class_8567$class_8568
official ewr$a
  • Field Details

    • world

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

      private final ContextParameterMap.Builder parameters
      Mappings:
      Namespace Name Mixin selector
      named parameters Lnet/minecraft/loot/context/LootWorldContext$Builder;parameters:Lnet/minecraft/util/context/ContextParameterMap$Builder;
      intermediary field_44888 Lnet/minecraft/class_8567$class_8568;field_44888:Lnet/minecraft/class_10352$class_10353;
      official b Lewr$a;b:Lbbp$a;
    • dynamicDrops

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

      private float luck
      Mappings:
      Namespace Name Mixin selector
      named luck Lnet/minecraft/loot/context/LootWorldContext$Builder;luck:F
      intermediary field_44890 Lnet/minecraft/class_8567$class_8568;field_44890:F
      official d Lewr$a;d:F
  • Constructor Details

    • Builder

      public Builder(ServerWorld world)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/loot/context/LootWorldContext$Builder;<init>(Lnet/minecraft/server/world/ServerWorld;)V
      intermediary <init> Lnet/minecraft/class_8567$class_8568;<init>(Lnet/minecraft/class_3218;)V
      official <init> Lewr$a;<init>(Lash;)V
  • Method Details

    • getWorld

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

      public <T> LootWorldContext.Builder add(ContextParameter<T> parameter, T value)
      Mappings:
      Namespace Name Mixin selector
      named add Lnet/minecraft/loot/context/LootWorldContext$Builder;add(Lnet/minecraft/util/context/ContextParameter;Ljava/lang/Object;)Lnet/minecraft/loot/context/LootWorldContext$Builder;
      intermediary method_51874 Lnet/minecraft/class_8567$class_8568;method_51874(Lnet/minecraft/class_169;Ljava/lang/Object;)Lnet/minecraft/class_8567$class_8568;
      official a Lewr$a;a(Lbbn;Ljava/lang/Object;)Lewr$a;
    • addOptional

      public <T> LootWorldContext.Builder addOptional(ContextParameter<T> parameter, @Nullable T value)
      Mappings:
      Namespace Name Mixin selector
      named addOptional Lnet/minecraft/loot/context/LootWorldContext$Builder;addOptional(Lnet/minecraft/util/context/ContextParameter;Ljava/lang/Object;)Lnet/minecraft/loot/context/LootWorldContext$Builder;
      intermediary method_51877 Lnet/minecraft/class_8567$class_8568;method_51877(Lnet/minecraft/class_169;Ljava/lang/Object;)Lnet/minecraft/class_8567$class_8568;
      official b Lewr$a;b(Lbbn;Ljava/lang/Object;)Lewr$a;
    • get

      public <T> T get(ContextParameter<T> parameter)
      Mappings:
      Namespace Name Mixin selector
      named get Lnet/minecraft/loot/context/LootWorldContext$Builder;get(Lnet/minecraft/util/context/ContextParameter;)Ljava/lang/Object;
      intermediary method_51873 Lnet/minecraft/class_8567$class_8568;method_51873(Lnet/minecraft/class_169;)Ljava/lang/Object;
      official a Lewr$a;a(Lbbn;)Ljava/lang/Object;
    • getOptional

      @Nullable public <T> T getOptional(ContextParameter<T> parameter)
      Mappings:
      Namespace Name Mixin selector
      named getOptional Lnet/minecraft/loot/context/LootWorldContext$Builder;getOptional(Lnet/minecraft/util/context/ContextParameter;)Ljava/lang/Object;
      intermediary method_51876 Lnet/minecraft/class_8567$class_8568;method_51876(Lnet/minecraft/class_169;)Ljava/lang/Object;
      official b Lewr$a;b(Lbbn;)Ljava/lang/Object;
    • addDynamicDrop

      public LootWorldContext.Builder addDynamicDrop(Identifier id, LootWorldContext.DynamicDrop dynamicDrop)
      Mappings:
      Namespace Name Mixin selector
      named addDynamicDrop Lnet/minecraft/loot/context/LootWorldContext$Builder;addDynamicDrop(Lnet/minecraft/util/Identifier;Lnet/minecraft/loot/context/LootWorldContext$DynamicDrop;)Lnet/minecraft/loot/context/LootWorldContext$Builder;
      intermediary method_51872 Lnet/minecraft/class_8567$class_8568;method_51872(Lnet/minecraft/class_2960;Lnet/minecraft/class_8567$class_49;)Lnet/minecraft/class_8567$class_8568;
      official a Lewr$a;a(Lalz;Lewr$b;)Lewr$a;
    • luck

      public LootWorldContext.Builder luck(float luck)
      Mappings:
      Namespace Name Mixin selector
      named luck Lnet/minecraft/loot/context/LootWorldContext$Builder;luck(F)Lnet/minecraft/loot/context/LootWorldContext$Builder;
      intermediary method_51871 Lnet/minecraft/class_8567$class_8568;method_51871(F)Lnet/minecraft/class_8567$class_8568;
      official a Lewr$a;a(F)Lewr$a;
    • build

      public LootWorldContext build(ContextType contextType)
      Mappings:
      Namespace Name Mixin selector
      named build Lnet/minecraft/loot/context/LootWorldContext$Builder;build(Lnet/minecraft/util/context/ContextType;)Lnet/minecraft/loot/context/LootWorldContext;
      intermediary method_51875 Lnet/minecraft/class_8567$class_8568;method_51875(Lnet/minecraft/class_176;)Lnet/minecraft/class_8567;
      official a Lewr$a;a(Lbbo;)Lewr;