From 8170574f8342120376b2d61eca81c56609b54ca6 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Mon, 12 Jun 2017 02:49:28 -0400 Subject: [PATCH] Add missing PistonMoveReactions. By: Senmori --- .../org/bukkit/block/PistonMoveReaction.java | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/paper-api/src/main/java/org/bukkit/block/PistonMoveReaction.java b/paper-api/src/main/java/org/bukkit/block/PistonMoveReaction.java index e5279f7ef3..3df37d0dce 100644 --- a/paper-api/src/main/java/org/bukkit/block/PistonMoveReaction.java +++ b/paper-api/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. + *
+ * 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 byId = new HashMap();