本文整理汇总了Java中ethanjones.cubes.world.reference.AreaReference.minBlockX方法的典型用法代码示例。如果您正苦于以下问题:Java AreaReference.minBlockX方法的具体用法?Java AreaReference.minBlockX怎么用?Java AreaReference.minBlockX使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ethanjones.cubes.world.reference.AreaReference
的用法示例。
在下文中一共展示了AreaReference.minBlockX方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: generateCave
import ethanjones.cubes.world.reference.AreaReference; //导入方法依赖的package包/类
private Cave generateCave(final AreaReference a) {
int offsetX = smoothWorld.pseudorandomInt(a.areaX, a.areaZ, Area.SIZE_BLOCKS - 1);
int offsetZ = smoothWorld.pseudorandomInt(a.areaZ, a.areaX, Area.SIZE_BLOCKS - 1);
int x = a.minBlockX() + offsetX;
int z = a.minBlockZ() + offsetZ;
CaveGenerator caveGenerator = new CaveGenerator(x, z, smoothWorld);
final Cave cave = caveGenerator.generate();
final Save save = Cubes.getServer().world.save;
Executor.executeNotSided(new Runnable() {
@Override
public void run() {
save.writeCave(a, cave);
}
});
return cave;
}
示例2: generateCave
import ethanjones.cubes.world.reference.AreaReference; //导入方法依赖的package包/类
private Cave generateCave(final AreaReference a) {
int offsetX = smoothWorld.pseudorandomInt(a.areaX, a.areaZ, Area.SIZE_BLOCKS - 1);
int offsetZ = smoothWorld.pseudorandomInt(a.areaZ, a.areaX, Area.SIZE_BLOCKS - 1);
int x = a.minBlockX() + offsetX;
int z = a.minBlockZ() + offsetZ;
CaveGenerator caveGenerator = new CaveGenerator(x, z, smoothWorld);
final Cave cave = caveGenerator.generate();
final Save save = Cubes.getServer().world.save;
Executor.executeNotSided(new Runnable() {
@Override
public void run() {
save.writeCave(a, cave);
}
});
return cave;
}
示例3: LuaVector
import ethanjones.cubes.world.reference.AreaReference; //导入方法依赖的package包/类
public LuaVector(AreaReference a) {
this.x = a.minBlockX();
this.y = 0; // unknown value?
this.z = a.minBlockZ();
}
示例4: LuaVector
import ethanjones.cubes.world.reference.AreaReference; //导入方法依赖的package包/类
public LuaVector(AreaReference a) {
this.x = a.minBlockX();
this.y = 0; // unknown value?
this.z = a.minBlockZ();
}