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_312221_, TrialSpawner p_311912_, ServerLevel p_311974_)
    • spawnOminousOminousItemSpawner

      private void spawnOminousOminousItemSpawner(ServerLevel p_338483_, BlockPos p_338824_, TrialSpawner p_338767_)
    • calculatePositionToSpawnSpawner

      private static Optional<Vec3> calculatePositionToSpawnSpawner(ServerLevel p_338436_, BlockPos p_338583_, TrialSpawner p_338226_, TrialSpawnerData p_338461_)
    • calculatePositionAbove

      private static Optional<Vec3> calculatePositionAbove(Entity p_338791_, ServerLevel p_338807_)
    • selectEntityToSpawnItemAbove

      @Nullable private static Entity selectEntityToSpawnItemAbove(List<Player> p_338467_, Set<UUID> p_338224_, TrialSpawner p_338687_, BlockPos p_338268_, ServerLevel p_338524_)
    • timeToSpawnItemSpawner

      private boolean timeToSpawnItemSpawner(ServerLevel p_338741_, TrialSpawnerData p_338296_)
    • lightLevel

      public int lightLevel()
    • spinningMobSpeed

      public double spinningMobSpeed()
    • hasSpinningMob

      public boolean hasSpinningMob()
    • isCapableOfSpawning

      public boolean isCapableOfSpawning()
    • emitParticles

      public void emitParticles(Level p_312507_, BlockPos p_312610_, boolean p_338615_)
    • getSerializedName

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