mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-06 18:50:51 +01:00
Deprecate CHUNK_GEN spawn reason
By: md_5 <git@md-5.net>
This commit is contained in:
parent
fb39d0943e
commit
bd15f6a4bc
1 changed files with 8 additions and 0 deletions
|
@ -1,6 +1,8 @@
|
|||
package org.bukkit.event.entity;
|
||||
|
||||
import org.bukkit.Chunk;
|
||||
import org.bukkit.entity.LivingEntity;
|
||||
import org.bukkit.event.world.ChunkLoadEvent;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
|
@ -49,7 +51,13 @@ public class CreatureSpawnEvent extends EntitySpawnEvent {
|
|||
JOCKEY,
|
||||
/**
|
||||
* When a creature spawns due to chunk generation
|
||||
*
|
||||
* @deprecated no longer called, chunks are generated with entities
|
||||
* already existing. Consider using {@link ChunkLoadEvent},
|
||||
* {@link ChunkLoadEvent#isNewChunk()} and {@link Chunk#getEntities()}
|
||||
* for similar effect.
|
||||
*/
|
||||
@Deprecated
|
||||
CHUNK_GEN,
|
||||
/**
|
||||
* When a creature spawns from a spawner
|
||||
|
|
Loading…
Reference in a new issue