diff options
Diffstat (limited to 'patches/api/0081-PreCreatureSpawnEvent.patch')
-rw-r--r-- | patches/api/0081-PreCreatureSpawnEvent.patch | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/patches/api/0081-PreCreatureSpawnEvent.patch b/patches/api/0081-PreCreatureSpawnEvent.patch index 3213ed0ab2..49aacd6c01 100644 --- a/patches/api/0081-PreCreatureSpawnEvent.patch +++ b/patches/api/0081-PreCreatureSpawnEvent.patch @@ -16,7 +16,7 @@ See: https://github.com/PaperMC/Paper/issues/917 diff --git a/src/main/java/com/destroystokyo/paper/event/entity/PreCreatureSpawnEvent.java b/src/main/java/com/destroystokyo/paper/event/entity/PreCreatureSpawnEvent.java new file mode 100644 -index 0000000000000000000000000000000000000000..8b48759bf6f4fcef0847d9a2461993e3f2fdc9aa +index 0000000000000000000000000000000000000000..24b325625c76d0bc4cdb2f4063d6666aa3deac17 --- /dev/null +++ b/src/main/java/com/destroystokyo/paper/event/entity/PreCreatureSpawnEvent.java @@ -0,0 +1,105 @@ @@ -43,11 +43,11 @@ index 0000000000000000000000000000000000000000..8b48759bf6f4fcef0847d9a2461993e3 + */ +public class PreCreatureSpawnEvent extends Event implements Cancellable { + @NotNull private final Location location; -+ @NotNull private final EntityType type; ++ @NotNull private final EntityType<?> type; + @NotNull private final CreatureSpawnEvent.SpawnReason reason; + private boolean shouldAbortSpawn; + -+ public PreCreatureSpawnEvent(@NotNull Location location, @NotNull EntityType type, @NotNull CreatureSpawnEvent.SpawnReason reason) { ++ public PreCreatureSpawnEvent(@NotNull Location location, @NotNull EntityType<?> type, @NotNull CreatureSpawnEvent.SpawnReason reason) { + this.location = Preconditions.checkNotNull(location, "Location may not be null"); + this.type = Preconditions.checkNotNull(type, "Type may not be null"); + this.reason = Preconditions.checkNotNull(reason, "Reason may not be null"); @@ -65,7 +65,7 @@ index 0000000000000000000000000000000000000000..8b48759bf6f4fcef0847d9a2461993e3 + * @return The type of creature being spawned + */ + @NotNull -+ public EntityType getType() { ++ public EntityType<?> getType() { + return type; + } + |