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_)
    • 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

      private static Optional<Vec3> calculatePositionAbove(Entity p_332455_, ServerLevel p_334568_)
    • selectEntityToSpawnItemAbove

      @Nullable private static Entity selectEntityToSpawnItemAbove(List<Player> p_328857_, Set<UUID> p_330482_, TrialSpawner p_335914_, BlockPos p_330933_, ServerLevel p_330297_)
    • timeToSpawnItemSpawner

      private boolean timeToSpawnItemSpawner(ServerLevel p_332151_, TrialSpawnerData p_334161_)
    • 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_, boolean p_333242_)
    • getSerializedName

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