Interface BlockScore
public interface BlockScore
How much of your score is calculated based on a specific blockId.
- Since:
- v2.1.2
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
The possible states of a BlockScore. -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.inventory.ItemStack
getBlock()
The type of block.int
getCount()
The number of blocks of this type found on the island.getName()
User displayable name of the block.double
getScore()
The score contribution from this block.getState()
The current state of this block.
-
Method Details
-
getBlock
org.bukkit.inventory.ItemStack getBlock()The type of block.- Returns:
- The type of block.
- Since:
- v2.1.2
-
getCount
int getCount()The number of blocks of this type found on the island.- Returns:
- number of blocks of this type found on the island.
- Since:
- v2.1.2
-
getScore
double getScore()The score contribution from this block.- Returns:
- score contribution from this block.
- Since:
- v2.1.2
-
getState
BlockScore.State getState()The current state of this block.- Returns:
- The current state of this block.
- Since:
- v2.1.2
-
getName
String getName()User displayable name of the block.
I.e. "Diamond Block".- Returns:
- User displayable name of the block.
- Since:
- v2.1.2
-