This commit is contained in:
TheCricket committed 2014-11-30 18:10:51 -05:00
1 parent 8768180d54
commit b7d93a8345
9 files changed
+110 -173

No files matched your search

@@ -11,70 +11,58 @@ import net.minecraft.world.World;
import java.util.Random;
public class BlockCloud extends BlockCarvable
{
public class BlockCloud extends BlockCarvable {
public BlockCloud()
{
super(Material.ice, false);
public BlockCloud() {
super(Material.ice);
useNeighborBrightness = true;
}
@Override
public void onEntityCollidedWithBlock(World world, int i, int j, int k, Entity entity)
{
public void onEntityCollidedWithBlock(World world, int i, int j, int k, Entity entity) {
entity.fallDistance = 0.0F;
if(entity.motionY < 0.0D)
{
if (entity.motionY < 0.0D) {
entity.motionY *= 0.0050000000000000001D;
} else if(entity.motionY > 0)
{
} else if (entity.motionY > 0) {
entity.motionY += 0.0285;
}
}
@Override
public boolean isOpaqueCube()
{
public boolean isOpaqueCube() {
return false;
}
@Override
public int getRenderBlockPass()
{
public int getRenderBlockPass() {
return Configurations.ghostCloud ? 1 : 0;
}
@Override
public boolean shouldSideBeRendered(IBlockAccess iblockaccess, int i, int j, int k, int l)
{
public boolean shouldSideBeRendered(IBlockAccess iblockaccess, int i, int j, int k, int l) {
return super.shouldSideBeRendered(iblockaccess, i, j, k, 1 - l);
}
@Override
public AxisAlignedBB getCollisionBoundingBoxFromPool(World world, int i, int j, int k)
{
public AxisAlignedBB getCollisionBoundingBoxFromPool(World world, int i, int j, int k) {
return AxisAlignedBB.getBoundingBox(i + 0.2, j, k + 0.2, i + 0.8, j + 0.2, k + 0.8);
}
@Override
public Item getItemDropped(int par1, Random rand, int par3)
{
public Item getItemDropped(int par1, Random rand, int par3) {
return Item.getItemFromBlock(this);
}
@Override
public int quantityDropped(Random rand)
{
public int quantityDropped(Random rand) {
return 0;
}
@Override
public int damageDropped(int meta)
{
public int damageDropped(int meta) {
return 0;
}
}