summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/BlockFence.java
blob: 7ed85898272f6e7c688cb57a45ca0a566d2f3fba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package net.minecraft.server;

import java.util.ArrayList;

public class BlockFence extends Block {

    public BlockFence(int i, int j) {
        super(i, j, Material.WOOD);
        this.a(0, 0, 0, 1, (float) 1.5, 1); //Craftbukkit
    }

    //Removed by craftbukkit
//    public void a(World world, int i, int j, int k, AxisAlignedBB axisalignedbb, ArrayList arraylist) {
//        arraylist.add(AxisAlignedBB.b((double) i, (double) j, (double) k, (double) (i + 1), (double) j + 2.0D, (double) (k + 1)));
//    }

    public boolean a(World world, int i, int j, int k) {
        return world.getTypeId(i, j - 1, k) == this.id ? false : (!world.getMaterial(i, j - 1, k).isBuildable() ? false : super.a(world, i, j, k));
    }

    public boolean a() {
        return false;
    }
}