本文整理匯總了Java中net.minecraft.util.AxisAlignedBB.getBoundingBox方法的典型用法代碼示例。如果您正苦於以下問題:Java AxisAlignedBB.getBoundingBox方法的具體用法?Java AxisAlignedBB.getBoundingBox怎麽用?Java AxisAlignedBB.getBoundingBox使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類net.minecraft.util.AxisAlignedBB
的用法示例。
在下文中一共展示了AxisAlignedBB.getBoundingBox方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getCollisionBoundingBoxFromPool
import net.minecraft.util.AxisAlignedBB; //導入方法依賴的package包/類
public AxisAlignedBB getCollisionBoundingBoxFromPool(World world, int x, int y, int z)
{
float a = 0;
float f = 0.03125F;
return AxisAlignedBB.getBoundingBox((double)((float)x + a), (double)y, (double)((float)z + a), (double)((float)(x + 1) - a), (double)((float)(y + 1) - f), (double)((float)(z + 1) - a));
}
示例2: getCollisionBoundingBoxFromPool
import net.minecraft.util.AxisAlignedBB; //導入方法依賴的package包/類
@Override
public AxisAlignedBB getCollisionBoundingBoxFromPool(World world, int x, int y, int z) {
float f = 0.125F;
return AxisAlignedBB.getBoundingBox(x, y, z, x + 1, y + 1 - f, z + 1);
}
示例3: getCollisionBoundingBoxFromPool
import net.minecraft.util.AxisAlignedBB; //導入方法依賴的package包/類
@Override
public AxisAlignedBB getCollisionBoundingBoxFromPool(World world, int x, int y, int z) {
return AxisAlignedBB.getBoundingBox(x, y, z, x + 1, y + 1, z + 1);
}
示例4: getRenderBoundingBox
import net.minecraft.util.AxisAlignedBB; //導入方法依賴的package包/類
@Override
@SideOnly(Side.CLIENT)
public AxisAlignedBB getRenderBoundingBox() {
int height = worldObj == null ? 256 : worldObj.getActualHeight();
return AxisAlignedBB.getBoundingBox(xCoord, yCoord, zCoord, xCoord + 1, height, zCoord + 1);
}
示例5: getRenderBoundingBox
import net.minecraft.util.AxisAlignedBB; //導入方法依賴的package包/類
@Override
@SideOnly(Side.CLIENT)
public AxisAlignedBB getRenderBoundingBox() {
return AxisAlignedBB.getBoundingBox(xCoord, yCoord, zCoord, xCoord + 1, yCoord + 1, zCoord + 1);
}