Interface InventoryViewBuilder<V extends InventoryView>

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

public interface InventoryViewBuilder<V extends InventoryView>
Generic Builder for InventoryView's with no special attributes or parameters
Since:
1.21.4
  • Method Summary

    Modifier and Type
    Method
    Description
    Builds this builder into a InventoryView
    Makes a copy of this builder
    title(@Nullable net.kyori.adventure.text.Component title)
    Sets the title of the builder
  • Method Details

    • copy

      Makes a copy of this builder
      Returns:
      a copy of this builder
      Since:
      1.21.4
    • title

      InventoryViewBuilder<V> title(@Nullable net.kyori.adventure.text.Component title)
      Sets the title of the builder
      Parameters:
      title - the title, or null for a default title
      Returns:
      this builder
      Since:
      1.21.4
    • build

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