Enum Class SafeLocationManager.GravePlacementReason
java.lang.Object
java.lang.Enum<SafeLocationManager.GravePlacementReason>
dev.cwhead.GravesX.manager.SafeLocationManager.GravePlacementReason
- All Implemented Interfaces:
Serializable, Comparable<SafeLocationManager.GravePlacementReason>, Constable
- Enclosing class:
SafeLocationManager
public static enum SafeLocationManager.GravePlacementReason
extends Enum<SafeLocationManager.GravePlacementReason>
Explains why a particular grave placement location was chosen.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTripped when the original death location is above the world's maximum build height.Tripped when no configured special-case, vertical, fluid, void, or border placement candidate can be resolved.Tripped when the death block itself is solid, but the case is not fluid, powder snow, or two-block suffocation.Tripped when downward vertical scanning finds the closest valid grave location.Tripped when the death block is clear but the block above it is solid.Tripped when the death location is air directly above lava and that air block can safely hold the grave.Tripped when the death was in lava, or directly above lava, and the player's cached last-solid location is still clear and valid.Tripped when lava-top placement is enabled and a clear air block is found above the contiguous lava column.Tripped when the death is above the configured Nether roof limit and Nether roof placement fallback is required.Tripped when the block below the death location is a non-full support, such as a slab, carpet, scaffolding, or tripwire.Tripped when the original death location is already clear, inside the border, not fluid, has safe solid support below, and does not already contain a grave.Tripped when the death block or the block below it is powder snow.Tripped when the death block is a small or special block that should be preserved, such as carpet, snow layer, pressure plate, sign, banner, redstone wire, button, or torch.Tripped when upward vertical scanning finds the closest valid grave location.Tripped when both the death block and the block above it are solid, indicating a two-block wall suffocation death.Tripped when the death is in the void or outside the world border and a valid location is found in the same X/Z column.Tripped when the death is in the void or outside the world border and the best valid same-column location is at the world's minimum height.Tripped when the death location is air directly above water and that air block can safely hold the grave.Tripped when water-bottom placement is enabled and the bottom of the contiguous water column is safe for grave placement.Tripped when the death was in water, or directly above water, and the player's cached last-solid location is still clear and valid.Tripped when water-top placement is enabled and a clear air block is found above the contiguous water column. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ORIGINAL_SAFE
Tripped when the original death location is already clear, inside the border, not fluid, has safe solid support below, and does not already contain a grave. Causes the grave to be placed at the original rounded death location without running additional vertical fallback searches. -
ROOF
Tripped when upward vertical scanning finds the closest valid grave location. Causes the grave to be placed above the original or candidate base location. -
GROUND
Tripped when downward vertical scanning finds the closest valid grave location. Causes the grave to be placed below the original or candidate base location. -
WATER_SMART
Tripped when the death was in water, or directly above water, and the player's cached last-solid location is still clear and valid. Causes the grave to be placed at that last-solid location before water surface or bottom fallbacks run. -
WATER_ABOVE
Tripped when the death location is air directly above water and that air block can safely hold the grave. Causes the grave to be placed at the death block, above the water, instead of scanning through the water column. -
WATER_TOP
Tripped when water-top placement is enabled and a clear air block is found above the contiguous water column. Causes the grave to be placed on the water surface rather than at the underwater death location. -
WATER_BOTTOM
Tripped when water-bottom placement is enabled and the bottom of the contiguous water column is safe for grave placement. Causes the grave to be placed at the bottom water block location. -
LAVA_SMART
Tripped when the death was in lava, or directly above lava, and the player's cached last-solid location is still clear and valid. Causes the grave to be placed at that last-solid location before lava surface fallback runs. -
LAVA_ABOVE
Tripped when the death location is air directly above lava and that air block can safely hold the grave. Causes the grave to be placed at the death block, above the lava, instead of scanning through the lava column. -
LAVA_TOP
Tripped when lava-top placement is enabled and a clear air block is found above the contiguous lava column. Causes the grave to be placed on the lava surface rather than at the lava death location. -
SUFFOCATION
Tripped when both the death block and the block above it are solid, indicating a two-block wall suffocation death. Causes the grave to use a cleared last-solid location first, then the closest valid location above or below the suffocation column. -
POWDER_SNOW
Tripped when the death block or the block below it is powder snow. Causes the grave to use a cleared last-solid location first, then the first clear block above the contiguous powder snow column. -
NON_FULL_SUPPORT
Tripped when the block below the death location is a non-full support, such as a slab, carpet, scaffolding, or tripwire. Causes the grave to be placed in the clear block above that support instead of treating the support as normal full ground. -
FEET_BLOCKED
Tripped when the death block itself is solid, but the case is not fluid, powder snow, or two-block suffocation. Causes the grave to be placed at the closest valid location above or below the blocked feet position. -
HEAD_BLOCKED
Tripped when the death block is clear but the block above it is solid. Causes the grave to be placed at the closest valid location above or below the blocked head position. -
REPLACE_AVOIDED
Tripped when the death block is a small or special block that should be preserved, such as carpet, snow layer, pressure plate, sign, banner, redstone wire, button, or torch. Causes the grave to be placed one block above when that space is clear. -
ABOVE_BUILD_LIMIT
Tripped when the original death location is above the world's maximum build height. Causes the grave to be placed at the first valid location found by scanning downward from the build limit. -
NETHER_ROOF
Tripped when the death is above the configured Nether roof limit and Nether roof placement fallback is required. Causes the grave to be placed on or above the roof fallback location when below-roof placement is not available. -
VOID_COLUMN
Tripped when the death is in the void or outside the world border and a valid location is found in the same X/Z column. Causes the grave to be placed at the closest safe column location. -
VOID_MIN_HEIGHT
Tripped when the death is in the void or outside the world border and the best valid same-column location is at the world's minimum height. Causes the grave to be placed at that minimum-height safe location. -
FALLBACK_ORIGINAL
Tripped when no configured special-case, vertical, fluid, void, or border placement candidate can be resolved. Causes the original rounded death location to be returned as the final fallback.
-
-
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
-