public abstract class ClickableSign extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
id |
protected IParkour |
parkour |
protected org.bukkit.block.Sign |
signState |
Constructor and Description |
---|
ClickableSign(int id,
IParkour parkour,
org.bukkit.block.Sign signState) |
ClickableSign(IParkour parkour,
org.bukkit.block.Sign signState) |
Modifier and Type | Method and Description |
---|---|
int |
getId()
Get the ID of this sign.
|
IParkour |
getParkour()
Get the parkour this sign is associated with.
|
org.bukkit.block.Sign |
getSignState()
Get the Bukkit Sign State of the sign.
|
abstract int |
getType()
Get the type of the sign.
|
abstract void |
onClick(org.bukkit.entity.Player player)
What happens when a sign is clicked.
|
abstract void |
refresh()
Called when a sign is needing to be refreshed.
|
void |
setId(int id)
In the event that this is a new sign, set the ID.
|
protected final IParkour parkour
protected final org.bukkit.block.Sign signState
protected int id
public ClickableSign(IParkour parkour, org.bukkit.block.Sign signState)
public ClickableSign(int id, IParkour parkour, org.bukkit.block.Sign signState)
public abstract void refresh()
public abstract int getType()
public abstract void onClick(org.bukkit.entity.Player player)
player
- the player that clicked the sign.public IParkour getParkour()
public org.bukkit.block.Sign getSignState()
public int getId()
public void setId(int id)
id
- the id of this sign.IllegalStateException
- if the ID is already set.Copyright © 2025. All rights reserved.