本文整理匯總了Java中net.canarymod.api.world.blocks.BlockFace類的典型用法代碼示例。如果您正苦於以下問題:Java BlockFace類的具體用法?Java BlockFace怎麽用?Java BlockFace使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
BlockFace類屬於net.canarymod.api.world.blocks包,在下文中一共展示了BlockFace類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: canApply
import net.canarymod.api.world.blocks.BlockFace; //導入依賴的package包/類
@Override
public boolean canApply(Comparable value) {
if (value instanceof BlockFace) {
EnumFacing facing;
switch ((BlockFace) value) {
case BOTTOM:
facing = EnumFacing.DOWN;
break;
case TOP:
facing = EnumFacing.UP;
break;
case NORTH:
facing = EnumFacing.NORTH;
break;
case SOUTH:
facing = EnumFacing.SOUTH;
break;
case WEST:
facing = EnumFacing.WEST;
break;
case EAST:
facing = EnumFacing.EAST;
break;
default:
return false;
}
return this.getAllowedValues().contains(facing);
}
return super.canApply(value);
}
示例2: getFaceClicked
import net.canarymod.api.world.blocks.BlockFace; //導入依賴的package包/類
@Override
public BlockFace getFaceClicked() {
// TODO Auto-generated method stub
return null;
}
示例3: setFaceClicked
import net.canarymod.api.world.blocks.BlockFace; //導入依賴的package包/類
@Override
public void setFaceClicked(final BlockFace face) {
// TODO Auto-generated method stub
}
示例4: getFacingBlock
import net.canarymod.api.world.blocks.BlockFace; //導入依賴的package包/類
@Override
public Block getFacingBlock(final BlockFace face) {
// TODO Auto-generated method stub
return null;
}