当前位置: 首页>>代码示例>>Java>>正文


Java BlockID.VINE属性代码示例

本文整理汇总了Java中com.sk89q.worldedit.blocks.BlockID.VINE属性的典型用法代码示例。如果您正苦于以下问题:Java BlockID.VINE属性的具体用法?Java BlockID.VINE怎么用?Java BlockID.VINE使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在com.sk89q.worldedit.blocks.BlockID的用法示例。


在下文中一共展示了BlockID.VINE属性的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: canTick

private static boolean canTick(int id) {
    switch (id) {
        case BlockID.VINE:
        case BlockID.FIRE:
        case BlockID.ICE:
        case BlockID.PACKED_ICE:
        case BlockID.FROSTED_ICE:
        case BlockID.LEAVES:
        case BlockID.LEAVES2:
        case BlockID.SOIL:
        case BlockID.CACTUS:
        case BlockID.REED:
        case BlockID.CHORUS_FLOWER:
        case BlockID.CHORUS_PLANT:
        case BlockID.GRASS:
        case BlockID.MYCELIUM:
        case BlockID.SAPLING:
        case BlockID.WATER:
        case BlockID.STATIONARY_WATER:
        case BlockID.LAVA:
        case BlockID.STATIONARY_LAVA:
        case BlockID.GLOWING_REDSTONE_ORE:
        case BlockID.REDSTONE_ORE:
        case BlockID.PORTAL:
        case BlockID.END_PORTAL:
        case BlockID.REDSTONE_BLOCK:
        case BlockID.REDSTONE_LAMP_OFF:
        case BlockID.REDSTONE_LAMP_ON:
        case BlockID.REDSTONE_REPEATER_OFF:
        case BlockID.REDSTONE_REPEATER_ON:
        case BlockID.COMMAND_BLOCK:
        case BlockID.CHAIN_COMMAND_BLOCK:
        case BlockID.REPEATING_COMMAND_BLOCK:
        case BlockID.REDSTONE_TORCH_OFF:
        case BlockID.REDSTONE_TORCH_ON:
        case BlockID.REDSTONE_WIRE:
        case BlockID.CROPS:
        case BlockID.MELON_STEM:
        case BlockID.PUMPKIN_STEM:
        case BlockID.POTATOES:
        case BlockID.CARROTS:
        case BlockID.COCOA_PLANT:
        case BlockID.BEETROOTS:
        case BlockID.NETHER_WART:
        case BlockID.NETHER_WART_BLOCK:
        case BlockID.BROWN_MUSHROOM:
        case BlockID.RED_MUSHROOM:
            return true;
        default: return false;
    }
}
 
开发者ID:boy0001,项目名称:FastAsyncWorldedit,代码行数:51,代码来源:BukkitChunk_All.java


注:本文中的com.sk89q.worldedit.blocks.BlockID.VINE属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。