@@ -1,15 +1,9 @@
|
||||
package org.bukkit.block.data.type;
|
||||
|
||||
import org.bukkit.MinecraftExperimental;
|
||||
import org.bukkit.block.data.BlockData;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
package org.bukkit.block.data;
|
||||
|
||||
/**
|
||||
* 'dusted' represents how far uncovered by brush the block is.
|
||||
*/
|
||||
@MinecraftExperimental
|
||||
@ApiStatus.Experimental
|
||||
public interface SuspiciousSand extends BlockData {
|
||||
public interface Brushable extends BlockData {
|
||||
|
||||
/**
|
||||
* Gets the value of the 'dusted' property.
|
||||
28
paper-api/src/main/java/org/bukkit/block/data/Hatchable.java
Normal file
28
paper-api/src/main/java/org/bukkit/block/data/Hatchable.java
Normal file
@@ -0,0 +1,28 @@
|
||||
package org.bukkit.block.data;
|
||||
|
||||
/**
|
||||
* 'hatch' is the number of entities which may hatch from these eggs.
|
||||
*/
|
||||
public interface Hatchable extends BlockData {
|
||||
|
||||
/**
|
||||
* Gets the value of the 'hatch' property.
|
||||
*
|
||||
* @return the 'hatch' value
|
||||
*/
|
||||
int getHatch();
|
||||
|
||||
/**
|
||||
* Sets the value of the 'hatch' property.
|
||||
*
|
||||
* @param hatch the new 'hatch' value
|
||||
*/
|
||||
void setHatch(int hatch);
|
||||
|
||||
/**
|
||||
* Gets the maximum allowed value of the 'hatch' property.
|
||||
*
|
||||
* @return the maximum 'hatch' value
|
||||
*/
|
||||
int getMaximumHatch();
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package org.bukkit.block.data.type;
|
||||
|
||||
import org.bukkit.block.data.Directional;
|
||||
|
||||
public interface CalibratedSculkSensor extends Directional, SculkSensor { }
|
||||
@@ -1,9 +1,7 @@
|
||||
package org.bukkit.block.data.type;
|
||||
|
||||
import java.util.Set;
|
||||
import org.bukkit.MinecraftExperimental;
|
||||
import org.bukkit.block.data.Directional;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
@@ -13,8 +11,6 @@ import org.jetbrains.annotations.NotNull;
|
||||
* <br>
|
||||
* Block may have 0, 1... {@link #getMaximumOccupiedSlots()}-1 occupied slots.
|
||||
*/
|
||||
@MinecraftExperimental
|
||||
@ApiStatus.Experimental
|
||||
public interface ChiseledBookshelf extends Directional {
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
package org.bukkit.block.data.type;
|
||||
|
||||
import org.bukkit.MinecraftExperimental;
|
||||
import org.bukkit.block.data.Directional;
|
||||
import org.bukkit.block.data.Waterlogged;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
|
||||
@MinecraftExperimental
|
||||
@ApiStatus.Experimental
|
||||
public interface DecoratedPot extends Directional, Waterlogged {
|
||||
}
|
||||
|
||||
@@ -1,12 +1,8 @@
|
||||
package org.bukkit.block.data.type;
|
||||
|
||||
import org.bukkit.MinecraftExperimental;
|
||||
import org.bukkit.block.data.Attachable;
|
||||
import org.bukkit.block.data.Rotatable;
|
||||
import org.bukkit.block.data.Waterlogged;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
|
||||
@MinecraftExperimental
|
||||
@ApiStatus.Experimental
|
||||
public interface HangingSign extends Attachable, Rotatable, Waterlogged {
|
||||
}
|
||||
|
||||
@@ -1,14 +1,10 @@
|
||||
package org.bukkit.block.data.type;
|
||||
|
||||
import org.bukkit.MinecraftExperimental;
|
||||
import org.bukkit.block.data.Directional;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
|
||||
/**
|
||||
* 'flower_amount' represents the number of petals.
|
||||
*/
|
||||
@MinecraftExperimental
|
||||
@ApiStatus.Experimental
|
||||
public interface PinkPetals extends Directional {
|
||||
|
||||
/**
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
package org.bukkit.block.data.type;
|
||||
|
||||
import org.bukkit.block.data.Ageable;
|
||||
import org.bukkit.block.data.Bisected;
|
||||
|
||||
public interface PitcherCrop extends Ageable, Bisected {
|
||||
}
|
||||
@@ -1,13 +1,11 @@
|
||||
package org.bukkit.block.data.type;
|
||||
|
||||
import org.bukkit.block.data.BlockData;
|
||||
import org.bukkit.block.data.Hatchable;
|
||||
|
||||
/**
|
||||
* 'hatch' is the number of turtles which may hatch from these eggs.
|
||||
* <br>
|
||||
* 'eggs' is the number of eggs which appear in this block.
|
||||
*/
|
||||
public interface TurtleEgg extends BlockData {
|
||||
public interface TurtleEgg extends Hatchable {
|
||||
|
||||
/**
|
||||
* Gets the value of the 'eggs' property.
|
||||
@@ -36,25 +34,4 @@ public interface TurtleEgg extends BlockData {
|
||||
* @return the maximum 'eggs' value
|
||||
*/
|
||||
int getMaximumEggs();
|
||||
|
||||
/**
|
||||
* Gets the value of the 'hatch' property.
|
||||
*
|
||||
* @return the 'hatch' value
|
||||
*/
|
||||
int getHatch();
|
||||
|
||||
/**
|
||||
* Sets the value of the 'hatch' property.
|
||||
*
|
||||
* @param hatch the new 'hatch' value
|
||||
*/
|
||||
void setHatch(int hatch);
|
||||
|
||||
/**
|
||||
* Gets the maximum allowed value of the 'hatch' property.
|
||||
*
|
||||
* @return the maximum 'hatch' value
|
||||
*/
|
||||
int getMaximumHatch();
|
||||
}
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
package org.bukkit.block.data.type;
|
||||
|
||||
import org.bukkit.MinecraftExperimental;
|
||||
import org.bukkit.block.data.Directional;
|
||||
import org.bukkit.block.data.Waterlogged;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
|
||||
@MinecraftExperimental
|
||||
@ApiStatus.Experimental
|
||||
public interface WallHangingSign extends Directional, Waterlogged {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user