コード例 #1
0
  public void func_180655_c(
      World p_180655_1_, BlockPos p_180655_2_, IBlockState p_180655_3_, Random p_180655_4_) {
    if (this.field_150113_a) {
      double var5 =
          (double) ((float) p_180655_2_.func_177958_n() + 0.5F)
              + (double) (p_180655_4_.nextFloat() - 0.5F) * 0.2D;
      double var7 =
          (double) ((float) p_180655_2_.func_177956_o() + 0.7F)
              + (double) (p_180655_4_.nextFloat() - 0.5F) * 0.2D;
      double var9 =
          (double) ((float) p_180655_2_.func_177952_p() + 0.5F)
              + (double) (p_180655_4_.nextFloat() - 0.5F) * 0.2D;
      EnumFacing var11 = (EnumFacing) p_180655_3_.func_177229_b(field_176596_a);
      if (var11.func_176740_k().func_176722_c()) {
        EnumFacing var12 = var11.func_176734_d();
        double var13 = 0.27000001072883606D;
        var5 += 0.27000001072883606D * (double) var12.func_82601_c();
        var7 += 0.2199999988079071D;
        var9 += 0.27000001072883606D * (double) var12.func_82599_e();
      }

      p_180655_1_.func_175688_a(
          EnumParticleTypes.REDSTONE, var5, var7, var9, 0.0D, 0.0D, 0.0D, new int[0]);
    }
  }
コード例 #2
0
 public boolean func_176225_a(
     IBlockAccess p_176225_1_, BlockPos p_176225_2_, EnumFacing p_176225_3_) {
   return p_176225_3_.func_176740_k() != EnumFacing.Axis.Y;
 }