mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-03 23:07:40 +01:00
#557: Add TNTPrimed#setSource method
By: Jakub Zacek <dawon.cz@gmail.com>
This commit is contained in:
parent
7a26733389
commit
08e19a69af
@ -39,4 +39,18 @@ public interface TNTPrimed extends Explosive {
|
|||||||
*/
|
*/
|
||||||
@Nullable
|
@Nullable
|
||||||
public Entity getSource();
|
public Entity getSource();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the source of this primed TNT.
|
||||||
|
*
|
||||||
|
* The source is the entity responsible for the creation of this primed TNT.
|
||||||
|
* <p>
|
||||||
|
* Must be instance of {@link org.bukkit.entity.LivingEntity} otherwise will
|
||||||
|
* be set to null. The parameter is typed {@link
|
||||||
|
* org.bukkit.entity.Entity} to be consistent with {@link
|
||||||
|
* org.bukkit.entity.TNTPrimed#getSource()} method.
|
||||||
|
*
|
||||||
|
* @param source the source of this primed TNT
|
||||||
|
*/
|
||||||
|
public void setSource(@Nullable Entity source);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user