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