Пример #1
0
 public void updateShape(IBlockAccess iblockaccess, BlockPosition blockposition) {
   float f = 0.1875F;
   switch (SyntheticClass_1.b[
       ((EnumLeverPosition) iblockaccess.getType(blockposition).get(FACING)).ordinal()]) {
     case 1:
       a(0.0F, 0.2F, 0.5F - f, f * 2.0F, 0.8F, 0.5F + f);
       break;
     case 2:
       a(1.0F - f * 2.0F, 0.2F, 0.5F - f, 1.0F, 0.8F, 0.5F + f);
       break;
     case 3:
       a(0.5F - f, 0.2F, 0.0F, 0.5F + f, 0.8F, f * 2.0F);
       break;
     case 4:
       a(0.5F - f, 0.2F, 1.0F - f * 2.0F, 0.5F + f, 0.8F, 1.0F);
       break;
     case 5:
     case 6:
       f = 0.25F;
       a(0.5F - f, 0.0F, 0.5F - f, 0.5F + f, 0.6F, 0.5F + f);
       break;
     case 7:
     case 8:
       f = 0.25F;
       a(0.5F - f, 0.4F, 0.5F - f, 0.5F + f, 1.0F, 0.5F + f);
   }
 }
 public void updateShape(IBlockAccess var1, BlockPosition var2) {
   EnumDirection var3 = (EnumDirection) var1.getType(var2).get(a);
   float var4 = 0.28125F;
   float var5 = 0.78125F;
   float var6 = 0.0F;
   float var7 = 1.0F;
   float var8 = 0.125F;
   this.setSizes(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
   switch (BlockWallSign.SyntheticClass_1.a[var3.ordinal()]) {
     case 1:
       this.setSizes(var6, var4, 1.0F - var8, var7, var5, 1.0F);
       break;
     case 2:
       this.setSizes(var6, var4, 0.0F, var7, var5, var8);
       break;
     case 3:
       this.setSizes(1.0F - var8, var4, var6, 1.0F, var5, var7);
       break;
     case 4:
       this.setSizes(0.0F, var4, var6, var8, var5, var7);
   }
 }
Пример #3
0
  public void updateShape(IBlockAccess iblockaccess, BlockPosition blockposition) {
    switch (SwitchHelperDirection15.a[
        ((EnumDirection) iblockaccess.getType(blockposition).get(BlockSkull.FACING)).ordinal()]) {
      case 1:
      default:
        this.a(0.25F, 0.0F, 0.25F, 0.75F, 0.5F, 0.75F);
        break;

      case 2:
        this.a(0.25F, 0.25F, 0.5F, 0.75F, 0.75F, 1.0F);
        break;

      case 3:
        this.a(0.25F, 0.25F, 0.0F, 0.75F, 0.75F, 0.5F);
        break;

      case 4:
        this.a(0.5F, 0.25F, 0.25F, 1.0F, 0.75F, 0.75F);
        break;

      case 5:
        this.a(0.0F, 0.25F, 0.25F, 0.5F, 0.75F, 0.75F);
    }
  }