
net.minecraft.server.BlockBloodStone Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of walk-server Show documentation
Show all versions of walk-server Show documentation
A spigot fork to kotlin structure and news.
package net.minecraft.server;
import org.bukkit.event.block.BlockRedstoneEvent;
public class BlockBloodStone extends Block {
public BlockBloodStone() {
super(Material.STONE);
this.a(CreativeModeTab.b);
}
public MaterialMapColor g(IBlockData iblockdata) {
return MaterialMapColor.K;
}
// CraftBukkit start
@Override
public void doPhysics(World world, BlockPosition pos, IBlockData iblockdata, Block block) {
if (block != null && block.isPowerSource()) {
org.bukkit.block.Block bl = world.getWorld().getBlockAt(pos.getX(), pos.getY(), pos.getZ());
int power = bl.getBlockPower();
BlockRedstoneEvent event = new BlockRedstoneEvent(bl, power, power);
world.getServer().getPluginManager().callEvent(event);
}
}
// CraftBukkit end
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy