Class BlockTypeWrapper
java.lang.Object
com.plotsquared.core.plot.flag.types.BlockTypeWrapper
Container that class either contains a
BlockType
or a BlockCategory
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
static BlockTypeWrapper
get
(BlockCategory blockCategory) static BlockTypeWrapper
static BlockTypeWrapper
Returns the block category associated with this wrapper.int
hashCode()
toString()
-
Method Details
-
get
-
get
-
get
-
toString
-
accepts
-
getBlockCategory
Returns the block category associated with this wrapper.
Invocation will try to lazily initialize the block category if it's not set yet but the category id is present. IfBlockCategory.REGISTRY
is already populated but does not contain a category with the given name, a BlockCategory containing no items is returned. If this wrapper does not wrap a BlockCategory, null is returned.
IfBlockCategory.REGISTRY
isn't populated yet, null is returned.- Returns:
- the block category represented by this wrapper.
-
equals
-
hashCode
-
getBlockType
-