mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 01:06:01 +01:00
Add missing PistonMoveReactions.
By: Senmori <thesenmori@gmail.com>
This commit is contained in:
parent
050905af23
commit
8170574f83
1 changed files with 16 additions and 1 deletions
|
@ -3,6 +3,10 @@ package org.bukkit.block;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
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 {
|
public enum PistonMoveReaction {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -16,7 +20,18 @@ public enum PistonMoveReaction {
|
||||||
/**
|
/**
|
||||||
* Indicates that the block will resist being pushed or pulled.
|
* 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 int id;
|
||||||
private static Map<Integer, PistonMoveReaction> byId = new HashMap<Integer, PistonMoveReaction>();
|
private static Map<Integer, PistonMoveReaction> byId = new HashMap<Integer, PistonMoveReaction>();
|
||||||
|
|
Loading…
Add table
Reference in a new issue