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

public enum TrialSpawnerState extends Enum<TrialSpawnerState> implements StringRepresentable
  • Enum Constant Details

  • 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

      private final String name
    • lightLevel

      private final int lightLevel
    • spinningMobSpeed

      private final double spinningMobSpeed
    • particleEmission

      private final TrialSpawnerState.ParticleEmission particleEmission
    • isCapableOfSpawning

      private final boolean isCapableOfSpawning
  • Constructor Details

  • Method Details

    • values

      public static TrialSpawnerState[] 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

      public static TrialSpawnerState valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • tickAndGetNext

      TrialSpawnerState tickAndGetNext(BlockPos p_313024_, TrialSpawner p_310869_, ServerLevel p_313233_)
    • lightLevel

      public int lightLevel()
    • spinningMobSpeed

      public double spinningMobSpeed()
    • hasSpinningMob

      public boolean hasSpinningMob()
    • isCapableOfSpawning

      public boolean isCapableOfSpawning()
    • emitParticles

      public void emitParticles(Level p_310333_, BlockPos p_312414_)
    • getSerializedName

      public String getSerializedName()
      Specified by:
      getSerializedName in interface StringRepresentable