Package | Description |
---|---|
com.projectkorra.projectkorra.util |
Modifier and Type | Method and Description |
---|---|
BlockSource.BlockSourceType |
BlockSourceInformation.getSourceType()
Get what
source type the source is. |
static BlockSource.BlockSourceType |
BlockSource.BlockSourceType.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BlockSource.BlockSourceType[] |
BlockSource.BlockSourceType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static BlockSourceInformation |
BlockSource.getBlockSourceInformation(org.bukkit.entity.Player player,
BlockSource.BlockSourceType sourceType,
ClickType clickType)
Access a block's source information, depending on a
BlockSource.BlockSourceType and ClickType . |
static org.bukkit.block.Block |
BlockSource.getSourceBlock(org.bukkit.entity.Player player,
double range,
BlockSource.BlockSourceType sourceType,
ClickType clickType)
Access a specific type of source block depending on a range and
ClickType . |
static BlockSourceInformation |
BlockSource.getValidBlockSourceInformation(org.bukkit.entity.Player player,
double range,
BlockSource.BlockSourceType sourceType,
ClickType clickType)
Access a block source information depending on a range,
BlockSource.BlockSourceType , and ClickType . |
void |
BlockSourceInformation.setSourceType(BlockSource.BlockSourceType sourceType)
Sets the source type.
|
Constructor and Description |
---|
BlockSourceInformation(org.bukkit.entity.Player player,
org.bukkit.block.Block block,
BlockSource.BlockSourceType sourceType,
ClickType clickType)
Creates a new BlockSourceInformation.
|