Class BlockType

java.lang.Object
org.cloudburstmc.api.block.BlockType
All Implemented Interfaces:
ItemType

public final class BlockType extends Object implements ItemType
  • Method Details

    • getId

      public Identifier getId()
      Specified by:
      getId in interface ItemType
    • getTraits

      public Set<BlockTrait<?>> getTraits()
    • getStates

      public List<BlockState> getStates()
    • getDefaultState

      public BlockState getDefaultState()
    • forEachPermutation

      public void forEachPermutation(Consumer<BlockState> action)
    • of

      public static BlockType of(Identifier id, BlockTrait<?>... traits)
    • isBlock

      public boolean isBlock()
      Specified by:
      isBlock in interface ItemType
    • isPlaceable

      public boolean isPlaceable()
      Specified by:
      isPlaceable in interface ItemType
    • 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

      public @Nullable BlockType getBlock()
      Specified by:
      getBlock in interface ItemType
    • getMetadataClass

      public @Nullable Class<?> getMetadataClass()
      Specified by:
      getMetadataClass in interface ItemType
    • getMaximumStackSize

      public int getMaximumStackSize()
      Specified by:
      getMaximumStackSize in interface ItemType
    • createItem

      public ItemStack createItem(int amount, Object... metadata)
      Specified by:
      createItem in interface ItemType
    • getToolType

      public @Nullable ToolType getToolType()
      Specified by:
      getToolType in interface ItemType
    • getTierType

      public @Nullable TierType getTierType()
      Specified by:
      getTierType in interface ItemType
    • getBoundingBox

      public AxisAlignedBB getBoundingBox()
    • isPowerSource

      public boolean isPowerSource()
    • canBeSilkTouched

      public boolean canBeSilkTouched()
    • waterlogsSource

      public boolean waterlogsSource()
    • breaksFlowing

      public boolean breaksFlowing()
    • toString

      public String toString()
      Overrides:
      toString in class Object