Class ClickableSign
java.lang.Object
me.block2block.hubparkour.api.signs.ClickableSign
A generic sign object.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionClickableSign(int id, IParkour parkour, Sign signState) ClickableSign(IParkour parkour, Sign signState) -
Method Summary
Modifier and TypeMethodDescriptionintgetId()Get the ID of this sign.Get the parkour this sign is associated with.Get the Bukkit Sign State of the sign.abstract intgetType()Get the type of the sign.abstract voidWhat happens when a sign is clicked.abstract voidrefresh()Called when a sign is needing to be refreshed.voidsetId(int id) In the event that this is a new sign, set the ID.
-
Field Details
-
parkour
-
signState
-
id
protected int id
-
-
Constructor Details
-
ClickableSign
-
ClickableSign
-
-
Method Details
-
refresh
public abstract void refresh()Called when a sign is needing to be refreshed. -
getType
public abstract int getType()Get the type of the sign.- Returns:
- the type of the sign.
-
onClick
What happens when a sign is clicked.- Parameters:
player- the player that clicked the sign.
-
getParkour
Get the parkour this sign is associated with.- Returns:
- the parkour this sign belongs to.
-
getSignState
Get the Bukkit Sign State of the sign.- Returns:
- a Bukkit Sign State which represents the actual sign.
-
getId
public int getId()Get the ID of this sign.- Returns:
- the ID of the sign.
-
setId
public void setId(int id) In the event that this is a new sign, set the ID.- Parameters:
id- the id of this sign.- Throws:
IllegalStateException- if the ID is already set.
-