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

Java Vec3Pool类代码示例

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

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



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

示例1: Vec3

import net.minecraft.util.Vec3Pool; //导入依赖的package包/类
protected Vec3(Vec3Pool p_i2305_1_, double p_i2305_2_, double p_i2305_4_, double p_i2305_6_) {
   if(p_i2305_2_ == -0.0D) {
      p_i2305_2_ = 0.0D;
   }

   if(p_i2305_4_ == -0.0D) {
      p_i2305_4_ = 0.0D;
   }

   if(p_i2305_6_ == -0.0D) {
      p_i2305_6_ = 0.0D;
   }

   this.field_72450_a = p_i2305_2_;
   this.field_72448_b = p_i2305_4_;
   this.field_72449_c = p_i2305_6_;
   this.field_72447_d = p_i2305_1_;
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:19,代码来源:Vec3.java


示例2: nextVec3

import net.minecraft.util.Vec3Pool; //导入依赖的package包/类
private static Vec3 nextVec3(Vec3Pool vec3Pool, ByteBuffer var0)
{
  float var1 = var0.getFloat();
  float var2 = var0.getFloat();
  float var3 = var0.getFloat();
  return vec3Pool.getVecFromPool(var1, var2, var3);
}
 
开发者ID:Stormister,项目名称:Rediscovered-Mod-1.6.4,代码行数:8,代码来源:MD3Loader.java


示例3: getWorldVec3Pool

import net.minecraft.util.Vec3Pool; //导入依赖的package包/类
/**
 * Return the Vec3Pool object for this world.
 */
public Vec3Pool getWorldVec3Pool()
{
    return this.worldObj.getWorldVec3Pool();
}
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:8,代码来源:ChunkCache.java


示例4: getWorldVec3Pool

import net.minecraft.util.Vec3Pool; //导入依赖的package包/类
/**
 * Return the Vec3Pool object for this world.
 */
public Vec3Pool getWorldVec3Pool()
{
    return this.vecPool;
}
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:8,代码来源:World.java


示例5: getWorldVec3Pool

import net.minecraft.util.Vec3Pool; //导入依赖的package包/类
@Override
public Vec3Pool getWorldVec3Pool() {
    return world.getWorldVec3Pool();
}
 
开发者ID:delta534,项目名称:Chisel,代码行数:5,代码来源:proxyWorld.java


示例6: getWorldVec3Pool

import net.minecraft.util.Vec3Pool; //导入依赖的package包/类
@Override
public Vec3Pool getWorldVec3Pool() {
	if(iba == null)return null;
	return iba.getWorldVec3Pool();
}
 
开发者ID:hypercross,项目名称:minepainter,代码行数:6,代码来源:BlockSlice.java


示例7: load

import net.minecraft.util.Vec3Pool; //导入依赖的package包/类
private MD3Model load(ByteBuffer var1) throws IOException {
  Vec3Pool vec3Pool = new Vec3Pool(300, 2000);
  var1.order(ByteOrder.LITTLE_ENDIAN);
  if (!readString(var1, 4).equals("IDP3")) {
    throw new IOException("Not a valid MD3 file (bad magic number)");
  }
  MD3Model model = new MD3Model();
  var1.getInt();
  readString(var1, 64);
  var1.getInt();
  int frames = var1.getInt();
  System.out.println(frames + " frames");
  int tags = var1.getInt();
  int var5 = var1.getInt();
  var1.getInt();
  int frameOffset = var1.getInt();
  var1.getInt();
  int surfaceOffset = var1.getInt();
  var1.getInt();
  model.animFrames = frames;
  model.frames = new MD3Frame[frames];
  model.tags = new HashMap();
  model.surfaces = new MD3Surface[var5];
  var1.position(frameOffset);

  for (int i = 0; i < frames; i++) {
    MD3Frame var12 = new MD3Frame();
    var12.min = nextVec3(vec3Pool, var1);
    var12.max = nextVec3(vec3Pool, var1);
    var12.origin = nextVec3(vec3Pool, var1);
    var12.radius = Float.valueOf(var1.getFloat());
    var12.name = readString(var1, 16);
    model.frames[i] = var12;
  }

  MD3Tag[] var14 = new MD3Tag[tags];

  for (int i = 0; i < tags; i++) {
    var14[i] = new MD3Tag(frames);
  }

  for (int var8 = 0; var8 < frames; var8++) {
    for (int var9 = 0; var9 < tags; var9++) {
      MD3Tag var11 = var14[var9];
      var11.name = readString(var1, 64);
      var11.coords[var8] = nextVec3(vec3Pool, var1);
      var11.c[var8] = nextVec3(vec3Pool, var1);
      var11.d[var8] = nextVec3(vec3Pool, var1);
      var11.e[var8] = nextVec3(vec3Pool, var1);
    }
  }

  for (int i = 0; i < tags; i++) {
    model.tags.put(var14[i].name, var14[i]);
  }

  var1.position(surfaceOffset);

  for (int var8 = 0; var8 < var5; var8++) {
    model.surfaces[var8] = loadSurface(var1);
  }

  return model;
}
 
开发者ID:Stormister,项目名称:Rediscovered-Mod-1.6.4,代码行数:65,代码来源:MD3Loader.java


示例8: func_82732_R

import net.minecraft.util.Vec3Pool; //导入依赖的package包/类
public Vec3Pool func_82732_R() {
   return this.field_72815_e.func_82732_R();
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:4,代码来源:ChunkCache.java


示例9: func_82732_R

import net.minecraft.util.Vec3Pool; //导入依赖的package包/类
public Vec3Pool func_82732_R() {
   return this.field_82741_K;
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:4,代码来源:World.java


示例10: toVec3

import net.minecraft.util.Vec3Pool; //导入依赖的package包/类
public Vec3 toVec3(Vec3Pool pool) {
	return pool.getVecFromPool(x, y, z);
}
 
开发者ID:Hunternif,项目名称:Dota2Items,代码行数:4,代码来源:IntVec3.java


示例11: getWorldVec3Pool

import net.minecraft.util.Vec3Pool; //导入依赖的package包/类
@Override
public Vec3Pool getWorldVec3Pool() {
	// TODO Auto-generated method stub
	return null;
}
 
开发者ID:szszss,项目名称:MigoCraft,代码行数:6,代码来源:ICS.java


示例12: getWorldVec3Pool

import net.minecraft.util.Vec3Pool; //导入依赖的package包/类
/**
 * Return the Vec3Pool object for this world.
 */
Vec3Pool getWorldVec3Pool();
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:5,代码来源:IBlockAccess.java


示例13: func_82732_R

import net.minecraft.util.Vec3Pool; //导入依赖的package包/类
Vec3Pool func_82732_R(); 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:2,代码来源:IBlockAccess.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
Java ObjectAllocator类代码示例发布时间:2022-05-22
下一篇:
Java TableCursor类代码示例发布时间: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