Package org.bukkit.event.hanging
Enum HangingBreakEvent.RemoveCause
java.lang.Object
java.lang.Enum<HangingBreakEvent.RemoveCause>
org.bukkit.event.hanging.HangingBreakEvent.RemoveCause
- All Implemented Interfaces:
- Serializable,- Comparable<HangingBreakEvent.RemoveCause>,- Constable
- Enclosing class:
- HangingBreakEvent
public static enum HangingBreakEvent.RemoveCause extends Enum<HangingBreakEvent.RemoveCause>
An enum to specify the cause of the removal
- 
Nested Class Summary
- 
Enum Constant SummaryEnum Constants Enum Constant Description DEFAULTRemoved by an uncategorised causeENTITYRemoved by an entityEXPLOSIONRemoved by an explosionOBSTRUCTIONRemoved by placing a block on itPHYSICSRemoved by destroying the block behind it, etc
- 
Method SummaryModifier and Type Method Description static HangingBreakEvent.RemoveCausevalueOf(String name)Returns the enum constant of this type with the specified name.static HangingBreakEvent.RemoveCause[]values()Returns an array containing the constants of this enum type, in the order they are declared.
- 
Enum Constant Details- 
ENTITYRemoved by an entity
- 
EXPLOSIONRemoved by an explosion
- 
OBSTRUCTIONRemoved by placing a block on it
- 
PHYSICSRemoved by destroying the block behind it, etc
- 
DEFAULTRemoved by an uncategorised cause
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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 name
- NullPointerException- if the argument is null
 
 
-