Class 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 Detail

      • 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