Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-20 05:20:07 +01:00
24 Zeilen
792 B
Java
24 Zeilen
792 B
Java
package net.minecraft.server;
|
|
|
|
import org.bukkit.event.block.BlockRedstoneEvent; // CraftBukkit
|
|
|
|
public class BlockBloodStone extends Block {
|
|
|
|
public BlockBloodStone(int i, int j) {
|
|
super(i, j, Material.STONE);
|
|
this.a(CreativeModeTab.b);
|
|
}
|
|
|
|
// 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);
|
|
int power = block.getBlockPower();
|
|
|
|
BlockRedstoneEvent event = new BlockRedstoneEvent(block, power, power);
|
|
world.getServer().getPluginManager().callEvent(event);
|
|
}
|
|
}
|
|
// CraftBukkit end
|
|
}
|