public class GuiWallInstance extends GuiInstance
GuiInstance
that displays a layout in a ItemFrame grid on a wall.GuiInstance.GuiType
interactions, lastCursorPosition, lastState, layout, renderTask, sendCount, showCursor, type
Constructor and Description |
---|
GuiWallInstance(int id,
Layout layout,
int activationRadius,
GuiLocation location)
Instantiates a new GuiWallInstance.
|
GuiWallInstance(int id,
Layout layout,
int activationRadius,
GuiLocation location,
int[] mapIDs)
Instantiates a new GuiWallInstance.
|
Modifier and Type | Method and Description |
---|---|
void |
displayStandbyScreen(Collection<org.bukkit.entity.Player> players)
Sends the standby-screen to all selected players.
|
void |
endInteraction(org.bukkit.entity.Player player)
Ends an interaction with this instance.
|
int |
getActivationRadius()
Gets the squared activation radius.
|
BoundingBox |
getBoundingBox()
Gets bounding box of the full blocks of the ItemFrames and the blocks behind them.
|
org.bukkit.Location |
getCenter()
Gets center.
|
GuiPoint |
getCursor(org.bukkit.entity.Player player)
Gets the cursor of a player.
|
int |
getId()
Gets instance id.
|
GuiLocation |
getLocation()
Gets location.
|
boolean |
isInArea(org.bukkit.Location check)
Returns whether the location is within the
getActivationRadius() . |
boolean |
isInSight(org.bukkit.Location check)
Returns whether the location is within the
GuiWallManager.SIGHT_RADIUS . |
void |
populateFrames()
Populates the ItemFrames with the correct map items.
|
List<FrameContainer> |
queryItemFrames()
Query the item frames for the instance.
|
void |
startInteraction(org.bukkit.entity.Player player)
Start an interaction with this instance.
|
dispose, generateMapID, getInteraction, getLayout, getMapIDs, getType, isInteracting, sendRenderData, setMapIdConverter, setMapIDs, startRendering
public GuiWallInstance(int id, Layout layout, int activationRadius, GuiLocation location)
GuiWallManager
.
And the location should be the location of the top left ItemFrame.id
- the id,layout
- the layoutlocation
- the locationpublic GuiWallInstance(int id, Layout layout, int activationRadius, GuiLocation location, int[] mapIDs)
GuiWallManager
.
And the location should be the location of the top left ItemFrame.id
- the idlayout
- the layoutlocation
- the locationmapIDs
- the map i dspublic void populateFrames()
public void displayStandbyScreen(Collection<org.bukkit.entity.Player> players)
GuiWallManager
if registered)players
- the playerpublic BoundingBox getBoundingBox()
public GuiLocation getLocation()
public org.bukkit.Location getCenter()
public int getId()
public int getActivationRadius()
public GuiPoint getCursor(org.bukkit.entity.Player player)
GuiInstance
getCursor
in class GuiInstance
player
- the playerpublic List<FrameContainer> queryItemFrames()
public boolean isInArea(org.bukkit.Location check)
getActivationRadius()
.check
- the location to checkpublic boolean isInSight(org.bukkit.Location check)
GuiWallManager.SIGHT_RADIUS
.check
- the location to checkpublic void startInteraction(org.bukkit.entity.Player player)
GuiInstance
GuiWallManager
or
GuiItemManager
.startInteraction
in class GuiInstance
player
- the playerpublic void endInteraction(org.bukkit.entity.Player player)
GuiInstance
GuiWallManager
or
GuiItemManager
.endInteraction
in class GuiInstance
player
- the playerCopyright © 2021. All rights reserved.