public class BlockSourceInformation
extends java.lang.Object
Constructor and Description |
---|
BlockSourceInformation(org.bukkit.entity.Player player,
org.bukkit.block.Block block,
BlockSource.BlockSourceType sourceType,
ClickType clickType)
Creates a new BlockSourceInformation.
|
Modifier and Type | Method and Description |
---|---|
org.bukkit.block.Block |
getBlock()
Gets the source block.
|
ClickType |
getClickType()
Gets the
ClickType used to select the source. |
long |
getCreationTime()
Gets when the source was created.
|
org.bukkit.entity.Player |
getPlayer()
Get the player the source belongs to.
|
BlockSource.BlockSourceType |
getSourceType()
Get what
source type the source is. |
void |
setBlock(org.bukkit.block.Block block)
Sets a new source block.
|
void |
setClickType(ClickType clickType)
Sets the source's
ClickType . |
void |
setCreationTime(long creationTime)
Sets the source's creation time.
|
void |
setPlayer(org.bukkit.entity.Player player)
Sets the player the source belongs to.
|
void |
setSourceType(BlockSource.BlockSourceType sourceType)
Sets the source type.
|
public BlockSourceInformation(org.bukkit.entity.Player player, org.bukkit.block.Block block, BlockSource.BlockSourceType sourceType, ClickType clickType)
player
- The player the source belongs toblock
- The source blocksourceType
- What source type
the block isclickType
- public org.bukkit.block.Block getBlock()
public void setBlock(org.bukkit.block.Block block)
block
- The new source block.public BlockSource.BlockSourceType getSourceType()
source type
the source is.public void setSourceType(BlockSource.BlockSourceType sourceType)
sourceType
- The new source type.public long getCreationTime()
public void setCreationTime(long creationTime)
creationTime
- The new creation timepublic org.bukkit.entity.Player getPlayer()
public void setPlayer(org.bukkit.entity.Player player)
player
- The player the source will belong topublic ClickType getClickType()
ClickType
used to select the source.