Class GUIItem
java.lang.Object
de.placeblock.betterinventories.content.GUISection
de.placeblock.betterinventories.content.item.GUIItem
- All Implemented Interfaces:
Sizeable
- Direct Known Subclasses:
GUIButton
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Vector2dThe Size of every GUIItemprotected org.bukkit.inventory.ItemStackThe ItemStack to be renderedFields inherited from class de.placeblock.betterinventories.content.GUISection
maxSize, minSize -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSectionAt(int slot) Returns the GUISection at a specific slot.getSectionAt(Vector2d position) Returns the GUISection at a specific position.List<org.bukkit.inventory.ItemStack>render()Renders the GUIItem on a listMethods inherited from class de.placeblock.betterinventories.content.GUISection
getEmptyContentList, getHeight, getSlots, getWidth, setSize, slotToVector, vectorToSlotMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.placeblock.betterinventories.Sizeable
clampSize, getMaxSize, getMinSize, getSize
-
Field Details
-
BUTTON_SIZE
The Size of every GUIItem -
itemStack
protected org.bukkit.inventory.ItemStack itemStackThe ItemStack to be rendered
-
-
Constructor Details
-
GUIItem
Creates a new GUIItem- Parameters:
gui- The GUIitemStack- The ItemStack.ItemBuildermay help to create it.
-
-
Method Details
-
render
Renders the GUIItem on a list- Specified by:
renderin classGUISection- Returns:
- The List
-
getSectionAt
Returns the GUISection at a specific slot. For GUIItems it will always return the GUIItem itself.- Overrides:
getSectionAtin classGUISection- Parameters:
slot- The slot- Returns:
- The GUISection
-
getSectionAt
Returns the GUISection at a specific position. For GUIItems it will always return the GUIItem itself.- Specified by:
getSectionAtin classGUISection- Parameters:
position- The position- Returns:
- The GUISection
-