Class GUIView

java.lang.Object
de.placeblock.betterinventories.gui.GUIView

public class GUIView extends Object
A GUIView is created for each player who opens an inventory.
  • Constructor Summary

    Constructors
    Constructor
    Description
    GUIView(org.bukkit.entity.Player player, org.bukkit.inventory.Inventory inventory)
    Creates a new GUIView
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    update(List<org.bukkit.inventory.ItemStack> content)
    Gets called when the new rendered content should be showed to the player.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GUIView

      public GUIView(org.bukkit.entity.Player player, org.bukkit.inventory.Inventory inventory)
      Creates a new GUIView
      Parameters:
      player - The Player of this View
      inventory - The Bukkit Inventory of this View
  • Method Details

    • update

      public void update(List<org.bukkit.inventory.ItemStack> content)
      Gets called when the new rendered content should be showed to the player. Updates only changing items in the player's inventory.
      Parameters:
      content - The new rendered content. The size of the list should be equals the slots in the inventory.