@@ -0,0 +1,44 @@
|
||||
package org.bukkit.block.data.type;
|
||||
|
||||
import org.bukkit.block.data.Ageable;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* 'leaves' represents the size of the leaves on this bamboo block.
|
||||
*/
|
||||
public interface Bamboo extends Ageable, Sapling {
|
||||
|
||||
/**
|
||||
* Gets the value of the 'leaves' property.
|
||||
*
|
||||
* @return the 'leaves' value
|
||||
*/
|
||||
@NotNull
|
||||
Leaves getLeaves();
|
||||
|
||||
/**
|
||||
* Sets the value of the 'leaves' property.
|
||||
*
|
||||
* @param leaves the new 'leaves' value
|
||||
*/
|
||||
void setLeaves(@NotNull Leaves leaves);
|
||||
|
||||
/**
|
||||
* Bamboo leaf size.
|
||||
*/
|
||||
public enum Leaves {
|
||||
|
||||
/**
|
||||
* No leaves.
|
||||
*/
|
||||
NONE,
|
||||
/**
|
||||
* Small leaves.
|
||||
*/
|
||||
SMALL,
|
||||
/**
|
||||
* Large leaves.
|
||||
*/
|
||||
LARGE;
|
||||
}
|
||||
}
|
||||
32
paper-api/src/main/java/org/bukkit/block/data/type/Bell.java
Normal file
32
paper-api/src/main/java/org/bukkit/block/data/type/Bell.java
Normal file
@@ -0,0 +1,32 @@
|
||||
package org.bukkit.block.data.type;
|
||||
|
||||
import org.bukkit.block.data.Directional;
|
||||
|
||||
/**
|
||||
* 'attachment' denotes how the bell is attached to its block.
|
||||
*/
|
||||
public interface Bell extends Directional {
|
||||
|
||||
/**
|
||||
* What the bell is attached to.
|
||||
*/
|
||||
public enum Attachment {
|
||||
|
||||
/**
|
||||
* Placed on floor.
|
||||
*/
|
||||
FLOOR,
|
||||
/**
|
||||
* Placed on ceiling.
|
||||
*/
|
||||
CEILING,
|
||||
/**
|
||||
* Placed on one wall.
|
||||
*/
|
||||
SINGLE_WALL,
|
||||
/**
|
||||
* Placed between two walls.
|
||||
*/
|
||||
DOUBLE_WALL;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package org.bukkit.block.data.type;
|
||||
|
||||
import org.bukkit.block.data.Lightable;
|
||||
import org.bukkit.block.data.Waterlogged;
|
||||
|
||||
/**
|
||||
* 'signal_fire' denotes whether the fire is extra smokey due to having a hay
|
||||
* bale placed beneath it.
|
||||
*/
|
||||
public interface Campfire extends Lightable, Waterlogged {
|
||||
|
||||
/**
|
||||
* Gets the value of the 'signal_fire' property.
|
||||
*
|
||||
* @return the 'signal_fire' value
|
||||
*/
|
||||
boolean isSignalFire();
|
||||
|
||||
/**
|
||||
* Sets the value of the 'signal_fire' property.
|
||||
*
|
||||
* @param signalFire the new 'signal_fire' value
|
||||
*/
|
||||
void setSignalFire(boolean signalFire);
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package org.bukkit.block.data.type;
|
||||
|
||||
/**
|
||||
* 'hanging' denotes whether the lantern is hanging from a block.
|
||||
*/
|
||||
public interface Lantern {
|
||||
|
||||
/**
|
||||
* Gets the value of the 'hanging' property.
|
||||
*
|
||||
* @return the 'hanging' value
|
||||
*/
|
||||
boolean isHanging();
|
||||
|
||||
/**
|
||||
* Sets the value of the 'hanging' property.
|
||||
*
|
||||
* @param hanging the new 'hanging' value
|
||||
*/
|
||||
void setHanging(boolean hanging);
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package org.bukkit.block.data.type;
|
||||
|
||||
import org.bukkit.block.data.Directional;
|
||||
import org.bukkit.block.data.Powerable;
|
||||
|
||||
/**
|
||||
* 'has_book' is a quick flag to check whether this lectern has a book inside
|
||||
* it.
|
||||
*/
|
||||
public interface Lectern extends Directional, Powerable {
|
||||
|
||||
/**
|
||||
* Gets the value of the 'has_book' property.
|
||||
*
|
||||
* @return the 'has_book' value
|
||||
*/
|
||||
boolean hasBook();
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
package org.bukkit.block.data.type;
|
||||
|
||||
import org.bukkit.block.data.Waterlogged;
|
||||
|
||||
/**
|
||||
* 'bottom' indicates whether the scaffolding is floating or not.
|
||||
* <br>
|
||||
* 'distance' indicates the distance from a scaffolding block placed above a
|
||||
* 'bottom' scaffold.
|
||||
* <br>
|
||||
* When 'distance' reaches {@link #getMaximumDistance()} the block will drop.
|
||||
*/
|
||||
public interface Scaffolding extends Waterlogged {
|
||||
|
||||
/**
|
||||
* Gets the value of the 'bottom' property.
|
||||
*
|
||||
* @return the 'bottom' value
|
||||
*/
|
||||
boolean isBottom();
|
||||
|
||||
/**
|
||||
* Sets the value of the 'bottom' property.
|
||||
*
|
||||
* @param bottom the new 'bottom' value
|
||||
*/
|
||||
void setBottom(boolean bottom);
|
||||
|
||||
/**
|
||||
* Gets the value of the 'distance' property.
|
||||
*
|
||||
* @return the 'distance' value
|
||||
*/
|
||||
int getDistance();
|
||||
|
||||
/**
|
||||
* Sets the value of the 'distance' property.
|
||||
*
|
||||
* @param distance the new 'distance' value
|
||||
*/
|
||||
void setDistance(int distance);
|
||||
|
||||
/**
|
||||
* Gets the maximum allowed value of the 'distance' property.
|
||||
*
|
||||
* @return the maximum 'distance' value
|
||||
*/
|
||||
int getMaximumDistance();
|
||||
}
|
||||
Reference in New Issue
Block a user