java.lang.Object
org.cloudburstmc.api.block.BlockType
- All Implemented Interfaces:
ItemType
-
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanbooleancreateItem(int amount, Object... metadata)voidforEachPermutation(Consumer<BlockState> action)@Nullable BlockTypegetBlock()intintintfloatfloatgetId()int@Nullable Class<?>float@Nullable TierType@Nullable ToolTypeSet<BlockTrait<?>>intbooleanisBlock()booleanbooleanbooleanbooleanbooleanbooleanisSolid()booleanstatic BlockTypeof(Identifier id, BlockTrait<?>... traits)toString()booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.cloudburstmc.api.item.ItemType
createItem, getArmorPoints, getAttackDamage, getBlockType, getDurability, getFuelTime, getToughness, isStackable
-
Method Details
-
getId
-
getTraits
-
getStates
-
getDefaultState
-
forEachPermutation
-
of
-
isBlock
public boolean isBlock() -
isPlaceable
public boolean isPlaceable()- Specified by:
isPlaceablein interfaceItemType
-
blocksMotion
public boolean blocksMotion() -
blocksWater
public boolean blocksWater() -
isFloodable
public boolean isFloodable() -
isReplaceable
public boolean isReplaceable() -
isTransparent
public boolean isTransparent() -
getTranslucency
public int getTranslucency() -
getFilterLevel
public int getFilterLevel() -
isSolid
public boolean isSolid() -
isDiggable
public boolean isDiggable() -
getBurnChance
public int getBurnChance() -
getBurnAbility
public int getBurnAbility() -
getHardness
public float getHardness() -
getFriction
public float getFriction() -
getResistance
public float getResistance() -
getBlock
-
getMetadataClass
- Specified by:
getMetadataClassin interfaceItemType
-
getMaximumStackSize
public int getMaximumStackSize()- Specified by:
getMaximumStackSizein interfaceItemType
-
createItem
- Specified by:
createItemin interfaceItemType
-
getToolType
- Specified by:
getToolTypein interfaceItemType
-
getTierType
- Specified by:
getTierTypein interfaceItemType
-
getBoundingBox
-
isPowerSource
public boolean isPowerSource() -
canBeSilkTouched
public boolean canBeSilkTouched() -
waterlogsSource
public boolean waterlogsSource() -
breaksFlowing
public boolean breaksFlowing() -
toString
-