Search in sources :

Example 1 with DropperBlock

use of net.minecraft.block.DropperBlock in project Magma-1.16.x by magmafoundation.

the class CraftDropper method drop.

@Override
public void drop() {
    Block block = getBlock();
    if (block.getType() == Material.DROPPER) {
        CraftWorld world = (CraftWorld) this.getWorld();
        DropperBlock drop = (DropperBlock) Blocks.DROPPER;
        drop.dispenseFrom(world.getHandle(), this.getPosition());
    }
}
Also used : Block(org.bukkit.block.Block) DropperBlock(net.minecraft.block.DropperBlock) DropperBlock(net.minecraft.block.DropperBlock) CraftWorld(org.bukkit.craftbukkit.v1_16_R3.CraftWorld)

Example 2 with DropperBlock

use of net.minecraft.block.DropperBlock in project LoliServer by Loli-Server.

the class CraftDropper method drop.

@Override
public void drop() {
    Block block = getBlock();
    if (block.getType() == Material.DROPPER) {
        CraftWorld world = (CraftWorld) this.getWorld();
        DropperBlock drop = (DropperBlock) Blocks.DROPPER;
        drop.dispenseFrom(world.getHandle(), this.getPosition());
    }
}
Also used : Block(org.bukkit.block.Block) DropperBlock(net.minecraft.block.DropperBlock) DropperBlock(net.minecraft.block.DropperBlock) CraftWorld(org.bukkit.craftbukkit.v1_16_R3.CraftWorld)

Aggregations

DropperBlock (net.minecraft.block.DropperBlock)2 Block (org.bukkit.block.Block)2 CraftWorld (org.bukkit.craftbukkit.v1_16_R3.CraftWorld)2