Fork of Poseidon providing Bukkit #1060 to older Beta versions (b1.0-b1.7.3)
1package net.minecraft.server;
2
3import org.bukkit.event.block.BlockRedstoneEvent;
4
5public class BlockBloodStone extends Block {
6
7 public BlockBloodStone(int i, int j) {
8 super(i, j, Material.STONE);
9 }
10
11 // CraftBukkit start
12 public void doPhysics(World world, int i, int j, int k, int l) {
13 if (net.minecraft.server.Block.byId[l] != null && net.minecraft.server.Block.byId[l].isPowerSource()) {
14 org.bukkit.block.Block block = world.getWorld().getBlockAt(i, j, k);
15 int power = block.getBlockPower();
16
17 BlockRedstoneEvent event = new BlockRedstoneEvent(block, power, power);
18 world.getServer().getPluginManager().callEvent(event);
19 }
20 }
21 // CraftBukkit end
22}