Archiviert
13
0
Dieses Repository wurde am 2024-12-25 archiviert. Du kannst Dateien ansehen und es klonen, aber nicht pushen oder Issues/Pull-Requests öffnen.
Paper-Old/src/main/java/net/minecraft/server/BlockBloodStone.java

28 Zeilen
849 B
Java

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