Class BlockBehaviorDragonEgg


public class BlockBehaviorDragonEgg extends BlockBehaviorFallable
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canBeActivated​(org.cloudburstmc.api.block.Block block)
     
    org.cloudburstmc.api.util.data.BlockColor
    getColor​(org.cloudburstmc.api.block.Block block)
     
    boolean
    isTransparent​(org.cloudburstmc.api.block.BlockState state)
     
    boolean
    onActivate​(org.cloudburstmc.api.block.Block block, org.cloudburstmc.api.item.ItemStack item, org.cloudburstmc.api.player.Player player)
     
    int
    onUpdate​(org.cloudburstmc.api.block.Block block, int type)
     
    void
    teleport​(org.cloudburstmc.api.block.Block block)
     

    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, getDrops, getFilterLevel, getFrictionFactor, getHardness, getLightLevel, getMinimalTier, getResistance, getSaveId, getStrongPower, getToolType, getWeakPower, hasComparatorInputOverride, hasEntityCollision, isBreakable, isLiquid, isNormalBlock, isPowerSource, isSolid, onActivate, onBreak, onBreak, onEntityCollide, 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
  • Constructor Details

    • BlockBehaviorDragonEgg

      public BlockBehaviorDragonEgg()
  • Method Details

    • getColor

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

      public boolean isTransparent(org.cloudburstmc.api.block.BlockState state)
      Overrides:
      isTransparent in class org.cloudburstmc.api.block.behavior.BlockBehavior
    • onUpdate

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

      public void teleport(org.cloudburstmc.api.block.Block block)
    • canBeActivated

      public boolean canBeActivated(org.cloudburstmc.api.block.Block block)
      Overrides:
      canBeActivated in class org.cloudburstmc.api.block.behavior.BlockBehavior
    • onActivate

      public boolean onActivate(org.cloudburstmc.api.block.Block block, org.cloudburstmc.api.item.ItemStack item, org.cloudburstmc.api.player.Player player)
      Overrides:
      onActivate in class org.cloudburstmc.api.block.behavior.BlockBehavior