Example #1
0
 @Override
 public boolean a(IBlockAccess iblockaccess, int x, int y, int z, int face) {
   int index = CustomBlock.getIndex(x, y, z);
   Chunk chunk = ((World) iblockaccess).getChunkAt(x >> 4, z >> 4).bukkitChunk;
   if (chunk.getClass().equals(SpoutCraftChunk.class)) {
     TIntIntHashMap powerOverrides = ((SpoutCraftChunk) chunk).powerOverrides;
     if (powerOverrides.containsKey(index)) {
       int powerbits = powerOverrides.get(index);
       switch (face) {
         case 0:
           return (powerbits & (1 << 0)) != 0;
         case 1:
           return (powerbits & (1 << 1)) != 0;
         case 2:
           return (powerbits & (1 << 2)) != 0;
         case 3:
           return (powerbits & (1 << 3)) != 0;
         case 4:
           return (powerbits & (1 << 4)) != 0;
         case 5:
           return (powerbits & (1 << 5)) != 0;
         default:
           return parent.a(iblockaccess, x, y, z, face);
       }
     }
   }
   return parent.a(iblockaccess, x, y, z, face);
 }
Example #2
0
 @Override
 public void a(float f, float f1, float f2, float f3, float f4, float f5) {
   if (parent != null) {
     parent.a(f, f1, f2, f3, f4, f5);
   } else {
     super.a(f, f1, f2, f3, f4, f5);
   }
 }
Example #3
0
 @Override
 public boolean a() {
   if (parent != null) {
     return parent.a();
   }
   return super.a();
 }
Example #4
0
 @Override
 public void a(World world, int i, int j, int k, Entity entity) {
   parent.a(world, i, j, k, entity);
 }
Example #5
0
 @Override
 public void a(IBlockAccess iblockaccess, int i, int j, int k) {
   parent.a(iblockaccess, i, j, k);
 }
Example #6
0
 @Override
 public void a(World world, int i, int j, int k, Entity entity, Vec3D vec3d) {
   parent.a(world, i, j, k, entity, vec3d);
 }
Example #7
0
 @Override
 public MovingObjectPosition a(World world, int i, int j, int k, Vec3D vec3d, Vec3D vec3d1) {
   return parent.a(world, i, j, k, vec3d, vec3d1);
 }
Example #8
0
 @Override
 public int a(int i, Random random) {
   return parent.a(i, random);
 }
Example #9
0
 @Override
 public int a(int i, int j) {
   return parent.a(i, j);
 }
Example #10
0
 @Override
 public void a(World world, int i, int j, int k) {
   parent.a(world, i, j, k);
 }
Example #11
0
 @Override
 public void a(World world, int i, int j, int k, Random random) {
   parent.a(world, i, j, k, random);
 }
Example #12
0
 @Override
 public boolean a(int i, boolean flag) {
   return parent.a(i, flag);
 }
Example #13
0
 @SuppressWarnings("rawtypes")
 @Override
 public void a(
     World world, int i, int j, int k, AxisAlignedBB axisalignedbb, ArrayList arraylist) {
   parent.a(world, i, j, k, axisalignedbb, arraylist);
 }
Example #14
0
 @Override
 public int a(int i) {
   return parent.a(i);
 }
Example #15
0
 @Override
 public void a(World world, EntityHuman entityhuman, int i, int j, int k, int l) {
   parent.a(world, entityhuman, i, j, k, l);
 }
Example #16
0
 @Override
 public void a(World world, int i, int j, int k, int l, int i1) {
   parent.a(world, i, j, k, l, i1);
 }
Example #17
0
 @Override
 public int a(Random random) {
   return parent.a(random);
 }