Class LootContext.Builder

java.lang.Object
org.bukkit.loot.LootContext.Builder
Enclosing class:
LootContext

public static class LootContext.Builder extends Object
Utility class to make building LootContext easier. The only required argument is Location with a valid (non-null) World.
  • Constructor Details

    • Builder

      public Builder(@NotNull Location location)
      Creates a new LootContext.Builder instance to facilitate easy creation of LootContexts.
      Parameters:
      location - the location the LootContext should use
  • Method Details