Enum Class TrialSpawnerState
java.lang.Object
java.lang.Enum<TrialSpawnerState>
net.minecraft.world.level.block.entity.trialspawner.TrialSpawnerState
- All Implemented Interfaces:
Serializable
,Comparable<TrialSpawnerState>
,Constable
,StringRepresentable
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
(package private) static interface
(package private) static class
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface net.minecraft.util.StringRepresentable
StringRepresentable.EnumCodec<E extends Enum<E> & StringRepresentable>, StringRepresentable.StringRepresentableCodec<S extends StringRepresentable>
-
Enum Constant Summary
Enum ConstantDescription -
Field Summary
Modifier and TypeFieldDescriptionprivate static final float
private final boolean
private final int
private final String
private final TrialSpawnerState.ParticleEmission
private final double
private static final int
Fields inherited from interface net.minecraft.util.StringRepresentable
PRE_BUILT_MAP_THRESHOLD
-
Constructor Summary
ModifierConstructorDescriptionprivate
TrialSpawnerState
(String p_309652_, int p_311553_, TrialSpawnerState.ParticleEmission p_309474_, double p_312481_, boolean p_310488_) -
Method Summary
Modifier and TypeMethodDescriptioncalculatePositionAbove
(Entity p_332455_, ServerLevel p_334568_) calculatePositionToSpawnSpawner
(ServerLevel p_332378_, BlockPos p_330701_, TrialSpawner p_331338_, TrialSpawnerData p_334280_) void
emitParticles
(Level p_310333_, BlockPos p_312414_, boolean p_333242_) boolean
boolean
int
private static Entity
selectEntityToSpawnItemAbove
(List<Player> p_328857_, Set<UUID> p_330482_, TrialSpawner p_335914_, BlockPos p_330933_, ServerLevel p_330297_) private void
spawnOminousOminousItemSpawner
(ServerLevel p_332885_, BlockPos p_332679_, TrialSpawner p_327911_) double
(package private) TrialSpawnerState
tickAndGetNext
(BlockPos p_313024_, TrialSpawner p_310869_, ServerLevel p_313233_) private boolean
timeToSpawnItemSpawner
(ServerLevel p_332151_, TrialSpawnerData p_334161_) static TrialSpawnerState
Returns the enum constant of this class with the specified name.static TrialSpawnerState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INACTIVE
-
WAITING_FOR_PLAYERS
-
ACTIVE
-
WAITING_FOR_REWARD_EJECTION
-
EJECTING_REWARD
-
COOLDOWN
-
-
Field Details
-
DELAY_BEFORE_EJECT_AFTER_KILLING_LAST_MOB
private static final float DELAY_BEFORE_EJECT_AFTER_KILLING_LAST_MOB- See Also:
-
TIME_BETWEEN_EACH_EJECTION
private static final int TIME_BETWEEN_EACH_EJECTION -
name
-
lightLevel
private final int lightLevel -
spinningMobSpeed
private final double spinningMobSpeed -
particleEmission
-
isCapableOfSpawning
private final boolean isCapableOfSpawning
-
-
Constructor Details
-
TrialSpawnerState
private TrialSpawnerState(String p_309652_, int p_311553_, TrialSpawnerState.ParticleEmission p_309474_, double p_312481_, boolean p_310488_)
-
-
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
-
tickAndGetNext
-
spawnOminousOminousItemSpawner
private void spawnOminousOminousItemSpawner(ServerLevel p_332885_, BlockPos p_332679_, TrialSpawner p_327911_) -
calculatePositionToSpawnSpawner
private static Optional<Vec3> calculatePositionToSpawnSpawner(ServerLevel p_332378_, BlockPos p_330701_, TrialSpawner p_331338_, TrialSpawnerData p_334280_) -
calculatePositionAbove
-
selectEntityToSpawnItemAbove
@Nullable private static Entity selectEntityToSpawnItemAbove(List<Player> p_328857_, Set<UUID> p_330482_, TrialSpawner p_335914_, BlockPos p_330933_, ServerLevel p_330297_) -
timeToSpawnItemSpawner
-
lightLevel
public int lightLevel() -
spinningMobSpeed
public double spinningMobSpeed() -
hasSpinningMob
public boolean hasSpinningMob() -
isCapableOfSpawning
public boolean isCapableOfSpawning() -
emitParticles
-
getSerializedName
- Specified by:
getSerializedName
in interfaceStringRepresentable
-