Package net.minecraft.block.enums
Enum Class TrialSpawnerState
- All Implemented Interfaces:
Serializable
,Comparable<TrialSpawnerState>
,Constable
,StringIdentifiable
- Mappings:
Namespace Name named net/minecraft/block/enums/TrialSpawnerState
intermediary net/minecraft/class_8967
official drj
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static class
private static class
private static interface
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface net.minecraft.util.StringIdentifiable
StringIdentifiable.BasicCodec<S extends StringIdentifiable>, StringIdentifiable.EnumCodec<E extends Enum<E> & StringIdentifiable>
-
Enum Constant Summary
Enum ConstantDescription -
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private final double
private final String
private final int
private final TrialSpawnerState.ParticleEmitter
private final boolean
private static final float
Fields inherited from interface net.minecraft.util.StringIdentifiable
CACHED_MAP_THRESHOLD
-
Constructor Summary
ModifierConstructorDescriptionprivate
TrialSpawnerState
(String id, int luminance, TrialSpawnerState.ParticleEmitter particleEmitter, double displayRotationSpeed, boolean playsSound) -
Method Summary
Modifier and TypeMethodDescriptionasString()
Returns the unique string representation of the enum, used for serialization.boolean
void
emitParticles
(World world, BlockPos pos, boolean ominous) double
int
getPosAbove
(Entity entity, ServerWorld world) getPosToSpawnItemSpawner
(ServerWorld world, BlockPos pos, TrialSpawnerLogic logic, TrialSpawnerData data) getRandomEntity
(List<PlayerEntity> players, Set<UUID> entityUuids, TrialSpawnerLogic logic, BlockPos pos, ServerWorld world) boolean
private boolean
shouldCooldownEnd
(ServerWorld world, TrialSpawnerData data) private void
spawnOminousItemSpawner
(ServerWorld world, BlockPos pos, TrialSpawnerLogic logic) (package private) TrialSpawnerState
tick
(BlockPos pos, TrialSpawnerLogic logic, ServerWorld world) 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
- Mappings:
Namespace Name Mixin selector named INACTIVE
Lnet/minecraft/block/enums/TrialSpawnerState;INACTIVE:Lnet/minecraft/block/enums/TrialSpawnerState;
intermediary field_47383
Lnet/minecraft/class_8967;field_47383:Lnet/minecraft/class_8967;
official a
Ldrj;a:Ldrj;
-
WAITING_FOR_PLAYERS
- Mappings:
Namespace Name Mixin selector named WAITING_FOR_PLAYERS
Lnet/minecraft/block/enums/TrialSpawnerState;WAITING_FOR_PLAYERS:Lnet/minecraft/block/enums/TrialSpawnerState;
intermediary field_47384
Lnet/minecraft/class_8967;field_47384:Lnet/minecraft/class_8967;
official b
Ldrj;b:Ldrj;
-
ACTIVE
- Mappings:
Namespace Name Mixin selector named ACTIVE
Lnet/minecraft/block/enums/TrialSpawnerState;ACTIVE:Lnet/minecraft/block/enums/TrialSpawnerState;
intermediary field_47385
Lnet/minecraft/class_8967;field_47385:Lnet/minecraft/class_8967;
official c
Ldrj;c:Ldrj;
-
WAITING_FOR_REWARD_EJECTION
- Mappings:
Namespace Name Mixin selector named WAITING_FOR_REWARD_EJECTION
Lnet/minecraft/block/enums/TrialSpawnerState;WAITING_FOR_REWARD_EJECTION:Lnet/minecraft/block/enums/TrialSpawnerState;
intermediary field_47386
Lnet/minecraft/class_8967;field_47386:Lnet/minecraft/class_8967;
official d
Ldrj;d:Ldrj;
-
EJECTING_REWARD
- Mappings:
Namespace Name Mixin selector named EJECTING_REWARD
Lnet/minecraft/block/enums/TrialSpawnerState;EJECTING_REWARD:Lnet/minecraft/block/enums/TrialSpawnerState;
intermediary field_47387
Lnet/minecraft/class_8967;field_47387:Lnet/minecraft/class_8967;
official e
Ldrj;e:Ldrj;
-
COOLDOWN
- Mappings:
Namespace Name Mixin selector named COOLDOWN
Lnet/minecraft/block/enums/TrialSpawnerState;COOLDOWN:Lnet/minecraft/block/enums/TrialSpawnerState;
intermediary field_47388
Lnet/minecraft/class_8967;field_47388:Lnet/minecraft/class_8967;
official f
Ldrj;f:Ldrj;
-
-
Field Details
-
START_EJECTING_REWARDS_COOLDOWN
private static final float START_EJECTING_REWARDS_COOLDOWN- See Also:
- Mappings:
Namespace Name Mixin selector named START_EJECTING_REWARDS_COOLDOWN
Lnet/minecraft/block/enums/TrialSpawnerState;START_EJECTING_REWARDS_COOLDOWN:F
intermediary field_47389
Lnet/minecraft/class_8967;field_47389:F
official g
Ldrj;g:F
-
BETWEEN_EJECTING_REWARDS_COOLDOWN
private static final int BETWEEN_EJECTING_REWARDS_COOLDOWN- Mappings:
Namespace Name Mixin selector named BETWEEN_EJECTING_REWARDS_COOLDOWN
Lnet/minecraft/block/enums/TrialSpawnerState;BETWEEN_EJECTING_REWARDS_COOLDOWN:I
intermediary field_47390
Lnet/minecraft/class_8967;field_47390:I
official h
Ldrj;h:I
-
id
- Mappings:
Namespace Name Mixin selector named id
Lnet/minecraft/block/enums/TrialSpawnerState;id:Ljava/lang/String;
intermediary field_47391
Lnet/minecraft/class_8967;field_47391:Ljava/lang/String;
official i
Ldrj;i:Ljava/lang/String;
-
luminance
private final int luminance- Mappings:
Namespace Name Mixin selector named luminance
Lnet/minecraft/block/enums/TrialSpawnerState;luminance:I
intermediary field_47392
Lnet/minecraft/class_8967;field_47392:I
official j
Ldrj;j:I
-
displayRotationSpeed
private final double displayRotationSpeed- Mappings:
Namespace Name Mixin selector named displayRotationSpeed
Lnet/minecraft/block/enums/TrialSpawnerState;displayRotationSpeed:D
intermediary field_47393
Lnet/minecraft/class_8967;field_47393:D
official k
Ldrj;k:D
-
particleEmitter
- Mappings:
Namespace Name Mixin selector named particleEmitter
Lnet/minecraft/block/enums/TrialSpawnerState;particleEmitter:Lnet/minecraft/block/enums/TrialSpawnerState$ParticleEmitter;
intermediary field_47394
Lnet/minecraft/class_8967;field_47394:Lnet/minecraft/class_8967$class_8969;
official l
Ldrj;l:Ldrj$b;
-
playsSound
private final boolean playsSound- Mappings:
Namespace Name Mixin selector named playsSound
Lnet/minecraft/block/enums/TrialSpawnerState;playsSound:Z
intermediary field_47395
Lnet/minecraft/class_8967;field_47395:Z
official m
Ldrj;m:Z
-
-
Constructor Details
-
TrialSpawnerState
private TrialSpawnerState(String id, int luminance, TrialSpawnerState.ParticleEmitter particleEmitter, double displayRotationSpeed, boolean playsSound) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/block/enums/TrialSpawnerState;<init>(Ljava/lang/String;ILjava/lang/String;ILnet/minecraft/block/enums/TrialSpawnerState$ParticleEmitter;DZ)V
intermediary <init>
Lnet/minecraft/class_8967;<init>(Ljava/lang/String;ILjava/lang/String;ILnet/minecraft/class_8967$class_8969;DZ)V
official <init>
Ldrj;<init>(Ljava/lang/String;ILjava/lang/String;ILdrj$b;DZ)V
-
-
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
-
tick
- Mappings:
Namespace Name Mixin selector named tick
Lnet/minecraft/block/enums/TrialSpawnerState;tick(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/spawner/TrialSpawnerLogic;Lnet/minecraft/server/world/ServerWorld;)Lnet/minecraft/block/enums/TrialSpawnerState;
intermediary method_55214
Lnet/minecraft/class_8967;method_55214(Lnet/minecraft/class_2338;Lnet/minecraft/class_8963;Lnet/minecraft/class_3218;)Lnet/minecraft/class_8967;
official a
Ldrj;a(Liz;Ldrg;Larf;)Ldrj;
-
spawnOminousItemSpawner
- Mappings:
Namespace Name Mixin selector named spawnOminousItemSpawner
Lnet/minecraft/block/enums/TrialSpawnerState;spawnOminousItemSpawner(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/spawner/TrialSpawnerLogic;)V
intermediary method_58720
Lnet/minecraft/class_8967;method_58720(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_8963;)V
official a
Ldrj;a(Larf;Liz;Ldrg;)V
-
getPosToSpawnItemSpawner
private static Optional<Vec3d> getPosToSpawnItemSpawner(ServerWorld world, BlockPos pos, TrialSpawnerLogic logic, TrialSpawnerData data) - Mappings:
Namespace Name Mixin selector named getPosToSpawnItemSpawner
Lnet/minecraft/block/enums/TrialSpawnerState;getPosToSpawnItemSpawner(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/spawner/TrialSpawnerLogic;Lnet/minecraft/block/spawner/TrialSpawnerData;)Ljava/util/Optional;
intermediary method_58721
Lnet/minecraft/class_8967;method_58721(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_8963;Lnet/minecraft/class_8966;)Ljava/util/Optional;
official a
Ldrj;a(Larf;Liz;Ldrg;Ldri;)Ljava/util/Optional;
-
getPosAbove
- Mappings:
Namespace Name Mixin selector named getPosAbove
Lnet/minecraft/block/enums/TrialSpawnerState;getPosAbove(Lnet/minecraft/entity/Entity;Lnet/minecraft/server/world/ServerWorld;)Ljava/util/Optional;
intermediary method_58722
Lnet/minecraft/class_8967;method_58722(Lnet/minecraft/class_1297;Lnet/minecraft/class_3218;)Ljava/util/Optional;
official a
Ldrj;a(Lbsv;Larf;)Ljava/util/Optional;
-
getRandomEntity
@Nullable private static @Nullable Entity getRandomEntity(List<PlayerEntity> players, Set<UUID> entityUuids, TrialSpawnerLogic logic, BlockPos pos, ServerWorld world) - Mappings:
Namespace Name Mixin selector named getRandomEntity
Lnet/minecraft/block/enums/TrialSpawnerState;getRandomEntity(Ljava/util/List;Ljava/util/Set;Lnet/minecraft/block/spawner/TrialSpawnerLogic;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/server/world/ServerWorld;)Lnet/minecraft/entity/Entity;
intermediary method_58725
Lnet/minecraft/class_8967;method_58725(Ljava/util/List;Ljava/util/Set;Lnet/minecraft/class_8963;Lnet/minecraft/class_2338;Lnet/minecraft/class_3218;)Lnet/minecraft/class_1297;
official a
Ldrj;a(Ljava/util/List;Ljava/util/Set;Ldrg;Liz;Larf;)Lbsv;
-
shouldCooldownEnd
- Mappings:
Namespace Name Mixin selector named shouldCooldownEnd
Lnet/minecraft/block/enums/TrialSpawnerState;shouldCooldownEnd(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/block/spawner/TrialSpawnerData;)Z
intermediary method_58719
Lnet/minecraft/class_8967;method_58719(Lnet/minecraft/class_3218;Lnet/minecraft/class_8966;)Z
official a
Ldrj;a(Larf;Ldri;)Z
-
getLuminance
public int getLuminance()- Mappings:
Namespace Name Mixin selector named getLuminance
Lnet/minecraft/block/enums/TrialSpawnerState;getLuminance()I
intermediary method_55209
Lnet/minecraft/class_8967;method_55209()I
official a
Ldrj;a()I
-
getDisplayRotationSpeed
public double getDisplayRotationSpeed()- Mappings:
Namespace Name Mixin selector named getDisplayRotationSpeed
Lnet/minecraft/block/enums/TrialSpawnerState;getDisplayRotationSpeed()D
intermediary method_55215
Lnet/minecraft/class_8967;method_55215()D
official b
Ldrj;b()D
-
doesDisplayRotate
public boolean doesDisplayRotate()- Mappings:
Namespace Name Mixin selector named doesDisplayRotate
Lnet/minecraft/block/enums/TrialSpawnerState;doesDisplayRotate()Z
intermediary method_55216
Lnet/minecraft/class_8967;method_55216()Z
official d
Ldrj;d()Z
-
playsSound
public boolean playsSound()- Mappings:
Namespace Name Mixin selector named playsSound
Lnet/minecraft/block/enums/TrialSpawnerState;playsSound()Z
intermediary method_55217
Lnet/minecraft/class_8967;method_55217()Z
official e
Ldrj;e()Z
-
emitParticles
- Mappings:
Namespace Name Mixin selector named emitParticles
Lnet/minecraft/block/enums/TrialSpawnerState;emitParticles(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Z)V
intermediary method_55210
Lnet/minecraft/class_8967;method_55210(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Z)V
official a
Ldrj;a(Ldbz;Liz;Z)V
-
asString
Returns the unique string representation of the enum, used for serialization.- Specified by:
asString
in interfaceStringIdentifiable
- Returns:
- the unique string representation of the enum, used for serialization
- Mappings:
Namespace Name Mixin selector named asString
Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
intermediary method_15434
Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;
official c
Lazu;c()Ljava/lang/String;
-