Enum Class MobSpawnEvent.SpawnPlacementCheck.Result
java.lang.Object
java.lang.Enum<MobSpawnEvent.SpawnPlacementCheck.Result>
net.neoforged.neoforge.event.entity.living.MobSpawnEvent.SpawnPlacementCheck.Result
- All Implemented Interfaces:
Serializable
,Comparable<MobSpawnEvent.SpawnPlacementCheck.Result>
,Constable
- Enclosing class:
MobSpawnEvent.SpawnPlacementCheck
public static enum MobSpawnEvent.SpawnPlacementCheck.Result
extends Enum<MobSpawnEvent.SpawnPlacementCheck.Result>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe result ofSpawnPlacements.SpawnPredicate.test(EntityType, ServerLevelAccessor, MobSpawnType, BlockPos, RandomSource)
will be used to determine if the check will succeed.Forces the event to cause the placement check to fail.Forces the event to cause the placement check to succeed. -
Constructor Summary
-
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
-
SUCCEED
Forces the event to cause the placement check to succeed. -
DEFAULT
The result ofSpawnPlacements.SpawnPredicate.test(EntityType, ServerLevelAccessor, MobSpawnType, BlockPos, RandomSource)
will be used to determine if the check will succeed.If the mob does not have a spawn predicate, the check will always succeed.
-
FAIL
Forces the event to cause the placement check to fail.
-
-
Constructor Details
-
Result
private Result()
-
-
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
-