本文整理匯總了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();
}