public class GuiItemInstance extends GuiInstance
GuiInstance using a map item to display a 1x1 Layout and the
players gaze to control the cursor.GuiInstance.GuiTypeinteractions, 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, startRenderingpublic GuiItemInstance(Layout layout)
layout - the 1x1 layoutpublic int getMapID()
public GuiPoint getCursor(org.bukkit.entity.Player player)
GuiInstancegetCursor in class GuiInstanceplayer - the playerpublic void endInteraction(org.bukkit.entity.Player player)
GuiInstanceGuiWallManager or
GuiItemManager.endInteraction in class GuiInstanceplayer - the playerpublic org.bukkit.inventory.ItemStack createItem()
Copyright © 2021. All rights reserved.