本文整理汇总了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;
}