1
0
Fork 0
mirror of https://github.com/PaperMC/Paper.git synced 2025-02-17 02:34:30 +01:00

SPIGOT-7613: Make note of impact of mobGriefing gamerule for World#createExplosion()

By: 2008Choco <hawkeboyz2@hotmail.com>
This commit is contained in:
Bukkit/Spigot 2024-04-17 19:13:27 +10:00
parent dcfc5f30a3
commit c71ea48a49

View file

@ -1089,6 +1089,12 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
/**
* Creates explosion at given coordinates with given power and optionally
* setting blocks on fire or breaking blocks.
* <p>
* Note that if a non-null {@code source} Entity is provided and {@code
* breakBlocks} is {@code true}, the value of {@code breakBlocks} will be
* ignored if {@link GameRule#MOB_GRIEFING} is {@code false} in the world
* in which the explosion occurs. In other words, the mob griefing gamerule
* will take priority over {@code breakBlocks} if explosions are not allowed.
*
* @param x X coordinate
* @param y Y coordinate
@ -1136,6 +1142,12 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
/**
* Creates explosion at given coordinates with given power and optionally
* setting blocks on fire or breaking blocks.
* <p>
* Note that if a non-null {@code source} Entity is provided and {@code
* breakBlocks} is {@code true}, the value of {@code breakBlocks} will be
* ignored if {@link GameRule#MOB_GRIEFING} is {@code false} in the world
* in which the explosion occurs. In other words, the mob griefing gamerule
* will take priority over {@code breakBlocks} if explosions are not allowed.
*
* @param loc Location to blow up
* @param power The power of explosion, where 4F is TNT