Package com.plotsquared.core.util
Class BlockUtil
java.lang.Object
com.plotsquared.core.util.BlockUtil
BlockState
related utility methods-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable BlockState
get
(int id) Get aBlockState
from a legacy idstatic @Nullable BlockState
get
(int id, int data) Get aBlockState
from a legacy id-data pairstatic @Nullable BlockState
Get aBlockState
from its ID
-
Method Details
-
get
Get aBlockState
from a legacy id- Parameters:
id
- Legacy ID- Returns:
- Block state, or
null
-
get
Get aBlockState
from a legacy id-data pair- Parameters:
id
- Legacy IDdata
- Legacy data- Returns:
- Block state, or
null
-
get
Get aBlockState
from its ID- Parameters:
id
- String or integer ID- Returns:
- Parsed block state, or
null
if none could be parsed
-