use of net.minecraft.block.BlockDispenser in project Magma by magmafoundation.
the class CraftDispenser method dispense.
@Override
public boolean dispense() {
Block block = getBlock();
if (block.getType() == Material.DISPENSER) {
CraftWorld world = (CraftWorld) this.getWorld();
BlockDispenser dispense = (BlockDispenser) Blocks.DISPENSER;
dispense.dispense(world.getHandle(), new BlockPos(getX(), getY(), getZ()));
return true;
} else {
return false;
}
}
use of net.minecraft.block.BlockDispenser in project CumServerPro by MCUmbrella.
the class CraftDispenser method dispense.
@Override
public boolean dispense() {
Block block = getBlock();
if (block.getType() == Material.DISPENSER) {
CraftWorld world = (CraftWorld) this.getWorld();
BlockDispenser dispense = (BlockDispenser) Blocks.DISPENSER;
dispense.dispense(world.getHandle(), new BlockPos(getX(), getY(), getZ()));
return true;
} else {
return false;
}
}
Aggregations