Class VelocityPartiesPartyPreCreateEvent
- java.lang.Object
-
- com.alessiodp.parties.api.events.velocity.VelocityPartiesEvent
-
- com.alessiodp.parties.api.events.velocity.party.VelocityPartiesPartyPreCreateEvent
-
- All Implemented Interfaces:
Cancellable,IPartyPreCreateEvent,PartiesEvent
public class VelocityPartiesPartyPreCreateEvent extends VelocityPartiesEvent implements IPartyPreCreateEvent
-
-
Constructor Summary
Constructors Constructor Description VelocityPartiesPartyPreCreateEvent(PartyPlayer player, String name, boolean fixed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable StringgetPartyName()Get the name of the party@Nullable PartyPlayergetPartyPlayer()Get the player that is creating the partybooleanisCancelled()Is the event cancelled?booleanisFixed()Is the party fixed?voidsetCancelled(boolean cancel)Set the event as cancelledvoidsetFixed(boolean fixed)Set if the party is fixedvoidsetPartyName(@Nullable String name)Set a new name to the party-
Methods inherited from class com.alessiodp.parties.api.events.velocity.VelocityPartiesEvent
getApi, setApi
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.alessiodp.parties.api.events.PartiesEvent
getApi, setApi
-
-
-
-
Constructor Detail
-
VelocityPartiesPartyPreCreateEvent
public VelocityPartiesPartyPreCreateEvent(PartyPlayer player, String name, boolean fixed)
-
-
Method Detail
-
getPartyPlayer
@Nullable public @Nullable PartyPlayer getPartyPlayer()
Description copied from interface:IPartyPreCreateEventGet the player that is creating the party- Specified by:
getPartyPlayerin interfaceIPartyPreCreateEvent- Returns:
- the
PartyPlayer
-
getPartyName
@Nullable public @Nullable String getPartyName()
Description copied from interface:IPartyPreCreateEventGet the name of the party- Specified by:
getPartyNamein interfaceIPartyPreCreateEvent- Returns:
- the party name
-
setPartyName
public void setPartyName(@Nullable @Nullable String name)Description copied from interface:IPartyPreCreateEventSet a new name to the party- Specified by:
setPartyNamein interfaceIPartyPreCreateEvent- Parameters:
name- the name to set
-
isFixed
public boolean isFixed()
Description copied from interface:IPartyPreCreateEventIs the party fixed?- Specified by:
isFixedin interfaceIPartyPreCreateEvent- Returns:
trueif it's fixed
-
setFixed
public void setFixed(boolean fixed)
Description copied from interface:IPartyPreCreateEventSet if the party is fixed- Specified by:
setFixedin interfaceIPartyPreCreateEvent- Parameters:
fixed-trueto be fixed
-
isCancelled
public boolean isCancelled()
Description copied from interface:CancellableIs the event cancelled?- Specified by:
isCancelledin interfaceCancellable- Returns:
trueif the event is cancelled
-
setCancelled
public void setCancelled(boolean cancel)
Description copied from interface:CancellableSet the event as cancelled- Specified by:
setCancelledin interfaceCancellable- Parameters:
cancel-trueto cancel
-
-