Enum PlayerModifyBlockPermissionEvent.Issue
java.lang.Object
java.lang.Enum<PlayerModifyBlockPermissionEvent.Issue>
de.marcely.bedwars.api.event.player.PlayerModifyBlockPermissionEvent.Issue
- All Implemented Interfaces:
Serializable
,Comparable<PlayerModifyBlockPermissionEvent.Issue>
,java.lang.constant.Constable
- Enclosing class:
PlayerModifyBlockPermissionEvent
public static enum PlayerModifyBlockPermissionEvent.Issue
extends Enum<PlayerModifyBlockPermissionEvent.Issue>
Reasons that cause the BlocKEvent to not get performed.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionBlock can't be placed/broken because we don't want that type of block.Block that gets broken/placed is inside a region in which you may not do that (such as near the team spawn).A block gets destroyed that hasn't been placed by a player (it's a part of the map).The block has been placed/broken outside the playable area.A custom reason added using the API. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INSIDE_NON_BUILD_RADIUS
Block that gets broken/placed is inside a region in which you may not do that (such as near the team spawn). -
NON_PLAYER_PLACED
A block gets destroyed that hasn't been placed by a player (it's a part of the map). -
BLACKLISTED_MATERIAL
Block can't be placed/broken because we don't want that type of block. -
OUTSIDE_ARENA
The block has been placed/broken outside the playable area. -
PLUGIN
A custom reason added using the API.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-