mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-21 05:44:17 +00:00
SPIGOT-1292: BlockState based FlowerPot API.
This commit is contained in:
parent
434c29cbe1
commit
196238497b
2 changed files with 27 additions and 0 deletions
23
src/main/java/org/bukkit/block/FlowerPot.java
Normal file
23
src/main/java/org/bukkit/block/FlowerPot.java
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
package org.bukkit.block;
|
||||||
|
|
||||||
|
import org.bukkit.material.MaterialData;
|
||||||
|
|
||||||
|
public interface FlowerPot extends BlockState {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the item present in this flower pot.
|
||||||
|
*
|
||||||
|
* @return item present, or null for empty.
|
||||||
|
*/
|
||||||
|
MaterialData getContents();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the item present in this flower pot.
|
||||||
|
*
|
||||||
|
* NOTE: The Vanilla Minecraft client will currently not refresh this until
|
||||||
|
* a block update is triggered.
|
||||||
|
*
|
||||||
|
* @param item new item, or null for empty.
|
||||||
|
*/
|
||||||
|
void setContents(MaterialData item);
|
||||||
|
}
|
|
@ -6,7 +6,11 @@ import org.bukkit.TreeSpecies;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a flower pot.
|
* Represents a flower pot.
|
||||||
|
*
|
||||||
|
* @deprecated Flower pots are now tile entities, use
|
||||||
|
* {@link org.bukkit.block.FlowerPot}.
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public class FlowerPot extends MaterialData {
|
public class FlowerPot extends MaterialData {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue