当前位置: 首页>>代码示例>>Java>>正文


Java IWorldAccess类代码示例

本文整理汇总了Java中net.minecraft.world.IWorldAccess的典型用法代码示例。如果您正苦于以下问题:Java IWorldAccess类的具体用法?Java IWorldAccess怎么用?Java IWorldAccess使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


IWorldAccess类属于net.minecraft.world包,在下文中一共展示了IWorldAccess类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: func_72915_b

import net.minecraft.world.IWorldAccess; //导入依赖的package包/类
public void func_72915_b(EnumSkyBlock p_72915_1_, int p_72915_2_, int p_72915_3_, int p_72915_4_, int p_72915_5_) {
   if(p_72915_2_ >= -30000000 && p_72915_4_ >= -30000000 && p_72915_2_ < 30000000 && p_72915_4_ < 30000000) {
      if(p_72915_3_ >= 0) {
         if(p_72915_3_ < 256) {
            if(this.func_72916_c(p_72915_2_ >> 4, p_72915_4_ >> 4)) {
               Chunk var6 = this.func_72964_e(p_72915_2_ >> 4, p_72915_4_ >> 4);
               var6.func_76633_a(p_72915_1_, p_72915_2_ & 15, p_72915_3_, p_72915_4_ & 15, p_72915_5_);

               for(int var7 = 0; var7 < this.field_73021_x.size(); ++var7) {
                  ((IWorldAccess)this.field_73021_x.get(var7)).func_72711_b(p_72915_2_, p_72915_3_, p_72915_4_);
               }

            }
         }
      }
   }
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:18,代码来源:World.java

示例2: func_72889_a

import net.minecraft.world.IWorldAccess; //导入依赖的package包/类
public void func_72889_a(EntityPlayer p_72889_1_, int p_72889_2_, int p_72889_3_, int p_72889_4_, int p_72889_5_, int p_72889_6_) {
   try {
      for(int var7 = 0; var7 < this.field_73021_x.size(); ++var7) {
         ((IWorldAccess)this.field_73021_x.get(var7)).func_72706_a(p_72889_1_, p_72889_2_, p_72889_3_, p_72889_4_, p_72889_5_, p_72889_6_);
      }

   } catch (Throwable var10) {
      CrashReport var8 = CrashReport.func_85055_a(var10, "Playing level event");
      CrashReportCategory var9 = var8.func_85058_a("Level event being played");
      var9.func_71507_a("Block coordinates", CrashReportCategory.func_85071_a(p_72889_3_, p_72889_4_, p_72889_5_));
      var9.func_71507_a("Event source", p_72889_1_);
      var9.func_71507_a("Event type", Integer.valueOf(p_72889_2_));
      var9.func_71507_a("Event data", Integer.valueOf(p_72889_6_));
      throw new ReportedException(var8);
   }
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:17,代码来源:World.java

示例3: func_72956_a

import net.minecraft.world.IWorldAccess; //导入依赖的package包/类
public void func_72956_a(Entity p_72956_1_, String p_72956_2_, float p_72956_3_, float p_72956_4_) {
   if(p_72956_1_ != null && p_72956_2_ != null) {
      for(int var5 = 0; var5 < this.field_73021_x.size(); ++var5) {
         ((IWorldAccess)this.field_73021_x.get(var5)).func_72704_a(p_72956_2_, p_72956_1_.field_70165_t, p_72956_1_.field_70163_u - (double)p_72956_1_.field_70129_M, p_72956_1_.field_70161_v, p_72956_3_, p_72956_4_);
      }

   }
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:9,代码来源:World.java

示例4: func_85173_a

import net.minecraft.world.IWorldAccess; //导入依赖的package包/类
public void func_85173_a(EntityPlayer p_85173_1_, String p_85173_2_, float p_85173_3_, float p_85173_4_) {
   if(p_85173_1_ != null && p_85173_2_ != null) {
      for(int var5 = 0; var5 < this.field_73021_x.size(); ++var5) {
         ((IWorldAccess)this.field_73021_x.get(var5)).func_85102_a(p_85173_1_, p_85173_2_, p_85173_1_.field_70165_t, p_85173_1_.field_70163_u - (double)p_85173_1_.field_70129_M, p_85173_1_.field_70161_v, p_85173_3_, p_85173_4_);
      }

   }
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:9,代码来源:World.java

示例5: func_72908_a

import net.minecraft.world.IWorldAccess; //导入依赖的package包/类
public void func_72908_a(double p_72908_1_, double p_72908_3_, double p_72908_5_, String p_72908_7_, float p_72908_8_, float p_72908_9_) {
   if(p_72908_7_ != null) {
      for(int var10 = 0; var10 < this.field_73021_x.size(); ++var10) {
         ((IWorldAccess)this.field_73021_x.get(var10)).func_72704_a(p_72908_7_, p_72908_1_, p_72908_3_, p_72908_5_, p_72908_8_, p_72908_9_);
      }

   }
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:9,代码来源:World.java

示例6: func_72888_f

import net.minecraft.world.IWorldAccess; //导入依赖的package包/类
public void func_72888_f(int p_72888_1_, int p_72888_2_, int p_72888_3_, int p_72888_4_, int p_72888_5_) {
   for(int var6 = 0; var6 < this.field_73021_x.size(); ++var6) {
      IWorldAccess var7 = (IWorldAccess)this.field_73021_x.get(var6);
      var7.func_72705_a(p_72888_1_, p_72888_2_, p_72888_3_, p_72888_4_, p_72888_5_);
   }

}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:8,代码来源:World.java

示例7: addWorldAccess

import net.minecraft.world.IWorldAccess; //导入依赖的package包/类
public void addWorldAccess(final IWorldAccess par1IWorldAccess) {
    this.world.addWorldAccess(par1IWorldAccess);
}
 
开发者ID:sameer,项目名称:ExtraUtilities,代码行数:4,代码来源:FakeWorldWrapper.java

示例8: removeWorldAccess

import net.minecraft.world.IWorldAccess; //导入依赖的package包/类
public void removeWorldAccess(final IWorldAccess par1IWorldAccess) {
    this.world.removeWorldAccess(par1IWorldAccess);
}
 
开发者ID:sameer,项目名称:ExtraUtilities,代码行数:4,代码来源:FakeWorldWrapper.java

示例9: playUnNamespacedSound

import net.minecraft.world.IWorldAccess; //导入依赖的package包/类
public void playUnNamespacedSound(World w, double x, double y, double z, String name, float volume, float pitch) {
	for (Object o : (Iterable) Reflection.get(World.class, w, "worldAccesses")) {
		IWorldAccess iwa = (IWorldAccess) o;
		iwa.playSound(name, x, y, z, volume, pitch);
	}
}
 
开发者ID:planetguy32,项目名称:Enterprise,代码行数:7,代码来源:PLHelper.java

示例10: func_72845_h

import net.minecraft.world.IWorldAccess; //导入依赖的package包/类
public void func_72845_h(int p_72845_1_, int p_72845_2_, int p_72845_3_) {
   for(int var4 = 0; var4 < this.field_73021_x.size(); ++var4) {
      ((IWorldAccess)this.field_73021_x.get(var4)).func_72710_a(p_72845_1_, p_72845_2_, p_72845_3_);
   }

}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:7,代码来源:World.java

示例11: func_72909_d

import net.minecraft.world.IWorldAccess; //导入依赖的package包/类
public void func_72909_d(int p_72909_1_, int p_72909_2_, int p_72909_3_, int p_72909_4_, int p_72909_5_, int p_72909_6_) {
   for(int var7 = 0; var7 < this.field_73021_x.size(); ++var7) {
      ((IWorldAccess)this.field_73021_x.get(var7)).func_72707_a(p_72909_1_, p_72909_2_, p_72909_3_, p_72909_4_, p_72909_5_, p_72909_6_);
   }

}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:7,代码来源:World.java

示例12: func_72902_n

import net.minecraft.world.IWorldAccess; //导入依赖的package包/类
public void func_72902_n(int p_72902_1_, int p_72902_2_, int p_72902_3_) {
   for(int var4 = 0; var4 < this.field_73021_x.size(); ++var4) {
      ((IWorldAccess)this.field_73021_x.get(var4)).func_72711_b(p_72902_1_, p_72902_2_, p_72902_3_);
   }

}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:7,代码来源:World.java

示例13: func_72934_a

import net.minecraft.world.IWorldAccess; //导入依赖的package包/类
public void func_72934_a(String p_72934_1_, int p_72934_2_, int p_72934_3_, int p_72934_4_) {
   for(int var5 = 0; var5 < this.field_73021_x.size(); ++var5) {
      ((IWorldAccess)this.field_73021_x.get(var5)).func_72702_a(p_72934_1_, p_72934_2_, p_72934_3_, p_72934_4_);
   }

}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:7,代码来源:World.java

示例14: func_72869_a

import net.minecraft.world.IWorldAccess; //导入依赖的package包/类
public void func_72869_a(String p_72869_1_, double p_72869_2_, double p_72869_4_, double p_72869_6_, double p_72869_8_, double p_72869_10_, double p_72869_12_) {
   for(int var14 = 0; var14 < this.field_73021_x.size(); ++var14) {
      ((IWorldAccess)this.field_73021_x.get(var14)).func_72708_a(p_72869_1_, p_72869_2_, p_72869_4_, p_72869_6_, p_72869_8_, p_72869_10_, p_72869_12_);
   }

}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:7,代码来源:World.java

示例15: func_72923_a

import net.minecraft.world.IWorldAccess; //导入依赖的package包/类
protected void func_72923_a(Entity p_72923_1_) {
   for(int var2 = 0; var2 < this.field_73021_x.size(); ++var2) {
      ((IWorldAccess)this.field_73021_x.get(var2)).func_72703_a(p_72923_1_);
   }

}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:7,代码来源:World.java


注:本文中的net.minecraft.world.IWorldAccess类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。