toggle menu
HopperLib
experimental-1-21-SNAPSHOT
jvm
switch theme
search in API
HopperLib
/
cc.mrcl.hopperlib.CommandTools.Voting
/
Vote
Vote
public
class
Vote
extends
CommandTool
Members
Constructors
Vote
Link copied to clipboard
public
void
Vote
(
CommandSender
sender
,
Component
prompt
)
Properties
cooldown
List
Link copied to clipboard
public
final
static
List
<
Player
>
cooldownList
prompt
Link copied to clipboard
public
Component
prompt
Functions
get
Cooldown
List
Link copied to clipboard
public
static
List
<
Player
>
getCooldownList
(
)
get
No
Votes
Link copied to clipboard
public
int
getNoVotes
(
)
get
Prompt
Link copied to clipboard
public
Component
getPrompt
(
)
get
Sender
Link copied to clipboard
public
CommandSender
getSender
(
)
get
Total
Votes
Link copied to clipboard
public
int
getTotalVotes
(
)
get
Yes
Votes
Link copied to clipboard
public
int
getYesVotes
(
)
on
Always
Link copied to clipboard
public
Vote
onAlways
(
Runnable
runnable
)
on
Cooldown
Link copied to clipboard
public
Vote
onCooldown
(
Runnable
runnable
)
on
Fail
Link copied to clipboard
public
Vote
onFail
(
Runnable
runnable
)
on
Succeed
Link copied to clipboard
public
Vote
onSucceed
(
Runnable
runnable
)
set
Cooldown
Mins
Link copied to clipboard
public
Vote
setCooldownMins
(
int mins
)
set
Cooldown
Secs
Link copied to clipboard
public
Vote
setCooldownSecs
(
int seconds
)
set
Cooldown
Ticks
Link copied to clipboard
public
Vote
setCooldownTicks
(
int ticks
)
set
Player
Selection
Function
Link copied to clipboard
public
Vote
setPlayerSelectionFunction
(
Function
<
Player
,
Boolean
>
playerSelectionFunction
)
set
Time
Out
Link copied to clipboard
public
Vote
setTimeOut
(
int seconds
)
set
Yes
Percentage
Link copied to clipboard
public
Vote
setYesPercentage
(
double percentage
)
start
Vote
Link copied to clipboard
public
void
startVote
(
)