From 101cdea636220869b593eae8c1a1e7755fd3bd84 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Thu, 21 Apr 2011 16:15:59 +0100 Subject: [PATCH] Added Creeper.set/isPowered By: Dinnerbone --- .../main/java/org/bukkit/entity/Creeper.java | 35 +++++++++++-------- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/paper-api/src/main/java/org/bukkit/entity/Creeper.java b/paper-api/src/main/java/org/bukkit/entity/Creeper.java index a07e51571a..f83d39bd8a 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Creeper.java +++ b/paper-api/src/main/java/org/bukkit/entity/Creeper.java @@ -1,14 +1,21 @@ -/** - * - */ -package org.bukkit.entity; - -/** - * Represents a Creeper. - * - * @author Cogito - * - */ -public interface Creeper extends Monster { - -} + +package org.bukkit.entity; + +/** + * Represents a Creeper + */ +public interface Creeper extends Monster { + /** + * Checks if this Creeper is powered (Electrocuted) + * + * @return true if this creeper is powered + */ + public boolean isPowered(); + + /** + * Sets the Powered status of this Creeper + * + * @param value New Powered status + */ + public void setPowered(boolean value); +}