summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/bukkit/entity/PufferFish.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/bukkit/entity/PufferFish.java')
-rw-r--r--src/main/java/org/bukkit/entity/PufferFish.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/entity/PufferFish.java b/src/main/java/org/bukkit/entity/PufferFish.java
new file mode 100644
index 00000000..2d26c19b
--- /dev/null
+++ b/src/main/java/org/bukkit/entity/PufferFish.java
@@ -0,0 +1,21 @@
+package org.bukkit.entity;
+
+/**
+ * Represents a puffer fish.
+ */
+public interface PufferFish extends Fish {
+
+ /**
+ * Returns the current puff state of this fish (i.e. how inflated it is).
+ *
+ * @return current puff state
+ */
+ int getPuffState();
+
+ /**
+ * Sets the current puff state of this fish (i.e. how inflated it is).
+ *
+ * @param state new puff state
+ */
+ void setPuffState(int state);
+}