summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorSenmori <thesenmori@gmail.com>2017-06-12 02:49:28 -0400
committermd_5 <git@md-5.net>2017-06-12 19:20:54 +1000
commit494bb508ace4dc646611ab6c04211e6416648d9b (patch)
tree1f60ede8534284bd8b28b7c86b1d08445041e5e9 /src/main
parent7b5ab33d620b1d19e00152b4a0d64c160712c3b7 (diff)
downloadbukkit-494bb508ace4dc646611ab6c04211e6416648d9b.tar
bukkit-494bb508ace4dc646611ab6c04211e6416648d9b.tar.gz
bukkit-494bb508ace4dc646611ab6c04211e6416648d9b.tar.lz
bukkit-494bb508ace4dc646611ab6c04211e6416648d9b.tar.xz
bukkit-494bb508ace4dc646611ab6c04211e6416648d9b.zip
Add missing PistonMoveReactions.
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/bukkit/block/PistonMoveReaction.java17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/block/PistonMoveReaction.java b/src/main/java/org/bukkit/block/PistonMoveReaction.java
index e5279f7e..3df37d0d 100644
--- a/src/main/java/org/bukkit/block/PistonMoveReaction.java
+++ b/src/main/java/org/bukkit/block/PistonMoveReaction.java
@@ -3,6 +3,10 @@ package org.bukkit.block;
import java.util.HashMap;
import java.util.Map;
+/**
+ * Represents how a block or entity will react when interacting with a piston
+ * when it is extending or retracting.
+ */
public enum PistonMoveReaction {
/**
@@ -16,7 +20,18 @@ public enum PistonMoveReaction {
/**
* Indicates that the block will resist being pushed or pulled.
*/
- BLOCK(2);
+ BLOCK(2),
+ /**
+ * Indicates that the entity will ignore any interaction(s) with
+ * pistons.
+ * <br>
+ * Blocks should use {@link PistonMoveReaction#BLOCK}.
+ */
+ IGNORE(3),
+ /**
+ * Indicates that the block can only be pushed by pistons, not pulled.
+ */
+ PUSH_ONLY(4);
private int id;
private static Map<Integer, PistonMoveReaction> byId = new HashMap<Integer, PistonMoveReaction>();