Interface InventoryViewBuilder<V extends InventoryView>

Type Parameters:
V - the type of InventoryView created from this builder
All Known Subinterfaces:
LocationInventoryViewBuilder<V>, MerchantInventoryViewBuilder<V>

@Experimental public interface InventoryViewBuilder<V extends InventoryView>
Generic Builder for InventoryView's with no special attributes or parameters
  • Method Details

    • copy

      @NotNull InventoryViewBuilder<V> copy()
      Makes a copy of this builder
      Returns:
      a copy of this builder
    • title

      @NotNull InventoryViewBuilder<V> title(@NotNull String title)
      Sets the title of the builder
      Parameters:
      title - the title
      Returns:
      this builder
    • build

      @NotNull V build(@NotNull HumanEntity player)
      Builds this builder into a InventoryView
      Parameters:
      player - the player to assign to the view
      Returns:
      the created InventoryView