geforkt von Mirrors/Paper
b00de5f176
Added newlines at the end of files Fixed improper line endings on some files Matched start - end comments Added some missing comments for diffs Fixed syntax on some spots Minimized some diff Removed some no longer used files Added comment on some required files with no changes Fixed imports of items used once Added imports for items used more than once
47 Zeilen
1.3 KiB
Java
47 Zeilen
1.3 KiB
Java
package net.minecraft.server;
|
|
|
|
import java.util.Random;
|
|
|
|
public class BlockIce extends BlockHalfTransparant {
|
|
|
|
public BlockIce(int i, int j) {
|
|
super(i, j, Material.ICE, false);
|
|
this.frictionFactor = 0.98F;
|
|
this.a(true);
|
|
}
|
|
|
|
public void a(World world, EntityHuman entityhuman, int i, int j, int k, int l) {
|
|
super.a(world, entityhuman, i, j, k, l);
|
|
Material material = world.getMaterial(i, j - 1, k);
|
|
|
|
if (material.isSolid() || material.isLiquid()) {
|
|
world.setTypeId(i, j, k, Block.WATER.id);
|
|
}
|
|
}
|
|
|
|
public int a(Random random) {
|
|
return 0;
|
|
}
|
|
|
|
public void a(World world, int i, int j, int k, Random random) {
|
|
if (world.a(EnumSkyBlock.BLOCK, i, j, k) > 11 - Block.lightBlock[this.id]) {
|
|
// CraftBukkit start
|
|
if (org.bukkit.craftbukkit.event.CraftEventFactory.callBlockFadeEvent(world.getWorld().getBlockAt(i, j, k), Block.STATIONARY_WATER.id).isCancelled()) {
|
|
return;
|
|
}
|
|
// CraftBukkit end
|
|
|
|
this.b(world, i, j, k, world.getData(i, j, k), 0);
|
|
world.setTypeId(i, j, k, Block.STATIONARY_WATER.id);
|
|
}
|
|
}
|
|
|
|
public int g() {
|
|
return 0;
|
|
}
|
|
|
|
protected ItemStack a_(int i) {
|
|
return null;
|
|
}
|
|
}
|