• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java IWorldAccess类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: func_72847_b

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

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


示例17: func_72954_a

import net.minecraft.world.IWorldAccess; //导入依赖的package包/类
public void func_72954_a(IWorldAccess p_72954_1_) {
   this.field_73021_x.add(p_72954_1_);
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:4,代码来源:World.java


示例18: func_72848_b

import net.minecraft.world.IWorldAccess; //导入依赖的package包/类
@SideOnly(Side.CLIENT)
public void func_72848_b(IWorldAccess p_72848_1_) {
   this.field_73021_x.remove(p_72848_1_);
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:5,代码来源:World.java


示例19: func_82739_e

import net.minecraft.world.IWorldAccess; //导入依赖的package包/类
public void func_82739_e(int p_82739_1_, int p_82739_2_, int p_82739_3_, int p_82739_4_, int p_82739_5_) {
   for(int var6 = 0; var6 < this.field_73021_x.size(); ++var6) {
      ((IWorldAccess)this.field_73021_x.get(var6)).func_82746_a(p_82739_1_, p_82739_2_, p_82739_3_, p_82739_4_, p_82739_5_);
   }

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


示例20: 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,项目名称:Gizmos,代码行数:7,代码来源:PLHelper.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java FileUtils类代码示例发布时间:2022-05-22
下一篇:
Java AbsoluteBendpoint类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap