Class BlockBehaviorDoubleSlab

java.lang.Object
org.cloudburstmc.api.block.behavior.BlockBehavior
Direct Known Subclasses:
BlockBehaviorDoubleSlabWood

public class BlockBehaviorDoubleSlab extends BlockBehaviorSolid
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.cloudburstmc.api.block.BlockType
     
    protected org.cloudburstmc.api.block.trait.BlockTrait
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    BlockBehaviorDoubleSlab​(org.cloudburstmc.api.block.BlockType slabType)
     
    BlockBehaviorDoubleSlab​(org.cloudburstmc.api.block.BlockType slabType, org.cloudburstmc.api.block.trait.BlockTrait<?> typeTrait)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.cloudburstmc.api.util.data.BlockColor
    getColor​(org.cloudburstmc.api.block.Block block)
     
    org.cloudburstmc.api.item.ItemStack[]
    getDrops​(org.cloudburstmc.api.block.Block block, org.cloudburstmc.api.item.ItemStack hand)
     

    Methods inherited from class org.cloudburstmc.server.block.behavior.BaseBlockBehavior

    getBreakTime, placeBlock

    Methods inherited from class org.cloudburstmc.api.block.behavior.BlockBehavior

    addVelocityToEntity, canBeActivated, canBeBrokenWith, canBeClimbed, canBeFlooded, canBePlaced, canBePushed, canBeReplaced, canHarvestWithHand, canPassThrough, canSilkTouch, canWaterlogFlowing, canWaterlogSource, checkTool, clone, collidesWithBB, collidesWithBB, getBoundingBox, getBoundingBox, getBoundingBox, getBurnAbility, getBurnChance, getCollisionBoxes, getCollisionBoxes, getComparatorInputOverride, getDescriptionId, getDropExp, getFilterLevel, getFrictionFactor, getHardness, getLightLevel, getMinimalTier, getResistance, getSaveId, getStrongPower, getToolType, getWeakPower, hasComparatorInputOverride, hasEntityCollision, isBreakable, isLiquid, isNormalBlock, isPowerSource, isSolid, isTransparent, onActivate, onActivate, onBreak, onBreak, onEntityCollide, onUpdate, place, placeBlock, placeBlock, placeBlock, removeBlock, removeBlock, tickRate, toItem

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • slabType

      protected org.cloudburstmc.api.block.BlockType slabType
    • typeTrait

      protected org.cloudburstmc.api.block.trait.BlockTrait typeTrait
  • Constructor Details

    • BlockBehaviorDoubleSlab

      public BlockBehaviorDoubleSlab(org.cloudburstmc.api.block.BlockType slabType)
    • BlockBehaviorDoubleSlab

      public BlockBehaviorDoubleSlab(org.cloudburstmc.api.block.BlockType slabType, org.cloudburstmc.api.block.trait.BlockTrait<?> typeTrait)
  • Method Details

    • getDrops

      public org.cloudburstmc.api.item.ItemStack[] getDrops(org.cloudburstmc.api.block.Block block, org.cloudburstmc.api.item.ItemStack hand)
      Overrides:
      getDrops in class org.cloudburstmc.api.block.behavior.BlockBehavior
    • getColor

      public org.cloudburstmc.api.util.data.BlockColor getColor(org.cloudburstmc.api.block.Block block)
      Overrides:
      getColor in class BlockBehaviorSolid