FlowerPot

A pot that can contain a plant.

Constructors

this
this(sul.blocks.Block data, Item item)
Undocumented in source.

Members

Functions

action
ubyte action()
Undocumented in source. Be warned that the author may not have intended to support it.
onInteract
bool onInteract(Player player, Item item, BlockPosition position, ubyte face)
Undocumented in source. Be warned that the author may not have intended to support it.
parseJavaCompound
void parseJavaCompound(Compound compound)
Undocumented in source. Be warned that the author may not have intended to support it.
parsePocketCompound
void parsePocketCompound(Compound compound)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

item
Item item [@property getter]

Gets the current item placed in the pot. It may be null if the pot is empty.

item
Item item [@property setter]

Places or removes an item from the pot.

javaCompound
Compound javaCompound [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
javaSpawnId
string javaSpawnId [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
pocketCompound
Compound pocketCompound [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
pocketSpawnId
string pocketSpawnId [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From Tile

tid
uint tid [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
javaSpawnId
string javaSpawnId [@property getter]
pocketSpawnId
string pocketSpawnId [@property getter]

Gets the tile's spawn id for Minecraft and Minecraft: Pocket Edition. They're usually in snake case in Minecraft (flower_pot) and in pascal case in Minecraft: Pocket Edition (FlowerPot).

javaCompound
Compound javaCompound [@property getter]
pocketCompound
Compound pocketCompound [@property getter]

Gets the named binary tag. The tag may be null if the tile does not exists in the game's version or when the tile is in its inital state (or empty).

parseJavaCompound
void parseJavaCompound(Compound compound)

Parses a non-null compound saved in the Minecraft's Anvil format.

parsePocketCompound
void parsePocketCompound(Compound compound)

Parses a non-null compound saved from a Minecraft: Pocket Edition's LevelDB format.

place
void place(World world, BlockPosition position)
Undocumented in source. Be warned that the author may not have intended to support it.
unplace
void unplace()
Undocumented in source. Be warned that the author may not have intended to support it.
placed
bool placed [@property getter]

Indicates whether the tile has been placed in a world.

world
World world [@property getter]

Gets the world the tile is placed in, if placed is true.

position
BlockPosition position [@property getter]

Gets the tile's position in the world, if placed.

action
ubyte action [@property getter]

Gets the action type of the tile, used in Minecraft's UpdateBlockEntity packet.

update
void update()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta