Package net.risingworld.api.world
Enum Class EditRestriction
- All Implemented Interfaces:
Serializable
,Comparable<EditRestriction>
,Constable
Optional restrictions when performing terrain modifications.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionOnly affects air blocks (id 0)No restriction, affects all blocksOnly affects soil blocks like dirt, sand etcOnly affects solid blocks, i.e no airOnly affects a specific type id (editInfo == id)Only affects stone blocksOnly affects tall grass (all grass except plain/flat grass)Only affects water and air blocksOnly affects water blocks -
Method Summary
Modifier and TypeMethodDescriptionstatic EditRestriction
Returns the enum constant of this class with the specified name.static EditRestriction[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
None
No restriction, affects all blocks -
AirOnly
Only affects air blocks (id 0) -
SoilOnly
Only affects soil blocks like dirt, sand etc -
StoneOnly
Only affects stone blocks -
TallGrassOnly
Only affects tall grass (all grass except plain/flat grass) -
SolidOnly
Only affects solid blocks, i.e no air -
WaterOnly
Only affects water blocks -
WaterAndAirOnly
Only affects water and air blocks -
SpecificIDOnly
Only affects a specific type id (editInfo == id)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-