Interface FallingBlock

    • Method Detail

      • getBlockData

        @NotNull
        BlockData getBlockData()
        Get the data for the falling block
        Returns:
        data of the block
      • getDropItem

        boolean getDropItem()
        Get if the falling block will break into an item if it cannot be placed
        Returns:
        true if the block will break into an item when obstructed
      • setDropItem

        void setDropItem​(boolean drop)
        Set if the falling block will break into an item if it cannot be placed
        Parameters:
        drop - true to break into an item when obstructed
      • canHurtEntities

        boolean canHurtEntities()
        Get the HurtEntities state of this block.
        Returns:
        whether entities will be damaged by this block.
      • setHurtEntities

        void setHurtEntities​(boolean hurtEntities)
        Set the HurtEntities state of this block.
        Parameters:
        hurtEntities - whether entities will be damaged by this block.