public interface ServerActivation extends Activation
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ServerActivation.Builder |
| Modifier and Type | Method and Description |
|---|---|
void |
addPermission(@NotNull java.lang.String permission)
Adds a permission to the activation
|
boolean |
checkPermissions(@NotNull MinecraftServerPlayer serverPlayer)
Checks if player has any permission
|
boolean |
checkPermissions(@NotNull VoicePlayer player)
Checks if player has any permission
|
void |
clearPermissions()
Clears all permissions from the activation
|
@NotNull AddonContainer |
getAddon()
Gets the activation's addon
|
@NotNull java.util.Collection<java.lang.String> |
getPermissions()
Gets the activation's permission
|
void |
removePermission(@NotNull java.lang.String permission)
Removes a permission from the activation
|
void |
setDistances(java.util.List<java.lang.Integer> distances)
Sets the activation's available distances
|
void |
setProximity(boolean transitive)
Sets the activation's proximity
|
void |
setTransitive(boolean transitive)
Sets the activation's transitivity
|
getDefaultDistance, getDistances, getIcon, getId, getMaxDistance, getMinDistance, getName, getTranslation, getWeight, isProximity, isStereoSupported, isTransitive@NotNull @NotNull AddonContainer getAddon()
@NotNull @NotNull java.util.Collection<java.lang.String> getPermissions()
void addPermission(@NotNull
@NotNull java.lang.String permission)
void removePermission(@NotNull
@NotNull java.lang.String permission)
void clearPermissions()
boolean checkPermissions(@NotNull
@NotNull VoicePlayer player)
boolean checkPermissions(@NotNull
@NotNull MinecraftServerPlayer serverPlayer)
void setDistances(java.util.List<java.lang.Integer> distances)
void setTransitive(boolean transitive)
void setProximity(boolean transitive)