28
paper-api/src/main/java/org/bukkit/block/BrushableBlock.java
Normal file
28
paper-api/src/main/java/org/bukkit/block/BrushableBlock.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 or gravel.
|
||||
*/
|
||||
public interface BrushableBlock 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);
|
||||
}
|
||||
Reference in New Issue
Block a user