コード例 #1
0
  public void func_71861_g(World p_71861_1_, int p_71861_2_, int p_71861_3_, int p_71861_4_) {
    if (p_71861_1_.func_72805_g(p_71861_2_, p_71861_3_, p_71861_4_) == 0) {
      super.func_71861_g(p_71861_1_, p_71861_2_, p_71861_3_, p_71861_4_);
    }

    if (this.field_72130_a) {
      p_71861_1_.func_72898_h(p_71861_2_, p_71861_3_ - 1, p_71861_4_, this.field_71990_ca);
      p_71861_1_.func_72898_h(p_71861_2_, p_71861_3_ + 1, p_71861_4_, this.field_71990_ca);
      p_71861_1_.func_72898_h(p_71861_2_ - 1, p_71861_3_, p_71861_4_, this.field_71990_ca);
      p_71861_1_.func_72898_h(p_71861_2_ + 1, p_71861_3_, p_71861_4_, this.field_71990_ca);
      p_71861_1_.func_72898_h(p_71861_2_, p_71861_3_, p_71861_4_ - 1, this.field_71990_ca);
      p_71861_1_.func_72898_h(p_71861_2_, p_71861_3_, p_71861_4_ + 1, this.field_71990_ca);
    }
  }
コード例 #2
0
 public void func_71852_a(
     World p_71852_1_,
     int p_71852_2_,
     int p_71852_3_,
     int p_71852_4_,
     int p_71852_5_,
     int p_71852_6_) {
   if (this.field_72130_a) {
     p_71852_1_.func_72898_h(p_71852_2_, p_71852_3_ - 1, p_71852_4_, this.field_71990_ca);
     p_71852_1_.func_72898_h(p_71852_2_, p_71852_3_ + 1, p_71852_4_, this.field_71990_ca);
     p_71852_1_.func_72898_h(p_71852_2_ - 1, p_71852_3_, p_71852_4_, this.field_71990_ca);
     p_71852_1_.func_72898_h(p_71852_2_ + 1, p_71852_3_, p_71852_4_, this.field_71990_ca);
     p_71852_1_.func_72898_h(p_71852_2_, p_71852_3_, p_71852_4_ - 1, this.field_71990_ca);
     p_71852_1_.func_72898_h(p_71852_2_, p_71852_3_, p_71852_4_ + 1, this.field_71990_ca);
   }
 }
コード例 #3
0
ファイル: BlockButton.java プロジェクト: operacraft/Minecraft
 private void func_82536_d(
     World p_82536_1_, int p_82536_2_, int p_82536_3_, int p_82536_4_, int p_82536_5_) {
   p_82536_1_.func_72898_h(p_82536_2_, p_82536_3_, p_82536_4_, this.field_71990_ca);
   if (p_82536_5_ == 1) {
     p_82536_1_.func_72898_h(p_82536_2_ - 1, p_82536_3_, p_82536_4_, this.field_71990_ca);
   } else if (p_82536_5_ == 2) {
     p_82536_1_.func_72898_h(p_82536_2_ + 1, p_82536_3_, p_82536_4_, this.field_71990_ca);
   } else if (p_82536_5_ == 3) {
     p_82536_1_.func_72898_h(p_82536_2_, p_82536_3_, p_82536_4_ - 1, this.field_71990_ca);
   } else if (p_82536_5_ == 4) {
     p_82536_1_.func_72898_h(p_82536_2_, p_82536_3_, p_82536_4_ + 1, this.field_71990_ca);
   } else {
     p_82536_1_.func_72898_h(p_82536_2_, p_82536_3_ - 1, p_82536_4_, this.field_71990_ca);
   }
 }