From 08e19a69afaa7f412fb474666e96d3d4e7c998ad Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sun, 25 Oct 2020 18:10:02 +1100 Subject: [PATCH] #557: Add TNTPrimed#setSource method By: Jakub Zacek --- .../src/main/java/org/bukkit/entity/TNTPrimed.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/entity/TNTPrimed.java b/paper-api/src/main/java/org/bukkit/entity/TNTPrimed.java index 5a87893248..a23cfdf668 100644 --- a/paper-api/src/main/java/org/bukkit/entity/TNTPrimed.java +++ b/paper-api/src/main/java/org/bukkit/entity/TNTPrimed.java @@ -39,4 +39,18 @@ public interface TNTPrimed extends Explosive { */ @Nullable public Entity getSource(); + + /** + * Sets the source of this primed TNT. + * + * The source is the entity responsible for the creation of this primed TNT. + *

+ * 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); }