Paper/src/main/java/net/minecraft/server/BlockBloodStone.java

24 Zeilen
792 B
Java

2011-03-07 19:52:25 +01:00
package net.minecraft.server;
import org.bukkit.event.block.BlockRedstoneEvent; // CraftBukkit
2011-03-07 19:52:25 +01:00
public class BlockBloodStone extends Block {
public BlockBloodStone(int i, int j) {
super(i, j, Material.STONE);
2012-07-29 09:33:13 +02:00
this.a(CreativeModeTab.b);
2011-03-07 19:52:25 +01:00
}
2011-05-14 16:29:42 +02:00
// CraftBukkit start
public void doPhysics(World world, int i, int j, int k, int l) {
if (net.minecraft.server.Block.byId[l] != null && net.minecraft.server.Block.byId[l].isPowerSource()) {
org.bukkit.block.Block block = world.getWorld().getBlockAt(i, j, k);
2011-03-07 19:52:25 +01:00
int power = block.getBlockPower();
2011-03-31 22:40:00 +02:00
BlockRedstoneEvent event = new BlockRedstoneEvent(block, power, power);
world.getServer().getPluginManager().callEvent(event);
2011-03-07 19:52:25 +01:00
}
}
2011-05-14 16:29:42 +02:00
// CraftBukkit end
2011-03-07 19:52:25 +01:00
}