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 TypeMethodDescriptionbooleanbooleanstatic BlockTypeWrapperget(BlockCategory blockCategory) static BlockTypeWrapperstatic BlockTypeWrapperReturns the block category associated with this wrapper.inthashCode()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.REGISTRYis 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.REGISTRYisn't populated yet, null is returned.- Returns:
- the block category represented by this wrapper.
-
equals
-
hashCode
public int hashCode() -
getBlockType
-