@@ -0,0 +1,44 @@
|
||||
package org.bukkit.block.data.type;
|
||||
|
||||
import org.bukkit.block.data.BlockData;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* 'orientation' is the direction the block is facing.
|
||||
*/
|
||||
public interface Jigsaw extends BlockData {
|
||||
|
||||
/**
|
||||
* Gets the value of the 'orientation' property.
|
||||
*
|
||||
* @return the 'orientation' value
|
||||
*/
|
||||
@NotNull
|
||||
Orientation getOrientation();
|
||||
|
||||
/**
|
||||
* Sets the value of the 'orientation' property.
|
||||
*
|
||||
* @param orientation the new 'orientation' value
|
||||
*/
|
||||
void setOrientation(@NotNull Orientation orientation);
|
||||
|
||||
/**
|
||||
* The directions the Jigsaw can be oriented.
|
||||
*/
|
||||
public enum Orientation {
|
||||
|
||||
DOWN_EAST,
|
||||
DOWN_NORTH,
|
||||
DOWN_SOUTH,
|
||||
DOWN_WEST,
|
||||
UP_EAST,
|
||||
UP_NORTH,
|
||||
UP_SOUTH,
|
||||
UP_WEST,
|
||||
WEST_UP,
|
||||
EAST_UP,
|
||||
NORTH_UP,
|
||||
SOUTH_UP;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package org.bukkit.block.data.type;
|
||||
|
||||
import org.bukkit.block.data.BlockData;
|
||||
|
||||
/**
|
||||
* 'charges' represents the amount of times the anchor may still be used.
|
||||
*/
|
||||
public interface RespawnAnchor extends BlockData {
|
||||
|
||||
/**
|
||||
* Gets the value of the 'charges' property.
|
||||
*
|
||||
* @return the 'charges' value
|
||||
*/
|
||||
int getCharges();
|
||||
|
||||
/**
|
||||
* Sets the value of the 'charges' property.
|
||||
*
|
||||
* @param charges the new 'charges' value
|
||||
*/
|
||||
void setCharges(int charges);
|
||||
|
||||
/**
|
||||
* Gets the maximum allowed value of the 'charges' property.
|
||||
*
|
||||
* @return the maximum 'charges' value
|
||||
*/
|
||||
int getMaximumCharges();
|
||||
}
|
||||
47
paper-api/src/main/java/org/bukkit/block/data/type/Wall.java
Normal file
47
paper-api/src/main/java/org/bukkit/block/data/type/Wall.java
Normal file
@@ -0,0 +1,47 @@
|
||||
package org.bukkit.block.data.type;
|
||||
|
||||
import org.bukkit.block.BlockFace;
|
||||
import org.bukkit.block.data.Waterlogged;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* This class encompasses the 'north', 'east', 'south', 'west', height flags
|
||||
* which are used to set the height of a wall.
|
||||
*/
|
||||
public interface Wall extends Waterlogged {
|
||||
|
||||
/**
|
||||
* Gets the height of the specified face.
|
||||
*
|
||||
* @param face to check
|
||||
* @return if face is enabled
|
||||
*/
|
||||
@NotNull
|
||||
Height getHeight(@NotNull BlockFace face);
|
||||
|
||||
/**
|
||||
* Set the height of the specified face.
|
||||
*
|
||||
* @param face to set
|
||||
* @param height the height
|
||||
*/
|
||||
void setHeight(@NotNull BlockFace face, @NotNull Height height);
|
||||
|
||||
/**
|
||||
* The different heights a face of a wall may have.
|
||||
*/
|
||||
public enum Height {
|
||||
/**
|
||||
* No wall present.
|
||||
*/
|
||||
NONE,
|
||||
/**
|
||||
* Low wall present.
|
||||
*/
|
||||
LOW,
|
||||
/**
|
||||
* Tall wall present.
|
||||
*/
|
||||
TALL;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user