public class GuiItemInstance extends GuiInstance
GuiInstance
using a map item to display a 1x1 Layout and the
players gaze to control the cursor.GuiInstance.GuiType
interactions, lastCursorPosition, lastState, layout, renderTask, sendCount, showCursor, type
Constructor and Description |
---|
GuiItemInstance(Layout layout)
Instantiates a new GuiItemInstance.
|
GuiItemInstance(Layout layout,
Integer mapID)
Instantiates a new GuiItemInstance.
|
Modifier and Type | Method and Description |
---|---|
org.bukkit.inventory.ItemStack |
createItem()
Creates a map item for this instance.
|
void |
endInteraction(org.bukkit.entity.Player player)
Ends an interaction with this instance.
|
GuiPoint |
getCursor(org.bukkit.entity.Player player)
Gets the cursor of a player.
|
int |
getMapID()
Gets the Map ID used by this instance.
|
dispose, generateMapID, getInteraction, getLayout, getMapIDs, getType, isInteracting, sendRenderData, setMapIdConverter, setMapIDs, startInteraction, startRendering
public GuiItemInstance(Layout layout)
layout
- the 1x1 layoutpublic int getMapID()
public GuiPoint getCursor(org.bukkit.entity.Player player)
GuiInstance
getCursor
in class GuiInstance
player
- the playerpublic void endInteraction(org.bukkit.entity.Player player)
GuiInstance
GuiWallManager
or
GuiItemManager
.endInteraction
in class GuiInstance
player
- the playerpublic org.bukkit.inventory.ItemStack createItem()
Copyright © 2021. All rights reserved.