Java 类net.minecraft.block.BlockMelon 实例源码

项目:Industrial-Foregoing    文件:PumpkinMelonPlantRecollectable.java   
@Override
public boolean canBeHarvested(World world, BlockPos pos, IBlockState blockState) {
    return blockState.getBlock() instanceof BlockPumpkin || blockState.getBlock() instanceof BlockMelon;
}