Package com.bencodez.votingplugin.signs
Class SignHandler
java.lang.Object
com.bencodez.votingplugin.signs.SignHandler
The Class SignHandler.
-
Constructor Summary
ConstructorDescriptionSignHandler
(VotingPluginMain plugin, String sign, org.bukkit.Location location, org.bukkit.Location skullLocation, String data, int position) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Check skulls.void
Check valid sign.getData()
org.bukkit.Location
Gets the right click message.getSign()
org.bukkit.Location
boolean
isLocationSame
(org.bukkit.Location loc) Checks if is location same.boolean
boolean
isValid()
boolean
void
Removes the sign.void
void
setLocation
(org.bukkit.Location location) void
void
setSkullLocation
(org.bukkit.Location skullLocation) void
setValid
(boolean valid) void
Store sign.void
Update lines.void
updateSign
(int delay) Update sign.void
updateSkulls
(org.bukkit.Location loc1, org.bukkit.Location loc2)
-
Constructor Details
-
SignHandler
public SignHandler(VotingPluginMain plugin, String sign, org.bukkit.Location location, org.bukkit.Location skullLocation, String data, int position)
-
-
Method Details
-
checkSkulls
public void checkSkulls()Check skulls. -
checkValidSign
public void checkValidSign()Check valid sign. -
getRightClickMessage
Gets the right click message.- Returns:
- the right click message
-
isLocationSame
public boolean isLocationSame(org.bukkit.Location loc) Checks if is location same.- Parameters:
loc
- the loc- Returns:
- true, if is location same
-
isSkullSet
public boolean isSkullSet() -
noNameAvailable
public boolean noNameAvailable() -
removeSign
public void removeSign()Removes the sign. -
storeSign
public void storeSign()Store sign. -
updateLines
public void updateLines()Update lines. -
updateSign
public void updateSign(int delay) Update sign.- Parameters:
delay
- the delay
-
updateSkulls
public void updateSkulls(org.bukkit.Location loc1, org.bukkit.Location loc2) -
getData
-
setData
-
getLocation
public org.bukkit.Location getLocation() -
setLocation
public void setLocation(org.bukkit.Location location) -
getSign
-
setSign
-
getSkullLocation
public org.bukkit.Location getSkullLocation() -
setSkullLocation
public void setSkullLocation(org.bukkit.Location skullLocation) -
isValid
public boolean isValid() -
setValid
public void setValid(boolean valid)
-