34
paper-api/src/main/java/org/bukkit/block/DecoratedPot.java
Normal file
34
paper-api/src/main/java/org/bukkit/block/DecoratedPot.java
Normal file
@@ -0,0 +1,34 @@
|
||||
package org.bukkit.block;
|
||||
|
||||
import java.util.List;
|
||||
import org.bukkit.Material;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* Represents a captured state of a decorated pot.
|
||||
*/
|
||||
public interface DecoratedPot extends TileState {
|
||||
|
||||
/**
|
||||
* Gets the shards which will be dropped when this pot is broken.
|
||||
*
|
||||
* @return shards
|
||||
*/
|
||||
@NotNull
|
||||
public List<Material> getShards();
|
||||
|
||||
/**
|
||||
* Add a shard item which will be dropped when this pot is broken.
|
||||
*
|
||||
* @param material shard item
|
||||
*/
|
||||
public void addShard(@NotNull Material material);
|
||||
|
||||
/**
|
||||
* Set the shards which will be dropped when this pot is broken.
|
||||
*
|
||||
* @param shard list of items
|
||||
*/
|
||||
public void setShards(@Nullable List<Material> shard);
|
||||
}
|
||||
28
paper-api/src/main/java/org/bukkit/block/SuspiciousSand.java
Normal file
28
paper-api/src/main/java/org/bukkit/block/SuspiciousSand.java
Normal file
@@ -0,0 +1,28 @@
|
||||
package org.bukkit.block;
|
||||
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
import org.bukkit.loot.Lootable;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* Represents a captured state of suspicious sand.
|
||||
*/
|
||||
public interface SuspiciousSand extends Lootable, TileState {
|
||||
|
||||
/**
|
||||
* Get the item which will be revealed when the sand is fully brushed away
|
||||
* and uncovered.
|
||||
*
|
||||
* @return the item
|
||||
*/
|
||||
@Nullable
|
||||
public ItemStack getItem();
|
||||
|
||||
/**
|
||||
* Sets the item which will be revealed when the sand is fully brushed away
|
||||
* and uncovered.
|
||||
*
|
||||
* @param item the item
|
||||
*/
|
||||
public void setItem(@Nullable ItemStack item);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package org.bukkit.block.data.type;
|
||||
|
||||
import org.bukkit.block.data.Directional;
|
||||
import org.bukkit.block.data.Waterlogged;
|
||||
|
||||
public interface DecoratedPot extends Directional, Waterlogged {
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package org.bukkit.block.data.type;
|
||||
|
||||
import org.bukkit.block.data.Directional;
|
||||
|
||||
/**
|
||||
* 'flower_amount' represents the number of petals.
|
||||
*/
|
||||
public interface PinkPetals extends Directional {
|
||||
|
||||
/**
|
||||
* Gets the value of the 'flower_amount' property.
|
||||
*
|
||||
* @return the 'flower_amount' value
|
||||
*/
|
||||
int getFlowerAmount();
|
||||
|
||||
/**
|
||||
* Sets the value of the 'flower_amount' property.
|
||||
*
|
||||
* @param flower_amount the new 'flower_amount' value
|
||||
*/
|
||||
void setFlowerAmount(int flower_amount);
|
||||
|
||||
/**
|
||||
* Gets the maximum allowed value of the 'flower_amount' property.
|
||||
*
|
||||
* @return the maximum 'flower_amount' value
|
||||
*/
|
||||
int getMaximumFlowerAmount();
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package org.bukkit.block.data.type;
|
||||
|
||||
import org.bukkit.block.data.BlockData;
|
||||
|
||||
/**
|
||||
* 'dusted' represents how far uncovered by brush the block is.
|
||||
*/
|
||||
public interface SuspiciousSand extends BlockData {
|
||||
|
||||
/**
|
||||
* Gets the value of the 'dusted' property.
|
||||
*
|
||||
* @return the 'dusted' value
|
||||
*/
|
||||
int getDusted();
|
||||
|
||||
/**
|
||||
* Sets the value of the 'dusted' property.
|
||||
*
|
||||
* @param dusted the new 'dusted' value
|
||||
*/
|
||||
void setDusted(int dusted);
|
||||
|
||||
/**
|
||||
* Gets the maximum allowed value of the 'dusted' property.
|
||||
*
|
||||
* @return the maximum 'dusted' value
|
||||
*/
|
||||
int getMaximumDusted();
|
||||
}
|
||||
Reference in New Issue
Block a user