本文整理匯總了Java中net.minecraft.block.Block.func_149730_j方法的典型用法代碼示例。如果您正苦於以下問題:Java Block.func_149730_j方法的具體用法?Java Block.func_149730_j怎麽用?Java Block.func_149730_j使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類net.minecraft.block.Block
的用法示例。
在下文中一共展示了Block.func_149730_j方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: direction
import net.minecraft.block.Block; //導入方法依賴的package包/類
protected void direction(World world, int x, int y, int z) {
if (!world.isRemote) {
Block direction0 = world.getBlock(x, y, z - 1);
Block direction1 = world.getBlock(x, y, z + 1);
Block direction2 = world.getBlock(x - 1, y, z);
Block direction3 = world.getBlock(x + 1, y, z);
byte b = 3;
if (direction0.func_149730_j() && !direction0.func_149730_j()) {
b = 3;
}
if (direction1.func_149730_j() && !direction1.func_149730_j()) {
b = 2;
}
if (direction2.func_149730_j() && !direction2.func_149730_j()) {
b = 5;
}
if (direction3.func_149730_j() && !direction3.func_149730_j()) {
b = 4;
}
world.setBlockMetadataWithNotify(x, y, z, b, 2);
}
}