Class BlockBehaviorStemMelon


public class BlockBehaviorStemMelon extends BlockBehaviorCrops
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.cloudburstmc.api.item.ItemStack[]
    getDrops​(org.cloudburstmc.api.block.Block block, org.cloudburstmc.api.item.ItemStack hand)
     
    int
    onUpdate​(org.cloudburstmc.api.block.Block block, int type)
     
    org.cloudburstmc.api.item.ItemStack
    toItem​(org.cloudburstmc.api.block.Block block)
     

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

    canBeActivated, getColor, onActivate, place

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

    getBreakTime, placeBlock

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

    addVelocityToEntity, 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, onBreak, onBreak, onEntityCollide, placeBlock, placeBlock, placeBlock, removeBlock, removeBlock, tickRate

    Methods inherited from class java.lang.Object

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

    • BlockBehaviorStemMelon

      public BlockBehaviorStemMelon()
  • Method Details

    • onUpdate

      public int onUpdate(org.cloudburstmc.api.block.Block block, int type)
      Overrides:
      onUpdate in class BlockBehaviorCrops
    • toItem

      public org.cloudburstmc.api.item.ItemStack toItem(org.cloudburstmc.api.block.Block block)
      Overrides:
      toItem in class org.cloudburstmc.api.block.behavior.BlockBehavior
    • 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