Class AbstractSpawner


  • public abstract class AbstractSpawner
    extends java.lang.Object
    • Field Detail

      • LOGGER

        private static final org.apache.logging.log4j.Logger LOGGER
      • spawnDelay

        private int spawnDelay
      • spin

        private double spin
      • oSpin

        private double oSpin
      • minSpawnDelay

        private int minSpawnDelay
      • maxSpawnDelay

        private int maxSpawnDelay
      • spawnCount

        private int spawnCount
      • displayEntity

        @Nullable
        private Entity displayEntity
      • maxNearbyEntities

        private int maxNearbyEntities
      • requiredPlayerRange

        private int requiredPlayerRange
      • spawnRange

        private int spawnRange
    • Constructor Detail

      • AbstractSpawner

        public AbstractSpawner()
    • Method Detail

      • setEntityId

        public void setEntityId​(EntityType<?> p_200876_1_)
      • isNearPlayer

        private boolean isNearPlayer()
      • tick

        public void tick()
      • delay

        private void delay()
      • getOrCreateDisplayEntity

        @Nullable
        public Entity getOrCreateDisplayEntity()
      • onEventTriggered

        public boolean onEventTriggered​(int p_98268_1_)
      • broadcastEvent

        public abstract void broadcastEvent​(int p_98267_1_)
      • getLevel

        public abstract World getLevel()
      • getPos

        public abstract BlockPos getPos()
      • getSpin

        public double getSpin()
      • getoSpin

        public double getoSpin()
      • getSpawnerEntity

        @Nullable
        public Entity getSpawnerEntity()